42 lines
1.0 KiB
Go
42 lines
1.0 KiB
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.NewCounterSys(),
|
|
common_sys.NewCounterDownSys(),
|
|
common_sys.NewTwoPositionMovementSys(),
|
|
device_sys.NewRelaySys(),
|
|
device_sys.NewDBQSys(),
|
|
device_sys.NewZzjSys(),
|
|
device_sys.NewTurnoutSys(),
|
|
circuit_sys.NewZdj9TwoDragSys(),
|
|
circuit_sys.NewSignal2XH1System(),
|
|
circuit_sys.NewSignal3XH1System(),
|
|
circuit_sys.NewSignal3XH2System(),
|
|
circuit_sys.NewSignal3XH3System(),
|
|
circuit_sys.NewSignal3XH4System(),
|
|
circuit_sys.NewSignalDCXHSystem(),
|
|
circuit_sys.NewSignalJCKXHSystem(),
|
|
circuit_sys.NewSignalJDXHSystem(),
|
|
device_sys.NewLightSys(),
|
|
//屏蔽门
|
|
circuit_sys.NewPsdSys(),
|
|
device_sys.NewPsdMotorSys(),
|
|
//门控箱
|
|
circuit_sys.NewMkxSys(),
|
|
//联锁机
|
|
device_sys.NewPscSys(),
|
|
// IBP
|
|
circuit_sys.NewIBPSys(),
|
|
device_sys.NewAlarmSys(),
|
|
)
|
|
}
|