Пример #1
0
 internal static void ReadModWorld(byte[] flags, BinaryReader reader)
 {
     if (flags.Length == 0)
     {
         return;
     }
     if ((flags[0] & 1) == 1)
     {
         ReadChests(reader);
     }
     if ((flags[0] & 2) == 2)
     {
         TileIO.ReadTiles(reader);
     }
     if ((flags[0] & 4) == 4)
     {
         ReadNPCKillCounts(reader);
     }
     if ((flags[0] & 8) == 8)
     {
         TileIO.ReadContainers(reader);
     }
     if ((flags[0] & 16) == 16)
     {
         ReadAnglerQuest(reader);
     }
 }
Пример #2
0
 internal static void ReadModWorld(byte[] flags, BinaryReader reader)
 {
     if ((flags[0] & 1) == 1)
     {
         ReadChests(reader);
     }
     if ((flags[0] & 2) == 2)
     {
         TileIO.ReadTiles(reader);
     }
     if ((flags[0] & 4) == 4)
     {
         ReadNPCKillCounts(reader);
     }
 }