mapserver/server/coords/mapblockcoords.go

21 lines
302 B
Go
Raw Normal View History

2019-01-09 10:52:51 +01:00
package coords
type MapBlockCoords struct {
2019-01-21 11:31:50 +01:00
X int `json:"x"`
Y int `json:"y"`
Z int `json:"z"`
2019-01-09 10:52:51 +01:00
}
2019-01-13 16:37:03 +01:00
func NewMapBlockCoords(x, y, z int) MapBlockCoords {
return MapBlockCoords{X: x, Y: y, Z: z}
2019-01-09 10:52:51 +01:00
}
2019-01-09 11:11:45 +01:00
2019-01-10 15:21:34 +01:00
type MapBlockRange struct {
2019-01-17 10:04:09 +01:00
Pos1, Pos2 MapBlockCoords
2019-01-10 15:21:34 +01:00
}
2019-01-09 11:11:45 +01:00
const (
2019-01-13 16:37:03 +01:00
MaxCoord = 2047
MinCoord = -2047
2019-01-09 11:11:45 +01:00
)