44 lines
1.4 KiB
Go
44 lines
1.4 KiB
Go
package components
|
|
|
|
import (
|
|
"joylink.club/ecs"
|
|
"joylink.club/rtsssimulation/components/cstate"
|
|
)
|
|
|
|
// 系统时钟组件
|
|
var SystemTimerComponent = ecs.NewComponentType[cstate.SystemTimer]()
|
|
|
|
// 身份组件
|
|
var DeviceIdentityComponent = ecs.NewComponentType[cstate.DeviceIdentity]()
|
|
|
|
// 持有实体标签的组件
|
|
var EntityTagHandlerComponent = ecs.NewComponentType[cstate.EntityTagHandler]()
|
|
|
|
// 百分比设备组件
|
|
var PercentageDeviceComponent = ecs.NewComponentType[cstate.PercentageDeviceState]()
|
|
var PercentageDeviceOperatingComponent = ecs.NewComponentType[cstate.PercentageDeviceOperating]()
|
|
|
|
// 道岔继电器状态组件
|
|
var SwitchRelayStateComponent = ecs.NewComponentType[cstate.SwitchRelayState]()
|
|
|
|
// 物理区段状态组件
|
|
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]()
|