示例#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));
        }
示例#2
0
 public bool ContainsHex(Hex hex)
 {
     return(TileData.ContainsKey(hex.GetKey()));
 }