Skip to content

API / IArmatureProxy

接口: IArmatureProxy

定义于: armature/IArmatureProxy.ts:36

骨架代理接口,对接的引擎需要对其进行具体实现。

继承

属性

animation

ts
readonly animation: Animation;

定义于: armature/IArmatureProxy.ts:77

动画播放器。


armature

ts
readonly armature: Armature;

定义于: armature/IArmatureProxy.ts:69

骨架。

方法

addDBEventListener()

ts
addDBEventListener(
   type: EventStringType, 
   listener: Function, 
   thisObject: any): void;

定义于: event/IEventDispatcher.ts:84

添加特定事件类型的事件侦听器,以使侦听器能够接收事件通知。

参数

参数类型描述
typeEventStringType事件类型。
listenerFunction事件侦听器。
thisObjectany侦听函数绑定的 this 对象。

返回

void

继承自

IEventDispatcher.addDBEventListener


dbClear()

ts
dbClear(): void;

定义于: armature/IArmatureProxy.ts:44

Internal

返回

void


dbInit()

ts
dbInit(armature: Armature): void;

定义于: armature/IArmatureProxy.ts:40

Internal

参数

参数类型
armatureArmature

返回

void


dbUpdate()

ts
dbUpdate(): void;

定义于: armature/IArmatureProxy.ts:48

Internal

返回

void


dispatchDBEvent()

ts
dispatchDBEvent(type: EventStringType, eventObject: EventObject): void;

定义于: event/IEventDispatcher.ts:67

分派特定的事件到事件流中。

参数

参数类型描述
typeEventStringType事件类型。
eventObjectEventObject事件数据。

返回

void

继承自

IEventDispatcher.dispatchDBEvent


dispose()

ts
dispose(disposeProxy: boolean): void;

定义于: armature/IArmatureProxy.ts:61

释放该实例和骨架。 (骨架会回收到对象池)

参数

参数类型
disposeProxyboolean

返回

void

示例

ts
    removeChild(armatureDisplay);
    armatureDisplay.dispose();

hasDBEventListener()

ts
hasDBEventListener(type: EventStringType): boolean;

定义于: event/IEventDispatcher.ts:52

检查是否为特定的事件类型注册了任何侦听器。

参数

参数类型描述
typeEventStringTypeEvent type.

返回

boolean

继承自

IEventDispatcher.hasDBEventListener


removeDBEventListener()

ts
removeDBEventListener(
   type: EventStringType, 
   listener: Function, 
   thisObject: any): void;

定义于: event/IEventDispatcher.ts:101

删除特定事件类型的侦听器。

参数

参数类型描述
typeEventStringType事件类型。
listenerFunction事件侦听器。
thisObjectany侦听函数绑定的 this 对象。

返回

void

继承自

IEventDispatcher.removeDBEventListener

Released under the MIT License.