diff options
author | orwell96 <orwell@bleipb.de> | 2019-01-24 13:43:22 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-01-24 13:43:22 +0100 |
commit | 2976bae4522a1682808db55473d9f824c7155cc6 (patch) | |
tree | 18cbfebbbf2d46a005499f8255b902b7e6c5e3da /advtrains_interlocking/database.lua | |
parent | 1c3ea960415fcbd63c5f1b2cd8a5b25f79d2879f (diff) | |
download | advtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.gz advtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.bz2 advtrains-2976bae4522a1682808db55473d9f824c7155cc6.zip |
Point speed restriction rails
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r-- | advtrains_interlocking/database.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua index 4aaa4c4..ba2a318 100644 --- a/advtrains_interlocking/database.lua +++ b/advtrains_interlocking/database.lua @@ -105,6 +105,8 @@ local signal_assignments = {} -- track+direction -> signal position local influence_points = {} +advtrains.interlocking.npr_rails = {} + function ildb.load(data) if not data then return end @@ -126,6 +128,9 @@ function ildb.load(data) if data.influence_points then influence_points = data.influence_points end + if data.npr_rails then + advtrains.interlocking.npr_rails = data.npr_rails + end end function ildb.save() @@ -136,6 +141,7 @@ function ildb.save() rs_locks = advtrains.interlocking.route.rte_locks, rs_callbacks = advtrains.interlocking.route.rte_callbacks, influence_points = influence_points, + npr_rails = advtrains.interlocking.npr_rails, } end |