skinview3d/types/model.d.ts

34 lines
790 B
TypeScript
Raw Normal View History

2018-02-09 05:29:42 +01:00
import * as THREE from "three";
2018-02-04 15:15:03 +01:00
export class SkinObject extends THREE.Group {
2018-07-02 09:46:48 +02:00
public slim: boolean;
2018-02-09 05:41:14 +01:00
public readonly head: THREE.Group;
public readonly body: THREE.Group;
public readonly rightArm: THREE.Group;
public readonly leftArm: THREE.Group;
public readonly rightLeg: THREE.Group;
public readonly leftLeg: THREE.Group;
2018-02-04 15:15:03 +01:00
2018-02-09 05:29:42 +01:00
constructor(
layer1Material: THREE.Material,
layer2Material: THREE.Material,
);
2018-02-04 15:15:03 +01:00
}
export class CapeObject extends THREE.Group {
2018-02-09 05:41:14 +01:00
public readonly cape: THREE.Mesh;
2018-02-04 15:15:03 +01:00
2018-02-09 05:29:42 +01:00
constructor(capeMaterial: THREE.Material);
2018-02-04 15:15:03 +01:00
}
export class PlayerObject extends THREE.Group {
2018-02-09 05:41:14 +01:00
public readonly skin: SkinObject;
public readonly cape: CapeObject;
2018-02-04 15:15:03 +01:00
2018-02-09 05:29:42 +01:00
constructor(
layer1Material: THREE.Material,
layer2Material: THREE.Material,
capeMaterial: THREE.Material,
);
2018-02-04 15:15:03 +01:00
}