tModLoader v2023.01
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 ()
 
void MarkAsServerSide ()
 
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)
 
abstract void MoveToCloud ()
 
abstract void MoveToLocal ()
 
abstract void SetAsActive ()
 
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]
 
bool ServerSideCharacter [get]
 
- 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
 

Member Function Documentation

◆ MoveToCloud()

override void Terraria.IO.PlayerFileData.MoveToCloud ( )
virtual

Implements Terraria.IO.FileData.

◆ MoveToLocal()

override void Terraria.IO.PlayerFileData.MoveToLocal ( )
virtual

Implements Terraria.IO.FileData.

◆ SetAsActive()

override void Terraria.IO.PlayerFileData.SetAsActive ( )
virtual

Implements Terraria.IO.FileData.