예제 #1
0
 public static void reloadLevelParamsData()
 {
     levelData.Clear();
     doorsData.Clear();
     for (int i = 0; i < LEVELS_COUNT; i++)
     {
         levelData.Add(LevelData.readFromFile(Globals.romdata, i));
     }
     for (int i = 0; i < DOORS_COUNT; i++)
     {
         doorsData.Add(DoorData.readFromFile(Globals.romdata, i));
     }
 }
예제 #2
0
        public static void reloadLevelParamsData()
        {
            LevelData.LoadOffsetsFromConfig();
            DoorData.LoadOffsetsFromConfig();

            levelData.Clear();
            doorsData.Clear();
            for (int i = 0; i < levelsCount; i++)
            {
                levelData.Add(LevelData.readFromFile(Globals.romdata, i));
            }
            for (int i = 0; i < doorsCount; i++)
            {
                doorsData.Add(DoorData.readFromFile(Globals.romdata, i));
            }
        }