updated types, added dumping mode and rtu_advertisement

This commit is contained in:
Mikayla Fischler 2022-05-13 09:38:32 -04:00
parent 8b43c81fc0
commit 13fcf265b7

View File

@ -5,18 +5,24 @@
---@class types
local types = {}
-- CLASSES --
---@class tank_fluid
local tank_fluid = {
name = "mekanism:empty_gas",
amount = 0
}
---@field name string
---@field amount integer
---@class coordinate
local coordinate = {
x = 0,
y = 0,
z = 0
}
---@field x integer
---@field y integer
---@field z integer
---@class rtu_advertisement
---@field type integer
---@field index integer
---@field reactor integer
---@field rsio table|nil
-- STRING TYPES --
---@alias rtu_t string
types.rtu_t = {
@ -43,6 +49,14 @@ types.rps_status_t = {
manual = "manual"
}
-- turbine steam dumping modes
---@alias DUMPING_MODE string
types.DUMPING_MODE = {
IDLE = "IDLE",
DUMPING = "DUMPING",
DUMPING_EXCESS = "DUMPING_EXCESS"
}
-- MODBUS
-- modbus function codes