"use strict"; // Boundary for ordinary need/action planning. The current implementation still // delegates to the extracted planner body, and callers no longer depend on the // Tarinai prototype owning that body. (function (global) { function updateOne(tarinai, dt = 0) { if (!tarinai || tarinai.dead) return false; return Boolean(global.TarinaiNeedPlannerCoreSystem?.updateOne?.(tarinai, dt)); } function updateWithThis(dt = 0) { return updateOne(this, dt); } global.TarinaiActionPlannerSystem = Object.freeze({ updateOne, updateWithThis, }); })(typeof window !== "undefined" ? window : globalThis);