🅓 D SORCERY DIFFICULTY: Adept Creational

Prototype

Clone existing shadow constructs and magical anomalies without depending on their concrete classes.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Shadow Duplication
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// D PATTERN //
interface ICloneable {
    ICloneable clone();
}

class ShadowClone : ICloneable {
    int shadowIntensity;
    this(int i) { shadowIntensity = i; }

    override ShadowClone clone() {
        return new ShadowClone(this.shadowIntensity);
    }
}

Duplicate complex ethereal states securely.

Runic Tags: #creational #prototype #dlang #cloning