mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/JiboOs.git
synced 2026-06-16 19:36:25 +00:00
17 lines
702 B
JavaScript
17 lines
702 B
JavaScript
/**
|
|
* @callback jibo.bt.decorators.StartOnCondition~StartOnConditionConditional
|
|
* @returns {Boolean} `true` when you want component to start.
|
|
*/
|
|
|
|
/**
|
|
* @class StartOnCondition
|
|
* @extends jibo.bt.Decorator
|
|
* @memberof jibo.bt.decorators
|
|
* @description
|
|
* Prevents the behavior it's decorating from starting until its 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.
|
|
* @argument {jibo.bt.decorators.StartOnCondition~StartOnConditionConditional} options.conditional - The conditional to evaluate.
|
|
*/ |