add missing `public` modifiers
This commit is contained in:
parent
d86cfa4c87
commit
14fabb3e02
|
|
@ -13,15 +13,15 @@ declare function invokeAnimation(
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
declare class AnimationHandle implements IAnimation {
|
declare class AnimationHandle implements IAnimation {
|
||||||
readonly animation: Animation;
|
public readonly animation: Animation;
|
||||||
paused: boolean;
|
public paused: boolean;
|
||||||
speed: number;
|
public speed: number;
|
||||||
|
|
||||||
constructor(animation: Animation);
|
constructor(animation: Animation);
|
||||||
|
|
||||||
play(player: PlayerObject, time: number): void;
|
public play(player: PlayerObject, time: number): void;
|
||||||
|
|
||||||
reset(): void;
|
public reset(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CompositeAnimation implements IAnimation {
|
export class CompositeAnimation implements IAnimation {
|
||||||
|
|
@ -29,9 +29,9 @@ export class CompositeAnimation implements IAnimation {
|
||||||
|
|
||||||
constructor();
|
constructor();
|
||||||
|
|
||||||
add(animation: Animation): AnimationHandle;
|
public add(animation: Animation): AnimationHandle;
|
||||||
|
|
||||||
play(player: PlayerObject, time: number): void;
|
public play(player: PlayerObject, time: number): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const WalkAnimation: AnimationFn;
|
export const WalkAnimation: AnimationFn;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
|
|
||||||
export class SkinObject extends THREE.Group {
|
export class SkinObject extends THREE.Group {
|
||||||
readonly slim: boolean;
|
public readonly slim: boolean;
|
||||||
readonly head: THREE.Group;
|
public readonly head: THREE.Group;
|
||||||
readonly body: THREE.Group;
|
public readonly body: THREE.Group;
|
||||||
readonly rightArm: THREE.Group;
|
public readonly rightArm: THREE.Group;
|
||||||
readonly leftArm: THREE.Group;
|
public readonly leftArm: THREE.Group;
|
||||||
readonly rightLeg: THREE.Group;
|
public readonly rightLeg: THREE.Group;
|
||||||
readonly leftLeg: THREE.Group;
|
public readonly leftLeg: THREE.Group;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
slim: boolean,
|
slim: boolean,
|
||||||
|
|
@ -17,14 +17,14 @@ export class SkinObject extends THREE.Group {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CapeObject extends THREE.Group {
|
export class CapeObject extends THREE.Group {
|
||||||
readonly cape: THREE.Mesh;
|
public readonly cape: THREE.Mesh;
|
||||||
|
|
||||||
constructor(capeMaterial: THREE.Material);
|
constructor(capeMaterial: THREE.Material);
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PlayerObject extends THREE.Group {
|
export class PlayerObject extends THREE.Group {
|
||||||
readonly skin: SkinObject;
|
public readonly skin: SkinObject;
|
||||||
readonly cape: CapeObject;
|
public readonly cape: CapeObject;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
slim: boolean,
|
slim: boolean,
|
||||||
|
|
|
||||||
|
|
@ -14,32 +14,32 @@ interface SkinViewerOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SkinViewer {
|
export class SkinViewer {
|
||||||
skinUrl: string;
|
public skinUrl: string;
|
||||||
capeUrl: string;
|
public capeUrl: string;
|
||||||
width: number;
|
public width: number;
|
||||||
height: number;
|
public height: number;
|
||||||
readonly domElement: Element;
|
public readonly domElement: Element;
|
||||||
animation: Animation;
|
public animation: Animation;
|
||||||
animationPaused: boolean;
|
public animationPaused: boolean;
|
||||||
animationTime: number;
|
public animationTime: number;
|
||||||
readonly playerObject: PlayerObject;
|
public readonly playerObject: PlayerObject;
|
||||||
readonly disposed: boolean;
|
public readonly disposed: boolean;
|
||||||
readonly camera: THREE.Camera;
|
public readonly camera: THREE.Camera;
|
||||||
readonly renderer: THREE.Renderer;
|
public readonly renderer: THREE.Renderer;
|
||||||
readonly scene: THREE.Scene;
|
public readonly scene: THREE.Scene;
|
||||||
|
|
||||||
constructor(options: SkinViewerOptions);
|
constructor(options: SkinViewerOptions);
|
||||||
|
|
||||||
setSize(width: number, height: number): void;
|
public setSize(width: number, height: number): void;
|
||||||
|
|
||||||
dispose(): void;
|
public dispose(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SkinControl {
|
export class SkinControl {
|
||||||
enableAnimationControl: boolean;
|
public enableAnimationControl: boolean;
|
||||||
readonly skinViewer: SkinViewer;
|
public readonly skinViewer: SkinViewer;
|
||||||
|
|
||||||
constructor(skinViewer: SkinViewer);
|
constructor(skinViewer: SkinViewer);
|
||||||
|
|
||||||
dispose(): void;
|
public dispose(): void;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue