C# Class Terraria.IO.WorldFile

Mostrar archivo Open project: EmuDevs/EDTerraria

Public Properties

Property Type Description
IsWorldOnCloud bool
tempBloodMoon bool
tempCultistDelay int
tempDayTime bool
tempEclipse bool
tempMaxRain float
tempMoonPhase int
tempRainTime int
tempRaining bool
tempTime double
versionNumber int

Public Methods

Method Description
CacheSaveTime ( ) : void
CreateMetadata ( string name, bool cloudSave, bool isExpertMode ) : Terraria.IO.WorldFileData
FixDresserChests ( ) : void
GetAllMetadata ( string file ) : Terraria.IO.WorldFileData
GetFileMetadata ( string file, bool cloudSave ) : FileMetadata
GetWorldDifficulty ( string WorldFileName ) : bool
GetWorldName ( string WorldFileName ) : string
IsValidWorld ( string file, bool cloudSave ) : bool
LoadWorld_Version1 ( BinaryReader fileIO ) : int
LoadWorld_Version2 ( BinaryReader reader ) : int
ResetTemps ( ) : void
SaveWorld_Version2 ( BinaryWriter writer ) : void
loadWorld ( ) : void
saveWorld ( ) : void
saveWorld ( bool useCloudSaving, bool resetTime = false ) : void
validateWorld ( BinaryReader fileIO ) : bool

Private Methods

Method Description
LoadChests ( BinaryReader reader ) : void
LoadDummies ( BinaryReader reader ) : void
LoadFileFormatHeader ( BinaryReader reader, bool &importance, int &positions ) : bool
LoadFooter ( BinaryReader reader ) : int
LoadHeader ( BinaryReader reader ) : void
LoadNPCs ( BinaryReader reader ) : void
LoadSigns ( BinaryReader reader ) : void
LoadTileEntities ( BinaryReader reader ) : void
LoadWorldTiles ( BinaryReader reader, bool importance ) : void
SaveChests ( BinaryWriter writer ) : int
SaveDummies ( BinaryWriter writer ) : int
SaveFileFormatHeader ( BinaryWriter writer ) : int
SaveFooter ( BinaryWriter writer ) : int
SaveHeaderPointers ( BinaryWriter writer, int pointers ) : int
SaveNPCs ( BinaryWriter writer ) : int
SaveSigns ( BinaryWriter writer ) : int
SaveTileEntities ( BinaryWriter writer ) : int
SaveWorldHeader ( BinaryWriter writer ) : int
SaveWorldTiles ( BinaryWriter writer ) : int

Method Details

CacheSaveTime() public static method

public static CacheSaveTime ( ) : void
return void

CreateMetadata() public static method

public static CreateMetadata ( string name, bool cloudSave, bool isExpertMode ) : Terraria.IO.WorldFileData
name string
cloudSave bool
isExpertMode bool
return Terraria.IO.WorldFileData

FixDresserChests() public static method

public static FixDresserChests ( ) : void
return void

GetAllMetadata() public static method

public static GetAllMetadata ( string file ) : Terraria.IO.WorldFileData
file string
return Terraria.IO.WorldFileData

GetFileMetadata() public static method

public static GetFileMetadata ( string file, bool cloudSave ) : FileMetadata
file string
cloudSave bool
return FileMetadata

GetWorldDifficulty() public static method

public static GetWorldDifficulty ( string WorldFileName ) : bool
WorldFileName string
return bool

GetWorldName() public static method

public static GetWorldName ( string WorldFileName ) : string
WorldFileName string
return string

IsValidWorld() public static method

public static IsValidWorld ( string file, bool cloudSave ) : bool
file string
cloudSave bool
return bool

LoadWorld_Version1() public static method

public static LoadWorld_Version1 ( BinaryReader fileIO ) : int
fileIO System.IO.BinaryReader
return int

LoadWorld_Version2() public static method

public static LoadWorld_Version2 ( BinaryReader reader ) : int
reader System.IO.BinaryReader
return int

ResetTemps() public static method

public static ResetTemps ( ) : void
return void

SaveWorld_Version2() public static method

public static SaveWorld_Version2 ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

loadWorld() public static method

public static loadWorld ( ) : void
return void

saveWorld() public static method

public static saveWorld ( ) : void
return void

saveWorld() public static method

public static saveWorld ( bool useCloudSaving, bool resetTime = false ) : void
useCloudSaving bool
resetTime bool
return void

validateWorld() public static method

public static validateWorld ( BinaryReader fileIO ) : bool
fileIO System.IO.BinaryReader
return bool

Property Details

IsWorldOnCloud public_oe static_oe property

public static bool IsWorldOnCloud
return bool

tempBloodMoon public_oe static_oe property

public static bool tempBloodMoon
return bool

tempCultistDelay public_oe static_oe property

public static int tempCultistDelay
return int

tempDayTime public_oe static_oe property

public static bool tempDayTime
return bool

tempEclipse public_oe static_oe property

public static bool tempEclipse
return bool

tempMaxRain public_oe static_oe property

public static float tempMaxRain
return float

tempMoonPhase public_oe static_oe property

public static int tempMoonPhase
return int

tempRainTime public_oe static_oe property

public static int tempRainTime
return int

tempRaining public_oe static_oe property

public static bool tempRaining
return bool

tempTime public_oe static_oe property

public static double tempTime
return double

versionNumber public_oe static_oe property

public static int versionNumber
return int