aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/environment.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-06-19 15:14:04 +0200
committerorwell96 <orwell@bleipb.de>2019-06-19 15:14:04 +0200
commit053fd91fe02899deb82e93120a26c44a2535f188 (patch)
tree08af1d38293017393fb8b939fccb9bb8e0e291db /advtrains_luaautomation/environment.lua
parent8c91f64c2be72157d8fa295cd8f45557ac7bcb9f (diff)
downloadadvtrains-053fd91fe02899deb82e93120a26c44a2535f188.tar.gz
advtrains-053fd91fe02899deb82e93120a26c44a2535f188.tar.bz2
advtrains-053fd91fe02899deb82e93120a26c44a2535f188.zip
RWTs can be specified in any form, unify converters, repeating time handling
Diffstat (limited to 'advtrains_luaautomation/environment.lua')
-rw-r--r--advtrains_luaautomation/environment.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/advtrains_luaautomation/environment.lua b/advtrains_luaautomation/environment.lua
index 21e86ff..3e7787b 100644
--- a/advtrains_luaautomation/environment.lua
+++ b/advtrains_luaautomation/environment.lua
@@ -230,10 +230,10 @@ if advtrains.lines then
now = atlrwt.now,
new = atlrwt.new,
copy = atlrwt.copy,
- from_sec = atlrwt.from_sec,
- to_sec = atlrwt.to_sec,
+ to_table = atlrwt.to_table,
+ to_secs = atlrwt.to_secs,
+ to_string = atlrwt.to_string,
add = atlrwt.add,
- add_secs = atlrwt.add_secs,
diff = atlrwt.diff,
sub = atlrwt.sub,
adj_diff = atlrwt.adj_diff,
@@ -241,6 +241,10 @@ if advtrains.lines then
adjust = atlrwt.adjust,
to_string = atlrwt.to_string,
get_time_until = atlrwt.get_time_until,
+ next_rpt = atlrwt.next_rpt,
+ last_rpt = atlrwt.last_rpt,
+ time_from_last_rpt = atlrwt.time_from_last_rpt,
+ time_to_next_rpt = atlrwt.time_to_next_rpt,
}
end