mirror of
https://github.com/ppy/osu
synced 2024-12-11 01:19:26 +00:00
21 lines
653 B
C#
21 lines
653 B
C#
// 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;
|
|
using osu.Framework.Bindables;
|
|
|
|
namespace osu.Game.Database
|
|
{
|
|
/// <summary>
|
|
/// Represents a model manager that publishes events when <typeparamref name="TModel"/>s are added or removed.
|
|
/// </summary>
|
|
/// <typeparam name="TModel">The model type.</typeparam>
|
|
public interface IModelManager<TModel>
|
|
where TModel : class
|
|
{
|
|
IBindable<WeakReference<TModel>> ItemUpdated { get; }
|
|
|
|
IBindable<WeakReference<TModel>> ItemRemoved { get; }
|
|
}
|
|
}
|