The Chain of Responsibility
Passing aberrant psychic pulses through a sequence of protective wards until one contains it.
β§ GANG OF FOUR LINEAGE & ARCANUM β§
GOF DESIGN PATTERN: Chain of Responsibility
ARCANUM SCHOOL: Abjuration // Warding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// WASM PATTERN //
(module
(func $ward_tier_1 (param $pulse_level i32) (result i32)
(if (result i32) (i32.le_u (local.get $pulse_level) (i32.const 10))
(then (i32.const 1)) ;; Handled
(else (call $ward_tier_2 (local.get $pulse_level)))
)
)
(func $ward_tier_2 (param $pulse_level i32) (result i32)
(i32.const 1) ;; Ultimate containment
)
)
The Chain of Responsibility
Aberrant psychic pulses often threaten to crash the runtime. The Chain of Responsibility passes these volatile anomalies through a sequence of protective wards, each deciding whether to contain the pulse or pass it deeper into the containment grid.
Runic Tags:
#WASM
#Warding
#Chain