mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
#24 - Remove IGameEvent.cs
This commit is contained in:
parent
3ee29b983b
commit
16ab2263b3
@ -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>>();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 312891f88a60e4f43ac11385b45afbe1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user