diff options
author | orwell96 <orwell@bleipb.de> | 2018-11-29 17:52:56 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-11-29 17:52:56 +0100 |
commit | ec68eaa22975305af3e184bc3c946a253b5504eb (patch) | |
tree | baf865eec03c343eacba73282d4fdbf377d26568 /advtrains_line_automation/init.lua | |
parent | 01ffee4d58316c74c90a36b491770ee358fd3f98 (diff) | |
download | advtrains-ec68eaa22975305af3e184bc3c946a253b5504eb.tar.gz advtrains-ec68eaa22975305af3e184bc3c946a253b5504eb.tar.bz2 advtrains-ec68eaa22975305af3e184bc3c946a253b5504eb.zip |
Added on_train_approach callback, non-permanent external LZB brakepoints and basis for "stop rails"
Stop rails ATM use the aforementioned things to add a pointwise "2" speed restriction. Seems to work.
Diffstat (limited to 'advtrains_line_automation/init.lua')
-rw-r--r-- | advtrains_line_automation/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/advtrains_line_automation/init.lua b/advtrains_line_automation/init.lua new file mode 100644 index 0000000..5521ee9 --- /dev/null +++ b/advtrains_line_automation/init.lua @@ -0,0 +1,17 @@ +-- Advtrains line automation system + +advtrains.lines = {} + + +local modpath = minetest.get_modpath(minetest.get_current_modname()) .. DIR_DELIM + +dofile(modpath.."stoprail.lua") + + +function advtrains.lines.load(data) + +end + +function advtrains.lines.save() + return {} +end |