aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/database.lua
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-05-30 12:16:09 +0200
committerywang <yw05@forksworld.de>2021-05-30 12:16:09 +0200
commitdcdd3ea702494e9e5bfeba96a72999f35aa2c91a (patch)
tree3104a3e204f4a4e237fc4f8fc4b2e29452b267d0 /advtrains_interlocking/database.lua
parent06002447242bc9dcc3e6d176981a5d30cc7a0ce9 (diff)
downloadadvtrains-dcdd3ea702494e9e5bfeba96a72999f35aa2c91a.tar.gz
advtrains-dcdd3ea702494e9e5bfeba96a72999f35aa2c91a.tar.bz2
advtrains-dcdd3ea702494e9e5bfeba96a72999f35aa2c91a.zip
round speed limit downward if needed; add basic distant signal implementation
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r--advtrains_interlocking/database.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua
index a35d446..ee21db9 100644
--- a/advtrains_interlocking/database.lua
+++ b/advtrains_interlocking/database.lua
@@ -195,6 +195,8 @@ TCB data structure
signal_name = <string> -- The human-readable name of the signal, only for documenting purposes
routes = { <route definition> } -- a collection of routes from this signal
route_auto = <boolean> -- When set, we will automatically re-set the route (designated by routeset)
+ distant = { <sigd1> ... } -- a collection of sigd that points to a side of a TCB with a distant signal for this current signal.
+ distant_of = { <sigd>, <index> } -- the reverse of the above field, along with the index of the entry in the list (for easier lookup)
},
-- This is the "B" side of the TCB
[2] = { -- Variant: end of track-circuited area (initial state of TC)