19 lines
409 B
Go
19 lines
409 B
Go
package component
|
||
|
||
import (
|
||
"joylink.club/ecs"
|
||
)
|
||
|
||
// PurificationDevice 净化装置
|
||
// 具体异常-启动超时、异常、通信中断
|
||
type PurificationDevice struct {
|
||
Running bool //true-运行;false-停止
|
||
Starting bool //true-正在启动
|
||
}
|
||
|
||
const PurificationDeviceStartTime int = 3000 //净化装置启动耗时,ms
|
||
|
||
var (
|
||
PurificationDeviceType = ecs.NewComponentType[PurificationDevice]()
|
||
)
|