public void SetMapNameText(NodeAddedEvent e, SelectedBattleNode battle, [JoinByMap, Mandatory] MapNode map) { SetScreenHeaderEvent eventInstance = new SetScreenHeaderEvent(); eventInstance.Immediate(map.descriptionItem.Name + " " + battle.battleMode.BattleMode); base.ScheduleEvent(eventInstance, battle); }
public void EnterBattle(ButtonClickEvent e, BattleEnterButtonNode button, [JoinAll] SelectedBattleNode battle, [JoinAll] ScreenNode screen) { EnterBattleRequestEvent eventInstance = new EnterBattleRequestEvent(button.enterBattleButton.TeamColor) { Source = "BATTLES_LIST" }; base.ScheduleEvent(eventInstance, battle); base.ScheduleEvent <EnterBattleAttemptEvent>(battle); this.LockAllButtons(screen.battleSelectScreen); }
public void UnselectBattle(NodeRemoveEvent e, SelectedBattleNode battle) { bool flag = this.selectedBattleId != battle.Entity.Id; base.Log.DebugFormat("UnselectBattle {0} skip={1}", battle, flag); if (!flag) { base.ScheduleEvent <UnselectBattleEvent>(battle); this.selectedBattleId = -1L; } }
public void EnterBattleAsSpectator(ButtonClickEvent e, BattleEnterButtonAsSpectatorNode button, [JoinAll] SelectedBattleNode battle, [JoinAll] ScreenNode screen) { base.ScheduleEvent <EnterBattleAsSpectatorRequestEvent>(battle); base.ScheduleEvent <EnterBattleAttemptEvent>(battle); this.LockAllButtons(screen.battleSelectScreen); }
public void ResetButtons(NodeRemoveEvent e, SelectedBattleNode battle, [JoinAll] ScreenNode screen) { this.HideAllButtons(screen.battleSelectScreen); this.LockAllButtons(screen.battleSelectScreen); }
public void Join(NodeAddedEvent e, SelectedBattleNode selectedBattle, [Context, Combine] JoinToSelectedBattleNode joinToSelectedBattle) { selectedBattle.battleGroup.Attach(joinToSelectedBattle.Entity); }
public void BreakJoin(NodeRemoveEvent e, SelectedBattleNode selectedBattle, [JoinByBattle, Combine] JoinedSelectedBattleNode joinedToSelectedBattle) { selectedBattle.battleGroup.Detach(joinedToSelectedBattle.Entity); }
public void SelectBattle(NodeAddedEvent e, SelectedBattleNode battle) { base.Log.DebugFormat("SelectBattle {0}", battle); base.ScheduleEvent <SelectBattleEvent>(battle); this.selectedBattleId = battle.Entity.Id; }