You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
586 B
15 lines
586 B
using System;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// This interface defines an observable. Since registering those is fairly generic, we also just keep a generic one around.
|
|
/// Works somewhat similar to IObservable<T>, except that it's our own really.
|
|
/// While we use generics here, theoretically hardcoding Item types would do the job
|
|
/// </summary>
|
|
public interface IModelObservable<T>
|
|
{
|
|
IDisposable RegisterObserver(IShopModelObserver<T> observer);
|
|
void RemoveObserver(IShopModelObserver<T> observer);
|
|
void OnRemove(T val);
|
|
void OnSelect(T val);
|
|
}
|
|
|