/// <summary> /// Safely retrieves info for given terrain type. If no tile is available, the <see cref="UnknownTile"/> value /// is returned. /// </summary> public static TerrainTypeInfo GetInfo(TerrainType terrainType) { if (TerrainInfo.ContainsKey(terrainType)) { return(TerrainInfo[terrainType]); } else { return(UnknownTerrain); } }