rts-sim-module/component/signal_3xh1.go
2023-10-08 16:00:05 +08:00

41 lines
1.1 KiB
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"
// Signal3XH1Electronic 电路状态信号机3XH-1(红-绿-黄) 道岔防护信号机(三显示不封灯,有单黄显示、带引导)
type Signal3XH1Electronic struct {
// 点灯继电器true-吸合,常态落下表示逻辑点灯
Z3XH1_DDJ *ecs.Entry
//2DJ灯丝继电器true-吸合
Z3XH1_2DJ *ecs.Entry
//灯丝继电器true-吸合
Z3XH1_DJ *ecs.Entry
//列车信号继电器true-吸合
Z3XH1_LXJ *ecs.Entry
//引导信号继电器true-吸合
Z3XH1_YXJ *ecs.Entry
//开通正线信号继电器true-吸合
Z3XH1_ZXJ *ecs.Entry
}
// Signal3XH1Filament 信号机3XH-1 灯丝状态
type Signal3XH1Filament struct {
// 物理黄灯true-灯丝正常
Uf bool
// 物理绿灯true-灯丝正常
Lf bool
// 物理红灯true-灯丝正常
Hf bool
// 物理黄灯true-亮
U bool
// 物理绿灯true-亮
L bool
// 物理红灯true-亮
H bool
}
var (
Signal3XH1ElectronicType = ecs.NewComponentType[Signal3XH1Electronic]()
Signal3XH1FilamentType = ecs.NewComponentType[Signal3XH1Filament]()
)