✨ ARCANUM RUNE DIFFICULTY: Apprentice Structural

The Proxy

Controlling access to the forbidden Vault of Souls via a surrogate guardian.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Ward-Binding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
PROXY ; Proxy Pattern in MUMPS
;
ACCESSVAULT(USER) ; Proxy function
  I $$CHECKPERMS(USER) D
  . W "Access granted to Vault.",!
  . D REALACCESS()
  E  D
  . W "Access DENIED. Incinerating user...",!
  Q
;
CHECKPERMS(USER) ;
  I USER="ARCHMAGE" Q 1
  Q 0
;
REALACCESS ;
  W "Displaying forbidden soul records...",!
  ; (Read from protected ^VAULT)
  Q
Runic Tags: #structural #proxy #mumps #necromancy