diff options
author | orwell96 <orwell@bleipb.de> | 2019-01-09 18:03:40 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-01-09 18:03:40 +0100 |
commit | a751d1da9c57a40a0df4e8793a1cc46cb7985e12 (patch) | |
tree | 2a5a24eb61256e182645a996ecea1496c620ac83 /advtrains_interlocking/ars.lua | |
parent | c3c96274be0c4beeef62a21f226e830d1d72675a (diff) | |
download | advtrains-a751d1da9c57a40a0df4e8793a1cc46cb7985e12.tar.gz advtrains-a751d1da9c57a40a0df4e8793a1cc46cb7985e12.tar.bz2 advtrains-a751d1da9c57a40a0df4e8793a1cc46cb7985e12.zip |
Add Automatic Routesetting UI
Settings have no effect so far
Diffstat (limited to 'advtrains_interlocking/ars.lua')
-rw-r--r-- | advtrains_interlocking/ars.lua | 22 |
1 files changed, 22 insertions, 0 deletions
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="<line>"}/{rc="<routingcode>"}/{c="<a comment>"} } + 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 +]] |