예제 #1
0
 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.");
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 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.");
         }
     }
 }
예제 #4
0
 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!");
         }
     }
 }