rts-sim-module/sys/bind.go
walker 48e34d673e 修改实体构建问题
创建仿真时添加绑定系统
2023-09-28 18:20:53 +08:00

18 lines
488 B
Go

package sys
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/sys/circuit_sys"
"joylink.club/rtsssimulation/sys/common_sys"
"joylink.club/rtsssimulation/sys/device_sys"
)
// 添加系统到World
func BindSystem(w ecs.World) {
w.AddSystem(NewWorldTimeSys(),
common_sys.NewCounterDownSys(), common_sys.NewTwoPositionMovementSys(),
device_sys.NewRelaySys(), device_sys.NewDBQSys(), device_sys.NewZzjSys(),
device_sys.NewTurnoutSys(),
circuit_sys.NewZdj9TwoDragSys())
}