16 lines
464 B
JavaScript
16 lines
464 B
JavaScript
"use strict";
|
|
|
|
// Public Tarinai need-planning entrypoint. This owns the resolveNeeds boundary
|
|
// used by Tarinai.prototype.resolveNeeds.
|
|
|
|
(function (global) {
|
|
function updateOne(tarinai, dt = 0) {
|
|
if (!tarinai || tarinai.dead) return false;
|
|
return Boolean(global.TarinaiNeedPlannerCoreSystem.updateOne(tarinai, dt));
|
|
}
|
|
|
|
|
|
global.TarinaiNeedPlannerSystem = Object.freeze({
|
|
updateOne,
|
|
});
|
|
})(typeof window !== "undefined" ? window : globalThis);
|