tarinai/js/tarinai_update_step_legacy.js
2026-06-26 12:46:32 +09:00

14 lines
516 B
JavaScript

"use strict";
// Layer: entity-runtime/tarinai/update-step
// Fallback step for environments where the split update pipeline cannot run.
(function (global) {
function update(t, dt, context = {}) {
const legacyUpdate = context.legacyUpdate;
if (typeof legacyUpdate !== "function") return { done: true, ok: false };
legacyUpdate.call(t, dt);
return { done: true, ok: true };
}
global.TarinaiLegacyUpdateStep = Object.freeze({ update });
})(typeof window !== "undefined" ? window : globalThis);