Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
BiosSessionService Class Reference

Protected Member Functions

proto native EBiosError ClearActivityAsync ()
 not implemented
proto native EBiosError EnterGameplaySessionAsync (string session_address, int session_port)
 Enter a gameplay session.
proto native EBiosError GetSessionAsync (string join_handle)
 Gets a session from a join handle.
array< stringGetSessionPlayerList ()
void GetSessionPlayerListEx (TStringArray outPlayerList)
 Native callback function to retrieve the session player list.
proto native EBiosError InviteToGameplaySessionAsync (string session_address, int session_port, array< string > invitee_list)
 Send invite to list of users.
proto native EBiosError LeaveGameplaySessionAsync (string session_address, int session_port)
 Leave a gameplay session.
void OnClearActivity (EBiosError error)
 Callback function.
void OnEnterGameplaySession (string session_address, int session_port, EBiosError error)
 Callback function.
void OnGetGameplaySession (string session_address, int session_port)
 Callback function.
void OnGetSessionError (EBiosError error)
 //! Callback function, not implemented
void OnInviteToGameplaySession (EBiosError error)
 Callback function.
void OnLeaveGameplaySession (EBiosError error)
 Callback function.
proto native void OnSessionPlayerListUpdate (array< string > newPlayers)
 Alerts engine that players in current session have changed.
void OnSetActivity (EBiosError error)
 Callback function.
void OnShowInviteToGameplaySession (EBiosError error)
 Callback function.
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 EBiosError ShowInviteToGameplaySessionAsync (string session_address, int session_port)
 Show system UI to invite friends to current gameplay session.
void TryGetSession (string join_handle="")
 Gets a session from a join handle.

Protected Attributes

string m_CurrentHandle
int m_GetSessionAttempts

Detailed Description

Definition at line 1 of file biossessionservice.c.

Member Function Documentation

◆ ClearActivityAsync()

proto native EBiosError ClearActivityAsync ( )
protected

not implemented

Clears the current activity

The async result is returned in the OnClearActivity callback. Expected errors:

Returns
EBiosError indicating if the async operation is pending.

◆ EnterGameplaySessionAsync()

proto native EBiosError EnterGameplaySessionAsync ( string session_address,
int session_port )
protected

Enter a gameplay session.

The async result is returned in the OnEnterGameplaySession callback. Expected errors: LOGICAL - if the user is currently in an active gameplay session.

Parameters
session_addressserver IP address.
session_portserver port.
Returns
EBiosError indicating if the async operation is pending.

◆ GetSessionAsync()

proto native EBiosError GetSessionAsync ( string join_handle)
protected

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:

Parameters
join_handlethe parsed join handle.
Returns
EBiosError indicating if the async operation is pending.

Referenced by TryGetSession().

◆ GetSessionPlayerList()

array< string > GetSessionPlayerList ( )
inlineprotected

Definition at line 261 of file biossessionservice.c.

References ClientData::GetSimplePlayerList().

Referenced by GetSessionPlayerListEx().

◆ GetSessionPlayerListEx()

void GetSessionPlayerListEx ( TStringArray outPlayerList)
inlineprotected

Native callback function to retrieve the session player list.

Parameters
outPlayerListOutput list of players in the session.

Definition at line 270 of file biossessionservice.c.

References GetSessionPlayerList().

◆ InviteToGameplaySessionAsync()

proto native EBiosError InviteToGameplaySessionAsync ( string session_address,
int session_port,
array< string > invitee_list )
protected

Send invite to list of users.

The async result is returned in the OnInviteToGameplaySession callback. The user must be inside the session. That means, OnEnterGameplaySession must be called with no errors.

Parameters
session_addressserver IP address.
session_portserver port.
invitee_listlist of users to invite
Returns
EBiosError indicating if the async operation is pending.

Referenced by OnEnterGameplaySession().

◆ LeaveGameplaySessionAsync()

proto native EBiosError LeaveGameplaySessionAsync ( string session_address,
int session_port )
protected

Leave a gameplay session.

The async result is returned in the OnLeaveGameplaySession callback. If there is an unexpected error the state is cleared. Expected errors: ERR_NOT_FOUND - when attempting to leave a gameplay session the user is not part of. ERR_LOGICAL - when the user is not in a gameplay session.

Parameters
session_addressserver IP address.
session_portserver port.
Returns
EBiosError indicating if the async operation is pending.

◆ OnClearActivity()

void OnClearActivity ( EBiosError error)
inlineprotected

Callback function.

Parameters
errorerror indicating success or fail of the async operation.

Definition at line 138 of file biossessionservice.c.

◆ OnEnterGameplaySession()

void OnEnterGameplaySession ( string session_address,
int session_port,
EBiosError error )
inlineprotected

