mapserver/server/coords/mapblockcoords.go
NatureFreshMilk fced5f03d2 pointer rulez
2019-02-06 08:38:08 +01:00

21 lines
305 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
)