Exemplo n.º 1
0
        public static Level Read(int levelNum)
        {
            if (!LevelRepository.IsInitialized(levelNum))
            {
                LevelRepository.Initialize();
            }

            return(LevelRepository.Read(levelNum));
        }
Exemplo n.º 2
0
        public static List <Level> ReadAll()
        {
            if (!LevelRepository.IsInitialized(0))
            {
                LevelRepository.Initialize();
            }

            List <Level> levels = new List <Levels.Level>(Const.LEVEL_COUNT);

            for (int i = 0; i < Const.LEVEL_COUNT; i++)
            {
                levels.Add(LevelRepository.Read(i));
            }
            return(levels);
        }
Exemplo n.º 3
0
 public static void Save(Level level, int levelNum)
 {
     LevelRepository.Save(level, levelNum);
 }