tarinai/js/item_lifecycle_step_growth.js

13 lines
521 B
JavaScript

"use strict";
// Layer: entity-runtime/items/lifecycle-step
// Pipeline adapter for item growth/lifecycle stage ticking. The implementation
// lives in js/item_lifecycle_growth_system.js.
(function (global) {
function update(item, dt, worldRef) {
if (!item || item.dead) return { done: true };
return global.TarinaiItemGrowthSystem.update(item, dt, worldRef) || { done: false };
}
global.TarinaiItemGrowthLifecycleStep = Object.freeze({ update });
})(typeof window !== "undefined" ? window : globalThis);