mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Create interfaces for DownloadTrackingComposite to consume
This commit is contained in:
20
osu.Game/Database/IModelManager.cs
Normal file
20
osu.Game/Database/IModelManager.cs
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public interface IModelManager<TModel>
|
||||
{
|
||||
/// <summary>
|
||||
/// Fired when a new <see cref="TModel"/> becomes available in the database.
|
||||
/// This is not guaranteed to run on the update thread.
|
||||
/// </summary>
|
||||
event Action<TModel, bool> ItemAdded;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when a <see cref="TModel"/> is removed from the database.
|
||||
/// This is not guaranteed to run on the update thread.
|
||||
/// </summary>
|
||||
event Action<TModel> ItemRemoved;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user