mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
15 lines
325 B
C#
15 lines
325 B
C#
namespace UnityAtoms
|
|
{
|
|
public interface IGameEvent<T>
|
|
{
|
|
void Raise(T item);
|
|
void RegisterListener(IGameEventListener<T> listener);
|
|
void UnregisterListener(IGameEventListener<T> listener);
|
|
}
|
|
|
|
|
|
public interface IGameEvent<T1, T2>
|
|
{
|
|
void Raise(T1 newItem, T2 oldItem);
|
|
}
|
|
} |