public static Point GetMapSize(int level) { if (MapList.TryGetValue(level, out Terrain foundTerrain)) { return(foundTerrain.MapSize); } else { throw new Exception("Failed to retrieve the mapsize for level " + level + "!"); } }
public static Terrain GetCurrentMap(int level) { if (MapList.TryGetValue(level, out Terrain foundTerrain)) { return(foundTerrain); } else { throw new Exception("Failed to locate the current level in the TerrainManager!"); } }