Skip to content
/ sharpy Public

C# custom event handling library, useful for creating various hooks, creating modular/plugin systems, etc.

License

Notifications You must be signed in to change notification settings

inlife/sharpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sharpy

C# custom event handling library, useful for creating various hooks, creating modular/plugin systems, etc.


Usage

Create instance, all your events and handlers will be stored there

var events = new Sharpy.EventManager();

Now you can add some handlers

Note: First parameter is your event name, and second is the callback

events.On("MyEvent", (e) => {
    // MyHandler
});

After some time, and some calculations you can trigger your event

Note: There may be multiple event handlers on single event

events.Trigger("MyEvent");

Examples

Note: Full examples can be found in "examples" folder

About

C# custom event handling library, useful for creating various hooks, creating modular/plugin systems, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages