Example #1
0
 public HealthBarSpawnSystem(Contexts contexts, HealthBarStorage healthBarStorage)
 {
     gameContext            = contexts.serverGame;
     this.healthBarStorage  = healthBarStorage;
     healthBarHeightStorage = new HealthBarHeightStorage();
     needHealthBar          = contexts.serverGame.GetGroup(ServerGameMatcher.AllOf(ServerGameMatcher.NeedHealthBar));
 }
 public HitDetectionSystem(Contexts contexts, PhysicsRaycaster physicsRaycaster,
                           ITickDeltaTimeStorage tickDeltaTimeStorage)
 {
     this.physicsRaycaster     = physicsRaycaster;
     this.tickDeltaTimeStorage = tickDeltaTimeStorage;
     gameContext = contexts.serverGame;
 }
Example #3
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);
        }
Example #4
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();
        }
Example #5
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);
        }
        public UpdateTransformSystem(Contexts contexts, ISnapshotManager snapshotManager,
                                     IMatchTimeStorage matchTimeStorage)
        {
            this.snapshotManager  = snapshotManager;
            this.matchTimeStorage = matchTimeStorage;
            gameContext           = contexts.serverGame;
            var matcher = ServerGameMatcher.AllOf(ServerGameMatcher.Transform).NoneOf(ServerGameMatcher.HealthBar);

            withTransformGroup = contexts.serverGame.GetGroup(matcher);
        }
Example #7
0
 public PlayerPredictor(PhysicsRollbackManager physicsRollbackManager, Scene scene,
                        ServerGameContext gameContext, PhysicsVelocityManager physicsVelocityManager,
                        PhysicsRotationManager physicsRotationManager, SnapshotFactory snapshotFactory)
 {
     this.scene                  = scene;
     this.gameContext            = gameContext;
     this.snapshotFactory        = snapshotFactory;
     this.physicsRollbackManager = physicsRollbackManager;
     this.physicsVelocityManager = physicsVelocityManager;
     this.physicsRotationManager = physicsRotationManager;
 }
 public LoadingImageSwitcherSystem(Contexts contexts, Image loadingImage)
 {
     this.loadingImage = loadingImage;
     gameContext       = contexts.serverGame;
 }
Example #9
0
 public PlayerStopSystem(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
Example #10
0
 public MaxHealthUpdaterSystem(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
Example #11
0
 public CameraMoveSystem(Contexts contexts, Camera camera, Vector3 cameraShift)
 {
     mainCamera       = camera;
     this.cameraShift = cameraShift;
     gameContext      = contexts.serverGame;
 }
Example #12
0
 public ShootingHelper(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
Example #13
0
        private readonly Dictionary <int, BattleRoyalePlayerModel> playerInfos; //accountId, account

        public UpdatePlayersSystem(Contexts contexts, BattleRoyaleClientMatchModel matchModel)
        {
            gameContext = contexts.serverGame;
            playerInfos = matchModel.PlayerModels
                          .ToDictionary(item => item.AccountId);
        }
Example #14
0
 public SnapshotFactory(ServerGameContext context)
 {
     warshipsGroup = context.GetGroup(ServerGameMatcher
                                      .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints));
 }
Example #15
0
 public WarshipEntityFactory(Contexts contexts)
 {
     gameContext        = contexts.serverGame;
     warshipSoValidator = new WarshipSoValidator();
 }