244 {
246 {
247 return null;
248 }
251 {
253 }
254 try
255 {
259 if (num >= 135)
260 {
261 worldFileData.Metadata = FileMetadata.Read(
binaryReader, FileType.World);
262 }
263 else
264 {
265 worldFileData.Metadata = FileMetadata.FromCurrentSettings(FileType.World);
266 }
267 if (num <= 279)
268 {
272 if (num >= 179)
273 {
276 worldFileData.WorldGeneratorVersion =
binaryReader.ReadUInt64();
277 }
278 else
279 {
281 worldFileData.WorldGeneratorVersion = 0
uL;
282 }
283 if (num >= 181)
284 {
286 }
287 else
288 {
290 }
299 if (num >= 209)
300 {
302 if (num >= 222)
303 {
305 if (num >= 227)
306 {
307 worldFileData.ForTheWorthy =
binaryReader.ReadBoolean();
308 }
309 if (num >= 238)
310 {
312 }
313 if (num >= 239)
314 {
316 }
317 if (num >= 241)
318 {
320 }
321 if (num >= 249)
322 {
324 }
325 if (num >= 266)
326 {
327 worldFileData.NoTrapsWorld =
binaryReader.ReadBoolean();
328 }
329 if (num >= 267)
330 {
332 }
333 else
334 {
335 worldFileData.ZenithWorld = worldFileData.DrunkWorld &&
worldFileData.RemixWorld;
336 }
337 }
338 }
339 else if (num >= 112)
340 {
342 {
343 worldFileData.GameMode = 1;
344 }
345 else
346 {
347 worldFileData.GameMode = 0;
348 }
349 }
350 if (num >= 141)
351 {
353 }
355 {
357 }
358 else
359 {
361 }
402 if (num >= 118)
403 {
405 }
406 else
420 if (num >= 257)
421 {
423 }
428 if (num >= 118)
429 {
431 }
432 if (num >= 113)
433 {
435 }
453 if (num < 95)
454 {
456 }
458 {
460 }
461 if (num < 99)
462 {
464 }
466 if (num < 101)
467 {
469 }
471 if (num < 104)
472 {
474 }
476 if (num >= 129)
477 {
479 }
480 if (num >= 201)
481 {
483 }
484 if (num >= 107)
485 {
487 }
488 if (num >= 108)
489 {
491 }
492 if (num < 109)
493 {
495 }
497 for (
int i = 0;
i <
num3;
i++)
498 {
500 }
501 if (num < 128)
502 {
504 }
506 if (num < 131)
507 {
509 }
513 worldFileData.DefeatedMoonlord =
binaryReader.ReadBoolean();
515 }
516 }
518 {
519 }
520 return null;
521 }
static DateTime GetCreationTime(string path)
static Terraria.Social.Base.CloudSocialModule Cloud
static bool Exists(string path, bool cloud)
static DateTime FromBinary(long dateData)
static readonly Guid Empty