jl-ecs/examples/rtss-cg/simulation/ecs_components.go
2023-08-11 13:46:57 +08:00

24 lines
631 B
Go

package simulation
import (
"joylink.club/ecs"
"joylink.club/ecs/examples/rtss-cg/iwayside"
"joylink.club/ecs/examples/rtss-cg/state"
)
// id组件
var ComId = ecs.NewComponentType[iwayside.IdData]()
// 道岔状态组件
var ComSwitchState = ecs.NewComponentType[state.SwitchState]()
var ComSwitchOperating = ecs.NewComponentType[state.SwitchOperating]()
// 轨道状态组件
var ComLinkState = ecs.NewComponentType[state.LinkState]()
// 物理区段状态
var ComPhsicalSectionState = ecs.NewComponentType[state.PhysicalSectionState]()
// 列车状态组件
var ComTrainState = ecs.NewComponentType[state.TrainState]()