#78 linked up the rest of the fields that we currently have, holding off on a few that are still WIP features

This commit is contained in:
Mikayla Fischler
2022-09-07 11:10:20 -04:00
parent e084ae1eea
commit 3621f53c45
3 changed files with 97 additions and 58 deletions

View File

@@ -22,6 +22,9 @@ function iocontrol.init(conf)
unit_id = i, ---@type integer
initialized = false,
num_boilers = 0,
num_turbines = 0,
control_state = false,
burn_rate_cmd = 0.0,
waste_control = 0,
@@ -53,6 +56,9 @@ function iocontrol.init(conf)
table.insert(entry.turbine_data_tbl, data)
end
entry.num_boilers = #entry.boiler_data_tbl
entry.num_turbines = #entry.turbine_data_tbl
table.insert(io.units, entry)
end
end