From a751d1da9c57a40a0df4e8793a1cc46cb7985e12 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 9 Jan 2019 18:03:40 +0100 Subject: Add Automatic Routesetting UI Settings have no effect so far --- advtrains_interlocking/ars.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 advtrains_interlocking/ars.lua (limited to 'advtrains_interlocking/ars.lua') diff --git a/advtrains_interlocking/ars.lua b/advtrains_interlocking/ars.lua new file mode 100644 index 0000000..db67a93 --- /dev/null +++ b/advtrains_interlocking/ars.lua @@ -0,0 +1,22 @@ +-- ars.lua +-- automatic routesetting + +--[[ + The "ARS table" and its effects: + Every route has (or can have) an associated ARS table. This can either be + ars = { [n] = {ln=""}/{rc=""}/{c=""} } + a list of rules involving either line or routingcode matchers (or comments, those are ignored) + The first matching rule determines the route to set. + - or - + ars = {default = true} + this means that all trains that no other rule matches on should use this route + + Compound ("and") conjunctions are not supported (--TODO should they?) + + For editing, those tables are transformed into lines in a text area: + {ln=...} -> LN ... + {rc=...} -> RC ... + {c=...} -> #... + {default=true} -> * + See also route_ui.lua +]] -- cgit v1.2.3