rts-sim-module/simulation/components/common.go

25 lines
653 B
Go
Raw Normal View History

2023-08-14 18:06:26 +08:00
package components
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/state"
)
2023-08-15 16:50:24 +08:00
// 系统时钟组件
var ComSystemTimer = ecs.NewComponentType[state.SystemTimer]()
2023-08-14 18:06:26 +08:00
// 身份组件
var ComDeviceIdentity = ecs.NewComponentType[state.DeviceIdentity]()
// 道岔状态组件
var ComSwitchState = ecs.NewComponentType[state.SwitchState]()
2023-08-15 16:50:24 +08:00
// 道岔正常转动组件
2023-08-14 18:06:26 +08:00
var ComSwitchTurnOperating = ecs.NewComponentType[state.SwitchTurnOperating]()
// 物理区段状态组件
var ComPhysicalSectionState = ecs.NewComponentType[state.PhysicalSectionState]()
2023-08-15 18:12:30 +08:00
// 信号机状态组件
var ComSignalState = ecs.NewComponentType[state.SignalState]()