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