removed unused processesseessess

This commit is contained in:
33333-33333 2026-06-29 16:21:58 +09:00
commit 4fdc567e08
158 changed files with 1317 additions and 3351 deletions

View file

@ -12,30 +12,27 @@
"TarinaiHealthUpdateStep",
]);
let cachedSteps = null;
function concreteSteps() {
return CONCRETE_STEP_NAMES.map(name => global[name]).filter(step => step && typeof step.update === "function");
if (!cachedSteps) cachedSteps = CONCRETE_STEP_NAMES.map(name => global[name]);
return cachedSteps;
}
function canRunConcretePipeline() {
return concreteSteps().length === CONCRETE_STEP_NAMES.length;
}
function updateOne(tarinai, dt, options = {}) {
if (!tarinai || tarinai.dead || !canRunConcretePipeline()) return false;
if (!tarinai || tarinai.dead) return false;
const steps = concreteSteps();
if (steps.length !== CONCRETE_STEP_NAMES.length) return false;
const context = {
...(options.context || {}),
wasSleepingAtFrameStart: false,
};
for (const step of concreteSteps()) {
for (const step of steps) {
const result = step.update(tarinai, dt, context) || {};
if (result.done) return result.ok !== false;
}
return true;
}
global.TarinaiUpdatePipeline = Object.freeze({
stepNames: CONCRETE_STEP_NAMES,
canRunConcretePipeline,
updateOne,
});
global.TarinaiUpdatePipeline = Object.freeze({ updateOne });
})(typeof window !== "undefined" ? window : globalThis);