public static ITerrain GetTerrain(TerrainType type, Game game) { ITerrain terrain = null; switch (type) { case TerrainType.Quadtree: terrain = new Quadtree.Terrain(game); break; case TerrainType.GeoMipMap: terrain = new GeoMipMap.Terrain(game); break; case TerrainType.ROAM: terrain = new ROAM.Terrain(game); break; } return terrain; }
public static ITerrain GetTerrain(TerrainType type, Game game) { ITerrain terrain = null; switch (type) { case TerrainType.Quadtree: terrain = new Quadtree.Terrain(game); break; case TerrainType.GeoMipMap: terrain = new GeoMipMap.Terrain(game); break; case TerrainType.ROAM: terrain = new ROAM.Terrain(game); break; } return(terrain); }