XSGridEditor
1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
|
1个事件对应的多个回调函数结构 More...
Public Member Functions | |
EmitterItems () | |
构造函数 More... | |
Package Functions | |
void | SetSlot (T callback, int priority, object target=null) |
添加回调函数结构 More... | |
void | Emit (params object[] parameters) |
触发事件回调 More... | |
void | Clear () |
移除全部事件回调 More... | |
void | RemoveSlot (T callback) |
移除事件回调 More... | |
void | RemoveSlot (object target) |
移除事件回调 More... | |
Private Member Functions | |
EmitterItem< T > | FindSlot (T callback) |
查找回调函数结构 More... | |
Private Attributes | |
List< EmitterItem< T > > | _slotArray |
1个事件对应的多个回调函数结构
T | 回调函数类型 |
T | : | Delegate |
|
inline |
构造函数
|
package |
移除全部事件回调
|
package |
触发事件回调
parameters | 回调的参数 |
|
inlineprivate |
查找回调函数结构
callback | 函数对象 |
|
inlinepackage |
移除事件回调
target |
|
inlinepackage |
移除事件回调
callback |
|
inlinepackage |
添加回调函数结构
callback | 函数对象 |
priority | 优先级 |
target | 函数注册在哪个对象(可能不需要这个参数) |
|
private |