2019-06-12 02:17:05 +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.
|
|
|
|
|
|
2019-06-12 01:12:57 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Database
|
|
|
|
|
{
|
2019-06-12 21:05:34 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a model manager that publishes events when <see cref="TModel"/>s are added or removed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TModel">The model type.</typeparam>
|
2019-06-19 00:57:38 +08:00
|
|
|
|
public interface IModelManager<out TModel>
|
2019-06-12 21:05:34 +08:00
|
|
|
|
where TModel : class
|
2019-06-12 01:12:57 +08:00
|
|
|
|
{
|
2019-06-26 10:40:33 +08:00
|
|
|
|
event Action<TModel> ItemAdded;
|
2019-06-12 01:12:57 +08:00
|
|
|
|
|
|
|
|
|
event Action<TModel> ItemRemoved;
|
|
|
|
|
}
|
|
|
|
|
}
|