Esempio n. 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 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);
        }
Esempio n. 3
0
        public StopWarshipsSystem(Contexts contexts)
        {
            var matcher = ServerGameMatcher.AllOf(ServerGameMatcher.Transform, ServerGameMatcher.Player);

            warshipsGroup = contexts.serverGame.GetGroup(matcher);
        }
Esempio n. 4
0
 public HealthBarDestroyHelperSystem(Contexts contexts)
 {
     needHealthBarDestroyGroup = contexts.serverGame.GetGroup(ServerGameMatcher
                                                              .AllOf(ServerGameMatcher.Destroyed, ServerGameMatcher.HealthBarParent));
 }
Esempio n. 5
0
 public HealthBarRotatingSystem(Contexts contexts, Vector3 cameraShift)
 {
     rotation   = Quaternion.LookRotation(-cameraShift);
     healthBars = contexts.serverGame.GetGroup(ServerGameMatcher.AllOf(ServerGameMatcher.HealthBar,
                                                                       ServerGameMatcher.View));
 }
Esempio n. 6
0
 public WithHpArrangeTransformSystem(Contexts contexts)
 {
     withHpGroup = contexts.serverGame.GetGroup(ServerGameMatcher
                                                .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints));
 }
Esempio n. 7
0
 public SnapshotFactory(ServerGameContext context)
 {
     warshipsGroup = context.GetGroup(ServerGameMatcher
                                      .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints));
 }
Esempio n. 8
0
 public SpawnForceSystem(Contexts contexts)
 {
     needSpawnForceGroup = contexts.serverGame
                           .GetGroup(ServerGameMatcher.AllOf(ServerGameMatcher.Rigidbody, ServerGameMatcher.SpawnForce));
 }