Introduction
This plugin is intended to be used by other scripts. It will allow scripters to create event listeners and attach functions or common events to them.
How to Use
You can create your own eventmanager class using MVC:
Code:
var MyClass = MVC.shallowClone(OrangeEventManager);
To attach a method to an event, call:
Code:
MyClass.on('something', MyClass.doSomething);
To attach an RM common event to an event, call:
Code:
var commonEventId = 15;MyClass.on('something', commonEventId);
To run everything associated with an event, call:
Code:
MyClass.runEvent('something');