Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.IO.PlayerFileData Class Reference

Public Member Functions

 PlayerFileData ()
 
 PlayerFileData (string path, bool cloudSave)
 
override void SetAsActive ()
 
void MarkAsServerSide ()
 
override void MoveToCloud ()
 
override void MoveToLocal ()
 
void UpdatePlayTimer ()
 
void StartPlayTimer ()
 
void PausePlayTimer ()
 
TimeSpan GetPlayTime ()
 
void UpdatePlayTimerAndKeepState ()
 
void StopPlayTimer ()
 
void SetPlayTime (TimeSpan time)
 
void Rename (string newName)
 
void ToggleFavorite ()
 
string GetFileName (bool includeExtension=true)
 
void SetFavorite (bool favorite, bool saveChanges=true)
 

Static Public Member Functions

static PlayerFileData CreateAndSave (Player player)
 

Public Attributes

FileMetadata Metadata
 
string Name
 
readonly string Type
 

Protected Attributes

string _path
 
bool _isCloudSave
 
bool _isFavorite
 

Properties

Player Player [get, set]
 
bool ServerSideCharacter [get, private set]
 
string Path [get]
 
bool IsCloudSave [get]
 
bool IsFavorite [get]
 

Private Member Functions

bool MapBelongsToPath (string mapPath, string filePath)
 

Private Attributes

Player _player
 
TimeSpan _playTime = TimeSpan.Zero
 
readonly Stopwatch _timer = new Stopwatch()
 
bool _isTimerActive
 

Detailed Description

Definition at line 10 of file PlayerFileData.cs.


The documentation for this class was generated from the following file: