The Observer
Allowing parasitic familiars to subscribe to the host's life-force fluctuations.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Observer
ARCANUM SCHOOL: Divination // Scrying
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// WASM PATTERN //
(module
(type $callback (func (param i32)))
(table 10 funcref)
(global $sub_count (mut i32) (i32.const 0))
(func $notify_all (param $vital_sign i32)
(local $i i32)
(loop $notify_loop
(call_indirect (type $callback) (local.get $vital_sign) (local.get $i))
(local.set $i (i32.add (local.get $i) (i32.const 1)))
(br_if $notify_loop (i32.lt_u (local.get $i) (global.get $sub_count)))
)
)
)
The Observer
Parasitic familiars must know when their host’s life-force fluctuates. The Observer establishes a scrying link, instantly notifying all subscribed entities whenever the homunculus’s vital signs cross critical thresholds.
Runic Tags:
#WASM
#Observer
#Scrying