wima
    Preparing search index...

    Class Archetype

    Contains entities with the same set of components.

    //components
    class A {}
    class B {}

    //This archetype contains entities with component A
    const archetype1 = new Archetype()
    archetype.components.set("A",[])

    //This archetype contains entities with component A and B
    const archetype2 = new Archetype()
    archetype.components.set("A",[])
    archetype.components.set("B",[])
    Index

    Constructors

    Properties

    Constructors

    Properties

    components: Map<TypeId, unknown[]> = ...