UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

12 lines 636 B
/** * Synchronously executes behavior from start to finish, or throws if could not be completed within set number of ticks * @template CTX * @param {Behavior<CTX>} behavior * @param {CTX} context behavior context, will be passed into behavior initialization * @param {number} [tick_limit] * @returns {BehaviorStatus} completion status * @throws {Error} if can't complete within tick limit */ export function syncExecuteBehaviorToCompletion<CTX>({ behavior, context, tick_limit }: Behavior<CTX>): BehaviorStatus; import { BehaviorStatus } from "../BehaviorStatus.js"; //# sourceMappingURL=syncExecuteBehaviorToCompletion.d.ts.map