tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.IO.WorldFileData Class Reference

Inherits Terraria.IO.FileData.

Public Member Functions

 WorldFileData (string path, bool cloudSave)
 
void CopyToLocal (string newFileName=null, string newDisplayName=null)
 
string GetFullSeedText ()
 
override void MoveToCloud ()
 
override void MoveToLocal ()
 
void Rename (string newDisplayName)
 
override void SetAsActive ()
 
void SetSeed (string seedText)
 
void SetSeedToEmpty ()
 
void SetSeedToRandom ()
 
void SetWorldSize (int x, int y)
 
- 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 WorldFileData FromInvalidWorld (string path, bool cloudSave)
 

Public Attributes

LocalizedText _worldSizeName
 
bool Anniversary
 
DateTime CreationTime
 
bool DontStarve
 
bool DrunkWorld
 
bool ForTheWorthy
 
int GameMode
 
bool HasCorruption = true
 
bool IsHardMode
 
bool IsValid = true
 
bool NotTheBees
 
Guid UniqueId
 
ulong WorldGeneratorVersion
 
int WorldSizeX
 
int WorldSizeY
 
- Public Attributes inherited from Terraria.IO.FileData
FileMetadata Metadata
 
string Name
 
readonly string Type
 

Properties

bool HasCrimson [get, set]
 
bool HasValidSeed [get]
 
int Seed [get]
 
string SeedText [get]
 
bool UseGuidAsMapName [get]
 
string WorldSizeName [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.WorldFileData.MoveToCloud ( )
virtual

Implements Terraria.IO.FileData.

◆ MoveToLocal()

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

Implements Terraria.IO.FileData.

◆ SetAsActive()

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

Implements Terraria.IO.FileData.