SuperCLine / EventSource

Event Sourcing pattern in C# used by ECS Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EventSource

Event Sourcing pattern in C# used by ECS Framework.

USage

public struct TEventA
{
    public int a;
    public string b;
}

void Handle_TEventA(TEventA e)
{
    Debug.Log(e.a + ", " + e.b);
}

var eventMgr = new EventMgr();
eventMgr.AddEvent<TEventA>(Handle_TEventA);

var evt = new TEventA() { a = 999, b = "Hello World!" };
eventMgr.SendEvent(evt);

About

Event Sourcing pattern in C# used by ECS Framework

License:GNU General Public License v3.0


Languages

Language:C# 100.0%