mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
updated types, added dumping mode and rtu_advertisement
This commit is contained in:
parent
8b43c81fc0
commit
13fcf265b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user