From 742eb697d02a17ce9f1d2ee3e298537973b3322a Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 25 Jul 2019 15:02:48 +0200 Subject: [PATCH] advtrains signals type --- web/minetest.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/minetest.go b/web/minetest.go index 49fcd1d..924d66f 100644 --- a/web/minetest.go +++ b/web/minetest.go @@ -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"`