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.
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
array< ref BiosPrivacyPermissionResult > BiosPrivacyPermissionResultArray
array< ref BiosFriendInfo > BiosFriendInfoArray
BiosClientServices class provides individual online services.
BiosFriendInfo represents friend information.
string m_Uid
The Uid of the friend.
static bool Compare(BiosFriendInfo a, BiosFriendInfo b)
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
static bool Compare(BiosPrivacyPermissionResult a, BiosPrivacyPermissionResult b)
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
string m_Uid
Uid of the target user.
ref BiosPrivacyPermissionResultArray m_Results
Array of permission results for this target user.
proto native BiosClientServices GetClientServices()
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native EBiosError GetUserList(array< ref BiosUser > user_list)
Gets the currently present list of users.
static ref SyncPlayerList m_LastNewPlayers
static array< string > GetSimplePlayerList()
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
GetServersResult m_Result
GetServersResult the output structure of the GetServers operation.
ref GetServersResultRowArray m_Results
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 void SetSessionHandle(string handle)
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static int m_InviteServerPort
static bool GetMultiplayState()
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
static void GetFavoriteServers(TStringArray favServers)
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
static void ShowUserProfile(string uid)
static BiosClientServices m_ClientServices
static void AutoConnectToEmptyServer()
static BiosUser GetBiosUser()
static ref ScriptInvoker m_ServerAsyncInvoker
static void ClearPendingInviteList(array< string > invitees)
static ref array< string > m_PendingInvites
static bool IsGameActive(bool sim)
static void SetGameplayActivity()
static void SetMultiplayState(bool state)
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
static void GetInviteServerInfo(out string ip, out int port)
static void LoadPermissions(array< string > player_list)
static void SetInviteServerInfo(string ip, int port)
static array< string > GetPendingInviteList()
static void LeaveGameplaySession()
static ref TrialService m_TrialService
static string m_CurrentServerIP
static bool MutePlayer(string id, bool mute)
static void LoadVoicePrivilege()
static void GetClientServices()
static int m_CurrentServerPort
static bool IsGameTrial(bool sim)
static void OnUserProfileAsync(EBiosError error)
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
static string GetSessionHandle()
static ref ScriptInvoker m_PermissionsAsyncInvoker
static ref ScriptInvoker m_MuteUpdateAsyncInvoker
static map< string, bool > GetMuteList()
static int m_AutoConnectTries
static ref ScriptInvoker m_FriendsAsyncInvoker
static bool IsInitialized()
static bool CheckUpdate()
static void OnLoadMPPrivilege(EBiosError err)
static ref BiosUser m_BiosUser
static void EnterGameplaySession()
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static void GetCurrentServerInfo(string ip, int port)
static void LoadMPPrivilege()
static ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
static GetServersResultRow GetCurrentServerInfo()
static ref GetServersResultRow m_CurrentServerInfo
static void ShowInviteScreen()
static bool m_FirstFriendsLoad
static void GetServerModList(string server_id)
static void OnLoadVoicePrivilege(EBiosError err)
static void SetPendingInviteList(array< string > invitees)
static void PromptUpdate()
static string m_InviteServerIP
static ref map< string, ref BiosFriendInfo > m_FriendsList
static void SetBiosUser(BiosUser user)
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void ClearCurrentServerInfo()
static bool m_MultiplayState
static ref map< string, bool > m_MuteList
static void LoadFriends()
static ref ScriptInvoker m_ServersAsyncInvoker
static void LoadServers(notnull GetServersInput inputValues)
static bool ErrorCaught(EBiosError error)
static bool IsPlayerMuted(string id)
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
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.
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
void Error(string err)
Messagebox with error message.
array< string > TStringArray
NotificationType
DEPRECATED (moved into NotificationSystem).