Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using UnityEngine.TestTools;
|
||||
|
||||
namespace BracerLib.Events
|
||||
{
|
||||
[ExcludeFromCoverage]
|
||||
public class GameEventArgs : EventArgs
|
||||
{
|
||||
public new static GameEventArgs Empty => new GameEventArgs();
|
||||
|
||||
public object[] Args { get; }
|
||||
|
||||
public GameEventArgs(object eventArg)
|
||||
{
|
||||
Args = new[] { eventArg };
|
||||
}
|
||||
|
||||
public GameEventArgs(params object[] args)
|
||||
{
|
||||
Args = args;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 590da2e23275974478933650ab2f2157
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9c52142ef5bc2ae4ea59e76830055910
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace BracerLib.Events.Interfaces
|
||||
{
|
||||
public interface IGameEvent
|
||||
{
|
||||
event Action<GameEventArgs> BeforeEvent;
|
||||
event Action<GameEventArgs> DuringEvent;
|
||||
event Action<GameEventArgs> AfterEvent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5495905009a14d24ad885fa5d12da919
|
||||
timeCreated: 1777815885
|
||||
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace BracerLib.Events
|
||||
{
|
||||
[Serializable]
|
||||
public class UnityInteractionEvent : UnityEvent<Collider2D, Collider2D> { }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3153b3a444cdb9f48ab31c24120b4504
|
||||
Reference in New Issue
Block a user