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