2023-12-12 14:41:39 +08:00
|
|
|
|
package component
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"joylink.club/ecs"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// PurificationDevice 净化装置
|
2023-12-19 11:11:27 +08:00
|
|
|
|
// 具体异常-启动超时、异常、通信中断
|
2023-12-12 14:41:39 +08:00
|
|
|
|
type PurificationDevice struct {
|
2023-12-19 11:11:27 +08:00
|
|
|
|
Running bool //true-运行;false-停止
|
|
|
|
|
Starting bool //true-正在启动
|
2023-12-12 14:41:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const PurificationDeviceStartTime int = 3000 //净化装置启动耗时,ms
|
|
|
|
|
|
|
|
|
|
var (
|
2023-12-25 17:31:35 +08:00
|
|
|
|
PurificationDeviceType = ecs.NewComponentType[PurificationDevice]() //净化装置
|
2023-12-12 14:41:39 +08:00
|
|
|
|
)
|