コード例 #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));
 }
コード例 #2
0
 public HitDetectionSystem(Contexts contexts, PhysicsRaycaster physicsRaycaster,
                           ITickDeltaTimeStorage tickDeltaTimeStorage)
 {
     this.physicsRaycaster     = physicsRaycaster;
     this.tickDeltaTimeStorage = tickDeltaTimeStorage;
     gameContext = contexts.serverGame;
 }
コード例 #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);
        }
コード例 #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();
        }
コード例 #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);
        }
コード例 #6
0
        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);
        }
コード例 #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;
 }
コード例 #8
0
 public LoadingImageSwitcherSystem(Contexts contexts, Image loadingImage)
 {
     this.loadingImage = loadingImage;
     gameContext       = contexts.serverGame;
 }
コード例 #9
0
 public PlayerStopSystem(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
コード例 #10
0
 public MaxHealthUpdaterSystem(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
コード例 #11
0
 public CameraMoveSystem(Contexts contexts, Camera camera, Vector3 cameraShift)
 {
     mainCamera       = camera;
     this.cameraShift = cameraShift;
     gameContext      = contexts.serverGame;
 }
コード例 #12
0
 public ShootingHelper(Contexts contexts)
 {
     gameContext = contexts.serverGame;
 }
コード例 #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);
        }
コード例 #14
0
 public SnapshotFactory(ServerGameContext context)
 {
     warshipsGroup = context.GetGroup(ServerGameMatcher
                                      .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints));
 }
コード例 #15
0
 public WarshipEntityFactory(Contexts contexts)
 {
     gameContext        = contexts.serverGame;
     warshipSoValidator = new WarshipSoValidator();
 }