Esempio n. 1
0
        public ShootingSystem(Contexts contexts)
        {
            var matcher = ServerInputMatcher
                          .AllOf(ServerInputMatcher.Attack, ServerInputMatcher.PlayerInput);

            attackGroup    = contexts.serverInput.GetGroup(matcher);
            gameContext    = contexts.serverGame;
            shootingHelper = new ShootingHelper(contexts);
        }
Esempio n. 2
0
        public RotationSystem(Contexts contexts, ITickDeltaTimeStorage tickDeltaTimeStorage)
        {
            this.tickDeltaTimeStorage = tickDeltaTimeStorage;
            gameContext = contexts.serverGame;
            inputGroup  = contexts.serverInput.GetGroup(ServerInputMatcher
                                                        .AllOf(ServerInputMatcher.PlayerInput, ServerInputMatcher.Attack));

            physicsRotationManager = new PhysicsRotationManager();
        }
Esempio n. 3
0
        public MoveSystem(Contexts contexts, PhysicsVelocityManager physicsVelocityManager)
        {
            this.physicsVelocityManager      = physicsVelocityManager;
            this.lastProcessedInputIdStorage = lastProcessedInputIdStorage;
            gameContext = contexts.serverGame;
            var matcher = ServerInputMatcher
                          .AllOf(ServerInputMatcher.Movement, ServerInputMatcher.PlayerInput);

            inputGroup = contexts.serverInput.GetGroup(matcher);
        }