mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
21 lines
574 B
C#
21 lines
574 B
C#
|
|
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;
|
|
}
|
|
}
|