removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -8,17 +8,17 @@
|
|||
|
||||
(function (global) {
|
||||
function interactWithItems(dt = 0) {
|
||||
const ctx = global.TarinaiItemInteractionContext?.create?.(this, dt);
|
||||
const ctx = global.TarinaiItemInteractionContext.create(this, dt);
|
||||
if (!ctx) return false;
|
||||
for (const item of ctx.foodCandidates || []) {
|
||||
const consumed = Boolean(global.TarinaiFoodInteractionSystem?.updateCandidate?.(this, ctx, item, dt));
|
||||
const consumed = Boolean(global.TarinaiFoodInteractionSystem.updateCandidate(this, ctx, item, dt));
|
||||
if (consumed) {
|
||||
global.TarinaiItemInteractionContext?.finalize?.(this);
|
||||
global.TarinaiItemInteractionContext.finalize(this);
|
||||
return true;
|
||||
}
|
||||
global.TarinaiContactItemSystem?.updateCandidate?.(this, ctx, item, dt);
|
||||
global.TarinaiContactItemSystem.updateCandidate(this, ctx, item, dt);
|
||||
}
|
||||
global.TarinaiItemInteractionContext?.finalize?.(this);
|
||||
global.TarinaiItemInteractionContext.finalize(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -27,13 +27,8 @@
|
|||
return interactWithItems.call(tarinai, dt);
|
||||
}
|
||||
|
||||
function updateWithThis(dt = 0) {
|
||||
return updateOne(this, dt);
|
||||
}
|
||||
|
||||
global.TarinaiItemInteractionSystem = Object.freeze({
|
||||
interactWithItems,
|
||||
updateOne,
|
||||
updateWithThis,
|
||||
});
|
||||
})(typeof window !== "undefined" ? window : globalThis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue