summaryrefslogtreecommitdiff
path: root/ers/nodes
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:38 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:38 +0200
commitcfa65d94f1bc9d9e9efe13791711a9ad044a4a67 (patch)
treebdecc9982a58cb88367e4e8b1fcd9cfa1f95573e /ers/nodes
parentf3da24b214b3337ad63ebd885da29d5b789d4738 (diff)
downloadluaatc_envs-cfa65d94f1bc9d9e9efe13791711a9ad044a4a67.tar.gz
luaatc_envs-cfa65d94f1bc9d9e9efe13791711a9ad044a4a67.tar.bz2
luaatc_envs-cfa65d94f1bc9d9e9efe13791711a9ad044a4a67.zip
State at 2021-04-04
Diffstat (limited to 'ers/nodes')
-rw-r--r--ers/nodes/(1655,1,1261).lua30
-rw-r--r--ers/nodes/(1655,1,1264).lua6
-rw-r--r--ers/nodes/(3159,74,2331).lua0
3 files changed, 36 insertions, 0 deletions
diff --git a/ers/nodes/(1655,1,1261).lua b/ers/nodes/(1655,1,1261).lua
new file mode 100644
index 0000000..2d9ef7a
--- /dev/null
+++ b/ers/nodes/(1655,1,1261).lua
@@ -0,0 +1,30 @@
+-- luaatctrack_main_depot_01.lua
+local show_print = false
+if event.train then
+ if atc_arrow then
+ local passive_name = "ErsDepotTurnaround"
+ local track_route = ""
+ local can_do_route = false
+ F.train_duration("start")
+ F.train_info(passive_name, show_print)
+
+ if F.does_train_have_rc("ERSTAZIDEPOTUNLOAD") then
+ track_route = "01 UNLOADING TRACK"
+ F.send_route(passive_name, track_route, show_print)
+ elseif F.does_train_have_rc("ERSTAZITST") then
+ track_route = "02 LOADING TRACK"
+ F.send_route(passive_name, track_route, show_print)
+ else
+ track_route = "03 EXTRA"
+ can_do_route = F.send_route(passive_name, track_route, show_print)
+ if can_do_route == false then
+ track_route = "04 EXTRA"
+ F.send_route(passive_name, track_route, show_print)
+ end
+ end
+ else
+ local passive_name = "ErsDepotTurnaround"
+ F.train_duration("end")
+ F.train_info(passive_name, show_print)
+ end
+end \ No newline at end of file
diff --git a/ers/nodes/(1655,1,1264).lua b/ers/nodes/(1655,1,1264).lua
new file mode 100644
index 0000000..0cb6ef7
--- /dev/null
+++ b/ers/nodes/(1655,1,1264).lua
@@ -0,0 +1,6 @@
+-- luaoperatingpanel_depot_01.lua
+local show_print = false
+if event.type == "punch" then
+ F.train_info("RESETALL", show_print)
+ return
+end \ No newline at end of file
diff --git a/ers/nodes/(3159,74,2331).lua b/ers/nodes/(3159,74,2331).lua
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ers/nodes/(3159,74,2331).lua