@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
45 lines • 1.21 kB
TypeScript
/**
* Executes all contained behaviors one after another in a sequence, next behaviour in the sequence will not be started until the previous one signal success
* If any of the contained behaviours fail - the whole sequence fails
*
* @author Alex Goldring
* @copyright Company Named Limited (c) 2025
*/
export class SequenceBehavior extends CompositeBehavior {
/**
*
* @param {Behavior[]} children
* @return {SequenceBehavior}
*/
static from(children: Behavior<any>[]): SequenceBehavior;
/**
*
* @type {number}
* @protected
*/
protected __currentBehaviourIndex: number;
/**
*
* @type {BehaviorStatus|number}
* @private
*/
private __currentBehaviourState;
/**
*
* @type {Behavior}
* @protected
*/
protected __currentBehaviour: Behavior<any>;
initialize(context: any): void;
/**
* @readonly
* @type {boolean}
*/
readonly isSequenceBehavior: boolean;
}
export namespace SequenceBehavior {
let typeName: string;
}
import { CompositeBehavior } from "./CompositeBehavior.js";
import { Behavior } from "../Behavior.js";
//# sourceMappingURL=SequenceBehavior.d.ts.map