Skip to content

mc-cc-scripts/eventHandler-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eventHandler-lib

This eventHandler simulates EventHandlers similar to those of C#

Example

--- Require
---@class eventHandler
local eventHandler = require("eventHandler")

--- Init Event, do not forget that
local testEvent = eventHandler('Test')

--- Add as many callbacks for the Event as required
local callbackObj = testEvent:AddCallback(function(parameter)
    print(parameter)
end)

--- Invoke Event
testEvent:invoke('Started Callback with Id: ' .. callbackObj.callbackID)

Executed

About

This EventHandler simulates modern EventHandlers like those of C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages