initial commit

This commit is contained in:
2026-03-16 13:53:01 +02:00
parent 631dc7df36
commit 81e6e0a7a2
23381 changed files with 8224173 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* @callback jibo.bt.decorators.SucceedOnCondition~SucceedOnConditionConditional
* @returns {Boolean} `true` to succeed the decorated behavior. `false` otherwise.
*/
/**
* @class SucceedOnCondition
* @extends jibo.bt.Decorator
* @memberof jibo.bt.decorators
* @description
* Explicitly interrupts the behavior it's decorating and returns Status.SUCCEEDED if the
* conditional evaluates to `true`.
* @param {Object} options See {@link jibo.bt.Decorator|Decorator} for all options.
* @param {Function} [options.init] Function called at the start of this behavior. Used to initialize any
* variables or data.
* @param {jibo.bt.decorators.SucceedOnCondition~SucceedOnConditionConditional} options.conditional Function called every frame. Return `true`
* to force behavior to succeed.
*/