266 {
268 {
270
271 array<string> friends_simple = new array<string>;
272 for ( int i = 0; i < friend_list.Count(); ++i )
273 {
274 string uid = friend_list[i].m_Uid;
276 BiosFriendInfo newBfi = friend_list[i];
277
278 if (storedBfi)
279 {
280 if ( !BiosFriendInfo.Compare( storedBfi, newBfi ) )
281 {
282 friends_simple.Insert( newBfi.
m_Uid );
283 }
285 }
286 else
287 {
289 friends_simple.Insert( newBfi.
m_Uid );
290 }
291 }
292
294 {
295 if ( ClientData.m_LastNewPlayers && ClientData.m_LastNewPlayers.m_PlayerList.Count() > 0 )
296 {
297 foreach ( SyncPlayer player : ClientData.m_LastNewPlayers.m_PlayerList )
298 {
300 {
301 NotificationSystem.AddNotification(
NotificationType.FRIEND_CONNECTED, NotificationSystem.DEFAULT_TIME_DISPLAYED, player.
m_PlayerName +
" " +
"#ps4_invite_has_joined_your_session" );
302 }
303 }
304 ClientData.m_LastNewPlayers.m_PlayerList.Clear();
305 }
306 }
308 }
309 }
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.