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

◆ SelectUserEx()

bool BiosUserManager::SelectUserEx ( BiosUser user)
inlineprivate

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

91 {
92 bool success = false;
93
94 BiosUser selectedUser = GetSelectedUser();
95 if (selectedUser && selectedUser != user && g_Game.GetGameState() != DayZGameState.MAIN_MENU)
96 {
97 success = SelectUser(user);
98 g_Game.DisconnectSessionEx(DISCONNECT_SESSION_FLAGS_FORCE & ~DisconnectSessionFlags.SELECT_USER);
99 }
100 else
101 success = SelectUser(user);
102
103 if (!success)
104 {
105 NotificationSystem.AddNotification(NotificationType.GENERIC_ERROR, NotificationSystem.DEFAULT_TIME_DISPLAYED);
106 }
107
108 return success;
109 }
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
DayZGame g_Game
Определения DayZGame.c:3868
DisconnectSessionFlags
Определения DayZGame.c:2
NotificationType
DEPRECATED (moved into NotificationSystem)
Определения NotificationSystem.c:4
proto native bool SelectUser(BiosUser user)
Informs the engine about the current selected user.
proto native BiosUser GetSelectedUser()
Returns the currently selected user.

Перекрестные ссылки NotificationSystem::AddNotification(), NotificationSystem::DEFAULT_TIME_DISPLAYED, DISCONNECT_SESSION_FLAGS_FORCE, g_Game, GetSelectedUser() и SelectUser().

Используется в UIScriptedMenu::ChangeAccount(), CGame::ConnectLaunch(), CGame::DisconnectSessionEx(), CGame::MainMenuLaunch(), CGame::MissionLaunch(), OnJoin(), OnPartyHost(), OnSignedOut(), OnUserPicked() и CGame::SelectUser().