19 lines
545 B
Go
19 lines
545 B
Go
package component
|
||
|
||
import (
|
||
"joylink.club/ecs"
|
||
"joylink.club/rtsssimulation/consts"
|
||
)
|
||
|
||
// WaterClosedContainer 水封闭式容器,如冷却塔、水处理器
|
||
type WaterClosedContainer struct {
|
||
Running bool //true-正常运行;false-停止
|
||
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||
}
|
||
|
||
var (
|
||
WaterClosedContainerType = ecs.NewComponentType[WaterClosedContainer]()
|
||
CoolingTowerTag = ecs.NewTag() //冷却塔
|
||
WaterProcessorTag = ecs.NewTag() //水处理器
|
||
)
|