TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.IO.WorldFileData Class Reference
+ Inheritance diagram for Terraria.IO.WorldFileData:
+ Collaboration diagram for Terraria.IO.WorldFileData:

Public Member Functions

string GetWorldName (bool allowCropping=false)
 
string GetFullSeedText (bool allowCropping=false)
 
 WorldFileData ()
 
 WorldFileData (string path, bool cloudSave)
 
override void SetAsActive ()
 
void SetWorldSize (int x, int y)
 
void SetSeedToEmpty ()
 
void SetSeed (string seedText)
 
void SetSeedToRandom ()
 
override void MoveToCloud ()
 
override void MoveToLocal ()
 
void Rename (string newDisplayName)
 
void CopyToLocal (string newFileName=null, string newDisplayName=null)
 
bool TryGetModVersionGeneratedWith (string mod, out Version modVersion)
 Retrieves the version that the specified mod was at when the world was generated. false will be returned for mods that were not enabled when the world was generated.
 
bool TryGetHeaderData< T > (out TagCompound data)
 
bool TryGetHeaderData (ModSystem system, out TagCompound data)
 
void ToggleFavorite ()
 
string GetFileName (bool includeExtension=true)
 
void SetFavorite (bool favorite, bool saveChanges=true)
 

Static Public Member Functions

static WorldFileData FromInvalidWorld (string path, bool cloudSave)
 

Public Attributes

DateTime CreationTime
 
int WorldSizeX
 
int WorldSizeY
 
ulong WorldGeneratorVersion
 
bool IsValid = true
 
Guid UniqueId
 
LocalizedText _worldSizeName
 
int GameMode
 
bool DrunkWorld
 
bool NotTheBees
 
bool ForTheWorthy
 
bool Anniversary
 
bool DontStarve
 
bool RemixWorld
 
bool NoTrapsWorld
 
bool ZenithWorld
 
bool HasCorruption = true
 
bool IsHardMode
 
bool DefeatedMoonlord
 
FileMetadata Metadata
 
string Name
 
readonly string Type
 

Protected Attributes

string _path
 
bool _isCloudSave
 
bool _isFavorite
 

Package Attributes

IList< string > usedMods
 
string modPack
 
Dictionary< string, Version > modVersionsDuringWorldGen
 

Properties

string SeedText [get]
 
int Seed [get]
 
string WorldSizeName [get]
 
bool HasCrimson [get, set]
 
bool HasValidSeed [get]
 
bool UseGuidAsMapName [get]
 
bool WorldGenModsRecorded [get]
 If true, the mods used to genereate this world have been saved and their version can be retrieved using M:Terraria.IO.WorldFileData.TryGetModVersionGeneratedWith(System.String,System.Version@).
 
Dictionary< string, TagCompoundModHeaders = new Dictionary<string, TagCompound>() [get, set]
 
string Path [get]
 
bool IsCloudSave [get]
 
bool IsFavorite [get]
 

Private Member Functions

void OnWorldRenameSuccess (string newWorldName)
 
IEnumerator DelayedGoToTitleScreen ()
 

Private Attributes

string _seedText = ""
 
int _seed
 

Static Private Attributes

const ulong GUID_IN_WORLD_FILE_VERSION = 777389080577uL
 

Detailed Description

Definition at line 15 of file WorldFileData.cs.


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