aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/routesetting.lua
Commit message (Expand)AuthorAge
* Move passive API to the advtrains coreorwell962018-08-16
* Fix various bugs found while testingorwell962018-08-13
* Automatic working (re-set certain route on train pass)orwell962018-08-12
* Signal aspect handling, make default signals compatible, fix signal diggingorwell962018-08-12
* Add routesetting callbacks.orwell962018-08-12
* Uncommitted route handling (update_route function)orwell962018-08-03
* Implement routesettingorwell962018-07-21
* Change stuff on route programming, begin routesettingorwell962018-07-17
an>(modpath.."scheduler.lua") dofile(modpath.."stoprail.lua") 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) advtrains.lines.sched.load(data.scheduler_queue) end end function advtrains.lines.save() return { stations = advtrains.lines.stations, stops = advtrains.lines.stops, rwt_time = advtrains.lines.rwt.get_time(), scheduler_queue = advtrains.lines.sched.save() } end function advtrains.lines.step(dtime) advtrains.lines.rwt.step(dtime) advtrains.lines.sched.run() end