mapserver/coords/mapblockcoords.go
2019-01-21 11:31:50 +01:00

21 lines
302 B
Go

package coords
type MapBlockCoords struct {
X int `json:"x"`
Y int `json:"y"`
Z int `json:"z"`
}
func NewMapBlockCoords(x, y, z int) MapBlockCoords {
return MapBlockCoords{X: x, Y: y, Z: z}
}
type MapBlockRange struct {
Pos1, Pos2 MapBlockCoords
}
const (
MaxCoord = 2047
MinCoord = -2047
)