@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
23 lines • 887 B
TypeScript
/**
* Utility behavior that works just like an IF/ELSE statement
* If you are not sure if this is the right behavior for your use-case, consider using a selector behavior instead,
* as selector is a more commonly applicable behavior type
* @author Alex Goldring
* @copyright Company Named Limited (c) 2025
*/
export class BranchBehavior extends Behavior<any> {
/**
*
* @param {Behavior} condition
* @param {Behavior} [branch_success]
* @param {Behavior} [branch_failure]
*/
static from(condition: Behavior<any>, branch_success?: Behavior<any>, branch_failure?: Behavior<any>): BranchBehavior;
constructor();
initialize(context: any): void;
tick(timeDelta: any): BehaviorStatus;
#private;
}
import { Behavior } from "../Behavior.js";
import { BehaviorStatus } from "../BehaviorStatus.js";
//# sourceMappingURL=BranchBehavior.d.ts.map