rts-sim-module/sys/bind.go

32 lines
852 B
Go
Raw Normal View History

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(),
2023-10-09 10:07:48 +08:00
common_sys.NewCounterDownSys(),
common_sys.NewTwoPositionMovementSys(),
device_sys.NewRelaySys(),
device_sys.NewDBQSys(),
device_sys.NewZzjSys(),
device_sys.NewTurnoutSys(),
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(),
2023-10-16 17:59:35 +08:00
device_sys.NewLightSys(),
)
}