public void SendDMInitEvent(NodeAddedEvent e, DMBattleNode battle, [Context, Combine] RemoteTankNode tank, [Context, JoinByTank] WeaponNode weapon, [JoinAll] SelfBattleUserNode selfBattleUser, [Context, JoinAll] SingleNode <TankOutlineColorsComponent> colors) { if (!selfBattleUser.Entity.HasComponent <UserInBattleAsSpectatorComponent>()) { base.ScheduleEvent <InitDeathMatchEvent>(tank); } }
public void InitDM(NodeAddedEvent e, [Combine] ScoreTableNode scoreTable, [Context, JoinByBattle] DMBattleNode battle) { for (int i = 0; i < battle.userLimit.UserLimit; 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] SelfTankNode tank, [Context, JoinByBattle] DMBattleNode battle) { weapon.Entity.AddComponentIfAbsent <StreamHitEnemyFeedbackComponent>(); }
public void ToInvisibilityEffectState(NodeAddedEvent e, DMBattleNode dm, [Context, JoinByBattle] SelfBattleUserNode selfBattleUser, [Combine] NameplateNode nameplate, [Context, JoinByTank, Combine] TankInvisibilityEffectWorkingStateNode tank) { nameplate.nameplateEsm.esm.ChangeState <NameplateStates.NameplateInvisibilityEffectState>(); }
public void SetDMMessagePosition(NodeAddedEvent e, SingleNode <MainHUDComponent> hud, HUDNodes.SelfBattleUserAsSpectatorNode spec, [JoinByBattle] DMBattleNode battle) { hud.component.SetMessageTDMPosition(); }
public void InitRowsCache(NodeAddedEvent e, [Combine] DMScoreTableNode scoreTable, [Context, JoinByBattle] DMBattleNode battle) { scoreTable.scoreTable.InitRowsCache(battle.userLimit.UserLimit, scoreTable.scoreTableUserRowIndicators.indicators); scoreTable.Entity.AddComponent <ScoreTableRowsCacheInitedComponent>(); }
public void PlayMelodyWhenSelfBattleUserInDM(DefineMelodyForRoundRestartEvent evt, SoundsListenerNode listener, SelfTankBattleUserNode battleUser, [JoinByUser] RoundUserNode selfRoundUser, [JoinByBattle] DMBattleNode dm, [JoinByBattle] ICollection <RoundUserNode> players, SingleNode <BattleSoundsAssetComponent> mapEffect) { List <RoundUserNode> list = players.ToList <RoundUserNode>(); if (list.Count == 1) { listener.Entity.AddComponent(new PlayingMelodyRoundRestartListenerComponent(mapEffect.component.BattleSoundsBehaviour.PlayNeutralMelody(listener.soundListener.transform, -1f))); } else { if (< > f__am$cache0 == null) {
public void DefineColorForDM(NodeAddedEvent evt, ShaftAimingColorEffectNode weaponNode, [Context, JoinByBattle] DMBattleNode dm) { weaponNode.shaftAimingColorEffect.ChoosenColor = weaponNode.shaftAimingColorEffect.RedColor; weaponNode.Entity.AddComponent <ShaftAimingColorEffectPreparedComponent>(); }
public void ShowBattleScreen(NodeAddedEvent e, ReadyBattleUser battleUser, [Context, JoinByBattle] DMBattleNode dmBattle) { base.ScheduleEvent <ShowScreenNoAnimationEvent <DMBattleScreenComponent> >(battleUser); }