rts-sim-module/component/iscs_bas_guidance.go

91 lines
2.7 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package component
import "joylink.club/ecs"
//BAS 导向
// LightingGuidance 照明导向
type LightingGuidance struct {
Guidance LightingGd
}
// LightingGd 照明导向定义
type LightingGd = uint8
const (
LightingGdOpen LightingGd = iota //照明开启
LightingGdClose //照明关闭
LightingGdAbnormal //照明异常
LightingGdCommunicationInterrupt //照明通信中断
)
///////////////////////////
// PowerSwitchGuidance 电源开关导向
type PowerSwitchGuidance struct {
Guidance PowerSwitchGd
}
// PowerSwitchGd 电源开关导向定义
type PowerSwitchGd = uint8
const (
PowerSwitchGdOpen PowerSwitchGd = iota //电源开关分闸
PowerSwitchGdClose //电源开关合闸
PowerSwitchGdAbnormal //电源开关异常
PowerSwitchGdCommunicationInterrupt //电源开关通信中断
)
/////////////////////////////
// EscalatorGuidance 扶梯导向
type EscalatorGuidance struct {
Guidance EscalatorGd
}
// EscalatorGd 扶梯导向定义
type EscalatorGd = uint8
const (
EscalatorGdOpen EscalatorGd = iota //扶梯开启
EscalatorGdClose //扶梯关闭
EscalatorGdAbnormal //扶梯异常
EscalatorGdCommunicationInterrupt //扶梯通信中断
)
////////////////////////////////
// TicketGateGuidance 闸机导向
type TicketGateGuidance struct {
Guidance TicketGateGd
}
// TicketGateGd 闸机导向定义
type TicketGateGd = uint8
const (
TicketGateGdZ1F1 TicketGateGd = iota //正通反通
TicketGateGdZ1F0 //正通反禁
TicketGateGdZ0F1 //正禁反通
TicketGateGdZ0F0 //正禁反禁
TicketGateGdAbnormal //闸机异常
TicketGateGdCommunicationInterrupt //闸机通信中断
)
///////////////////////////////////////
// SectionEvacuationGuidance 区间疏散导向指示
type SectionEvacuationGuidance struct {
Open bool //true-开false-关
}
////////////////////////////////////////
var (
LightingGuidanceType = ecs.NewComponentType[LightingGuidance]()
PowerSwitchGuidanceType = ecs.NewComponentType[PowerSwitchGuidance]()
EscalatorGuidanceType = ecs.NewComponentType[EscalatorGuidance]()
TicketGateGuidanceType = ecs.NewComponentType[TicketGateGuidance]()
SectionEvacuationGuidanceType = ecs.NewComponentType[SectionEvacuationGuidance]()
)