瀏覽代碼

Merge pull request #17657 from f-a24/dev

MD2Character.d.ts: Fix types
Michael Herzog 5 年之前
父節點
當前提交
2e626e5496
共有 1 個文件被更改,包括 15 次插入1 次删除
  1. 15 1
      examples/jsm/misc/MD2Character.d.ts

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

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