namespace EarthQuake.Map.Tiles;
///
/// タイル上の点
///
/// X座標
/// Y座標
/// Z座標
public readonly record struct TilePoint(int X, int Y, int Z)
{
public TilePoint Add(int x, int y) => new(X + x, Y + y, Z);
public static TilePoint operator +(TilePoint point, (int x, int y) point1) => point.Add(point1.x, point1.y);
public bool Equals(TilePoint other)
{
return X == other.X && Y == other.Y && Z == other.Z;
}
public override int GetHashCode()
{
return HashCode.Combine(X, Y, Z);
}
}