mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
9cd5519da3
- Applies a `class` constraint to the generic type in `IModelManager` - Add xmldoc
20 lines
577 B
C#
20 lines
577 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;
|
|
|
|
namespace osu.Game.Database
|
|
{
|
|
/// <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>
|
|
public interface IModelManager<TModel>
|
|
where TModel : class
|
|
{
|
|
event Action<TModel, bool> ItemAdded;
|
|
|
|
event Action<TModel> ItemRemoved;
|
|
}
|
|
}
|