Orange Event Manager
Orange Event Manager 1.0Hudell
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');
Plugin
Get it from here
Dependencies
None, but MVCommons is recommended.
FAQ
I'll keep a small FAQ here for easy reference.
Credit and Thanks
- Hudell
本贴来自国际rpgmaker官方论坛作者:Hudell处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/orange-event-manager.46504/
页:
[1]