angry-pixel 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -908,8 +908,8 @@ declare class EntityManager {
908
908
  createEntity(): Entity;
909
909
  /**
910
910
  * Creates an Entity with the given components.\
911
- * Since the components are not cloned, the collection of components must not be reused.
912
- * @param components A collection of component instances and component classes
911
+ * Component instances are cloned, so the collection of components can be reused to create multiple entities.
912
+ * @param components A collection of component instances and/or component classes
913
913
  * @param parent The parent entity (optional)
914
914
  * @return The created Entity
915
915
  * @public
@@ -924,7 +924,7 @@ declare class EntityManager {
924
924
  createEntity(components: (ComponentType | Component)[], parent?: Entity): Entity;
925
925
  /**
926
926
  * Creates an Entity from an Archetype template.\
927
- * Components are cloned, so the archetype can be reused to create multiple entities.
927
+ * Component instances are cloned, so the archetype can be reused to create multiple entities.
928
928
  * @param archetype The archetype to create the entity from
929
929
  * @param parent The parent entity (optional)
930
930
  * @return The created Entity
@@ -945,6 +945,7 @@ declare class EntityManager {
945
945
  * ```
946
946
  */
947
947
  createEntity(archetype: Archetype, parent?: Entity): Entity;
948
+ private createEntityFromArray;
948
949
  /**
949
950
  * Creates an Entity from an Archetype.
950
951
  * @param archetype
@@ -954,13 +955,13 @@ declare class EntityManager {
954
955
  */
955
956
  private createEntityFromArchetype;
956
957
  /**
957
- * Creates components from an archetype
958
+ * Creates components from a collection of component types and instances, and adds them to the entity.\
958
959
  * @param components The components to create
959
960
  * @param entity The entity to create the components for
960
961
  * @param disabled If TRUE, each created component is disabled. Default is FALSE.
961
962
  * @private
962
963
  */
963
- private createComponentsFromArchetype;
964
+ private createComponentsForEntity;
964
965
  /**
965
966
  * Removes an Entity and all its Components
966
967
  * @param entity The entity to remove