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

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