mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Update interface to remove items
This commit is contained in:
@ -299,14 +299,14 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
await addPlaylistItem(item).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public override Task RemovePlaylistItem(APIPlaylistItem item)
|
||||
public override Task RemovePlaylistItem(long playlistItemId)
|
||||
{
|
||||
Debug.Assert(Room != null);
|
||||
|
||||
if (Room.Host?.UserID != LocalUser?.UserID)
|
||||
throw new InvalidOperationException("Local user is not the room host.");
|
||||
|
||||
return ((IMultiplayerClient)this).PlaylistItemRemoved(item);
|
||||
return ((IMultiplayerClient)this).PlaylistItemRemoved(playlistItemId);
|
||||
}
|
||||
|
||||
protected override Task<APIBeatmapSet> GetOnlineBeatmapSet(int beatmapId, CancellationToken cancellationToken = default)
|
||||
|
Reference in New Issue
Block a user