1
0
forked from MTSR/mapserver

advtrains signals type

This commit is contained in:
NatureFreshMilk 2019-07-25 15:02:48 +02:00
parent fbd4833ef1
commit 742eb697d0

View File

@ -20,6 +20,11 @@ type Wagon struct {
Type string `json:"type"`
}
type Signal struct {
Pos GenericPos `json:"pos"`
Green bool `json:"green"`
}
type Train struct {
Pos GenericPos `json:"pos"`
Id string `json:"id"`
@ -53,6 +58,7 @@ type MinetestInfo struct {
MaxLag float64 `json:"max_lag"`
Players []*Player `json:"players"`
Trains []*Train `json:"trains"`
Signals []*Signal `json:"signals"`
Minecarts []*Minecart `json:"minecarts"`
Time float64 `json:"time"`
Uptime float64 `json:"uptime"`