Ejemplo n.º 1
0
        public bool GetHexData(Hex hex, bool wrapIfNull, out TileObject obj)
        {
            if (wrapIfNull && !TileData.ContainsKey(hex) && !HexUtils.HexOutOfBounds(size, hex, wrapIfNull))
            {
                hex = HexUtils.WrapOffset(hex, size.x);
            }

            return(TileData.TryGetValue(hex, out obj));
        }
Ejemplo n.º 2
0
 public bool ContainsHex(Hex hex)
 {
     return(TileData.ContainsKey(hex.GetKey()));
 }