Callback function.

Parameters
session_addressserver IP address. Empty if failed.
session_portserver port. 0 if failed.
errorerror indicating success or fail of the async operation.

Definition at line 223 of file biossessionservice.c.

References OnlineServices::ErrorCaught(), OnlineServices::GetPendingInviteList(), InviteToGameplaySessionAsync(), and SetGameplayActivityAsync().

◆ OnGetGameplaySession()

void OnGetGameplaySession ( string session_address,
int session_port )
inlineprotected

Callback function.

Parameters
session_addressserver IP address.
session_portserver port.

Definition at line 147 of file biossessionservice.c.

References NotificationSystem::AddNotification(), NotificationSystem::DEFAULT_TIME_DISPLAYED, DISCONNECT_SESSION_FLAGS_FORCE, g_Game, m_GetSessionAttempts, MENU_INVITE_TIMER, and OnlineServices::SetInviteServerInfo().

◆ OnGetSessionError()

void OnGetSessionError ( EBiosError error)
inlineprotected

//! Callback function, not implemented

Callback function

Parameters
errorerror indicating fail of the async operation. Cannot be OK.

Definition at line 201 of file biossessionservice.c.

References CALL_CATEGORY_SYSTEM, DISCONNECT_SESSION_FLAGS_JOIN, OnlineServices::ErrorCaught(), g_Game, GetGame(), m_GetSessionAttempts, and TryGetSession().

◆ OnInviteToGameplaySession()

void OnInviteToGameplaySession ( EBiosError error)
inlineprotected

Callback function.

Parameters
errorindicating success or fail of the async operation.

Definition at line 256 of file biossessionservice.c.

◆ OnLeaveGameplaySession()

void OnLeaveGameplaySession ( EBiosError error)
inlineprotected

Callback function.

Parameters
errorerror indicating success or fail of the async operation.

Definition at line 239 of file biossessionservice.c.

◆ OnSessionPlayerListUpdate()

proto native void OnSessionPlayerListUpdate ( array< string > newPlayers)
protected

Alerts engine that players in current session have changed.

Parameters
newPlayersplayers that have just joined the server. When player joins a server, ALL players already on server count as new players.

Referenced by ClientData::SyncEvent_OnRecievedPlayerList().

◆ OnSetActivity()

void OnSetActivity ( EBiosError error)
inlineprotected

Callback function.

Parameters
errorerror indicating success or fail of the async operation.

Definition at line 129 of file biossessionservice.c.

References OnlineServices::ErrorCaught().

◆ OnShowInviteToGameplaySession()

void OnShowInviteToGameplaySession ( EBiosError error)
inlineprotected

Callback function.

Parameters
errorindicating success or fail of the async operation.

Definition at line 247 of file biossessionservice.c.

References OnlineServices::ErrorCaught().

◆ SetGameplayActivityAsync()

proto native EBiosError SetGameplayActivityAsync ( string session_address,
int session_port )
protected

Sets the activity to a gameplay session.

The async result is returned in the OnSetActivity callback. Expected errors: ERR_NOT_FOUND - when attempting to set a gameplay session activity the user is not part of.

Parameters
session_addressserver IP address.
session_portserver port.
Returns
EBiosError indicating if the async operation is pending.

Referenced by OnEnterGameplaySession().

◆ SetMultiplayState()

proto native void SetMultiplayState ( bool is_active)
protected

Notifiy about interactive multiplayer state.

◆ ShowInviteToGameplaySessionAsync()

proto native EBiosError ShowInviteToGameplaySessionAsync ( string session_address,
int session_port )
protected

Show system UI to invite friends to current gameplay session.

The async result is returned in the OnShowInviteToGameplaySession callback. On Xbox, if session with session_address and session_port does not exist, then xbox show message "We could not send the invite".

Parameters
session_addressserver IP address.
session_portserver port.
Returns
EBiosError indicating if the async operation is pending.

◆ TryGetSession()

void 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:

Parameters
join_handlethe parsed join handle.
Returns
EBiosError indicating if the async operation is pending.

Definition at line 47 of file biossessionservice.c.

References DISCONNECT_SESSION_FLAGS_JOIN, g_Game, GetSessionAsync(), m_CurrentHandle, and m_GetSessionAttempts.

Referenced by OnGetSessionError().

Field Documentation

◆ m_CurrentHandle

string m_CurrentHandle
protected

Definition at line 4 of file biossessionservice.c.

Referenced by TryGetSession().

◆ m_GetSessionAttempts

int m_GetSessionAttempts
protected

Definition at line 3 of file biossessionservice.c.

Referenced by OnGetGameplaySession(), OnGetSessionError(), and TryGetSession().


The documentation for this class was generated from the following file: