269 {
271 {
273
274 array<string> friends_simple = new array<string>;
275 for ( int i = 0; i < friend_list.Count(); ++i )
276 {
277 string uid = friend_list[i].m_Uid;
279 BiosFriendInfo newBfi = friend_list[i];
280
281 if (storedBfi)
282 {
283 if ( !BiosFriendInfo.Compare( storedBfi, newBfi ) )
284 {
285 friends_simple.Insert( newBfi.
m_Uid );
286 }
288 }
289 else
290 {
292 friends_simple.Insert( newBfi.
m_Uid );
293 }
294 }
295
297 {
298 if ( ClientData.m_LastNewPlayers && ClientData.m_LastNewPlayers.m_PlayerList.Count() > 0 )
299 {
300 foreach ( SyncPlayer player : ClientData.m_LastNewPlayers.m_PlayerList )
301 {
303 {
304 NotificationSystem.AddNotification(
NotificationType.FRIEND_CONNECTED, NotificationSystem.DEFAULT_TIME_DISPLAYED, player.
m_PlayerName +
" " +
"#ps4_invite_has_joined_your_session" );
305 }
306 }
307 ClientData.m_LastNewPlayers.m_PlayerList.Clear();
308 }
309 }
311 }
312 }
NotificationType
DEPRECATED (moved into NotificationSystem)
string m_Uid
The Uid of the friend.
static ref ScriptInvoker m_FriendsAsyncInvoker
static ref map< string, ref BiosFriendInfo > m_FriendsList
static bool ErrorCaught(EBiosError error)
static bool m_FirstFriendsLoad
string m_UID
Keeping for backwards compatability with mods.