Initial commit

This commit is contained in:
2026-06-02 18:57:47 -04:00
commit 59d26a915d
268 changed files with 41240 additions and 0 deletions
+23
View File
@@ -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
+8
View File
@@ -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