예제 #1
0
        public static Level Read(int levelNum)
        {
            if (!LevelRepository.IsInitialized(levelNum))
            {
                LevelRepository.Initialize();
            }

            return(LevelRepository.Read(levelNum));
        }
예제 #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);
        }