made depot polling event based

This commit is contained in:
Monica Moniot
2022-11-11 09:45:45 -05:00
parent baf373035a
commit 3d71275330
5 changed files with 40 additions and 58 deletions

View File

@@ -5,14 +5,16 @@ local migrations_table = {
["0.2.0"] = function()
---@type MapData
local map_data = global
for k, station in pairs(map_data.stations) do
map_data.tick_state = STATE_INIT
map_data.all_station_ids = {}
for id, station in pairs(map_data.stations) do
station.p_count_or_r_threshold_per_item = {}
station.p_threshold = nil
station.is_all = nil
set_station_from_comb_state(station)
set_combinator_operation(station.entity_comb1, OPERATION_PRIMARY_IO)
map_data.all_station_ids[#map_data.all_station_ids + 1] = id
end
map_data.tick_state = STATE_INIT
end,
}