mapserver/server/playerdb/accessor.go
2019-01-25 15:02:21 +01:00

15 lines
263 B
Go

package playerdb
type Player struct {
X int `json:"x"`
Y int `json:"y"`
Z int `json:"z"`
Name string `json:"name"`
HP int `json:"hp"`
//TODO: stamina, skin, etc
}
type DBAccessor interface {
GetActivePlayers() ([]*Player, error)
}