package components import ( "joylink.club/ecs" "joylink.club/rtsssimulation/components/cstate" ) // 系统时钟组件 var SystemTimerComponent = ecs.NewComponentType[cstate.SystemTimer]() // 模型仓库引用组件,单例 var ModelStorageRefComponent = ecs.NewComponentType[cstate.ModelStorageRef]() // 身份组件 var DeviceIdentityComponent = ecs.NewComponentType[cstate.DeviceIdentity]() // 持有实体标签的组件 var EntityTagHandlerComponent = ecs.NewComponentType[cstate.EntityTagHandler]() // 可移动设备组件 var MovableDeviceStateComponent = ecs.NewComponentType[cstate.MovableDeviceState]() // 比率设备组件 var PercentageDeviceStateComponent = ecs.NewComponentType[cstate.PercentageDeviceState]() // 道岔继电器状态组件 var SwitchRelayStateComponent = ecs.NewComponentType[cstate.SwitchRelayState]() // 道岔移动控制组件 var SwitchControlStateComponent = ecs.NewComponentType[cstate.SwitchControlState]() // 物理区段状态组件 var PhysicalSectionStateComponent = ecs.NewComponentType[cstate.PhysicalSectionState]() // 信号机状态组件 var SignalStateComponent = ecs.NewComponentType[cstate.SignalState]() // 信号机显示操作组件 var SignalDisplayOperatingComponent = ecs.NewComponentType[cstate.SignalDisplayOperating]() // 站台单侧屏蔽门状态组件 var PsdStateComponent = ecs.NewComponentType[cstate.PsdState]() // 应答器状态组件 var BaliseStateComponent = ecs.NewComponentType[cstate.BaliseState]() // 列车状态组件 var TrainStateComponent = ecs.NewComponentType[cstate.TrainState]() // 两档按钮/旋钮状态组件 var TowPositionButtonStateComponent = ecs.NewComponentType[cstate.TowPositionButtonState]()