Пример #1
0
        Task IMultiplayerClient.UserKicked(MultiplayerRoomUser user)
        {
            if (LocalUser == null)
            {
                return(Task.CompletedTask);
            }

            if (user.Equals(LocalUser))
            {
                LeaveRoom();
            }

            return(handleUserLeft(user, UserKicked));
        }
Пример #2
0
        Task IMultiplayerClient.UserKicked(MultiplayerRoomUser user)
        {
            if (LocalUser == null)
            {
                return(Task.CompletedTask);
            }

            if (user.Equals(LocalUser))
            {
                LeaveRoom();
            }

            // TODO: also inform users of the kick operation.
            return(((IMultiplayerClient)this).UserLeft(user));
        }