#24 - Remove IGameEvent.cs

This commit is contained in:
Adam Ramberg 2019-04-05 10:47:38 +02:00
parent 3ee29b983b
commit 16ab2263b3
3 changed files with 2 additions and 30 deletions

View File

@ -4,7 +4,7 @@ using UnityEngine;
namespace UnityAtoms
{
public abstract class GameEvent<T> : ScriptableObject, IGameEvent<T>
public abstract class GameEvent<T> : ScriptableObject
{
private readonly List<IGameEventListener<T>> eventListeners = new List<IGameEventListener<T>>();
@ -27,7 +27,7 @@ namespace UnityAtoms
}
}
public abstract class GameEvent<T1, T2> : ScriptableObject, IGameEvent<T1, T2>
public abstract class GameEvent<T1, T2> : ScriptableObject
{
private readonly List<IGameEventListener<T1, T2>> eventListeners = new List<IGameEventListener<T1, T2>>();

View File

@ -1,17 +0,0 @@
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);
void RegisterListener(IGameEventListener<T1, T2> listener);
void UnregisterListener(IGameEventListener<T1, T2> listener);
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 312891f88a60e4f43ac11385b45afbe1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: