removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -1,22 +1,16 @@
|
|||
"use strict";
|
||||
|
||||
// Public Tarinai need-planning entrypoint. This owns the resolveNeeds boundary
|
||||
// used by Tarinai.prototype.resolveNeeds and by future planner decomposition.
|
||||
// used by Tarinai.prototype.resolveNeeds.
|
||||
|
||||
(function (global) {
|
||||
function updateOne(tarinai, dt = 0) {
|
||||
if (!tarinai || tarinai.dead) return false;
|
||||
global.TarinaiForcedActionPlannerSystem?.prepare?.(tarinai, dt);
|
||||
return Boolean(global.TarinaiActionPlannerSystem?.updateOne?.(tarinai, dt)
|
||||
?? global.TarinaiNeedPlannerCoreSystem?.updateOne?.(tarinai, dt));
|
||||
return Boolean(global.TarinaiNeedPlannerCoreSystem.updateOne(tarinai, dt));
|
||||
}
|
||||
|
||||
function updateWithThis(dt = 0) {
|
||||
return updateOne(this, dt);
|
||||
}
|
||||
|
||||
global.TarinaiNeedPlannerSystem = Object.freeze({
|
||||
updateOne,
|
||||
updateWithThis,
|
||||
});
|
||||
})(typeof window !== "undefined" ? window : globalThis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue