mapserver/server/playerdb/accessor.go

15 lines
263 B
Go
Raw Normal View History

2019-01-25 17:02:21 +03:00
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)
}