terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.IO.WorldFile Class Reference
+ Collaboration diagram for Terraria.IO.WorldFile:

Classes

class  TilePacker
 

Public Types

enum  WorldSaveContext { Normal , SaveAndExit }
 

Public Member Functions

 WorldFile ()
 

Static Public Member Functions

static void CacheSaveTime ()
 
static void SetOngoingToTemps ()
 
static bool IsValidWorld (string file, bool cloudSave)
 
static WorldFileData GetTutorialMetadata ()
 
static WorldFileData GetAllMetadata (string file, bool cloudSave)
 
static WorldFileData CreateMetadata (string name, bool cloudSave, int GameMode)
 
static void ResetTemps ()
 
static void LoadTutorialOnMainThread (object threadContext)
 
static void LoadWorld (bool loadFromCloud)
 
static void CheckSavedOreTiers ()
 
static void SaveWorld (WorldFile.WorldSaveContext saveContext=WorldFile.WorldSaveContext.Normal)
 
static void SaveWorld (bool useCloudSaving, bool resetTime=false, WorldFile.WorldSaveContext saveContext=WorldFile.WorldSaveContext.Normal)
 
static bool RenameWorld (string newName, bool useCloudSaving=false)
 
static bool RenameWorldUsingLoadAndSave (string newName)
 
static int SaveWorldTiles (BinaryWriter writer)
 
static bool LoadFileFormatHeader (BinaryReader reader, out bool[] importance, out int[] positions, out int positionsOffset)
 

Static Public Attributes

static double _tempTime
 
static bool _tempRaining
 
static float _tempMaxRain
 
static int _tempRainTime
 
static bool _tempDayTime
 
static bool _tempBloodMoon
 
static bool _tempEclipse
 
static int _tempMoonPhase
 
static int _tempCultistDelay
 
static int _versionNumber
 
static bool _isWorldOnCloud
 
static bool _tempPartyGenuine
 
static bool _tempPartyManual
 
static int _tempPartyCooldown
 
static readonly List< int > TempPartyCelebratingNPCs
 
static bool _tempSandstormHappening
 
static int _tempSandstormTimeLeft
 
static float _tempSandstormSeverity
 
static float _tempSandstormIntendedSeverity
 
static bool _tempLanternNightGenuine
 
static bool _tempLanternNightManual
 
static bool _tempLanternNightNextNightIsGenuine
 
static int _tempLanternNightCooldown
 
static Exception LastThrownLoadException
 
static bool SavingWorld
 
static bool RequireConvertOldTileEntities
 
static bool RequireClearTempTiles
 

Properties

static Action OnWorldLoad [set]
 

Static Private Member Functions

static void ClearTempTiles ()
 
static void ReregisterTiles ()
 
static void InternalSaveWorld (bool useCloudSaving, bool resetTime)
 
static void RenameWorldCheck ()
 
static void RenameWorldUsingLoadAndSave ()
 
static void renameWorldCallBack (object threadContext)
 
static void DoRollingBackups (string backupWorldWritePath)
 
static void ResetTempsToDayTime ()
 
static void SetTempToOngoing ()
 
static void SetTempToCache ()
 
static void ConvertMannequin (int px, int py)
 
static void ConvertWeaponRack (int px, int py)
 
static void ConvertOldTileEntities ()
 
static void SaveWorld_Version2 (BinaryWriter writer)
 
static int SaveFileFormatHeader (BinaryWriter writer)
 
static int SaveHeaderPointers (BinaryWriter writer, int[] pointers)
 
static int SaveWorldHeader (BinaryWriter writer)
 
static int SaveWorldTilesFast (BinaryWriter writer)
 
static int SaveChests (BinaryWriter writer)
 
static int SaveSigns (BinaryWriter writer)
 
static int SaveNPCs (BinaryWriter writer)
 
static int SaveFooter (BinaryWriter writer)
 
static int LoadWorld_Version2 (BinaryReader reader)
 
static void LoadWorld_LastMinuteFixes ()
 
static void FixAgainstExploits ()
 
static void LoadHeader (BinaryReader reader)
 
static void LoadWorldTiles (BinaryReader reader, bool[] importance)
 
static void LoadChests (BinaryReader reader)
 
static void ConvertIlluminantPaintToNewField ()
 
static void LoadSigns (BinaryReader reader)
 
static void LoadDummies (BinaryReader reader)
 
static void LoadNPCs (BinaryReader reader)
 
static void ValidateLoadNPCs (BinaryReader fileIO)
 
static int LoadFooter (BinaryReader reader)
 
static bool ValidateWorld (BinaryReader fileIO)
 
static FileMetadata GetFileMetadata (string file, bool cloudSave)
 
static void FixDresserChests ()
 
static int SaveTileEntities (BinaryWriter writer)
 
static void LoadTileEntities (BinaryReader reader)
 
static int SaveWeightedPressurePlates (BinaryWriter writer)
 
static void LoadWeightedPressurePlates (BinaryReader reader)
 
static int SaveTownManager (BinaryWriter writer)
 
static void LoadTownManager (BinaryReader reader)
 
static int SaveBestiary (BinaryWriter writer)
 
static void LoadBestiary (BinaryReader reader, int loadVersionNumber)
 
static void LoadBestiaryForVersionsBefore210 ()
 
static int SaveCreativePowers (BinaryWriter writer)
 
static void LoadCreativePowers (BinaryReader reader, int loadVersionNumber)
 
static int LoadWorld_Version1_Old_BeforeRelease88 (BinaryReader fileIO)
 
static WorldFile ()
 

Static Private Attributes

static readonly object IOLock
 
static bool _hasCache
 
static ? bool _cachedDayTime
 
static ? double _cachedTime
 
static ? int _cachedMoonPhase
 
static ? bool _cachedBloodMoon
 
static ? bool _cachedEclipse
 
static ? int _cachedCultistDelay
 
static ? bool _cachedPartyGenuine
 
static ? bool _cachedPartyManual
 
static ? int _cachedPartyDaysOnCooldown
 
static readonly List< int > CachedCelebratingNPCs
 
static ? bool _cachedSandstormHappening
 
static ? int _cachedSandstormTimeLeft
 
static ? float _cachedSandstormSeverity
 
static ? float _cachedSandstormIntendedSeverity
 
static ? bool _cachedLanternNightGenuine
 
static ? bool _cachedLanternNightManual
 
static ? bool _cachedLanternNightNextNightIsGenuine
 
static ? int _cachedLanternNightCooldown
 
static byte[] TutorialWorldData
 
static bool PendingSaveAndExit
 

Detailed Description

Definition at line 26 of file WorldFile.cs.


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