DayZ 1.27
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 строка 250

251 {
252 #ifdef PLATFORM_PS4
253 if (host)
254 #endif
255 {
256 SelectUserEx(host);
257
258 #ifdef PLATFORM_PS4
259 if (!host.IsOnline())
260 {
261 LogOnUserAsync( host );
262 }
263 #endif
264 }
265
266
267 if (GetGame().GetUIManager())
268 {
270 }
271
272 OnlineServices.SetPendingInviteList( invitee_list );
273 if (g_Game.GetGameState() != DayZGameState.IN_GAME && g_Game.GetGameState() != DayZGameState.CONNECTING)
274 {
275 if (!GetGame().GetUIManager().GetMenu() || GetGame().GetUIManager().GetMenu().GetID() != MENU_MAIN)
276 {
277 GetGame().GetUIManager().EnterScriptedMenu(MENU_MAIN, GetGame().GetUIManager().GetMenu());
278 }
279 g_Game.SetGameState( DayZGameState.PARTY );
280 g_Game.SetLoadState( DayZLoadState.PARTY_START );
281 g_Game.GamepadCheck();
282 }
283 }
DayZGame g_Game
Определения DayZGame.c:3868
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:536
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
proto native UIManager GetUIManager()
bool CloseMenu(int id)
Close menu with specific ID (see MenuID)
Определения UIManager.c:117
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
proto native CGame GetGame()
const int MENU_TITLE_SCREEN
Определения constants.c:196
const int MENU_MAIN
Определения constants.c:182

Перекрестные ссылки UIManager::CloseMenu(), UIManager::EnterScriptedMenu(), g_Game, GetGame(), GetID(), CGame::GetUIManager(), BiosUser::IsOnline(), LogOnUserAsync(), MENU_MAIN, MENU_TITLE_SCREEN, SelectUserEx() и OnlineServices::SetPendingInviteList().