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

◆ TryGetSession()

void BiosSessionService::TryGetSession ( string join_handle = "")
inlineprotected

Gets a session from a join handle.

The async result is returned in the OnGetGameplaySession, OnGetLobbySession or OnGetSessionError callback, dependinng on the type of session, or error. Expected errors:

Аргументы
join_handlethe parsed join handle.
Возвращает
EBiosError indicating if the async operation is pending.

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

48 {
49 if ( join_handle != "" )
50 {
52 m_CurrentHandle = join_handle;
53 }
54
55 if ( m_GetSessionAttempts < 10 )
57 else
58 g_Game.DisconnectSessionEx(DISCONNECT_SESSION_FLAGS_JOIN);
59 }
DayZGame g_Game
Определения DayZGame.c:3868
const int DISCONNECT_SESSION_FLAGS_JOIN
Определения DayZGame.c:14
int m_GetSessionAttempts
Определения BiosSessionService.c:3
proto native EBiosError GetSessionAsync(string join_handle)
Gets a session from a join handle.
string m_CurrentHandle
Определения BiosSessionService.c:4

Перекрестные ссылки DISCONNECT_SESSION_FLAGS_JOIN, g_Game, GetSessionAsync(), m_CurrentHandle и m_GetSessionAttempts.

Используется в OnGetSessionError().