skinview3d/types/model.d.ts

38 lines
705 B
TypeScript
Raw Normal View History

2018-02-04 15:15:03 +01:00
import * as THREE from 'three'
type Material = THREE.Material | THREE.Material[]
export class SkinObject extends THREE.Group {
head: THREE.Group
body: THREE.Group
rightArm: THREE.Group
leftArm: THREE.Group
rightLeg: THREE.Group
leftLeg: THREE.Group
constructor(
isSlim: boolean,
layer1Material: Material,
layer2Material: Material
)
}
export class CapeObject extends THREE.Group {
cape: THREE.Mesh
constructor(capeMaterial: Material)
}
export class PlayerObject extends THREE.Group {
slim: boolean
skin: SkinObject
cape: CapeObject
constructor(
isSlim: boolean,
layer1Material: Material,
layer2Material: Material,
capeMaterial: Material
)
}