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:
@ -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
|
||||||
|
Reference in New Issue
Block a user