Skip to content

API / PixiArmatureDisplay

类: PixiArmatureDisplay

定义于: pixi/PixiArmatureDisplay.ts:34

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

继承

  • Container<ContainerChild>

实现

构造函数

构造函数

ts
new PixiArmatureDisplay(): PixiArmatureDisplay;

定义于: pixi/PixiArmatureDisplay.ts:45

返回

PixiArmatureDisplay

重写了

ts
Container<ContainerChild>.constructor

访问器

animation

Getter 签名

ts
get animation(): Animation;

定义于: pixi/PixiArmatureDisplay.ts:240

动画播放器。

返回

Animation

动画播放器。

实现了

IArmatureProxy.animation


armature

Getter 签名

ts
get armature(): Armature;

定义于: pixi/PixiArmatureDisplay.ts:233

骨架。

返回

Armature

骨架。

实现了

IArmatureProxy.armature

方法

addDBEventListener()

ts
addDBEventListener(
   type: EventStringType, 
   listener: (event: EventObject) => void, 
   target: any): void;

定义于: pixi/PixiArmatureDisplay.ts:219

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

参数

参数类型描述
typeEventStringType事件类型。
listener(event: EventObject) => void事件侦听器。
targetany侦听函数绑定的 this 对象。

返回

void

实现了

IArmatureProxy.addDBEventListener


dbClear()

ts
dbClear(): void;

定义于: pixi/PixiArmatureDisplay.ts:58

Internal

返回

void

实现了

IArmatureProxy.dbClear


dbInit()

ts
dbInit(armature: Armature): void;

定义于: pixi/PixiArmatureDisplay.ts:51

Internal

参数

参数类型
armatureArmature

返回

void

实现了

IArmatureProxy.dbInit


dbUpdate()

ts
dbUpdate(): void;

定义于: pixi/PixiArmatureDisplay.ts:73

Internal

返回

void

实现了

IArmatureProxy.dbUpdate


destroy()

ts
destroy(): void;

定义于: pixi/PixiArmatureDisplay.ts:196

返回

void

继承文档

重写了

ts
Container.destroy

dispose()

ts
dispose(disposeProxy: boolean): void;

定义于: pixi/PixiArmatureDisplay.ts:184

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

参数

参数类型默认值
disposeProxybooleantrue

返回

void

示例

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

实现了

IArmatureProxy.dispose


hasDBEventListener()

ts
hasDBEventListener(type: EventStringType): boolean;

定义于: pixi/PixiArmatureDisplay.ts:210

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

参数

参数类型描述
typeEventStringTypeEvent type.

返回

boolean

实现了

IArmatureProxy.hasDBEventListener


removeDBEventListener()

ts
removeDBEventListener(
   type: EventStringType, 
   listener: (event: EventObject) => void, 
   target: any): void;

定义于: pixi/PixiArmatureDisplay.ts:226

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

参数

参数类型描述
typeEventStringType事件类型。
listener(event: EventObject) => void事件侦听器。
targetany侦听函数绑定的 this 对象。

返回

void

实现了

IArmatureProxy.removeDBEventListener

Released under the MIT License.