osu/osu.Game/Database/IModelManager.cs

21 lines
653 B
C#
Raw Normal View History

// 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.
using System;
2020-05-19 07:44:22 +00:00
using osu.Framework.Bindables;
namespace osu.Game.Database
{
/// <summary>
2019-11-17 12:48:23 +00:00
/// Represents a model manager that publishes events when <typeparamref name="TModel"/>s are added or removed.
/// </summary>
/// <typeparam name="TModel">The model type.</typeparam>
2020-05-19 07:44:22 +00:00
public interface IModelManager<TModel>
where TModel : class
{
IBindable<WeakReference<TModel>> ItemUpdated { get; }
2020-05-19 07:44:22 +00:00
IBindable<WeakReference<TModel>> ItemRemoved { get; }
}
}