initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

1
node_modules/jibo/lib/behaviors/base/random.js generated vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";var t=require("../../bt/factory"),r=require("../../bt/base"),e=r.Status,i=r.createBehavior;module.exports=i({constructor:function(t){this.children=t||[],this.current=-1},start:function(){if(0===this.children.length)return!1;this.current=Math.round(Math.random()*(this.children.length-1));var t=this.children[this.current].start();return this.current=t?this.current:-1,t},stop:function(){-1!==this.current&&this.current<this.children.length&&(this.children[this.current].stop(),this.current=-1)},update:function(){var t=this.children[this.current].update();return t===e.PAUSED?e.IN_PROGRESS:t}}),t.addBehavior(module);