|
proto native EBiosError | EnterGameplaySessionAsync (string session_address, int session_port) |
| Enter a gameplay session.
|
|
proto native EBiosError | LeaveGameplaySessionAsync (string session_address, int session_port) |
| Leave a gameplay session.
|
|
proto native void | OnSessionPlayerListUpdate (array< string > newPlayers) |
| Alerts engine that players in current session have changed.
|
|
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 EBiosError | ClearActivityAsync () |
| not implemented
|
|
proto native EBiosError | ShowInviteToGameplaySessionAsync (string session_address, int session_port) |
| Show system UI to invite friends to current gameplay session.
|
|
proto native EBiosError | InviteToGameplaySessionAsync (string session_address, int session_port, array< string > invitee_list) |
| Send invite to list of users.
|
|
proto native void | SetMultiplayState (bool is_active) |
| Notifiy about interactive multiplayer state.
|
|
void | OnSetActivity (EBiosError error) |
| Callback function.
|
|
void | OnClearActivity (EBiosError error) |
| Callback function.
|
|
void | OnGetGameplaySession (string session_address, int session_port) |
| Callback function.
|
|
void | OnGetSessionError (EBiosError error) |
| //! Callback function, not implemented
|
|
void | OnEnterGameplaySession (string session_address, int session_port, EBiosError error) |
| Callback function.
|
|
void | OnLeaveGameplaySession (EBiosError error) |
| Callback function.
|
|
void | OnShowInviteToGameplaySession (EBiosError error) |
| Callback function.
|
|
void | OnInviteToGameplaySession (EBiosError error) |
| Callback function.
|
|
array< string > | GetSessionPlayerList () |
|
◆ ClearActivityAsync()
not implemented
Clears the current activity
The async result is returned in the OnClearActivity callback. Expected errors:
- Возвращает
- EBiosError indicating if the async operation is pending.
◆ EnterGameplaySessionAsync()
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.
- Аргументы
-
session_address | server IP address. |
session_port | server port.
|
- Возвращает
- EBiosError indicating if the async operation is pending.
◆ GetSessionAsync()
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_handle | the parsed join handle. |
- Возвращает
- EBiosError indicating if the async operation is pending.
Используется в TryGetSession().
◆ GetSessionPlayerList()
◆ InviteToGameplaySessionAsync()
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.
- Аргументы
-
session_address | server IP address. |
session_port | server port. |
invitee_list | list of users to invite |
- Возвращает
- EBiosError indicating if the async operation is pending.
Используется в OnEnterGameplaySession().
◆ LeaveGameplaySessionAsync()
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.
- Аргументы
-
session_address | server IP address. |
session_port | server port.
|
- Возвращает
- EBiosError indicating if the async operation is pending.
◆ OnClearActivity()
Callback function.
- Аргументы
-
error | error indicating success or fail of the async operation. |
◆ OnEnterGameplaySession()
Callback function.
- Аргументы
-
session_address | server IP address. Empty if failed. |
session_port | server port. 0 if failed. |
error | error indicating success or fail of the async operation. |
221 {
223 {
227
228
229 }
230 }
proto native EBiosError InviteToGameplaySessionAsync(string session_address, int session_port, array< string > invitee_list)
Send invite to list of users.
proto native EBiosError SetGameplayActivityAsync(string session_address, int session_port)
Sets the activity to a gameplay session.
Definition OnlineServices.c:2
static array< string > GetPendingInviteList()
Definition OnlineServices.c:596
static bool ErrorCaught(EBiosError error)
Definition OnlineServices.c:82
Перекрестные ссылки OnlineServices::ErrorCaught(), OnlineServices::GetPendingInviteList(), InviteToGameplaySessionAsync() и SetGameplayActivityAsync().
◆ OnGetGameplaySession()
void OnGetGameplaySession |
( |
string | session_address, |
|
|
int | session_port ) |
|
inlineprotected |
Callback function.
- Аргументы
-
session_address | server IP address. |
session_port | server port. |
148 {
150 switch (
g_Game.GetGameState())
151 {
153 {
158 {
160 {
162 g_Game.GetUIManager().CloseAll();
164 {
166 }
167 }
168 else
169 {
171 }
172 }
173 else
174 {
176 }
177 break;
178 }
180 {
182
183 }
184 default:
185 {
187 break;
188 }
189 }
190 }
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
DayZGame g_Game
Definition DayZGame.c:3815
NotificationType
DEPRECATED (moved into NotificationSystem)
Definition NotificationSystem.c:4
int m_GetSessionAttempts
Definition BiosSessionService.c:3
Definition NotificationSystem.c:70
const int DEFAULT_TIME_DISPLAYED
Definition NotificationSystem.c:71
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
Definition NotificationSystem.c:192
static void SetInviteServerInfo(string ip, int port)
Definition OnlineServices.c:182
proto native CGame GetGame()
Перекрестные ссылки NotificationSystem::AddNotification(), NotificationSystem::DEFAULT_TIME_DISPLAYED, DISCONNECT_SESSION_FLAGS_FORCE, g_Game, GetGame(), m_GetSessionAttempts, MENU_INVITE_TIMER и OnlineServices::SetInviteServerInfo().
◆ OnGetSessionError()
◆ OnInviteToGameplaySession()
Callback function.
- Аргументы
-
error | indicating success or fail of the async operation. |
◆ OnLeaveGameplaySession()
Callback function.
- Аргументы
-
error | error indicating success or fail of the async operation. |
◆ OnSessionPlayerListUpdate()
Alerts engine that players in current session have changed.
- Аргументы
-
newPlayers | players that have just joined the server. When player joins a server, ALL players already on server count as new players. |
◆ OnSetActivity()
◆ OnShowInviteToGameplaySession()
◆ SetGameplayActivityAsync()
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.
- Аргументы
-
session_address | server IP address. |
session_port | server port.
|
- Возвращает
- EBiosError indicating if the async operation is pending.
Используется в OnEnterGameplaySession().
◆ SetMultiplayState()
Notifiy about interactive multiplayer state.
◆ ShowInviteToGameplaySessionAsync()
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".
- Аргументы
-
session_address | server IP address. |
session_port | server port. |
- Возвращает
- EBiosError indicating if the async operation is pending.
◆ TryGetSession()
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_handle | the parsed join handle. |
- Возвращает
- EBiosError indicating if the async operation is pending.
48 {
50 {
53 }
54
57 else
59 }
string m_CurrentHandle
Definition BiosSessionService.c:4
proto native EBiosError GetSessionAsync(string join_handle)
Gets a session from a join handle.
Перекрестные ссылки DISCONNECT_SESSION_FLAGS_JOIN, g_Game, GetSessionAsync(), m_CurrentHandle и m_GetSessionAttempts.
Используется в OnGetSessionError().
◆ m_CurrentHandle
◆ m_GetSessionAttempts
Объявления и описания членов класса находятся в файле: