Create interfaces for DownloadTrackingComposite to consume

This commit is contained in:
naoey
2019-06-11 22:42:57 +05:30
parent d903ad2186
commit 4a6074865e
5 changed files with 72 additions and 27 deletions

View 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;
}
}