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
动画播放器。
返回
动画播放器。
实现了
armature
Getter 签名
ts
get armature(): Armature;
定义于: pixi/PixiArmatureDisplay.ts:233
骨架。
返回
骨架。
实现了
方法
addDBEventListener()
ts
addDBEventListener(
type: EventStringType,
listener: (event: EventObject) => void,
target: any): void;
定义于: pixi/PixiArmatureDisplay.ts:219
添加特定事件类型的事件侦听器,以使侦听器能够接收事件通知。
参数
参数 | 类型 | 描述 |
---|---|---|
type | EventStringType | 事件类型。 |
listener | (event : EventObject ) => void | 事件侦听器。 |
target | any | 侦听函数绑定的 this 对象。 |
返回
void
实现了
IArmatureProxy
.addDBEventListener
dbClear()
ts
dbClear(): void;
定义于: pixi/PixiArmatureDisplay.ts:58
Internal
返回
void
实现了
dbInit()
ts
dbInit(armature: Armature): void;
定义于: pixi/PixiArmatureDisplay.ts:51
Internal
参数
参数 | 类型 |
---|---|
armature | Armature |
返回
void
实现了
dbUpdate()
ts
dbUpdate(): void;
定义于: pixi/PixiArmatureDisplay.ts:73
Internal
返回
void
实现了
destroy()
ts
destroy(): void;
定义于: pixi/PixiArmatureDisplay.ts:196
返回
void
继承文档
重写了
ts
Container.destroy
dispose()
ts
dispose(disposeProxy: boolean): void;
定义于: pixi/PixiArmatureDisplay.ts:184
释放该实例和骨架。 (骨架会回收到对象池)
参数
参数 | 类型 | 默认值 |
---|---|---|
disposeProxy | boolean | true |
返回
void
示例
ts
removeChild(armatureDisplay);
armatureDisplay.dispose();
实现了
hasDBEventListener()
ts
hasDBEventListener(type: EventStringType): boolean;
定义于: pixi/PixiArmatureDisplay.ts:210
检查是否为特定的事件类型注册了任何侦听器。
参数
参数 | 类型 | 描述 |
---|---|---|
type | EventStringType | Event type. |
返回
boolean
实现了
IArmatureProxy
.hasDBEventListener
removeDBEventListener()
ts
removeDBEventListener(
type: EventStringType,
listener: (event: EventObject) => void,
target: any): void;
定义于: pixi/PixiArmatureDisplay.ts:226
删除特定事件类型的侦听器。
参数
参数 | 类型 | 描述 |
---|---|---|
type | EventStringType | 事件类型。 |
listener | (event : EventObject ) => void | 事件侦听器。 |
target | any | 侦听函数绑定的 this 对象。 |
返回
void