From 0b14726c5539782a60d2f4beaed2cfca74a50f7a Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:51:45 +0200 Subject: State at 2019-12-13 --- X_Nihilo/init_code.lua | 0 X_Nihilo/nodes/(2225,-36,5931).lua | 26 ++++++++++++++++++++++++++ X_Nihilo/nodes/(2225,-36,6144).lua | 26 ++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 X_Nihilo/init_code.lua create mode 100644 X_Nihilo/nodes/(2225,-36,5931).lua create mode 100644 X_Nihilo/nodes/(2225,-36,6144).lua (limited to 'X_Nihilo') diff --git a/X_Nihilo/init_code.lua b/X_Nihilo/init_code.lua new file mode 100644 index 0000000..e69de29 diff --git a/X_Nihilo/nodes/(2225,-36,5931).lua b/X_Nihilo/nodes/(2225,-36,5931).lua new file mode 100644 index 0000000..e6a12cd --- /dev/null +++ b/X_Nihilo/nodes/(2225,-36,5931).lua @@ -0,0 +1,26 @@ +-- +-- I+B0WROLD15OCD2SM; +-- + +local delta = 45 +local switch = "XN_subway_station2_out" + +if event.type == "train" then + if atc_arrow then + atc_send("B0WROL") + h = os.time() + r = delta - (h % delta) + if r == 0 then r = delta end + setstate(switch,"cr") + interrupt(r,"departure") + return + end +end + +if event.type == "int" then + if event.message == "departure" then + setstate(switch,"st") + atc_send("OCD2SM"); + end + return +end \ No newline at end of file diff --git a/X_Nihilo/nodes/(2225,-36,6144).lua b/X_Nihilo/nodes/(2225,-36,6144).lua new file mode 100644 index 0000000..4f43320 --- /dev/null +++ b/X_Nihilo/nodes/(2225,-36,6144).lua @@ -0,0 +1,26 @@ +-- +-- I+B0WROLD15OCD2SM; +-- + +local delta = 45 +local switch = "XN_subway_station1_out" + +if event.type == "train" then + if atc_arrow then + atc_send("B0WROL") + h = os.time() + r = delta - (h % delta) + if r == 0 then r = delta end + setstate(switch,"st") + interrupt(r,"departure") + return + end +end + +if event.type == "int" then + if event.message == "departure" then + setstate(switch,"cr") + atc_send("OCD2SM"); + end + return +end \ No newline at end of file -- cgit v1.2.3