DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DisconnectSessionEx()

void CGame::DisconnectSessionEx ( DisconnectSessionFlags flags)
inlineprotected

См. определение в файле DayZGame.c строка 2679

2680 {
2681 if (flags & DisconnectSessionFlags.SELECT_USER && OnlineServices.GetBiosUser())
2682 {
2683 GetGame().GetUserManager().SelectUserEx(OnlineServices.GetBiosUser());
2684 }
2685
2686 if (flags & DisconnectSessionFlags.JOIN_ERROR_ENABLED)
2687 {
2688 if (!(flags & DisconnectSessionFlags.JOIN_ERROR_CHECK) || GetGameState() == DayZGameState.JOIN)
2689 {
2690 NotificationSystem.AddNotification(NotificationType.JOIN_FAIL_GET_SESSION, NotificationSystem.DEFAULT_TIME_DISPLAYED);
2691 }
2692 }
2693
2694 if (flags & DisconnectSessionFlags.IGNORE_WHEN_IN_GAME && GetGameState() == DayZGameState.IN_GAME)
2695 {
2696 return;
2697 }
2698
2699 if (flags & DisconnectSessionFlags.CLOSE_MENUS && GetGame().GetUIManager())
2700 {
2702
2703 if ( GetGame().GetUIManager().IsDialogVisible() )
2704 {
2706 }
2707 }
2708
2709 if (flags & DisconnectSessionFlags.ALWAYS_FORCE)
2710 {
2712 }
2713
2714 if (GetGame().GetMission())
2715 {
2716 if (g_Game.GetGameState() != DayZGameState.MAIN_MENU)
2717 {
2718 if (flags & DisconnectSessionFlags.DISCONNECT_ERROR_ENABLED)
2719 {
2720 NotificationSystem.AddNotification(NotificationType.DISCONNECTED, NotificationSystem.DEFAULT_TIME_DISPLAYED);
2721 }
2722
2724
2725 SetGameState(DayZGameState.MAIN_MENU);
2726 SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
2727
2728 GamepadCheck();
2729 }
2730 }
2731
2732 else
2733 {
2735 }
2736 }
DayZGame g_Game
Определения DayZGame.c:3868
DisconnectSessionFlags
Определения DayZGame.c:2
NotificationType
DEPRECATED (moved into NotificationSystem)
Определения NotificationSystem.c:4
bool SelectUserEx(BiosUser user)
Определения BiosUserManager.c:90
proto native UIManager GetUIManager()
DayZGameState GetGameState()
Определения DayZGame.c:1320
proto native BiosUserManager GetUserManager()
void MainMenuLaunch()
Определения DayZGame.c:2258
void SetLoadState(DayZLoadState state)
Определения DayZGame.c:1325
proto native void DisconnectSessionForce()
Forces disconnect from current multiplayer session even if not yet in the game.
void GamepadCheck()
Определения DayZGame.c:2421
proto native Mission GetMission()
void SetGameState(DayZGameState state)
Определения DayZGame.c:1315
void AbortMission()
Определения gameplay.c:776
bool CloseAllSubmenus()
Close all opened menus except first menu.
Определения UIManager.c:98
proto native void CloseDialog()
proto native CGame GetGame()

Перекрестные ссылки Mission::AbortMission(), NotificationSystem::AddNotification(), UIManager::CloseAllSubmenus(), UIManager::CloseDialog(), NotificationSystem::DEFAULT_TIME_DISPLAYED, DisconnectSessionForce(), g_Game, GamepadCheck(), OnlineServices::GetBiosUser(), GetGame(), GetGameState(), GetMission(), GetUIManager(), GetUserManager(), MainMenuLaunch(), BiosUserManager::SelectUserEx(), SetGameState() и SetLoadState().

Используется в DisconnectSessionScript().