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.
21 lines (20 loc) • 719 B
TypeScript
import { Entity } from '../../EntityComponentSystem';
import { Action } from '../Action';
import { ActionContext } from '../ActionContext';
/**
* Action that can represent a sequence of actions, this can be useful in conjunction with
* {@apilink ParallelActions} to run multiple sequences in parallel.
*/
export declare class ActionSequence implements Action {
id: number;
private _actionQueue;
private _stopped;
private _sequenceContext;
private _sequenceBuilder;
constructor(entity: Entity, actionBuilder: (actionContext: ActionContext) => any);
update(elapsed: number): void;
isComplete(): boolean;
stop(): void;
reset(): void;
clone(entity: Entity): ActionSequence;
}