angry-pixel 2.0.4 → 2.0.6

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
@@ -533,6 +533,7 @@ type SearchCriteria = {
533
533
  declare class EntityManager {
534
534
  private lastEntityId;
535
535
  private lastComponentTypeId;
536
+ private entities;
536
537
  private components;
537
538
  private disabledEntities;
538
539
  private disabledComponents;
@@ -601,7 +602,17 @@ declare class EntityManager {
601
602
  */
602
603
  removeAllEntities(): void;
603
604
  /**
604
- * Returns TRUE if the Entity is enabled, otherwise it returns FALSE
605
+ * If the Entity exists, returns TRUE, otherwise it returns FALSE
606
+ * @param entity
607
+ * @returns boolean
608
+ * @example
609
+ * ```js
610
+ * const isEntity = entityManager.isEntity(entity);
611
+ * ```
612
+ */
613
+ isEntity(entity: Entity): boolean;
614
+ /**
615
+ * If the Entity is enabled, returns TRUE, otherwise it returns FALSE
605
616
  * @param entity The entity to verify
606
617
  * @returns boolean
607
618
  * @public
@@ -1588,6 +1599,14 @@ interface TiledObject {
1588
1599
  x: number;
1589
1600
  y: number;
1590
1601
  properties?: TiledProperty[];
1602
+ polygon?: {
1603
+ x: number;
1604
+ y: number;
1605
+ }[];
1606
+ polyline?: {
1607
+ x: number;
1608
+ y: number;
1609
+ }[];
1591
1610
  }
1592
1611
  /**
1593
1612
  * @public
@@ -1997,8 +2016,6 @@ declare class RigidBody {
1997
2016
  * @public
1998
2017
  */
1999
2018
  acceleration: Vector2;
2000
- /** @internal */
2001
- _accelerationWithGravity: Vector2;
2002
2019
  constructor(options?: Partial<RigidBodyOptions>);
2003
2020
  }
2004
2021