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

◆ OnAutoConnectToEmptyServer()

static void OnlineServices::OnAutoConnectToEmptyServer ( GetFirstServerWithEmptySlotResult result_list,
EBiosError error )
inlinestaticprotected

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

655 {
656 if ( !ErrorCaught( error ) )
657 {
658 GetServersResultRow result = GetRandomFreeResult( result_list );
659 if ( result )
660 {
661 g_Game.ConnectFromServerBrowser( result.m_HostIp, result.m_HostPort );
663 return;
664 }
665 else
666 {
667 GetGame().GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu() );
668 }
669 }
670
671 if ( m_AutoConnectTries < 3 )
672 {
674 GetFirstServerWithEmptySlotInput input = new GetFirstServerWithEmptySlotInput;
675 input.SetOfficial( true );
676 m_ClientServices.GetLobbyService().GetFirstServerWithEmptySlot( input );
677 }
678 else
679 {
680 GetGame().GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu() );
681 }
682 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native UIManager GetUIManager()
void SetOfficial(bool Official)
Определения BiosLobbyService.c:323
int m_HostPort
Определения BiosLobbyService.c:150
string m_HostIp
Определения BiosLobbyService.c:149
static BiosClientServices m_ClientServices
Определения OnlineServices.c:10
static int m_AutoConnectTries
Определения OnlineServices.c:622
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
Определения OnlineServices.c:635
static bool ErrorCaught(EBiosError error)
Определения OnlineServices.c:82
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native CGame GetGame()

Перекрестные ссылки ErrorCaught(), g_Game, GetGame(), GetRandomFreeResult(), CGame::GetUIManager(), m_AutoConnectTries, m_ClientServices, GetServersResultRow::m_HostIp, GetServersResultRow::m_HostPort, GetFirstServerWithEmptySlotInput::SetOfficial() и UIManager::ShowDialog().

Используется в BiosLobbyService::OnGetFirstServerWithEmptySlot().