🅓 D SORCERY DIFFICULTY: Adept Behavioral

Memento

Capture and externalize the internal state of a wizard's soul so it can be restored to a previous timeline.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Chronomancy // Soul Anchoring
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// D PATTERN //
class SoulMemento {
    private int vitality;
    this(int v) { vitality = v; }
    int getVitality() { return vitality; }
}

class Wizard {
    int vitality;
    SoulMemento saveToPhylactery() { return new SoulMemento(vitality); }
    void restoreFromPhylactery(SoulMemento m) { vitality = m.getVitality(); }
}

Chronological restoration of mutable magical states.

Runic Tags: #behavioral #memento #dlang #snapshot