13 lines
522 B
JavaScript
13 lines
522 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);
|