36 lines
763 B
TypeScript
36 lines
763 B
TypeScript
import * as THREE from "three";
|
|
|
|
export class SkinObject extends THREE.Group {
|
|
readonly slim: boolean;
|
|
readonly head: THREE.Group;
|
|
readonly body: THREE.Group;
|
|
readonly rightArm: THREE.Group;
|
|
readonly leftArm: THREE.Group;
|
|
readonly rightLeg: THREE.Group;
|
|
readonly leftLeg: THREE.Group;
|
|
|
|
constructor(
|
|
slim: boolean,
|
|
layer1Material: THREE.Material,
|
|
layer2Material: THREE.Material,
|
|
);
|
|
}
|
|
|
|
export class CapeObject extends THREE.Group {
|
|
readonly cape: THREE.Mesh;
|
|
|
|
constructor(capeMaterial: THREE.Material);
|
|
}
|
|
|
|
export class PlayerObject extends THREE.Group {
|
|
readonly skin: SkinObject;
|
|
readonly cape: CapeObject;
|
|
|
|
constructor(
|
|
slim: boolean,
|
|
layer1Material: THREE.Material,
|
|
layer2Material: THREE.Material,
|
|
capeMaterial: THREE.Material,
|
|
);
|
|
}
|