mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
|
/// <reference path="Game.d.ts" />
|
||
|
/// <reference path="gameobjects/Sprite.d.ts" />
|
||
|
/// <reference path="system/animation/Animation.d.ts" />
|
||
|
/// <reference path="system/animation/AnimationLoader.d.ts" />
|
||
|
/// <reference path="system/animation/Frame.d.ts" />
|
||
|
/// <reference path="system/animation/FrameData.d.ts" />
|
||
|
module Phaser {
|
||
|
class AnimationManager {
|
||
|
constructor(game: Game, parent: Sprite);
|
||
|
private _game;
|
||
|
private _parent;
|
||
|
private _anims;
|
||
|
private _frameIndex;
|
||
|
private _frameData;
|
||
|
public currentAnim: Animation;
|
||
|
public currentFrame: Frame;
|
||
|
public loadFrameData(frameData: FrameData): void;
|
||
|
public add(name: string, frames?: any[], frameRate?: number, loop?: bool, useNumericIndex?: bool): void;
|
||
|
private validateFrames(frames, useNumericIndex);
|
||
|
public play(name: string, frameRate?: number, loop?: bool): void;
|
||
|
public stop(name: string): void;
|
||
|
public update(): void;
|
||
|
public frameData : FrameData;
|
||
|
public frameTotal : number;
|
||
|
public frame : number;
|
||
|
public frameName : string;
|
||
|
}
|
||
|
}
|