package component import "joylink.club/ecs" // SignalDCXHElectronic 电路状态:信号机DCXH(蓝-白) 调车信号机 type SignalDCXHElectronic struct { //灯丝继电器,true-吸合 DCXH_DJ *ecs.Entry //调车信号继电器,true-吸合 DCXH_DXJ *ecs.Entry } // SignalDCXHFilament 信号机DCXH 灯丝状态 type SignalDCXHFilament struct { // 物理白灯,true-灯丝正常 Bf bool // 物理蓝灯,true-灯丝正常 Af bool // 物理白灯,true-亮 B bool // 物理蓝灯,true-亮 A bool } var ( SignalDCXHElectronicType = ecs.NewComponentType[SignalDCXHElectronic]() SignalDCXHFilamentType = ecs.NewComponentType[SignalDCXHFilament]() )