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

◆ OnAutoConnectToEmptyServer()

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

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

658 {
659 if ( !ErrorCaught( error ) )
660 {
661 GetServersResultRow result = GetRandomFreeResult( result_list );
662 if ( result )
663 {
664 g_Game.ConnectFromServerBrowser( result.m_HostIp, result.m_HostPort );
666 return;
667 }
668 else
669 {
670 g_Game.GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, g_Game.GetUIManager().GetMenu() );
671 }
672 }
673
674 if ( m_AutoConnectTries < 3 )
675 {
677 GetFirstServerWithEmptySlotInput input = new GetFirstServerWithEmptySlotInput;
678 input.SetOfficial( true );
679 m_ClientServices.GetLobbyService().GetFirstServerWithEmptySlot( input );
680 }
681 else
682 {
683 g_Game.GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, g_Game.GetUIManager().GetMenu() );
684 }
685 }
DayZGame g_Game
Определения DayZGame.c:3942
void SetOfficial(bool Official)
Определения BiosLobbyService.c:349
int m_HostPort
Определения BiosLobbyService.c:176
string m_HostIp
Определения BiosLobbyService.c:175
static BiosClientServices m_ClientServices
Определения OnlineServices.c:10
static int m_AutoConnectTries
Определения OnlineServices.c:625
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
Определения OnlineServices.c:638
static bool ErrorCaught(EBiosError error)
Определения OnlineServices.c:82

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

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