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