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