fixed registration

This commit is contained in:
Monica Moniot
2022-11-04 18:58:18 -04:00
parent 9f027d778f
commit 795e193361
3 changed files with 41 additions and 36 deletions

View File

@@ -72,22 +72,23 @@
---@type CybersynModSettings
mod_settings = {}
--TODO: guarantee this only inits once
global.total_ticks = 0
global.tick_state = STATE_INIT
global.tick_data = {}
global.economy = {
all_r_stations = {},
all_p_stations = {},
all_names = {},
}
global.to_comb = {}
global.to_output = {}
global.to_stop = {}
global.stations = {}
global.depots = {}
global.trains = {}
global.trains_available = {}
global.layouts = {}
global.layout_train_count = {}
global.layout_top_id = 1
function init_global()
global.total_ticks = 0
global.tick_state = STATE_INIT
global.tick_data = {}
global.economy = {
all_r_stations = {},
all_p_stations = {},
all_names = {},
}
global.to_comb = {}
global.to_output = {}
global.to_stop = {}
global.stations = {}
global.depots = {}
global.trains = {}
global.trains_available = {}
global.layouts = {}
global.layout_train_count = {}
global.layout_top_id = 1
end