126 return $
"{num}.{num3}.{num2}.{text}";
135 : base(
"World", path, cloudSave)
141 Main.ActiveWorldFileData =
this;
168 worldFileData.GameMode = 0;
170 worldFileData.WorldGeneratorVersion = 0uL;
173 worldFileData.HasCorruption =
true;
174 worldFileData.IsHardMode =
false;
175 worldFileData.IsValid =
false;
186 return worldFileData;
197 WorldGen.currentWorldSeed = seedText;
198 if (!
int.TryParse(seedText, out
_seed))
212 if (!base.IsCloudSave)
219 _path = worldPathFromName;
227 if (base.IsCloudSave)
234 _path = worldPathFromName;
240 public void Rename(
string newDisplayName)
242 if (newDisplayName !=
null)
248 public void CopyToLocal(
string newFileName =
null,
string newDisplayName =
null)
250 if (!base.IsCloudSave)
252 if (newFileName ==
null)
258 _path = worldPathFromName;
259 if (newDisplayName !=
null)
static int Calculate(string value)
static DateTime GetCreationTime(string path)
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > MouseText
ulong WorldGeneratorVersion
string GetWorldName(bool allowCropping=false)
override void SetAsActive()
void OnWorldRenameSuccess(string newWorldName)
void SetWorldSize(int x, int y)
void CopyToLocal(string newFileName=null, string newDisplayName=null)
override void MoveToCloud()
void SetSeed(string seedText)
string GetFullSeedText(bool allowCropping=false)
IEnumerator DelayedGoToTitleScreen()
void Rename(string newDisplayName)
WorldFileData(string path, bool cloudSave)
static WorldFileData FromInvalidWorld(string path, bool cloudSave)
const ulong GUID_IN_WORLD_FILE_VERSION
LocalizedText _worldSizeName
override void MoveToLocal()
static LocalizedText GetText(string key)
static string GetWorldPathFromName(string worldName, bool cloudSave)
static FavoritesFile CloudFavoritesData
static FavoritesFile LocalFavoriteData
static List< IEnumerator > DelayedProcesses
static bool MoveToCloud(string localPath, string cloudPath)
static string GetFileName(string path, bool includeExtension=true)
static void Copy(string source, string destination, bool cloud, bool overwrite=true)
static bool MoveToLocal(string cloudPath, string localPath)
static void RenameWorld(WorldFileData data, string newName, Action< string > callback=null)
static readonly Guid Empty