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