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