stable
This commit is contained in:
parent
fbdac9ebf1
commit
86226ccc94
97 changed files with 5790 additions and 2307 deletions
13
js/item_lifecycle_step_decay.js
Normal file
13
js/item_lifecycle_step_decay.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
// Layer: entity-runtime/items/lifecycle-step
|
||||
// Pipeline adapter for item decay. The decay implementation lives in
|
||||
// js/item_lifecycle_decay_system.js.
|
||||
(function (global) {
|
||||
function update(item, dt, worldRef) {
|
||||
if (!item || item.dead) return { done: true };
|
||||
return global.TarinaiItemDecaySystem?.update(item, dt, worldRef) || { done: false };
|
||||
}
|
||||
|
||||
global.TarinaiItemDecayLifecycleStep = Object.freeze({ update });
|
||||
})(typeof window !== "undefined" ? window : globalThis);
|
||||
Loading…
Add table
Add a link
Reference in a new issue