Private Member Functions | |
proto native BiosUser | GetTitleInitiator () |
Gets the initiatior of the title. | |
proto native EBiosError | GetUserList (array< ref BiosUser > user_list) |
Gets the currently present list of users. | |
proto native EBiosError | LogOnUserAsync (BiosUser user) |
Display a system dependant ui for log-on. | |
proto native EBiosError | PickUserAsync () |
Display a system dependant account picket. | |
proto native EBiosError | ParseJoinAsync (string join_data) |
Parse the join data from from command line parameters. | |
proto native EBiosError | ParsePartyAsync (string party_data) |
Parse the party data from from command line parameters. | |
proto native bool | SelectUser (BiosUser user) |
Informs the engine about the current selected user. | |
proto native BiosUser | GetSelectedUser () |
Returns the currently selected user. | |
proto native EBiosError | GetUserDatabaseIdAsync () |
Call async function to get database ID. | |
bool | SelectUserEx (BiosUser user) |
void | OnUserDatabaseId (string dbID, EBiosError error) |
Callback function. | |
void | OnUserLoggedOn (EBiosError error) |
Callback function. | |
void | OnUserPicked (BiosUser user, EBiosError error) |
Callback function. | |
void | OnLoggedOn (BiosUser user) |
Callback function. | |
void | OnLoggedOff (BiosUser user) |
Callback function. | |
void | OnSignedIn (BiosUser user) |
Callback function. | |
void | OnSignedOut (BiosUser user) |
Callback function. | |
void | OnJoin (EBiosJoinType type, BiosUser joiner, string handle, string joinee, EBiosError error) |
Callback function. | |
void | OnPartyHost (BiosUser host, array< string > invitee_list, EBiosError error) |
Callback function. | |
void | OnGameNameChanged (BiosUser user) |
Callback function. | |
BiosUser | GetUser (string user_id) |
|
private |
Returns the currently selected user.
Referenced by CGame::CreateTitleScreen(), OnlineServices::GetClientServices(), DayZIntroScene::GetSelectedUserName(), UIScriptedMenu::Init(), ScriptedWidgetEventHandler::IsLocalPlayer(), UIScriptedMenu::IsLocalPlayer(), OnGameNameChanged(), OnLoggedOn(), OnSignedOut(), UIScriptedMenu::Refresh(), CGame::SelectGamepad(), CGame::SelectUser(), SelectUserEx(), Managed::SetupPlayerName(), and DayZIntroSceneXbox::UpdateSelectedUserName().
|
private |
Gets the initiatior of the title.
Referenced by CGame::ConnectLaunch(), CGame::MainMenuLaunch(), and CGame::MissionLaunch().
References GetUserList().
|
private |
Call async function to get database ID.
Referenced by CGame::OnLoginTimeEvent(), and CGame::SelectGamepad().
|
private |
Gets the currently present list of users.
Fills in the array. Expected errors: BAD_PARAMETER - user_list is NULL,
Referenced by OnlineServices::GetClientServices(), and GetUser().
|
private |
Display a system dependant ui for log-on.
Referenced by OnPartyHost(), and CGame::SelectUser().
|
inlineprivate |
Callback function.
Called when display info of a signed in user changed.
user | the user affected by the change. |
References g_Game, GetGame(), UIManager::GetMenu(), BiosUser::GetName(), GetSelectedUser(), CGame::GetUIManager(), and UIScriptedMenu::Refresh().
Referenced by OnUserPicked().
|
inlineprivate |
Callback function.
Called when a join is parsed or when a runtime join is accepted from the system UI.
type | the type of join. Undefined on error. |
joiner | the user that is joining. NULL on error. |
handle | join handle for a session. Empty on error. |
joinee | uid of the user that is being joined. Empty on error. |
error | indicating if parsing failed. OK if not a result of ParseJoinAsync. |
References UIManager::CloseMenu(), DISCONNECT_SESSION_FLAGS_JOIN, OnlineServices::ErrorCaught(), g_Game, GetGame(), CGame::GetInput(), OnlineServices::GetSession(), CGame::GetUIManager(), Input::IdentifyGamepad(), MENU_TITLE_SCREEN, SelectUserEx(), OnlineServices::SetBiosUser(), and OnlineServices::SetSessionHandle().
|
inlineprivate |
Callback function.
References OnSignedOut().
|
inlineprivate |
Callback function.
References g_Game, GetGame(), and GetSelectedUser().
|
inlineprivate |
Callback function.
Called when a party is parsed or when a party is hosted from the system UI.
host | the user that is hosting the party. NULL on error. |
invitee_list | list of party members. |
error | indicating if parsing failed. OK if not a result of ParsePartyAsync. |
References UIManager::CloseMenu(), UIManager::EnterScriptedMenu(), g_Game, GetGame(), GetID(), CGame::GetUIManager(), BiosUser::IsOnline(), LogOnUserAsync(), MENU_MAIN, MENU_TITLE_SCREEN, SelectUserEx(), and OnlineServices::SetPendingInviteList().
|
inlineprivate |
Callback function.
Called when a new user signed in
user | the user that signed in. Cannot be NULL. |
|
inlineprivate |
Callback function.
Called when a new user signed out
user | the user that signed out. Cannot be NULL. |
References DISCONNECT_SESSION_FLAGS_FORCE, g_Game, GetGame(), CGame::GetInput(), GetSelectedUser(), Input::ResetActiveGamepad(), and SelectUserEx().
Referenced by OnLoggedOff().
|
inlineprivate |
Callback function.
dbID | user database ID. If something went wrong, then it is empty string. |
error | indicating correct state. |
References OnlineServices::ErrorCaught(), and g_Game.
|
inlineprivate |
Callback function.
error | error indicating success or fail of the async operation. |
References DISCONNECT_SESSION_FLAGS_FORCE, OnlineServices::ErrorCaught(), g_Game, GetGame(), CGame::GetInput(), and Input::ResetActiveGamepad().
|
inlineprivate |
Callback function.
user | picked user. NULL on fail. |
error | error indicating success or fail of the async operation. |
References OnlineServices::ErrorCaught(), g_Game, GetGame(), CGame::GetInput(), CGame::GetMission(), OnGameNameChanged(), Mission::Reset(), Input::ResetActiveGamepad(), and SelectUserEx().
|
private |
Parse the join data from from command line parameters.
The async result is returned in the OnJoin callback. The OnJoin callback is called also during runtime when a join is accepted. Expected errors: BAD_PARAMETER - join_data could not be parsed,
join_data | the startup join data from command line parameters. |
Referenced by CGame::JoinLaunch().
|
private |
Parse the party data from from command line parameters.
The async result is returned in the OnPartyHost callback. The OnPartyHost callback is called also during runtime when a player hosts a game for the party. Expected errors: BAD_PARAMETER - join_data could not be parsed,
party_data | the startup party data from command line parameters. |
Referenced by CGame::PartyLaunch().
|
private |
Display a system dependant account picket.
Xbox: The async result is returned in the OnUserPicked callback.
Referenced by CGame::SelectUser().
Informs the engine about the current selected user.
Must be called to ensure proper authentication etc.
user | the user to select. |
Referenced by SelectUserEx().
References NotificationSystem::AddNotification(), NotificationSystem::DEFAULT_TIME_DISPLAYED, DISCONNECT_SESSION_FLAGS_FORCE, g_Game, GetSelectedUser(), and SelectUser().
Referenced by UIScriptedMenu::ChangeAccount(), CGame::ConnectLaunch(), CGame::DisconnectSessionEx(), CGame::MainMenuLaunch(), CGame::MissionLaunch(), OnJoin(), OnPartyHost(), OnSignedOut(), OnUserPicked(), and CGame::SelectUser().