The Bridge of Realms
Decoupling a spell's abstraction from its planar implementation.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Conjuration // Planar Binding
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
module Bridge
noeq type plane_impl = {
channel_energy : int -> string;
}
noeq type spell_abstraction = {
impl: plane_impl;
cast: unit -> string;
}
let fire_plane : plane_impl = {
channel_energy = (fun e -> "Fire energy: " ^ string_of_int e);
}
let fireball (p: plane_impl) : spell_abstraction = {
impl = p;
cast = (fun () -> p.channel_energy 100);
}
Bridging magical abstractions and planar backends, enabling cross-realm spell casting without modifying the core spell logic.
Runic Tags:
#bridge
#planes
#spells