diff options
author | orwell <orwell@bleipb.de> | 2024-04-08 21:52:32 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-04-08 21:52:32 +0200 |
commit | 852da6bcaeeb8c39ce73639ef64f10ebc5b127b0 (patch) | |
tree | ebd944b0b8a763b63f128e7a7bf81882a4e8c29f /advtrains_interlocking/database.lua | |
parent | 9fa43cb7bfc25ba71d16c8210f0074797a7bca1a (diff) | |
parent | 1f74697e85d456e97e201cdd9edef91a2df4fc14 (diff) | |
download | advtrains-852da6bcaeeb8c39ce73639ef64f10ebc5b127b0.tar.gz advtrains-852da6bcaeeb8c39ce73639ef64f10ebc5b127b0.tar.bz2 advtrains-852da6bcaeeb8c39ce73639ef64f10ebc5b127b0.zip |
Merge branch 'new-ks-orwell' into route_prog_rework
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r-- | advtrains_interlocking/database.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua index 17a4199..4213c3d 100644 --- a/advtrains_interlocking/database.lua +++ b/advtrains_interlocking/database.lua @@ -150,6 +150,9 @@ function ildb.load(data) advtrains.interlocking.npr_rails = data.npr_rails end + -- let signal_api load data + advtrains.interlocking.signal.load(data) + --COMPATIBILITY to Signal aspect format -- TODO remove in time... for pts,tcb in pairs(track_circuit_breaks) do @@ -183,7 +186,7 @@ function ildb.load(data) end function ildb.save() - return { + local data = { tcbs = track_circuit_breaks, ts=track_sections, signalass = signal_assignments, @@ -193,6 +196,8 @@ function ildb.save() npr_rails = advtrains.interlocking.npr_rails, tcbpts_conversion_applied = true, -- remark that legacy pos conversion has taken place } + advtrains.interlocking.signal.save(data) + return data end -- |