Пример #1
0
    public static List <Board> FetchBoardList()
    {
        LoadAllLevels();
        List <Board> boards = new List <Board>();

        foreach (LevelData level in gamedata.Levels)
        {
            boards.Add(LevelDataConverter.ConvertToBoardFromJsonData(level));
        }
        return(boards);
    }
Пример #2
0
 public static Board FetchLevelBoard(int level)
 {
     return(LevelDataConverter.ConvertToBoardFromJsonData(DataController.gamedata.Levels[level]));
 }