Exemple #1
0
 public void ToInvisibilityEffectState(NodeAddedEvent e, TeamBattleNode teamBattle, [Context, JoinByBattle] SelfBattleUserInTeamModeNode selfBattleUser, [Context, JoinByTeam] TeamNode selfTeam, [Combine] NameplateNode nameplate, [Context, JoinByTank, Combine] TankInTeamInvisibilityEffectWorkingStateNode tank, [Context, JoinByTeam, Combine] TeamNode tankTeam)
 {
     if (!selfTeam.Entity.Equals(tankTeam.Entity))
     {
         nameplate.nameplateEsm.esm.ChangeState <NameplateStates.NameplateInvisibilityEffectState>();
     }
 }
 public void SendTDMInitEvent(NodeAddedEvent e, TeamBattleNode battle, [Context, Combine] RemoteTankTeamNode tank, [Context, JoinByTank] WeaponNode weapon, [JoinAll] SelfBattleUserInTeamNode selfBattleUser, [Context, JoinAll] SingleNode <TankOutlineColorsComponent> colors)
 {
     if (!selfBattleUser.Entity.HasComponent <UserInBattleAsSpectatorComponent>())
     {
         base.ScheduleEvent <InitTeamMatchEvent>(tank);
     }
 }
 public void InitTeam(NodeAddedEvent e, [Combine] ScoreTableNode scoreTable, [Context, JoinByBattle] TeamBattleNode battle)
 {
     for (int i = 0; i < battle.userLimit.TeamLimit; i++)
     {
         ScoreTableRowComponent t = scoreTable.scoreTable.AddRow();
         scoreTable.scoreTableEmptyRowIndicators.emptyRows.Push(t);
         this.InitRow(t, scoreTable.scoreTableEmptyRowIndicators);
     }
     base.ScheduleEvent <ScoreTableSetEmptyRowsPositionEvent>(scoreTable);
 }
 public void BeginStreamWeaponHitFeedback(NodeAddedEvent e, StreamHitNode weapon, [Context, JoinByTank] SelfTankTeamNode tank, [Context, JoinByBattle] TeamBattleNode battle)
 {
     this.UpdateStreamWeaponHitFeedback(weapon, tank);
 }
 public void CollectTargetsForEMPEffectInTeamBattle(CollectTargetsInRadius e, EffectNode any, SelfTankTeamNode selfTank, TeamBattleNode battle, TeamNode team, [JoinByTeam] ICollection <RemoteTankNode> otherTanks)
 {
     this.CollectTargetsForEMP(e, selfTank, otherTanks);
 }
 public void CollectTargetsForEMPEffectInTeamBattle(NodeAddedEvent e, EMPEffectNode emp, [JoinByTank] SelfTankTeamNode selfTank, [JoinByTeam] TeamNode selfTeam, [JoinByBattle] TeamBattleNode battle, [JoinByBattle, Combine] TeamNode team)
 {
     if (!team.Entity.Equals(selfTeam.Entity))
     {
         CollectTargetsInRadius eventInstance = new CollectTargetsInRadius {
             Radius = emp.empEffect.Radius
         };
         Node[] nodes = new Node[] { emp, selfTank, battle, team };
         base.NewEvent(eventInstance).AttachAll(nodes).Schedule();
     }
 }
Exemple #7
0
 public void ShowScoreIndicator(NodeAddedEvent e, BattleDetailsIndicatorsNode battleDetailsIndicators, [Context, JoinByScreen] ScreenWithBattleGroupNode screen, [Context, JoinByBattle] TeamBattleNode teamBattle)
 {
     battleDetailsIndicators.battleDetailsIndicators.ScoreIndicator.SetActive(true);
 }
 public void CollectTargetsInTeamBattle(NodeAddedEvent e, ExplosiveMassEffectNode effect, [JoinByTank] SelfTankTeamNode selfTank, [JoinByTeam] TeamNode selfTeam, [JoinByBattle] TeamBattleNode battle, [JoinByBattle, Combine] TeamNode team)
 {
     if (!team.Entity.Equals(selfTeam.Entity))
     {
         CollectTargetsInRadius eventInstance = new CollectTargetsInRadius {
             Radius = effect.explosiveMassEffect.Radius
         };
         Node[] nodes = new Node[] { effect, selfTank, battle, team };
         base.NewEvent(eventInstance).AttachAll(nodes).ScheduleDelayed(((float)effect.explosiveMassEffect.Delay) / 1000f);
     }
 }
Exemple #9
0
 public void ShowBattleScreen(NodeAddedEvent e, ReadyBattleUser battleUser, [Context, JoinByBattle] TeamBattleNode teamBattle)
 {
     base.ScheduleEvent <ShowScreenNoAnimationEvent <TeamBattleScreenComponent> >(battleUser);
 }