14 lines
535 B
JavaScript
14 lines
535 B
JavaScript
"use strict";
|
|
|
|
// Layer: entity-runtime/items/lifecycle-step
|
|
// Owns the dynamic item lifecycle slot. Type-specific dispatch lives in
|
|
// js/item_dynamic_system.js and its family-specific submodules.
|
|
(function (global) {
|
|
function update(item, dt, worldRef) {
|
|
if (!item || item.dead) return { done: true };
|
|
global.TarinaiItemDynamicSystem.update(item, dt, worldRef);
|
|
return { done: false };
|
|
}
|
|
|
|
global.TarinaiItemDynamicLifecycleStep = Object.freeze({ update });
|
|
})(typeof window !== "undefined" ? window : globalThis);
|