Esempio n. 1
0
 public SimpleWDTTerrain GetOrLoadSimpleWDTTerrain(MapId map)
 {
     Terrain terrain;
     if (!WorldTerrain.TryGetValue(map, out terrain))
     {
         terrain = new SimpleWDTTerrain(map, false);
         terrain.FillTileProfile();
         WorldTerrain.Add(map, terrain);
     }
     return (SimpleWDTTerrain)terrain;
 }
Esempio n. 2
0
        public SimpleWDTTerrain GetOrLoadSimpleWDTTerrain(MapId map)
        {
            Terrain terrain;

            if (!WorldTerrain.TryGetValue(map, out terrain))
            {
                terrain = new SimpleWDTTerrain(map, false);
                terrain.FillTileProfile();
                WorldTerrain.Add(map, terrain);
            }
            return((SimpleWDTTerrain)terrain);
        }