13 lines
399 B
JavaScript
13 lines
399 B
JavaScript
"use strict";
|
|
|
|
// Layer: simulation/system-effects
|
|
// Owns frame updates for transient visual/effect entities.
|
|
(function (global) {
|
|
function updateEffects(worldRef, dt) {
|
|
for (const ef of worldRef.effects) ef.update(dt);
|
|
}
|
|
|
|
global.TarinaiEffectsSimulationSystem = Object.freeze({
|
|
phases: Object.freeze({ updateEffects }),
|
|
});
|
|
})(typeof window !== "undefined" ? window : globalThis);
|