1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 07:42:52 +08:00
osu-lazer/osu.Game/Online/Metadata/MetadataClient.cs

26 lines
799 B
C#
Raw Normal View History

2022-07-04 16:18:33 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
2022-07-04 16:18:33 +08:00
using System.Threading.Tasks;
using osu.Framework.Graphics;
namespace osu.Game.Online.Metadata
{
2022-11-24 13:32:20 +08:00
public abstract partial class MetadataClient : Component, IMetadataClient, IMetadataServer
2022-07-04 16:18:33 +08:00
{
public abstract Task BeatmapSetsUpdated(BeatmapUpdates updates);
public abstract Task<BeatmapUpdates> GetChangesSince(int queueId);
public Action<int[]>? ChangedBeatmapSetsArrived;
protected Task ProcessChanges(int[] beatmapSetIDs)
{
ChangedBeatmapSetsArrived?.Invoke(beatmapSetIDs.Distinct().ToArray());
return Task.CompletedTask;
}
2022-07-04 16:18:33 +08:00
}
}