@dcl/sdk 7.0.0-3000224008.commit-8bf3645 → 7.0.0-3038080345.commit-de046a3

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.
@@ -548,13 +548,13 @@ export function Component(componentName: string, classId?: number): <TFunction e
548
548
 
549
549
  // @public (undocumented)
550
550
  export class ComponentAdded {
551
- constructor(entity: IEntity, componentName: string, classId: number | null);
551
+ constructor(entity: Entity, componentName: string, classId: number | null);
552
552
  // (undocumented)
553
553
  classId: number | null;
554
554
  // (undocumented)
555
555
  componentName: string;
556
556
  // (undocumented)
557
- entity: IEntity;
557
+ entity: Entity;
558
558
  }
559
559
 
560
560
  // @public (undocumented)
@@ -573,9 +573,9 @@ export class ComponentGroup {
573
573
  // (undocumented)
574
574
  active: boolean;
575
575
  // (undocumented)
576
- readonly entities: ReadonlyArray<IEntity>;
576
+ readonly entities: ReadonlyArray<Entity>;
577
577
  // (undocumented)
578
- hasEntity(entity: IEntity): boolean;
578
+ hasEntity(entity: Entity): boolean;
579
579
  // (undocumented)
580
580
  readonly requires: ReadonlyArray<ComponentConstructor<any>>;
581
581
  // (undocumented)
@@ -588,13 +588,13 @@ export interface ComponentLike {
588
588
 
589
589
  // @public (undocumented)
590
590
  export class ComponentRemoved {
591
- constructor(entity: IEntity, componentName: string, component: ComponentLike);
591
+ constructor(entity: Entity, componentName: string, component: ComponentLike);
592
592
  // (undocumented)
593
593
  component: ComponentLike;
594
594
  // (undocumented)
595
595
  componentName: string;
596
596
  // (undocumented)
597
- entity: IEntity;
597
+ entity: Entity;
598
598
  }
599
599
 
600
600
  // @public (undocumented)
@@ -718,39 +718,39 @@ export type EcsMathReadOnlyVector4 = {
718
718
 
719
719
  // @public (undocumented)
720
720
  export class Engine implements IEngine {
721
- constructor(rootEntity: IEntity);
721
+ constructor(rootEntity: Entity);
722
722
  // (undocumented)
723
- addEntity(entity: IEntity): IEntity;
723
+ addEntity(entity: Entity): Entity;
724
724
  // (undocumented)
725
725
  addSystem(system: ISystem, priority?: number): ISystem;
726
726
  // (undocumented)
727
- readonly avatarEntity: IEntity;
727
+ readonly avatarEntity: Entity;
728
728
  // (undocumented)
729
729
  get disposableComponents(): Readonly<Record<string, DisposableComponentLike>>;
730
730
  // (undocumented)
731
731
  disposeComponent(component: DisposableComponentLike): boolean;
732
732
  // (undocumented)
733
- get entities(): Readonly<Record<string, IEntity>>;
733
+ get entities(): Readonly<Record<string, Entity>>;
734
734
  // (undocumented)
735
735
  readonly eventManager: EventManager;
736
736
  // (undocumented)
737
- readonly firstPersonCameraEntity: IEntity;
737
+ readonly firstPersonCameraEntity: Entity;
738
738
  // (undocumented)
739
739
  getComponentGroup(...requires: ComponentConstructor<any>[]): ComponentGroup;
740
740
  // (undocumented)
741
741
  getEntitiesWithComponent(component: string): Record<string, any>;
742
742
  // (undocumented)
743
- getEntitiesWithComponent(component: ComponentConstructor<any>): Record<string, IEntity>;
743
+ getEntitiesWithComponent(component: ComponentConstructor<any>): Record<string, Entity>;
744
744
  // (undocumented)
745
745
  registerComponent(component: DisposableComponentLike): void;
746
746
  // (undocumented)
747
747
  removeComponentGroup(componentGroup: ComponentGroup): boolean;
748
748
  // (undocumented)
749
- removeEntity(entity: IEntity): boolean;
749
+ removeEntity(entity: Entity): boolean;
750
750
  // (undocumented)
751
751
  removeSystem(system: ISystem): boolean;
752
752
  // (undocumented)
753
- readonly rootEntity: IEntity;
753
+ readonly rootEntity: Entity;
754
754
  // (undocumented)
755
755
  update(dt: number): this;
756
756
  // (undocumented)
@@ -761,14 +761,14 @@ export class Engine implements IEngine {
761
761
  export const engine: Engine;
762
762
 
763
763
  // @public (undocumented)
764
- export class Entity implements IEntity {
764
+ export class Entity implements Entity {
765
765
  constructor(name?: string | undefined);
766
766
  addComponent<T extends object>(component: T): T;
767
767
  addComponentOrReplace<T extends object>(component: T): T;
768
768
  // (undocumented)
769
769
  alive: boolean;
770
770
  // (undocumented)
771
- children: Record<string, IEntity>;
771
+ children: Record<string, Entity>;
772
772
  // (undocumented)
773
773
  readonly components: Record<string, any>;
774
774
  // (undocumented)
@@ -782,7 +782,7 @@ export class Entity implements IEntity {
782
782
  getComponentOrNull<T = any>(component: string): T | null;
783
783
  // (undocumented)
784
784
  getComponentOrNull<T>(component: ComponentConstructor<T>): T | null;
785
- getParent(): IEntity | null;
785
+ getParent(): Entity | null;
786
786
  hasComponent<T = any>(component: string): boolean;
787
787
  // (undocumented)
788
788
  hasComponent<T>(component: ComponentConstructor<T>): boolean;
@@ -796,7 +796,7 @@ export class Entity implements IEntity {
796
796
  removeComponent<T extends object>(component: T, triggerRemovedEvent?: boolean): void;
797
797
  // (undocumented)
798
798
  removeComponent(component: ComponentConstructor<any>, triggerRemovedEvent?: boolean): void;
799
- setParent(_parent: IEntity | Attachable | null): IEntity;
799
+ setParent(_parent: Entity | Attachable | null): Entity;
800
800
  // (undocumented)
801
801
  readonly uuid: string;
802
802
  }
@@ -933,32 +933,32 @@ export interface HitEntityInfo {
933
933
  // @public (undocumented)
934
934
  export interface IEngine {
935
935
  // (undocumented)
936
- addEntity(entity: IEntity): void;
936
+ addEntity(entity: Entity): void;
937
937
  // (undocumented)
938
938
  addSystem(system: ISystem, priority: number): void;
939
939
  // (undocumented)
940
- readonly avatarEntity: IEntity;
940
+ readonly avatarEntity: Entity;
941
941
  // (undocumented)
942
- readonly entities: Readonly<Record<string, IEntity>>;
942
+ readonly entities: Readonly<Record<string, Entity>>;
943
943
  // (undocumented)
944
- readonly firstPersonCameraEntity: IEntity;
944
+ readonly firstPersonCameraEntity: Entity;
945
945
  // (undocumented)
946
- removeEntity(entity: IEntity): void;
946
+ removeEntity(entity: Entity): void;
947
947
  // (undocumented)
948
948
  removeSystem(system: ISystem): void;
949
949
  // (undocumented)
950
- rootEntity: IEntity;
950
+ rootEntity: Entity;
951
951
  }
952
952
 
953
953
  // @public (undocumented)
954
- export interface IEntity {
954
+ export interface Entity {
955
955
  addComponent<T extends object>(component: T): void;
956
956
  // (undocumented)
957
957
  addComponentOrReplace<T extends object>(component: T): void;
958
958
  // (undocumented)
959
959
  alive: boolean;
960
960
  // (undocumented)
961
- children: Record<string, IEntity>;
961
+ children: Record<string, Entity>;
962
962
  // (undocumented)
963
963
  readonly components: Record<string, any>;
964
964
  // (undocumented)
@@ -979,7 +979,7 @@ export interface IEntity {
979
979
  // (undocumented)
980
980
  getComponentOrNull<T>(component: ComponentConstructor<T> | string): T | null;
981
981
  // (undocumented)
982
- getParent(): IEntity | null;
982
+ getParent(): Entity | null;
983
983
  // (undocumented)
984
984
  hasComponent<T = any>(component: string): boolean;
985
985
  // (undocumented)
@@ -999,7 +999,7 @@ export interface IEntity {
999
999
  // (undocumented)
1000
1000
  removeComponent(component: object | string | Function, triggerRemovedEvent: any): void;
1001
1001
  // (undocumented)
1002
- setParent(e: IEntity | Attachable | null): void;
1002
+ setParent(e: Entity | Attachable | null): void;
1003
1003
  // (undocumented)
1004
1004
  readonly uuid: string;
1005
1005
  }
@@ -1067,9 +1067,9 @@ export interface ISystem {
1067
1067
  // (undocumented)
1068
1068
  deactivate?(): void;
1069
1069
  // (undocumented)
1070
- onAddEntity?(entity: IEntity): void;
1070
+ onAddEntity?(entity: Entity): void;
1071
1071
  // (undocumented)
1072
- onRemoveEntity?(entity: IEntity): void;
1072
+ onRemoveEntity?(entity: Entity): void;
1073
1073
  // (undocumented)
1074
1074
  update?(dt: number): void;
1075
1075
  }
@@ -1587,11 +1587,11 @@ export type ParcelsWithAccess = Array<{
1587
1587
 
1588
1588
  // @public (undocumented)
1589
1589
  export class ParentChanged {
1590
- constructor(entity: IEntity, parent: IEntity | null);
1590
+ constructor(entity: Entity, parent: Entity | null);
1591
1591
  // (undocumented)
1592
- entity: IEntity;
1592
+ entity: Entity;
1593
1593
  // (undocumented)
1594
- parent: IEntity | null;
1594
+ parent: Entity | null;
1595
1595
  }
1596
1596
 
1597
1597
  // @public
@@ -2397,9 +2397,9 @@ export class UUIDEventSystem implements ISystem {
2397
2397
  [uuid: string]: OnUUIDEvent<any>;
2398
2398
  };
2399
2399
  // (undocumented)
2400
- onAddEntity(entity: IEntity): void;
2400
+ onAddEntity(entity: Entity): void;
2401
2401
  // (undocumented)
2402
- onRemoveEntity(entity: IEntity): void;
2402
+ onRemoveEntity(entity: Entity): void;
2403
2403
  }
2404
2404
 
2405
2405
  // @public