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); }
public StopWarshipsSystem(Contexts contexts) { var matcher = ServerGameMatcher.AllOf(ServerGameMatcher.Transform, ServerGameMatcher.Player); warshipsGroup = contexts.serverGame.GetGroup(matcher); }
public HealthBarDestroyHelperSystem(Contexts contexts) { needHealthBarDestroyGroup = contexts.serverGame.GetGroup(ServerGameMatcher .AllOf(ServerGameMatcher.Destroyed, ServerGameMatcher.HealthBarParent)); }
public HealthBarRotatingSystem(Contexts contexts, Vector3 cameraShift) { rotation = Quaternion.LookRotation(-cameraShift); healthBars = contexts.serverGame.GetGroup(ServerGameMatcher.AllOf(ServerGameMatcher.HealthBar, ServerGameMatcher.View)); }
public WithHpArrangeTransformSystem(Contexts contexts) { withHpGroup = contexts.serverGame.GetGroup(ServerGameMatcher .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints)); }
public SnapshotFactory(ServerGameContext context) { warshipsGroup = context.GetGroup(ServerGameMatcher .AllOf(ServerGameMatcher.Transform, ServerGameMatcher.HealthPoints)); }
public SpawnForceSystem(Contexts contexts) { needSpawnForceGroup = contexts.serverGame .GetGroup(ServerGameMatcher.AllOf(ServerGameMatcher.Rigidbody, ServerGameMatcher.SpawnForce)); }