rts-sim-module/system/event/signal_3xh1_event.go

19 lines
398 B
Go
Raw Normal View History

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