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.
22 lines (21 loc) • 624 B
TypeScript
import { Entity } from '../../EntityComponentSystem/Entity';
import { Action } from '../Action';
import { ActionContext } from '../ActionContext';
/**
* RepeatForever Action implementation, it is recommended you use the fluent action
* context API.
*
*
*/
export declare class RepeatForever implements Action {
id: number;
private _actionQueue;
private _stopped;
private _repeatContext;
private _repeatBuilder;
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any);
update(elapsed: number): void;
isComplete(): boolean;
stop(): void;
reset(): void;
}