🌙 LUA GLYPH DIFFICULTY: Adept Creational

The Builder of Moonlit Constructs

A creational pattern to weave complex magical entities step-by-step from the lunar fabric.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Transmutation // Weaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// LUA PATTERN //
local GolemBuilder = {}
GolemBuilder.__index = GolemBuilder

function GolemBuilder:new()
  return setmetatable({ golem = {} }, self)
end
function GolemBuilder:bindCore(coreType)
  self.golem.core = coreType
  return self
end
function GolemBuilder:etchRunes(runes)
  self.golem.runes = runes
  return self
end
function GolemBuilder:awaken()
  return self.golem
end

local myGolem = GolemBuilder:new()
  :bindCore("Starlight")
  :etchRunes("Fae Moon Glyphs")
  :awaken()

Builder

Rather than speaking the entirety of a spell in one breathless utterance, the Builder pattern allows a spellcaster to carefully stitch together the fabric of a magical construct. Using method chaining, the host engine can incrementally construct the universe’s tables.

Runic Tags: #fae #builder #creation