13 lines
516 B
JavaScript
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);
|