#118 created constructors for basic types

This commit is contained in:
Mikayla Fischler
2023-02-14 15:15:34 -05:00
parent 9d5a55bf58
commit 8ebdf2686b
11 changed files with 58 additions and 26 deletions

View File

@@ -64,10 +64,10 @@ function sna.new(session_id, unit_id, advert, out_queue)
},
tanks = {
last_update = 0,
input = {}, ---@type tank_fluid
input = types.new_empty_gas(),
input_need = 0,
input_fill = 0.0,
output = {}, ---@type tank_fluid
output = types.new_empty_gas(),
output_need = 0,
output_fill = 0.0
}