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

◆ OnJoin()

void BiosUserManager::OnJoin ( EBiosJoinType type,
BiosUser joiner,
string handle,
string joinee,
EBiosError error )
inlineprivate

Callback function.

Called when a join is parsed or when a runtime join is accepted from the system UI.

Аргументы
typethe type of join. Undefined on error.
joinerthe user that is joining. NULL on error.
handlejoin handle for a session. Empty on error.
joineeuid of the user that is being joined. Empty on error.
errorindicating if parsing failed. OK if not a result of ParseJoinAsync.

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

222 {
223 if ( !OnlineServices.ErrorCaught( error ) )
224 {
225 OnlineServices.SetBiosUser( joiner );
226
227 SelectUserEx( joiner );
228 OnlineServices.SetSessionHandle( handle );
229
230 if ( g_Game.GetGameState() == DayZGameState.IN_GAME )
231 {
232 g_Game.SetLoadState( DayZLoadState.JOIN_START );
233 OnlineServices.GetSession();
234 }
235 else
236 {
237 if ( g_Game.GetUIManager() && g_Game.GetInput().IsActiveGamepadSelected() )
238 {
239 g_Game.GetUIManager().CloseMenu( MENU_TITLE_SCREEN );
240 g_Game.GetInput().IdentifyGamepad( GamepadButton.BUTTON_NONE );
241 }
242 g_Game.SetLoadState( DayZLoadState.JOIN_START );
243 g_Game.GamepadCheck();
244 }
245 }
246 else
247 {
248 g_Game.DisconnectSessionEx(DISCONNECT_SESSION_FLAGS_JOIN);
249 }
250 }
DayZGame g_Game
Определения DayZGame.c:3942
const int DISCONNECT_SESSION_FLAGS_JOIN
Определения DayZGame.c:14
bool SelectUserEx(BiosUser user)
Определения BiosUserManager.c:90
GamepadButton
Определения EnSystem.c:341
const int MENU_TITLE_SCREEN
Определения 3_Game/DayZ/constants.c:196

Перекрестные ссылки DISCONNECT_SESSION_FLAGS_JOIN, OnlineServices::ErrorCaught(), g_Game, OnlineServices::GetSession(), MENU_TITLE_SCREEN, SelectUserEx(), OnlineServices::SetBiosUser() и OnlineServices::SetSessionHandle().