forked from MTSR/mapserver
advtrains signals type
This commit is contained in:
parent
fbd4833ef1
commit
742eb697d0
@ -20,6 +20,11 @@ type Wagon struct {
|
|||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Signal struct {
|
||||||
|
Pos GenericPos `json:"pos"`
|
||||||
|
Green bool `json:"green"`
|
||||||
|
}
|
||||||
|
|
||||||
type Train struct {
|
type Train struct {
|
||||||
Pos GenericPos `json:"pos"`
|
Pos GenericPos `json:"pos"`
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
@ -53,6 +58,7 @@ type MinetestInfo struct {
|
|||||||
MaxLag float64 `json:"max_lag"`
|
MaxLag float64 `json:"max_lag"`
|
||||||
Players []*Player `json:"players"`
|
Players []*Player `json:"players"`
|
||||||
Trains []*Train `json:"trains"`
|
Trains []*Train `json:"trains"`
|
||||||
|
Signals []*Signal `json:"signals"`
|
||||||
Minecarts []*Minecart `json:"minecarts"`
|
Minecarts []*Minecart `json:"minecarts"`
|
||||||
Time float64 `json:"time"`
|
Time float64 `json:"time"`
|
||||||
Uptime float64 `json:"uptime"`
|
Uptime float64 `json:"uptime"`
|
||||||
|
Loading…
Reference in New Issue
Block a user