aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/database.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-04-05 00:35:40 +0200
committerorwell <orwell@bleipb.de>2024-04-05 00:35:40 +0200
commiteb03b5f301c4244bbc79a101dd9f990b01503ab5 (patch)
tree3cca46efe36aaa88824b839d7dc76612a8c2e873 /advtrains_interlocking/database.lua
parent2dab59f05572fe6cf73cde353446a5a501550b41 (diff)
downloadadvtrains-eb03b5f301c4244bbc79a101dd9f990b01503ab5.tar.gz
advtrains-eb03b5f301c4244bbc79a101dd9f990b01503ab5.tar.bz2
advtrains-eb03b5f301c4244bbc79a101dd9f990b01503ab5.zip
Continue with new-ks rework
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r--advtrains_interlocking/database.lua13
1 files changed, 6 insertions, 7 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua
index c5ae906..e23b0e5 100644
--- a/advtrains_interlocking/database.lua
+++ b/advtrains_interlocking/database.lua
@@ -131,12 +131,9 @@ function ildb.load(data)
if data.npr_rails then
advtrains.interlocking.npr_rails = data.npr_rails
end
- if data.supposed_aspects then
- advtrains.interlocking.load_supposed_aspects(data.supposed_aspects)
- end
- if data.distant then
- advtrains.distant.load(data.distant)
- end
+
+ -- let signal_api load data
+ advtrains.interlocking.signal.load(data)
--COMPATIBILITY to Signal aspect format
-- TODO remove in time...
@@ -171,7 +168,7 @@ function ildb.load(data)
end
function ildb.save()
- return {
+ local data = {
tcbs = track_circuit_breaks,
ts=track_sections,
signalass = signal_assignments,
@@ -182,6 +179,8 @@ function ildb.save()
supposed_aspects = advtrains.interlocking.save_supposed_aspects(),
distant = advtrains.distant.save(),
}
+ advtrains.interlocking.signal.save(data)
+ return data
end
--