49 if ( join_handle !=
"" )
150 switch (
g_Game.GetGameState())
152 case DayZGameState.IN_GAME:
156 bool found =
GetGame().GetHostAddress( addr, port );
157 if (addr != session_address || port != session_port )
162 g_Game.GetUIManager().CloseAll();
179 case DayZGameState.CONNECTING:
186 g_Game.ConnectFromJoin( session_address, session_port );
270 outPlayerList.Copy(playerList);
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
void OnClearActivity(EBiosError error)
Callback function.
void OnGetGameplaySession(string session_address, int session_port)
Callback function.
void OnSetActivity(EBiosError error)
Callback function.
void OnLeaveGameplaySession(EBiosError error)
Callback function.
void OnInviteToGameplaySession(EBiosError error)
Callback function.
void OnEnterGameplaySession(string session_address, int session_port, EBiosError error)
Callback function.
proto native EBiosError InviteToGameplaySessionAsync(string session_address, int session_port, array< string > invitee_list)
Send invite to list of users.
void TryGetSession(string join_handle="")
Gets a session from a join handle.
proto native EBiosError GetSessionAsync(string join_handle)
Gets a session from a join handle.
proto native EBiosError SetGameplayActivityAsync(string session_address, int session_port)
Sets the activity to a gameplay session.
proto native void SetMultiplayState(bool is_active)
Notifiy about interactive multiplayer state.
proto native void OnSessionPlayerListUpdate(array< string > newPlayers)
Alerts engine that players in current session have changed.
void OnGetSessionError(EBiosError error)
//! Callback function, not implemented
proto native EBiosError LeaveGameplaySessionAsync(string session_address, int session_port)
Leave a gameplay session.
void GetSessionPlayerListEx(TStringArray outPlayerList)
Native callback function to retrieve the session player list.
proto native EBiosError ShowInviteToGameplaySessionAsync(string session_address, int session_port)
Show system UI to invite friends to current gameplay session.
array< string > GetSessionPlayerList()
proto native EBiosError EnterGameplaySessionAsync(string session_address, int session_port)
Enter a gameplay session.
void OnShowInviteToGameplaySession(EBiosError error)
Callback function.
proto native EBiosError ClearActivityAsync()
not implemented
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static array< string > GetPendingInviteList()
static bool ErrorCaught(EBiosError error)
static void SetInviteServerInfo(string ip, int port)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
const int DISCONNECT_SESSION_FLAGS_JOIN
proto native CGame GetGame()
NotificationType
DEPRECATED (moved into NotificationSystem)