Browse Source

Fix a type description.

Atsushi 5 years ago
parent
commit
f5957f06b5
1 changed files with 15 additions and 1 deletions
  1. 15 1
      examples/jsm/misc/MD2Character.d.ts

+ 15 - 1
examples/jsm/misc/MD2Character.d.ts

@@ -1,9 +1,17 @@
 import {
 import {
 	Object3D,
 	Object3D,
 	Mesh,
 	Mesh,
-	Texture
+	Texture,
+	AnimationMixer
 } from '../../../src/Three';
 } from '../../../src/Three';
 
 
+export interface MD2PartsConfig {
+	baseUrl: string,
+	body: string,
+	skins: string[],
+	weapons: [string, string][],
+}
+
 export class MD2Character {
 export class MD2Character {
 
 
 	constructor();
 	constructor();
@@ -14,7 +22,13 @@ export class MD2Character {
 	meshWeapon: Mesh | null;
 	meshWeapon: Mesh | null;
 	skinsBody: Texture[];
 	skinsBody: Texture[];
 	skinsWeapon: Texture[];
 	skinsWeapon: Texture[];
+	weapons: Mesh[];
+	activeAnimation: string | null;
+	mixer: AnimationMixer | null;
+	loadCounter: number;
 
 
+	onLoadComplete(): void;
+	loadParts( config: MD2PartsConfig ): void;
 	setPlaybackRate( rate: number ): void;
 	setPlaybackRate( rate: number ): void;
 	setWireframe( wireframeEnabled: boolean ): void;
 	setWireframe( wireframeEnabled: boolean ): void;
 	setSkin( index: number ): void;
 	setSkin( index: number ): void;