private static void on_friend_removed_you(Event_FriendRemovedYou ev) { if (!BasicPlayerInfoOps.RemoveOne(friends, ev.PlayerInfo)) { Debug.Log("Server told us a friend has been removed but the data store did not know about the friend."); } }
private static void on_friend_accepted_request(Event_FriendAcceptedRequest ev) { if (!BasicPlayerInfoOps.RemoveOne(pending_friends_outgoing, ev.PlayerInfo)) { Debug.Log("Server told us a friend request has been accepted but the data store did not know about the outgoing friend request."); } friends.Add(ev.PlayerInfo); }
private static void on_remove_friend(BasicPlayerInfo player, RemoveFriendResult r) { if (r.NoLongerFriend) { if (!BasicPlayerInfoOps.RemoveOne(friends, player)) { Debug.Log("Tried to remove friend but friend was not well... a friend."); } } }
private static void on_unignored_player(BasicPlayerInfo player, UnIgnorePlayerResult r) { if (!r.IsIgnored) { if (!BasicPlayerInfoOps.RemoveOne(ignored, player)) { Debug.LogError("Server said to us player is ignored but according to the data store the player was never ignored!"); } } }