10 proto native owned
string GetName();
11 proto native owned
string GetUid();
13 proto native
bool IsOnline();
22 proto native
BiosUser GetTitleInitiator();
56 proto native
EBiosError ParseJoinAsync(
string join_data);
68 proto native
EBiosError ParsePartyAsync(
string party_data);
76 proto native
bool SelectUser(
BiosUser user);
82 proto native
BiosUser GetSelectedUser();
88 proto native
EBiosError GetUserDatabaseIdAsync();
94 BiosUser selectedUser = GetSelectedUser();
95 if (selectedUser && selectedUser != user &&
g_Game.GetGameState() != DayZGameState.MAIN_MENU)
97 success = SelectUser(user);
101 success = SelectUser(user);
116 void OnUserDatabaseId(
string dbID,
EBiosError error)
120 g_Game.SetDatabaseID( dbID );
132 GetGame().GetInput().ResetActiveGamepad();
146 GetGame().GetInput().ResetActiveGamepad();
151 if (SelectUserEx( user ))
154 GetGame().GetMission().Reset();
155 OnGameNameChanged( user );
164 if ( user && GetSelectedUser() == user )
193 if ( user == GetSelectedUser() )
195 SelectUserEx(
null );
196 GetGame().GetInput().ResetActiveGamepad();
217 SelectUserEx( joiner );
220 if (
g_Game.GetGameState() == DayZGameState.IN_GAME )
222 g_Game.SetLoadState( DayZLoadState.JOIN_START );
232 g_Game.SetLoadState( DayZLoadState.JOIN_START );
259 if (!host.IsOnline())
261 LogOnUserAsync( host );
273 if (
g_Game.GetGameState() != DayZGameState.IN_GAME &&
g_Game.GetGameState() != DayZGameState.CONNECTING)
279 g_Game.SetGameState( DayZGameState.PARTY );
280 g_Game.SetLoadState( DayZLoadState.PARTY_START );
291 void OnGameNameChanged(
BiosUser user)
293 if ( user == GetSelectedUser() )
295 g_Game.SetPlayerName( user.GetName() );
296 #ifdef PLATFORM_CONSOLE
297 g_Game.SetPlayerGameName( user.GetName() );
299 if (
GetGame().GetUIManager().GetMenu() )
301 GetGame().GetUIManager().GetMenu().Refresh();
309 GetUserList( user_list );
310 foreach (
BiosUser user : user_list )
312 if ( user.GetUid() == user_id )