rts-sim-module/simulation/components/common.go
2023-08-15 18:12:30 +08:00

25 lines
653 B
Go

package components
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/state"
)
// 系统时钟组件
var ComSystemTimer = ecs.NewComponentType[state.SystemTimer]()
// 身份组件
var ComDeviceIdentity = ecs.NewComponentType[state.DeviceIdentity]()
// 道岔状态组件
var ComSwitchState = ecs.NewComponentType[state.SwitchState]()
// 道岔正常转动组件
var ComSwitchTurnOperating = ecs.NewComponentType[state.SwitchTurnOperating]()
// 物理区段状态组件
var ComPhysicalSectionState = ecs.NewComponentType[state.PhysicalSectionState]()
// 信号机状态组件
var ComSignalState = ecs.NewComponentType[state.SignalState]()