rts-sim-module/component/iscs_bas_emergency_lighting.go

24 lines
688 B
Go
Raw Permalink Normal View History

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