✨ ARCANUM RUNE DIFFICULTY: Apprentice Creational

The Prototype of Cloning Sigils

Use the `copy` ability in Move as the Prototype pattern for rapid resource cloning.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Shadowcasting
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
module arcane::prototype {
    struct Sigil has copy, drop, store {
        pattern_id: u64,
        energy: u64,
    }

    // Move's `copy` ability acts as the Prototype pattern
    public fun clone_sigil(sigil: &Sigil): Sigil {
        *sigil
    }
}
Runic Tags: #creational #prototype #move #sigils