change `AnimationHandle` to interface
This commit is contained in:
parent
741dc9e3ef
commit
1ec9d098d9
|
|
@ -12,16 +12,12 @@ export function invokeAnimation(
|
||||||
time: number,
|
time: number,
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
declare class AnimationHandle implements IAnimation {
|
export interface AnimationHandle extends IAnimation {
|
||||||
public readonly animation: Animation;
|
readonly animation: Animation;
|
||||||
public paused: boolean;
|
paused: boolean;
|
||||||
public speed: number;
|
speed: number;
|
||||||
|
|
||||||
constructor(animation: Animation);
|
reset(): void;
|
||||||
|
|
||||||
public play(player: PlayerObject, time: number): void;
|
|
||||||
|
|
||||||
public reset(): void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CompositeAnimation implements IAnimation {
|
export class CompositeAnimation implements IAnimation {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue