excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
18 lines (17 loc) • 569 B
TypeScript
import { Entity } from '../../EntityComponentSystem/Entity';
import { Action } from '../Action';
import { ActionContext } from '../ActionContext';
export declare class Repeat implements Action {
id: number;
private _actionQueue;
private _repeat;
private _originalRepeat;
private _stopped;
private _repeatContext;
private _repeatBuilder;
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any, repeat: number);
update(elapsed: number): void;
isComplete(): boolean;
stop(): void;
reset(): void;
}