The Mediator Nexus
Centralizes complex communications between disparate magical guilds.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Illusion // Telepathy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
effect nexus
ctl broadcast(sender: string, message: string) : ()
fun with-nexus(action: () -> <nexus|e> a) : e a
with handler
ctl broadcast(s, m) { println("[" ++ s ++ " broadcasts]: " ++ m); resume(()) }
action()
pub fun main()
with with-nexus
broadcast("Pyromancers", "We need more brimstone!")
broadcast("Cryomancers", "Keep the heat down!")
Runic Tags:
#koka
#mediator
#message-bus