MVC shop project for software architecture, in Unity.
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.
 
 
 

13 lines
571 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. Could make this 100% generic too...
/// </summary>
public interface IModelObservable<T>
{
IDisposable RegisterObserver(IShopModelObserver<T> observer);
void RemoveObserver(IShopModelObserver<T> observer);
}