tarinai/js/item_lifecycle_step_legacy.js
2026-06-28 23:07:40 +09:00

13 lines
516 B
JavaScript

"use strict";
// Layer: entity-runtime/items/lifecycle-step
// Compatibility shim for old step lists. Do not call a captured monolithic
// update body; delegate to the concrete pipeline only.
(function (global) {
function update(item, dt, worldRef) {
const ok = global.TarinaiItemLifecyclePipeline?.updateOne?.(item, dt, worldRef);
return { done: true, ok: ok !== false };
}
global.TarinaiItemLegacyLifecycleStep = Object.freeze({ update });
})(typeof window !== "undefined" ? window : globalThis);