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

◆ OnPartyHost()

void BiosUserManager::OnPartyHost ( BiosUser host,
array< string > invitee_list,
EBiosError error )
inlineprivate

Callback function.

Called when a party is parsed or when a party is hosted from the system UI.

Аргументы
hostthe user that is hosting the party. NULL on error.
invitee_listlist of party members.
errorindicating if parsing failed. OK if not a result of ParsePartyAsync.

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

261 {
262 #ifdef PLATFORM_PS4
263 if (host)
264 #endif
265 {
266 SelectUserEx(host);
267
268 #ifdef PLATFORM_PS4
269 if (!host.IsOnline())
270 {
271 LogOnUserAsync( host );
272 }
273 #endif
274 }
275
276
277 if (g_Game.GetUIManager())
278 {
279 g_Game.GetUIManager().CloseMenu(MENU_TITLE_SCREEN);
280 }
281
282 OnlineServices.SetPendingInviteList( invitee_list );
283 if (g_Game.GetGameState() != DayZGameState.IN_GAME && g_Game.GetGameState() != DayZGameState.CONNECTING)
284 {
285 if (!g_Game.GetUIManager().GetMenu() || g_Game.GetUIManager().GetMenu().GetID() != MENU_MAIN)
286 {
287 g_Game.GetUIManager().EnterScriptedMenu(MENU_MAIN, g_Game.GetUIManager().GetMenu());
288 }
289 g_Game.SetGameState( DayZGameState.PARTY );
290 g_Game.SetLoadState( DayZLoadState.PARTY_START );
291 g_Game.GamepadCheck();
292 }
293 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native bool IsOnline()
proto native EBiosError LogOnUserAsync(BiosUser user)
Display a system dependant ui for log-on.
bool SelectUserEx(BiosUser user)
Определения BiosUserManager.c:90
const int MENU_TITLE_SCREEN
Определения 3_Game/DayZ/constants.c:196
const int MENU_MAIN
Определения 3_Game/DayZ/constants.c:182

Перекрестные ссылки g_Game, BiosUser::IsOnline(), LogOnUserAsync(), MENU_MAIN, MENU_TITLE_SCREEN, SelectUserEx() и OnlineServices::SetPendingInviteList().