2023-09-27 18:39:18 +08:00
|
|
|
package sys
|
|
|
|
|
|
|
|
import (
|
|
|
|
"joylink.club/ecs"
|
|
|
|
"joylink.club/rtsssimulation/sys/circuit_sys"
|
|
|
|
"joylink.club/rtsssimulation/sys/common_sys"
|
|
|
|
"joylink.club/rtsssimulation/sys/device_sys"
|
2023-12-22 09:46:11 +08:00
|
|
|
"joylink.club/rtsssimulation/sys/iscs_sys"
|
2023-09-27 18:39:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 添加系统到World
|
|
|
|
func BindSystem(w ecs.World) {
|
|
|
|
w.AddSystem(NewWorldTimeSys(),
|
2023-10-16 15:40:03 +08:00
|
|
|
common_sys.NewCounterSys(),
|
2023-10-09 10:07:48 +08:00
|
|
|
common_sys.NewCounterDownSys(),
|
|
|
|
common_sys.NewTwoPositionMovementSys(),
|
|
|
|
device_sys.NewRelaySys(),
|
|
|
|
device_sys.NewDBQSys(),
|
|
|
|
device_sys.NewZzjSys(),
|
2023-09-28 18:20:53 +08:00
|
|
|
device_sys.NewTurnoutSys(),
|
2023-11-06 17:32:34 +08:00
|
|
|
device_sys.NewCiQcSys(),
|
2023-10-08 16:03:36 +08:00
|
|
|
circuit_sys.NewZdj9TwoDragSys(),
|
|
|
|
circuit_sys.NewSignal2XH1System(),
|
2023-10-08 16:48:10 +08:00
|
|
|
circuit_sys.NewSignal3XH1System(),
|
2023-10-08 17:19:50 +08:00
|
|
|
circuit_sys.NewSignal3XH2System(),
|
2023-10-08 18:03:07 +08:00
|
|
|
circuit_sys.NewSignal3XH3System(),
|
2023-10-09 10:06:01 +08:00
|
|
|
circuit_sys.NewSignal3XH4System(),
|
2023-10-09 10:30:44 +08:00
|
|
|
circuit_sys.NewSignalDCXHSystem(),
|
2023-10-09 11:09:29 +08:00
|
|
|
circuit_sys.NewSignalJCKXHSystem(),
|
2023-10-11 13:38:33 +08:00
|
|
|
circuit_sys.NewSignalJDXHSystem(),
|
2024-03-08 17:11:53 +08:00
|
|
|
circuit_sys.NewCkmSys(),
|
|
|
|
circuit_sys.NewXcjSys(),
|
2023-10-16 17:59:35 +08:00
|
|
|
device_sys.NewLightSys(),
|
2023-10-20 16:12:42 +08:00
|
|
|
//屏蔽门
|
|
|
|
circuit_sys.NewPsdSys(),
|
2023-11-01 16:52:03 +08:00
|
|
|
device_sys.NewAsdSys(),
|
2023-10-23 11:23:15 +08:00
|
|
|
// IBP
|
|
|
|
circuit_sys.NewIBPSys(),
|
|
|
|
device_sys.NewAlarmSys(),
|
2023-10-23 17:39:39 +08:00
|
|
|
//物理区段
|
2023-11-01 11:08:24 +08:00
|
|
|
device_sys.NewFaDcAxleDeviceSystem(),
|
2023-11-10 10:39:41 +08:00
|
|
|
device_sys.NewSectionDetectSystem(),
|
2023-11-23 13:55:43 +08:00
|
|
|
//应答器
|
|
|
|
device_sys.NewBaliseSystem(),
|
2023-12-27 11:28:34 +08:00
|
|
|
//电机
|
|
|
|
device_sys.NewMotorSystem(),
|
2023-10-16 17:59:35 +08:00
|
|
|
)
|
2023-12-27 11:28:34 +08:00
|
|
|
//ISCS system
|
|
|
|
bindIscsSystem(w)
|
2023-09-27 18:39:18 +08:00
|
|
|
}
|
2023-12-22 09:46:11 +08:00
|
|
|
|
2023-12-27 11:28:34 +08:00
|
|
|
// bindIscsSystem ISCS 系统
|
|
|
|
func bindIscsSystem(w ecs.World) {
|
2023-12-22 15:50:47 +08:00
|
|
|
w.AddSystem(
|
|
|
|
iscs_sys.NewIscsExceptionSystem(),
|
2023-12-22 09:46:11 +08:00
|
|
|
iscs_sys.NewDevicePlacingSystem(),
|
2023-12-22 15:50:47 +08:00
|
|
|
//
|
2023-12-22 09:46:11 +08:00
|
|
|
iscs_sys.NewPowerSourceSystem(),
|
|
|
|
iscs_sys.NewCircuitBreakerSystem(),
|
|
|
|
iscs_sys.NewDisconnectorSystem(),
|
|
|
|
iscs_sys.NewHandcartSystem(),
|
|
|
|
iscs_sys.NewThreePositionSwitchSystem(),
|
|
|
|
iscs_sys.NewPipeFittingSystem(),
|
|
|
|
iscs_sys.NewRectifierSystem(),
|
|
|
|
iscs_sys.NewVoltageTransformerSystem(),
|
2023-12-22 10:57:43 +08:00
|
|
|
iscs_sys.NewLightningArresterSystem(),
|
2023-12-22 13:20:06 +08:00
|
|
|
iscs_sys.NewPowerPipeSystem(),
|
2023-12-22 15:50:47 +08:00
|
|
|
iscs_sys.NewEarthingDeviceSystem(),
|
|
|
|
//
|
|
|
|
iscs_sys.NewNetworkSwitchSystem(),
|
2023-12-26 13:36:15 +08:00
|
|
|
iscs_sys.NewWireCabinetSystem(),
|
2023-12-26 17:52:28 +08:00
|
|
|
iscs_sys.NewFanSystem(),
|
|
|
|
iscs_sys.NewValveSystem())
|
2023-12-22 09:46:11 +08:00
|
|
|
}
|