示例#1
0
        public List <ITerrain> TerrainsForGraphic(TerrainGraphic g)
        {
            if (reverseMapping.TryGetValue(g.GraphicTag, out List <ITerrain> retval))
            {
                return(retval);
            }

            return(new List <ITerrain>());
        }
示例#2
0
 public void Add(TerrainGraphic g)
 {
     Terrains.Add(g.GraphicTag, g);
 }
示例#3
0
 public bool TryGetTerrain(string tag, out TerrainGraphic g)
 {
     return(Terrains.TryGetValue(tag, out g));
 }