• Creates a new Entity with the given parameters.

    Parameters

    • id: number

      The unique identifier for the entity.

    • archetypeResolver: ArchetypeResolver

      Resolver to manage the entity's archetype.

    • entityIndex: EntityIndex

      Index to manage the entity.

    Returns Entity

    A new entity instance.