예제 #1
0
        public void OnRequestGoBack(RequestGoBackFromBattleEvent e, Node any, [JoinAll] SingleNode <Dialogs60Component> dialogs, [JoinAll] ActiveBattleScreenNode screen, [JoinAll] SelfBattleNonSpectatorNode battleUser, [JoinByBattle] SingleNode <RoundActiveStateComponent> activeRound, [JoinByBattle] BattleNode battle, [JoinByBattle] ICollection <BattleUserAsTankNode> battleUsers, [JoinAll] Optional <SingleNode <CustomBattleLobbyComponent> > customLobby, [JoinAll] Optional <SingleNode <ChosenMatchMackingModeComponent> > chosenMode)
        {
            bool isDeserter = this.IsDeserter(battle, battleUser, battleUsers);

            dialogs.component.Get <ExitBattleWindow>().Show(screen.Entity, battleUser.Entity, customLobby.IsPresent(), isDeserter, chosenMode.IsPresent() && chosenMode.Get().component.ModeEntity.HasComponent <MatchMakingDefaultModeComponent>());
        }
예제 #2
0
 public void ShowGoBackRequest(SpectatorGoBackRequestEvent e, Node anyNode, [JoinAll] FreeCameraNode camera, [JoinAll] SelfBattleUserNode battleUser, [JoinAll] SingleNode <Dialogs60Component> dialogs, [JoinAll] ActiveBattleScreenNode screen, [JoinAll] Optional <SingleNode <CustomBattleLobbyComponent> > customLobby)
 {
     dialogs.component.Get <ExitBattleWindow>().Show(screen.Entity, battleUser.Entity, customLobby.IsPresent(), false, false);
 }