25 lines
768 B
Go
25 lines
768 B
Go
|
package component
|
||
|
|
||
|
import (
|
||
|
"joylink.club/ecs"
|
||
|
"joylink.club/rtsssimulation/consts"
|
||
|
)
|
||
|
|
||
|
// EmergencyLighting 应急照明
|
||
|
type EmergencyLighting struct {
|
||
|
Mode EmergencyLightingMode
|
||
|
Exception consts.DeviceExceptionEnum //具体异常-故障、异常、通信中断
|
||
|
}
|
||
|
|
||
|
// EmergencyLightingMode 应急照明模式定义
|
||
|
type EmergencyLightingMode = uint8
|
||
|
|
||
|
const (
|
||
|
ElmAuto EmergencyLightingMode = iota //应急照明自动/正常运行
|
||
|
ElmEmergency //应急照明开启应急模式
|
||
|
ElmFirefighting //应急照明开启消防强制启动模式
|
||
|
ElmNon //应急照明非正常模式
|
||
|
)
|
||
|
|
||
|
var EmergencyLightingType = ecs.NewComponentType[EmergencyLighting]()
|