aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/database.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-07-20 21:04:17 +0200
committerorwell <orwell@bleipb.de>2024-07-20 21:04:17 +0200
commit69e4b8f99aac08c404a733c2338f9de9cddab829 (patch)
tree801ab60e5c89a1f410b3466821b847ee19495940 /advtrains_interlocking/database.lua
parentbaa50c03920fd0a563fce09929f3d56c3374e8bd (diff)
downloadadvtrains-69e4b8f99aac08c404a733c2338f9de9cddab829.tar.gz
advtrains-69e4b8f99aac08c404a733c2338f9de9cddab829.tar.bz2
advtrains-69e4b8f99aac08c404a733c2338f9de9cddab829.zip
Support signal aspect selection for routes again
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r--advtrains_interlocking/database.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua
index 49ca13d..a8d9584 100644
--- a/advtrains_interlocking/database.lua
+++ b/advtrains_interlocking/database.lua
@@ -254,6 +254,13 @@ routes = {
ars = { <ARS rule definition table> }
use_rscache = false -- if true, the track section's rs_cache will be used to set locks in addition to the locks table
-- this is disabled for legacy routes, but enabled for all new routes by default
+ -- Fields to specify the signal aspect of the signal
+ main_aspect = "_free" -- The main aspect that the route start signal is to show
+ assign_dst = false -- Whether to assign distant signal (affects only the signal at the start of the route)
+ -- false: start signal does not set distant signal (the default), for long blocks
+ -- it is assumed that the next main signal will have its own distant sig
+ -- true: start signal sets distant signal to the next signal on the route with route_role "main" (typically the end signal)
+ -- for short blocks where end signal doesn't have its own distant sig
-- Fields used by the autorouter:
ar_end_sigd = <sigd> -- the sigd describing the end of the route. Used for merging route options on recalculation
}