rts-sim-module/component/signal_jckxh.go
2023-10-09 10:30:44 +08:00

35 lines
904 B
Go
Raw 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"
// SignalJCKXHElectronic 电路状态信号机JCKXH(红-白-黄) 进/出库列车兼调车信号机(三显示不封灯、有单黄显示、无引导)
type SignalJCKXHElectronic struct {
//灯丝继电器true-吸合
JCKXH_DJ *ecs.Entry
//调车信号继电器true-吸合
JCKXH_DXJ *ecs.Entry
//列车信号继电器true-吸合
JCKXH_LXJ *ecs.Entry
}
// SignalJCKXHFilament 信号机JCKXH 灯丝状态
type SignalJCKXHFilament struct {
// 物理黄灯true-灯丝正常
Uf bool
// 物理白灯true-灯丝正常
Bf bool
// 物理红灯true-灯丝正常
Hf bool
// 物理黄灯true-亮
U bool
// 物理白灯true-亮
B bool
// 物理红灯true-亮
H bool
}
var (
SignalJCKXHElectronicType = ecs.NewComponentType[SignalJCKXHElectronic]()
SignalJCKXHFilamentType = ecs.NewComponentType[SignalJCKXHFilament]()
)