🌙 LUA GLYPH DIFFICULTY: Adept Behavioral

The Visitor of the Spirit Realm

An external entity traversing a diverse structure of magical nodes, performing tailored rituals on each.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Visitor
ARCANUM SCHOOL: Divination // Spirit-Walking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// LUA PATTERN //
local SpiritVisitor = {
  visitTree = function(self, tree) print("Blessing the Ancient Tree.") end,
  visitStone = function(self, stone) print("Reading the Runestone.") end
}

local AncientTree = { accept = function(self, visitor) visitor:visitTree(self) end }
local RuneStone = { accept = function(self, visitor) visitor:visitStone(self) end }

local nodes = { AncientTree, RuneStone }
for _, node in ipairs(nodes) do
  node:accept(SpiritVisitor)
end

Visitor

Rather than polluting the sacred nodes of the universe’s tables with endless new methods, the Visitor pattern sends a Spirit-Walker through the structure. The host engine passes the Visitor along, and each element reveals its true nature, allowing the Fae Moon Glyphs to execute externally.

Runic Tags: #fae #visitor #traversal