Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LoadFooter()

static int Terraria.IO.WorldFile.LoadFooter ( BinaryReader reader)
inlinestatic

Definition at line 2829 of file WorldFile.cs.

2830 {
2831 if (!reader.ReadBoolean())
2832 {
2833 return 6;
2834 }
2835 if (reader.ReadString() != Main.worldName)
2836 {
2837 return 6;
2838 }
2839 if (reader.ReadInt32() != Main.worldID)
2840 {
2841 return 6;
2842 }
2843 return 0;
2844 }
virtual bool ReadBoolean()
virtual string ReadString()
virtual int ReadInt32()

References System.IO.BinaryReader.ReadBoolean(), System.IO.BinaryReader.ReadInt32(), System.IO.BinaryReader.ReadString(), Terraria.Main.worldID, and Terraria.Main.worldName.

Referenced by Terraria.IO.WorldFile.LoadWorld_Version2().