tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.IO.FileData Class Referenceabstract

Inherited by Terraria.IO.PlayerFileData, and Terraria.IO.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]