The Facade of Rituals
Providing a simple interface to a complex orchestration of magical subsystems.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Conjuration // Ritualism
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
interface RitualFacade
exposes [performRitual]
imports []
# Complex Subsystems
igniteBrazier = \_ -> "Brazier ignited"
drawPentagram = \_ -> "Pentagram drawn"
chantIncantation = \words -> "Chanting: ${words}"
# Facade
performRitual : Str -> Str
performRitual = \spellName ->
step1 = igniteBrazier {}
step2 = drawPentagram {}
step3 = chantIncantation spellName
"${step1}, ${step2}, ${step3}. The ritual is complete."
Runic Tags:
#fast-functional-wards
#roc
#facade