Files
Construct-CN/packs/BP/scripts/classes/Verifier/PriorityPass.js
T
wed150 136d5ffa3b
/ build (push) Has been cancelled
Start working at 1.2.0
2026-08-26 09:54:39 +08:00

20 lines
491 B
JavaScript

// Armed means the drawn picture does not yet describe the current bounds, so
// the next pass should run flat out. Reading and clearing are separate because
// each holder clears at a different point: the verifier only when a pass
// commits, the render cursor only when a lap ends.
export class PriorityPass {
#isArmed = false;
arm() {
this.#isArmed = true;
}
isArmed() {
return this.#isArmed;
}
disarm() {
this.#isArmed = false;
}
}