2023-09-11 18:12:34 +08:00
|
|
|
|
package sysEvent
|
|
|
|
|
|
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
|
|
2023-09-15 13:48:48 +08:00
|
|
|
|
// Signal3XH1AspectChangedEvent 信号机3XH1显示状态变化事件
|
2023-09-11 18:12:34 +08:00
|
|
|
|
type Signal3XH1AspectChangedEvent struct {
|
|
|
|
|
//信号机id
|
|
|
|
|
Id string
|
|
|
|
|
// 物理黄灯,true-亮
|
|
|
|
|
U bool
|
|
|
|
|
// 物理绿灯,true-亮
|
|
|
|
|
L bool
|
|
|
|
|
// 物理红灯,true-亮
|
|
|
|
|
H bool
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-15 13:48:48 +08:00
|
|
|
|
// Signal3XH1AspectChangedEventBus 信号机3XH1显示状态变化事件总线
|
2023-09-11 18:12:34 +08:00
|
|
|
|
var Signal3XH1AspectChangedEventBus = ecs.NewEventType[Signal3XH1AspectChangedEvent]()
|