diff options
Diffstat (limited to 'advtrains_line_automation/init.lua')
-rw-r--r-- | advtrains_line_automation/init.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/advtrains_line_automation/init.lua b/advtrains_line_automation/init.lua index 5609524..eba288f 100644 --- a/advtrains_line_automation/init.lua +++ b/advtrains_line_automation/init.lua @@ -18,6 +18,7 @@ advtrains.lines = { local modpath = minetest.get_modpath(minetest.get_current_modname()) .. DIR_DELIM +dofile(modpath.."railwaytime.lua") dofile(modpath.."stoprail.lua") @@ -25,12 +26,19 @@ function advtrains.lines.load(data) if data then advtrains.lines.stations = data.stations or {} advtrains.lines.stops = data.stops or {} + advtrains.lines.rwt.set_time(data.rwt_time) end end function advtrains.lines.save() return { stations = advtrains.lines.stations, - stops = advtrains.lines.stops + stops = advtrains.lines.stops, + rwt_time = advtrains.lines.rwt.get_time() } end + +function advtrains.lines.step(dtime) + advtrains.lines.rwt.step(dtime) + atdebug(advtrains.lines.rwt.now()) +end |