skinview3d/types/model.d.ts

36 lines
780 B
TypeScript
Raw Normal View History

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