public List <ITerrain> TerrainsForGraphic(TerrainGraphic g) { if (reverseMapping.TryGetValue(g.GraphicTag, out List <ITerrain> retval)) { return(retval); } return(new List <ITerrain>()); }
public void Add(TerrainGraphic g) { Terrains.Add(g.GraphicTag, g); }
public bool TryGetTerrain(string tag, out TerrainGraphic g) { return(Terrains.TryGetValue(tag, out g)); }