tModLoader v2024.11
A mod to make and play Terraria mods
FileData Class Referenceabstract

Inherited by PlayerFileData, and WorldFileData.

Public Member Functions

string GetFileName (bool includeExtension=true)
 
abstract void MoveToCloud ()
 
abstract void MoveToLocal ()
 
abstract void SetAsActive ()
 
void SetFavorite (bool favorite, bool saveChanges=true)
 
void ToggleFavorite ()
 

Public Attributes

FileMetadata Metadata
 
string Name
 
readonly string Type
 

Protected Member Functions

 FileData (string type)
 
 FileData (string type, string path, bool isCloud)
 

Protected Attributes

bool _isCloudSave
 
bool _isFavorite
 
string _path
 

Properties

bool IsCloudSave [get]
 
bool IsFavorite [get]
 
string Path [get]