Definition at line 2846 of file WorldFile.cs.
2847 {
2849 try
2850 {
2852 int num =
fileIO.ReadInt32();
2853 if (num == 0 || num > 279)
2854 {
2855 return false;
2856 }
2857 baseStream.Position = 0
L;
2859 {
2860 return false;
2861 }
2863 if (num >= 179)
2864 {
2865 if (num == 179)
2866 {
2868 }
2869 else
2870 {
2872 }
2874 }
2875 if (num >= 181)
2876 {
2878 }
2887 for (
int i = 0;
i <
num4;
i++)
2888 {
2889 float num5 = (float)i / (
float)Main.maxTilesX;
2890 Main.statusText = Lang.gen[73].Value +
" " + (int)(
num5 * 100f + 1f) +
"%";
2893 {
2897 bool flag = false;
2899 {
2900 flag = true;
2902 }
2904 if (flag && (
b2 & 1) == 1)
2905 {
2908 }
2909 if (
flag2 && (
b & 1) == 1)
2910 {
2912 }
2914 {
2916 if ((
b3 & 0
x20) == 32)
2917 {
2921 }
2922 else
2923 {
2925 }
2927 {
2930 }
2932 {
2934 }
2935 }
2937 {
2939 if ((
b & 0
x10) == 16)
2940 {
2942 }
2943 }
2944 if ((
b3 & 0
x18) >> 3 != 0)
2945 {
2947 }
2948 if ((
b & 0
x40) == 64)
2949 {
2951 }
2953 {
2954 0 => 0,
2957 };
2958 }
2959 }
2961 {
2962 return false;
2963 }
2966 for (
int j = 0;
j <
num8;
j++)
2967 {
2971 for (
int k = 0;
k <
num9;
k++)
2972 {
2973 if (
fileIO.ReadInt16() > 0)
2974 {
2977 }
2978 }
2979 }
2981 {
2982 return false;
2983 }
2986 {
2990 }
2992 {
2993 return false;
2994 }
2997 {
2998 return false;
2999 }
3001 {
3004 {
3007 }
3009 {
3010 return false;
3011 }
3012 }
3014 {
3017 {
3019 }
3020 }
3022 {
3025 {
3027 }
3028 }
3030 {
3033 }
3035 {
3037 }
3039 {
3041 }
3045 bool result = false;
3047 {
3048 result = true;
3049 }
3050 return result;
3051 }
3053 {
3055 {
3059 }
3060 return false;
3061 }
3062 }
static TileEntity Read(BinaryReader reader, bool networkSend=false)
static readonly CreativePowerManager Instance
static bool LoadFileFormatHeader(BinaryReader reader, out bool[] importance, out int[] positions)
static void ValidateLoadNPCs(BinaryReader fileIO)
static int _versionNumber
References Terraria.IO.WorldFile._versionNumber, Terraria.Main.BestiaryTracker, Terraria.Lang.gen, Terraria.GameContent.Creative.CreativePowerManager.Instance, System.L, Terraria.IO.WorldFile.LoadFileFormatHeader(), Terraria.Main.maxTilesX, System.DateTime.Now, Terraria.DataStructures.TileEntity.Read(), System.Diagnostics.Stopwatch.Start(), System.text, Terraria.IO.WorldFile.ValidateLoadNPCs(), and System.value.
Referenced by Terraria.IO.WorldFile.InternalSaveWorld().