32 #ifdef PLATFORM_CONSOLE
33 #ifndef PLATFORM_WINDOWS
67 #ifdef PLATFORM_WINDOWS
70 if ( user_list.Count() > 0 )
78 Error(
"BiosClientServices Error: Usermanager does not exist." );
116 m_ClientServices.GetLobbyService().GetCachedFavoriteServerInfo(favServersInfoCache);
126 m_ClientServices.GetLobbyService().AddServerFavorite( ipAddress, port, steamQueryPort );
130 m_ClientServices.GetLobbyService().RemoveServerFavorite( ipAddress, port, steamQueryPort );
154 #ifdef PLATFORM_MSSTORE
175 return g_Game.GetHostData();
275 for (
int i = 0; i < friend_list.Count(); ++i )
277 string uid = friend_list[i].m_Uid;
285 friends_simple.Insert( newBfi.
m_Uid );
292 friends_simple.Insert( newBfi.
m_Uid );
336 for (
int i = 0; i < result_list.Count(); i++ )
339 string uid = result.
m_Uid;
342 if ( result_array && result_array2 )
346 new_list.Insert( result );
353 new_list.Insert( result );
397 #ifdef PLATFORM_CONSOLE
403 if (
g_Game.GetHostAddress( addr, port ) )
417 #ifdef PLATFORM_CONSOLE
453 if (
g_Game.GetGameState() != DayZGameState.MAIN_MENU )
459 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
467 if (
g_Game.GetGameState() == DayZGameState.IN_GAME )
535 if (
g_Game.GetHostAddress( addr, port ) )
540 m_ClientServices.GetSessionService().EnterGameplaySessionAsync( addr, port );
553 if ( currentServerInfo )
570 if (
g_Game.GetHostAddress( addr, port ) )
575 m_ClientServices.GetSessionService().SetGameplayActivityAsync( addr, port );
584 if (
g_Game.GetHostAddress( addr, port ) )
607 if ( already_on_server.Find( invitee ) == -1 )
609 new_to_server.Insert( invitee );
612 return new_to_server;
649 results_free.Insert( result_temp );
654 return results_free.GetRandomElement();
670 g_Game.GetUIManager().ShowDialog(
"#str_xbox_authentification_fail_title",
"#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO,
g_Game.GetUIManager().GetMenu() );
683 g_Game.GetUIManager().ShowDialog(
"#str_xbox_authentification_fail_title",
"#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO,
g_Game.GetUIManager().GetMenu() );
706 #ifdef PLATFORM_MSSTORE
711 #ifndef PLATFORM_WINDOWS
721 #ifdef PLATFORM_MSSTORE
726 #ifndef PLATFORM_WINDOWS
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
array< ref BiosPrivacyPermissionResult > BiosPrivacyPermissionResultArray
array< ref BiosFriendInfo > BiosFriendInfoArray
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
NotificationType
DEPRECATED (moved into NotificationSystem)
BiosClientServices class provides individual online services.
string m_Uid
The Uid of the friend.
static bool Compare(BiosFriendInfo a, BiosFriendInfo b)
BiosFriendInfo represents friend information.
static bool Compare(BiosPrivacyPermissionResult a, BiosPrivacyPermissionResult b)
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
string m_Uid
Uid of the target user.
ref BiosPrivacyPermissionResultArray m_Results
Array of permission results for this target user.
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
proto native BiosClientServices GetClientServices()
proto native EBiosError GetUserList(array< ref BiosUser > user_list)
Gets the currently present list of users.
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
static array< string > GetSimplePlayerList()
static ref SyncPlayerList m_LastNewPlayers
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
GetServersResult m_Result
ref GetServersResultRowArray m_Results
GetServersResult the output structure of the GetServers operation.
GetServersResultRow the output structure of the GetServers operation that represents one game server.
const int DEFAULT_TIME_DISPLAYED
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static ref ScriptInvoker m_PermissionsAsyncInvoker
static void GetClientServices()
static void PromptUpdate()
static void OnUserProfileAsync(EBiosError error)
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static bool IsPlayerMuted(string id)
static void LoadVoicePrivilege()
static void SetSessionHandle(string handle)
static void LeaveGameplaySession()
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
static string m_InviteServerIP
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static ref ScriptInvoker m_ServersAsyncInvoker
static ref GetServersResultRow m_CurrentServerInfo
static void SetPendingInviteList(array< string > invitees)
static bool GetMultiplayState()
static void AutoConnectToEmptyServer()
static void ShowInviteScreen()
static void LoadFriends()
static bool IsGameActive(bool sim)
static void ShowUserProfile(string uid)
static void GetServerModList(string server_id)
static GetServersResultRow GetCurrentServerInfo()
static int m_InviteServerPort
static BiosUser GetBiosUser()
static ref ScriptInvoker m_ServerAsyncInvoker
static BiosClientServices m_ClientServices
static ref ScriptInvoker m_MuteUpdateAsyncInvoker
static int m_AutoConnectTries
static bool CheckUpdate()
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
static void GetCurrentServerInfo(string ip, int port)
static string GetSessionHandle()
static bool IsGameTrial(bool sim)
static void SetBiosUser(BiosUser user)
static ref TrialService m_TrialService
static ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
static ref map< string, bool > m_MuteList
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
static void LoadPermissions(array< string > player_list)
static bool IsInitialized()
static void LoadServers(notnull GetServersInput inputValues)
static string m_CurrentServerIP
static map< string, bool > GetMuteList()
static array< string > GetPendingInviteList()
static void EnterGameplaySession()
static ref ScriptInvoker m_FriendsAsyncInvoker
static ref array< string > m_PendingInvites
static ref map< string, ref BiosFriendInfo > m_FriendsList
static bool m_MultiplayState
static int m_CurrentServerPort
static bool ErrorCaught(EBiosError error)
static void OnLoadVoicePrivilege(EBiosError err)
static void ClearPendingInviteList(array< string > invitees)
static void SetMultiplayState(bool state)
static bool m_FirstFriendsLoad
static void LoadMPPrivilege()
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void GetInviteServerInfo(out string ip, out int port)
static void SetGameplayActivity()
static bool MutePlayer(string id, bool mute)
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
static void OnLoadMPPrivilege(EBiosError err)
static void GetFavoriteServers(TStringArray favServers)
static ref BiosUser m_BiosUser
static void ClearCurrentServerInfo()
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
static void SetInviteServerInfo(string ip, int port)
ScriptInvoker Class provide list of callbacks usage:
proto bool Write(void value_out)
string m_UID
Keeping for backwards compatability with mods.
ref array< ref SyncPlayer > m_PlayerList
TrialService is used to query if the game is trial version or not.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void Error(string err)
Messagebox with error message.
array< string > TStringArray