Skip to content
forked from inlife/sharpy

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

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

madebynoxc/sharpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%