AR_Engine_SDK
|
Functions | |
function XEEventBase | new () end |
function XEEventBase | Tick (fInterval) end |
function XEEventBase | Release () end |
function XEEventBase | Execute (pWorld) end |
function XEEventBase | IsReceiverInChannel (szChannelName) end |
function XEEventBase | GetEventList (pWorld, pHasTheEvent) end |
function XEEventBase | GetTypeName () end |
function XEEventBase | SetData (val) end |
function XEEventBase | GetData () end |
function XEEventBase | SetSender (who) end |
function XEEventBase | GetSender () end |
function XEEventBase | SetExcutable (what) end |
function XEEventBase | GetExcutable () end |
function XEEventBase | SetName (szName) end |
function XEEventBase | GetName () end |
function XEEventBase | AddListener (pListener) end |
function XEEventBase | RemoveListener (pListener) end |
function XEEventBase | SetRemove () end |
function XEEventBase | IsRemoved () end |
function XEEventBase | SetRemoveMode (erm) end |
function XEEventBase | GetRemoveMode () end |
function XEEventBase | SetExecuteMode (eem) end |
function XEEventBase | GetExecuteMode () end |
function XEEventBase | SetReserve () end |
function XEEventBase | SetTickable (bEnable) end |
function XEEventBase | IsTickable () end |
function XEEventBase | SetCountdownTime (fMilliseconds) end |
function XEEventBase | GetCountdownTime () end |
function XEEventBase | SetEventStatus (erm) end |
function XEEventBase | GetEventStatus () end |
Variables | |
EVENT_STATUS_READY = 0 | |
EVENT_STATUS_EXPLAIN = 0 | |
EVENT_STATUS_ENTRANCE = 0 | |
EVENT_STATUS_TRIGGER = 0 | |
EVENT_STATUS_RESTORE = 0 | |
EVENT_STATUS_CUSTOM = 0 | |
EVENT_STATUS_RELEASE = 0 | |
XEEventBase = {} | |
XEEventBase | ERM_AUTO = 0 |
XEEventBase | ERM_MANUAL = 0 |
XEEventBase | EEM_AUTO = 0 |
XEEventBase | EEM_MANUAL = 0 |
function XEEventBase AddListener | ( | pListener | ) |
添加事件监听者
pListener | XEEventBase::Listener |
function XEEventBase Execute | ( | pWorld | ) |
function XEEventBase GetCountdownTime | ( | ) |
获取当前事件的倒计时时刻
function XEEventBase GetData | ( | ) |
function XEEventBase GetEventList | ( | pWorld | , |
pHasTheEvent | |||
) |
获取事件列表
pWorld | XEWorld 世界指针,如果为空,返回全局事件列表;如果不为空,返回对应这个世界的事件列表 |
pHasTheEvent | boolean 返回列表中是否包含当前这个事件 |
function XEEventBase GetEventStatus | ( | ) |
获取当前事件的状态
function XEEventBase GetExcutable | ( | ) |
判断事件是否可执行
function XEEventBase GetExecuteMode | ( | ) |
获取事件被执行的方式(手动/自动)
function XEEventBase GetName | ( | ) |
获取事件名称
function XEEventBase GetRemoveMode | ( | ) |
获取事件被移除的方式(手动/自动)
function XEEventBase GetSender | ( | ) |
获取事件发送者
function XEEventBase GetTypeName | ( | ) |
返回当前事件类型
function XEEventBase IsReceiverInChannel | ( | szChannelName | ) |
判断事件的广播接受者是否跟当前事件在同一个通道内
szChannelName | string |
function XEEventBase IsRemoved | ( | ) |
判断被移除的状态
function XEEventBase IsTickable | ( | ) |
判断当前事件是否启用Tick
function XEEventBase new | ( | ) |
XEEventBase_new00
function XEEventBase Release | ( | ) |
释放事件资源
function XEEventBase RemoveListener | ( | pListener | ) |
移除事件监听者
pListener | XEEventBase::Listener |
function XEEventBase SetCountdownTime | ( | fMilliseconds | ) |
设置当前事件的倒计时时刻,如果事件设置了延时触发,则会启用倒计时,倒计时为0时,该事件被执行
fMilliseconds | number |
function XEEventBase SetData | ( | val | ) |
function XEEventBase SetEventStatus | ( | erm | ) |
设置当前事件的状态
erm | number |
function XEEventBase SetExcutable | ( | what | ) |
设置事件是否可执行
what | userdata |
function XEEventBase SetExecuteMode | ( | eem | ) |
设置事件被执行的方式(手动/自动)
eem | number |
function XEEventBase SetName | ( | szName | ) |
设置事件名称
szName | string |
function XEEventBase SetRemove | ( | ) |
设置被移除的状态(事件被移除状态为true,表明当前事件该被执行了)
function XEEventBase SetRemoveMode | ( | erm | ) |
设置事件被移除的方式(手动/自动)
erm | number |
function XEEventBase SetReserve | ( | ) |
恢复事件(设置事件被删除的状态为false)
function XEEventBase SetSender | ( | who | ) |
设置事件发送者
who | userdata |
function XEEventBase SetTickable | ( | bEnable | ) |
设置当前事件是否启用Tick
bEnable | boolean |
function XEEventBase Tick | ( | fInterval | ) |
更新事件
fInterval | number 间隔(ms) |
XEEventBase EEM_AUTO = 0 |
XEEventBase EEM_MANUAL = 0 |
XEEventBase ERM_AUTO = 0 |
XEEventBase ERM_MANUAL = 0 |
EVENT_STATUS_CUSTOM = 0 |
EVENT_STATUS_ENTRANCE = 0 |
EVENT_STATUS_EXPLAIN = 0 |
EVENT_STATUS_READY = 0 |
EVENT_STATUS_RELEASE = 0 |
EVENT_STATUS_RESTORE = 0 |
EVENT_STATUS_TRIGGER = 0 |
XEEventBase = {} |