Skip to content

API / SurfaceData

类: SurfaceData ​

定义于: model/ArmatureData.ts:546

Internal

继承 ​

构造函数 ​

构造函数 ​

ts
new SurfaceData(): SurfaceData;

返回 ​

SurfaceData

继承自 ​

BoneData.constructor

属性 ​

geometry ​

ts
readonly geometry: GeometryData;

定义于: model/ArmatureData.ts:553


hashCode ​

ts
readonly hashCode: number;

定义于: core/BaseObject.ts:156

分配给此实例的唯一标识号。

继承自 ​

BoneData.hashCode


length ​

ts
length: number;

定义于: model/ArmatureData.ts:495

骨骼长度。

继承自 ​

BoneData.length


name ​

ts
name: string;

定义于: model/ArmatureData.ts:507

骨骼名称。

继承自 ​

BoneData.name


parent ​

ts
parent: BoneData;

定义于: model/ArmatureData.ts:523

父骨骼数据。

继承自 ​

BoneData.parent


segmentX ​

ts
segmentX: number;

定义于: model/ArmatureData.ts:551


segmentY ​

ts
segmentY: number;

定义于: model/ArmatureData.ts:552

方法 ​

returnToPool() ​

ts
returnToPool(): void;

定义于: core/BaseObject.ts:167

清除该实例的所有数据并将其返还对象池。

返回 ​

void

继承自 ​

BoneData.returnToPool


borrowObject() ​

ts
static borrowObject<T>(objectConstructor: () => T): T;

定义于: core/BaseObject.ts:136

从对象池中获取特定类的实例。

类型参数 ​

类型参数
T extends BaseObject

参数 ​

参数类型描述
objectConstructor() => T特定的类。

返回 ​

T

继承自 ​

BoneData.borrowObject


clearPool() ​

ts
static clearPool(objectConstructor: typeof BaseObject): void;

定义于: core/BaseObject.ts:111

清除特定对象池的缓存实例。

参数 ​

参数类型默认值描述
objectConstructortypeof BaseObjectnull特定的类。 (不设置则清除所有缓存的实例)

返回 ​

void

继承自 ​

BoneData.clearPool


setMaxCount() ​

ts
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;

定义于: core/BaseObject.ts:72

设置特定对象池的最大缓存数量。

参数 ​

参数类型描述
objectConstructortypeof BaseObject特定的类。 (不设置则设置所有对象池的最大缓存数量)
maxCountnumber最大缓存数量。

返回 ​

void

继承自 ​

BoneData.setMaxCount


toString() ​

ts
static toString(): string;

定义于: model/ArmatureData.ts:547

返回 ​

string

重写了 ​

BoneData.toString

Released under the MIT License.