13 lines
463 B
JavaScript
13 lines
463 B
JavaScript
"use strict";
|
|
|
|
// Layer: simulation
|
|
// Single update entrypoint. World owns state; phase modules own the ordered update work.
|
|
(function (global) {
|
|
function update(worldRef, dt) {
|
|
const order = global.TarinaiSystemOrder;
|
|
if (!order?.update) throw new Error("TarinaiSystemOrder is not available");
|
|
return order.update(worldRef, dt);
|
|
}
|
|
|
|
global.TarinaiSimulation = Object.freeze({ update });
|
|
})(typeof window !== "undefined" ? window : globalThis);
|