// Copyright (c) ppy Pty Ltd . 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 { /// /// Represents a model manager that publishes events when s are added or removed. /// /// The model type. public interface IModelManager where TModel : class { /// /// A bindable which contains a weak reference to the last item that was updated. /// This is not thread-safe and should be scheduled locally if consumed from a drawable component. /// IBindable> ItemUpdated { get; } /// /// A bindable which contains a weak reference to the last item that was removed. /// This is not thread-safe and should be scheduled locally if consumed from a drawable component. /// IBindable> ItemRemoved { get; } } }