tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.IO.PlayerFileData Class Reference

Inherits Terraria.IO.FileData.

Public Member Functions

 PlayerFileData (string path, bool cloudSave)
 
TimeSpan GetPlayTime ()
 
override void MoveToCloud ()
 
override void MoveToLocal ()
 
void PausePlayTimer ()
 
void Rename (string newName)
 
override void SetAsActive ()
 
void SetPlayTime (TimeSpan time)
 
void StartPlayTimer ()
 
void StopPlayTimer ()
 
void UpdatePlayTimer ()
 
void UpdatePlayTimerAndKeepState ()
 
- Public Member Functions inherited from Terraria.IO.FileData
string GetFileName (bool includeExtension=true)
 
void SetFavorite (bool favorite, bool saveChanges=true)
 
void ToggleFavorite ()
 

Static Public Member Functions

static PlayerFileData CreateAndSave (Player player)
 

Public Attributes

CustomModDataException customDataFail = null
 
- Public Attributes inherited from Terraria.IO.FileData
FileMetadata Metadata
 
string Name
 
readonly string Type
 

Properties

Player Player [get, set]
 
- Properties inherited from Terraria.IO.FileData
bool IsCloudSave [get]
 
bool IsFavorite [get]
 
string Path [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Terraria.IO.FileData
 FileData (string type)
 
 FileData (string type, string path, bool isCloud)
 
- Protected Attributes inherited from Terraria.IO.FileData
bool _isCloudSave
 
bool _isFavorite
 
string _path