49 lines
1.4 KiB
Go
49 lines
1.4 KiB
Go
package components
|
|
|
|
import (
|
|
"joylink.club/ecs"
|
|
"joylink.club/rtsssimulation/state"
|
|
)
|
|
|
|
// 系统时钟组件
|
|
var ComSystemTimer = ecs.NewComponentType[state.SystemTimer]()
|
|
|
|
// 身份组件
|
|
var ComDeviceIdentity = ecs.NewComponentType[state.DeviceIdentity]()
|
|
|
|
// 持有实体标签的组件
|
|
var ComEntityTagHandler = ecs.NewComponentType[state.EntityTagHandler]()
|
|
|
|
// 道岔状态组件
|
|
var ComSwitchState = ecs.NewComponentType[state.SwitchState]()
|
|
|
|
// 道岔定反操继电器动作组件
|
|
var ComSwitchNRRelayOperating = ecs.NewComponentType[state.SwitchNRRelayOperating]()
|
|
|
|
// 道岔正常转动组件
|
|
var ComSwitchTurnOperating = ecs.NewComponentType[state.SwitchTurnOperating]()
|
|
|
|
// 物理区段状态组件
|
|
var ComPhysicalSectionState = ecs.NewComponentType[state.PhysicalSectionState]()
|
|
|
|
// 信号机状态组件
|
|
var ComSignalState = ecs.NewComponentType[state.SignalState]()
|
|
|
|
// 信号机显示操作组件
|
|
var ComSignalDisplayOperating = ecs.NewComponentType[state.SignalDisplayOperating]()
|
|
|
|
// 单个屏蔽门状态组件
|
|
var ComPsdCellState = ecs.NewComponentType[state.PsdCellState]()
|
|
|
|
// 单个屏蔽门操作组件
|
|
var ComPsdCellOperating = ecs.NewComponentType[state.PsdCellOperating]()
|
|
|
|
// 站台单侧所有单个屏蔽门状态组件
|
|
var ComPsdState = ecs.NewComponentType[state.PsdState]()
|
|
|
|
// 应答器状态组件
|
|
var ComBaliseState = ecs.NewComponentType[state.BaliseState]()
|
|
|
|
// 列车状态组件
|
|
var ComTrainState = ecs.NewComponentType[state.TrainState]()
|