2019-06-11 23:47:05 +05:30
|
|
|
|
// 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-11 22:42:57 +05:30
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Database
|
|
|
|
|
{
|
2019-06-12 18:35:34 +05:30
|
|
|
|
/// <summary>
|
2019-11-17 20:48:23 +08:00
|
|
|
|
/// Represents a model manager that publishes events when <typeparamref name="TModel"/>s are added or removed.
|
2019-06-12 18:35:34 +05:30
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TModel">The model type.</typeparam>
|
2019-06-19 01:57:38 +09:00
|
|
|
|
public interface IModelManager<out TModel>
|
2019-06-12 18:35:34 +05:30
|
|
|
|
where TModel : class
|
2019-06-11 22:42:57 +05:30
|
|
|
|
{
|
2019-06-26 11:40:33 +09:00
|
|
|
|
event Action<TModel> ItemAdded;
|
2019-06-11 22:42:57 +05:30
|
|
|
|
|
|
|
|
|
event Action<TModel> ItemRemoved;
|
|
|
|
|
}
|
|
|
|
|
}
|