2020-01-07 06:29:51 +01:00
|
|
|
import { Group, Mesh, MeshBasicMaterial, Object3D } from "three";
|
2018-10-28 16:55:30 +01:00
|
|
|
/**
|
|
|
|
|
* Notice that innerLayer and outerLayer may NOT be the direct children of the Group.
|
|
|
|
|
*/
|
2020-01-07 06:29:51 +01:00
|
|
|
export declare class BodyPart extends Group {
|
|
|
|
|
readonly innerLayer: Object3D;
|
|
|
|
|
readonly outerLayer: Object3D;
|
|
|
|
|
constructor(innerLayer: Object3D, outerLayer: Object3D);
|
2018-10-28 16:55:30 +01:00
|
|
|
}
|
2020-01-07 06:29:51 +01:00
|
|
|
export declare class SkinObject extends Group {
|
2018-10-28 16:55:30 +01:00
|
|
|
readonly head: BodyPart;
|
|
|
|
|
readonly body: BodyPart;
|
|
|
|
|
readonly rightArm: BodyPart;
|
|
|
|
|
readonly leftArm: BodyPart;
|
|
|
|
|
readonly rightLeg: BodyPart;
|
|
|
|
|
readonly leftLeg: BodyPart;
|
|
|
|
|
private modelListeners;
|
|
|
|
|
private _slim;
|
2020-01-07 06:29:51 +01:00
|
|
|
constructor(layer1Material: MeshBasicMaterial, layer2Material: MeshBasicMaterial);
|
|
|
|
|
get slim(): boolean;
|
|
|
|
|
set slim(value: boolean);
|
2018-10-28 16:55:30 +01:00
|
|
|
private getBodyParts;
|
|
|
|
|
setInnerLayerVisible(value: boolean): void;
|
|
|
|
|
setOuterLayerVisible(value: boolean): void;
|
|
|
|
|
}
|
2020-01-07 06:29:51 +01:00
|
|
|
export declare class CapeObject extends Group {
|
|
|
|
|
readonly cape: Mesh;
|
|
|
|
|
constructor(capeMaterial: MeshBasicMaterial);
|
2018-10-28 16:55:30 +01:00
|
|
|
}
|
2020-01-07 06:29:51 +01:00
|
|
|
export declare class PlayerObject extends Group {
|
2018-10-28 16:55:30 +01:00
|
|
|
readonly skin: SkinObject;
|
|
|
|
|
readonly cape: CapeObject;
|
2020-01-07 06:29:51 +01:00
|
|
|
constructor(layer1Material: MeshBasicMaterial, layer2Material: MeshBasicMaterial, capeMaterial: MeshBasicMaterial);
|
2018-10-28 16:55:30 +01:00
|
|
|
}
|