Adds an object that will catch events. Generally not recommended for usage as it will catch any event that is fired, meaning it will be doing unnecessary operations and therefore may have a severe effect on performance.
Adds an object that will catch events. Generally not recommended for usage as it will catch any event that is fired, meaning it will be doing unnecessary operations and therefore may have a severe effect on performance.
1 table receiver
the object that will be receiving events.
events:addReceiver({handleEvent = function(self, event, data) print("received event", event) end})