✨ ARCANUM RUNE DIFFICULTY: Adept Structural

The Bridge

Decoupling the undead manifestation from its underlying cursed data store.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Transmutation // Void-Bridging
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
BRIDGE ; Bridge Pattern in MUMPS
;
; Abstraction: Undead Entity
; Implementation: Storage Mechanism (Global vs Routine)
;
SUMMON(ENTITY, STORETYPE) ;
  I STORETYPE="GLOBAL" D SAVETOGLOBAL(ENTITY)
  I STORETYPE="LOCAL" D SAVETOLOCAL(ENTITY)
  W ENTITY," summoned using ",STORETYPE,!
  Q
;
SAVETOGLOBAL(ENT)
  S ^UNDEADSTORE($I(^UNDEADSTORE))=ENT Q
;
SAVETOLOCAL(ENT)
  S LOCALS($I(LOCALS))=ENT Q
Runic Tags: #structural #bridge #mumps #necromancy