@dcl/playground-assets 7.0.6-3874914632.commit-eb56237 → 7.0.6-3942933325.commit-70f967f

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.
@@ -13,22 +13,6 @@ declare module "~system/CommunicationsController" {
13
13
  // Function declaration section
14
14
  export function send(body: RealSendRequest): Promise<RealSendResponse>;
15
15
 
16
- }
17
- /**
18
- * DevTools
19
- */
20
- declare module "~system/DevTools" {
21
-
22
- export interface DevToolsBody {
23
- type: string;
24
- jsonPayload: string;
25
- }
26
- export interface EventResponse {
27
- }
28
-
29
- // Function declaration section
30
- export function event(body: DevToolsBody): Promise<EventResponse>;
31
-
32
16
  }
33
17
  /**
34
18
  * EngineApi
@@ -401,37 +385,6 @@ declare module "~system/ParcelIdentity" {
401
385
  export function getSceneId(body: GetSceneIdRequest): Promise<GetSceneIdResponse>;
402
386
  export function getIsEmpty(body: GetIsEmptyRequest): Promise<GetIsEmptyResponse>;
403
387
 
404
- }
405
- /**
406
- * Permissions
407
- */
408
- declare module "~system/Permissions" {
409
-
410
- export enum PermissionItem {
411
- PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0,
412
- PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1,
413
- PI_USE_WEB3_API = 2,
414
- PI_USE_WEBSOCKET = 3,
415
- PI_USE_FETCH = 4,
416
- UNRECOGNIZED = -1
417
- }
418
- export interface PermissionResponse {
419
- hasPermission: boolean;
420
- }
421
- export interface HasPermissionRequest {
422
- permission: PermissionItem;
423
- }
424
- export interface HasManyPermissionRequest {
425
- permissions: PermissionItem[];
426
- }
427
- export interface HasManyPermissionResponse {
428
- hasManyPermission: boolean[];
429
- }
430
-
431
- // Function declaration section
432
- export function hasPermission(body: HasPermissionRequest): Promise<PermissionResponse>;
433
- export function hasManyPermissions(body: HasManyPermissionRequest): Promise<HasManyPermissionResponse>;
434
-
435
388
  }
436
389
  /**
437
390
  * Players
@@ -482,45 +435,6 @@ declare module "~system/Players" {
482
435
  export function getPlayersInScene(body: GetPlayersInSceneRequest): Promise<PlayerListResponse>;
483
436
  export function getConnectedPlayers(body: GetConnectedPlayersRequest): Promise<PlayerListResponse>;
484
437
 
485
- }
486
- /**
487
- * PortableExperiences
488
- */
489
- declare module "~system/PortableExperiences" {
490
-
491
- export interface KillRequest {
492
- pid: string;
493
- }
494
- export interface KillResponse {
495
- status: boolean;
496
- }
497
- export interface SpawnRequest {
498
- pid: string;
499
- }
500
- export interface SpawnResponse {
501
- pid: string;
502
- parentCid: string;
503
- }
504
- export interface PxRequest {
505
- pid: string;
506
- }
507
- export interface GetPortableExperiencesLoadedRequest {
508
- }
509
- export interface GetPortableExperiencesLoadedResponse {
510
- loaded: SpawnResponse[];
511
- }
512
- export interface ExitRequest {
513
- }
514
- export interface ExitResponse {
515
- status: boolean;
516
- }
517
-
518
- // Function declaration section
519
- export function spawn(body: SpawnRequest): Promise<SpawnResponse>;
520
- export function kill(body: KillRequest): Promise<KillResponse>;
521
- export function exit(body: ExitRequest): Promise<ExitResponse>;
522
- export function getPortableExperiencesLoaded(body: GetPortableExperiencesLoadedRequest): Promise<GetPortableExperiencesLoadedResponse>;
523
-
524
438
  }
525
439
  /**
526
440
  * RestrictedActions
@@ -575,6 +489,33 @@ declare module "~system/RestrictedActions" {
575
489
  export function openNftDialog(body: OpenNftDialogRequest): Promise<SuccessResponse>;
576
490
  export function setCommunicationsAdapter(body: CommsAdapterRequest): Promise<SuccessResponse>;
577
491
 
492
+ }
493
+ /**
494
+ * Runtime
495
+ */
496
+ declare module "~system/Runtime" {
497
+
498
+ export interface RealmInfo {
499
+ baseUrl: string;
500
+ realmName: string;
501
+ networkId: number;
502
+ commsAdapter: string;
503
+ }
504
+ export interface GetRealmResponse {
505
+ realmInfo?: RealmInfo | undefined;
506
+ }
507
+ export interface GetWorldTimeResponse {
508
+ seconds: number;
509
+ }
510
+ export interface GetRealmRequest {
511
+ }
512
+ export interface GetWorldTimeRequest {
513
+ }
514
+
515
+ // Function declaration section
516
+ export function getRealm(body: GetRealmRequest): Promise<GetRealmResponse>;
517
+ export function getWorldTime(body: GetWorldTimeRequest): Promise<GetWorldTimeResponse>;
518
+
578
519
  }
579
520
  /**
580
521
  * SignedFetch
@@ -613,25 +554,6 @@ declare module "~system/SignedFetch" {
613
554
  // Function declaration section
614
555
  export function signedFetch(body: SignedFetchRequest): Promise<FlatFetchResponse>;
615
556
 
616
- }
617
- /**
618
- * SocialController
619
- */
620
- declare module "~system/SocialController" {
621
-
622
- export interface InitRequest {
623
- }
624
- export interface SocialEvent {
625
- event: string;
626
- payload: string;
627
- }
628
- export interface GetAvatarEventsResponse {
629
- events: SocialEvent[];
630
- }
631
-
632
- // Function declaration section
633
- export function pullAvatarEvents(body: InitRequest): Promise<GetAvatarEventsResponse>;
634
-
635
557
  }
636
558
  /**
637
559
  * UserActionModule
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.6-3874914632.commit-eb56237",
3
+ "version": "7.0.6-3942933325.commit-70f967f",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -37,5 +37,5 @@
37
37
  "displayName": "SDK",
38
38
  "tsconfig": "./tsconfig.json"
39
39
  },
40
- "commit": "eb5623794ecd280831fd47cf7b7a1139aedb5bac"
40
+ "commit": "70f967f506b6e27be0877901c693a1d5089b1bf4"
41
41
  }
@@ -94,13 +94,10 @@ function createTextShapes() {
94
94
  createBillboards()
95
95
  createTextShapes()
96
96
 
97
- const BouncingBillboard = engine.defineComponent(
98
- {
99
- t: Schemas.Number,
100
- originalPosition: Schemas.Vector3
101
- },
102
- 123123
103
- )
97
+ const BouncingBillboard = engine.defineComponent('bouncing billboard', {
98
+ t: Schemas.Number,
99
+ originalPosition: Schemas.Vector3
100
+ })
104
101
 
105
102
  engine.addSystem((dt: number) => {
106
103
  for (const [entity] of engine.getEntitiesWith(Billboard, Transform)) {
@@ -990,7 +990,8 @@ export declare type CommonProps = {
990
990
  * @public
991
991
  */
992
992
  export declare type ComponentDefinition<T> = {
993
- _id: number;
993
+ readonly componentId: number;
994
+ readonly componentName: string;
994
995
  /**
995
996
  * Return the default value of the current component
996
997
  */
@@ -1107,6 +1108,8 @@ export declare enum CrdtMessageType {
1107
1108
  MAX_MESSAGE_TYPE = 4
1108
1109
  }
1109
1110
 
1111
+ export declare function createComponentDefinitionFromSchema<T>(componentName: string, componentId: number, schema: ISchema<T>): ComponentDefinition<T>;
1112
+
1110
1113
  export declare function createEthereumProvider(): {
1111
1114
  send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
1112
1115
  sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
@@ -1204,8 +1207,6 @@ export declare type DeepReadonlyObject<T> = {
1204
1207
  */
1205
1208
  export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
1206
1209
 
1207
- export declare function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
1208
-
1209
1210
  /**
1210
1211
  * Constant used to convert from Euler degrees to radians
1211
1212
  * @public
@@ -1457,42 +1458,40 @@ export declare type IEngine = {
1457
1458
  removeSystem(selector: string | SystemFn): boolean;
1458
1459
  /**
1459
1460
  * Registers a custom component definition.
1460
- * @param component - The component definition
1461
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1461
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1462
+ * @param componentDefinition - The component definition
1462
1463
  */
1463
- registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
1464
+ registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
1464
1465
  /**
1465
1466
  * Define a component and add it to the engine.
1466
1467
  * @param spec - An object with schema fields
1467
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1468
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1468
1469
  * @param constructorDefault - the initial value prefilled when a component is created without a value
1469
1470
  * @returns The component definition
1470
1471
  *
1471
1472
  * ```ts
1472
- * const DoorComponentId = 10017
1473
- * const Door = engine.defineComponent({
1473
+ * const Door = engine.defineComponent("my-scene::Door", {
1474
1474
  * id: Schemas.Int,
1475
1475
  * name: Schemas.String
1476
- * }, DoorComponentId)
1477
- *
1476
+ * })
1478
1477
  * ```
1479
1478
  */
1480
- defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1479
+ defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1481
1480
  /**
1482
1481
  * Define a component and add it to the engine.
1482
+ * @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
1483
1483
  * @param spec - An object with schema fields
1484
- * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1485
1484
  * @returns The component definition
1486
1485
  *
1487
1486
  * ```ts
1488
1487
  * const StateComponentId = 10023
1489
- * const StateComponent = engine.defineComponent(Schemas.Bool, VisibleComponentId)
1488
+ * const StateComponent = engine.defineComponentFromSchema("my-lib::VisibleComponent", Schemas.Bool)
1490
1489
  * ```
1491
1490
  */
1492
- defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
1491
+ defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): ComponentDefinition<T>;
1493
1492
  /**
1494
1493
  * Get the component definition from the component id.
1495
- * @param componentId - component number used to identify the component descriptor
1494
+ * @param componentId - component number or name used to identify the component descriptor
1496
1495
  * @returns the component definition, throw an error if it doesn't exist
1497
1496
  * ```ts
1498
1497
  * const StateComponentId = 10023
@@ -1502,7 +1501,7 @@ export declare type IEngine = {
1502
1501
  getComponent<T>(componentId: number): ComponentDefinition<T>;
1503
1502
  /**
1504
1503
  * Get the component definition from the component id.
1505
- * @param componentId - component number used to identify the component descriptor
1504
+ * @param componentId - component number or name used to identify the component descriptor
1506
1505
  * @returns the component definition or null if its not founded
1507
1506
  * ```ts
1508
1507
  * const StateComponentId = 10023
@@ -1554,6 +1553,11 @@ export declare type IEngine = {
1554
1553
  * Iterator of registered components
1555
1554
  */
1556
1555
  componentsIter(): Iterable<ComponentDefinition<unknown>>;
1556
+ /**
1557
+ * Seals the engine components. It is used to clearly define the scope of the
1558
+ * components that will be available to this engine and to run optimizations.
1559
+ */
1560
+ seal(): void;
1557
1561
  };
1558
1562
 
1559
1563
  /**
@@ -2849,6 +2853,8 @@ export declare const onRealmChangedObservable: Observable<{
2849
2853
 
2850
2854
  export declare const onSceneReadyObservable: Observable<unknown>;
2851
2855
 
2856
+ export declare function onStart(): Promise<void>;
2857
+
2852
2858
  export declare function onUpdate(deltaTime: number): Promise<void>;
2853
2859
 
2854
2860
  export declare const onVideoEvent: Observable<{
@@ -7196,7 +7196,7 @@
7196
7196
  },
7197
7197
  {
7198
7198
  "kind": "Content",
7199
- "text": "{\n _id: number;\n default(): "
7199
+ "text": "{\n readonly componentId: number;\n readonly componentName: string;\n default(): "
7200
7200
  },
7201
7201
  {
7202
7202
  "kind": "Reference",
@@ -7984,6 +7984,106 @@
7984
7984
  }
7985
7985
  ]
7986
7986
  },
7987
+ {
7988
+ "kind": "Function",
7989
+ "canonicalReference": "@dcl/playground-assets!createComponentDefinitionFromSchema:function(1)",
7990
+ "docComment": "",
7991
+ "excerptTokens": [
7992
+ {
7993
+ "kind": "Content",
7994
+ "text": "export declare function createComponentDefinitionFromSchema<T>(componentName: "
7995
+ },
7996
+ {
7997
+ "kind": "Content",
7998
+ "text": "string"
7999
+ },
8000
+ {
8001
+ "kind": "Content",
8002
+ "text": ", componentId: "
8003
+ },
8004
+ {
8005
+ "kind": "Content",
8006
+ "text": "number"
8007
+ },
8008
+ {
8009
+ "kind": "Content",
8010
+ "text": ", schema: "
8011
+ },
8012
+ {
8013
+ "kind": "Reference",
8014
+ "text": "ISchema",
8015
+ "canonicalReference": "@dcl/playground-assets!ISchema:type"
8016
+ },
8017
+ {
8018
+ "kind": "Content",
8019
+ "text": "<T>"
8020
+ },
8021
+ {
8022
+ "kind": "Content",
8023
+ "text": "): "
8024
+ },
8025
+ {
8026
+ "kind": "Reference",
8027
+ "text": "ComponentDefinition",
8028
+ "canonicalReference": "@dcl/playground-assets!ComponentDefinition:type"
8029
+ },
8030
+ {
8031
+ "kind": "Content",
8032
+ "text": "<T>"
8033
+ },
8034
+ {
8035
+ "kind": "Content",
8036
+ "text": ";"
8037
+ }
8038
+ ],
8039
+ "fileUrlPath": "../ecs/dist/engine/component.d.ts",
8040
+ "returnTypeTokenRange": {
8041
+ "startIndex": 8,
8042
+ "endIndex": 10
8043
+ },
8044
+ "releaseTag": "Public",
8045
+ "overloadIndex": 1,
8046
+ "parameters": [
8047
+ {
8048
+ "parameterName": "componentName",
8049
+ "parameterTypeTokenRange": {
8050
+ "startIndex": 1,
8051
+ "endIndex": 2
8052
+ },
8053
+ "isOptional": false
8054
+ },
8055
+ {
8056
+ "parameterName": "componentId",
8057
+ "parameterTypeTokenRange": {
8058
+ "startIndex": 3,
8059
+ "endIndex": 4
8060
+ },
8061
+ "isOptional": false
8062
+ },
8063
+ {
8064
+ "parameterName": "schema",
8065
+ "parameterTypeTokenRange": {
8066
+ "startIndex": 5,
8067
+ "endIndex": 7
8068
+ },
8069
+ "isOptional": false
8070
+ }
8071
+ ],
8072
+ "typeParameters": [
8073
+ {
8074
+ "typeParameterName": "T",
8075
+ "constraintTokenRange": {
8076
+ "startIndex": 0,
8077
+ "endIndex": 0
8078
+ },
8079
+ "defaultTypeTokenRange": {
8080
+ "startIndex": 0,
8081
+ "endIndex": 0
8082
+ }
8083
+ }
8084
+ ],
8085
+ "name": "createComponentDefinitionFromSchema"
8086
+ },
7987
8087
  {
7988
8088
  "kind": "Function",
7989
8089
  "canonicalReference": "@dcl/playground-assets!createEthereumProvider:function(1)",
@@ -8725,90 +8825,6 @@
8725
8825
  "endIndex": 5
8726
8826
  }
8727
8827
  },
8728
- {
8729
- "kind": "Function",
8730
- "canonicalReference": "@dcl/playground-assets!defineComponent:function(1)",
8731
- "docComment": "",
8732
- "excerptTokens": [
8733
- {
8734
- "kind": "Content",
8735
- "text": "export declare function defineComponent<T>(componentId: "
8736
- },
8737
- {
8738
- "kind": "Content",
8739
- "text": "number"
8740
- },
8741
- {
8742
- "kind": "Content",
8743
- "text": ", spec: "
8744
- },
8745
- {
8746
- "kind": "Reference",
8747
- "text": "ISchema",
8748
- "canonicalReference": "@dcl/playground-assets!ISchema:type"
8749
- },
8750
- {
8751
- "kind": "Content",
8752
- "text": "<T>"
8753
- },
8754
- {
8755
- "kind": "Content",
8756
- "text": "): "
8757
- },
8758
- {
8759
- "kind": "Reference",
8760
- "text": "ComponentDefinition",
8761
- "canonicalReference": "@dcl/playground-assets!ComponentDefinition:type"
8762
- },
8763
- {
8764
- "kind": "Content",
8765
- "text": "<T>"
8766
- },
8767
- {
8768
- "kind": "Content",
8769
- "text": ";"
8770
- }
8771
- ],
8772
- "fileUrlPath": "../ecs/dist/engine/component.d.ts",
8773
- "returnTypeTokenRange": {
8774
- "startIndex": 6,
8775
- "endIndex": 8
8776
- },
8777
- "releaseTag": "Public",
8778
- "overloadIndex": 1,
8779
- "parameters": [
8780
- {
8781
- "parameterName": "componentId",
8782
- "parameterTypeTokenRange": {
8783
- "startIndex": 1,
8784
- "endIndex": 2
8785
- },
8786
- "isOptional": false
8787
- },
8788
- {
8789
- "parameterName": "spec",
8790
- "parameterTypeTokenRange": {
8791
- "startIndex": 3,
8792
- "endIndex": 5
8793
- },
8794
- "isOptional": false
8795
- }
8796
- ],
8797
- "typeParameters": [
8798
- {
8799
- "typeParameterName": "T",
8800
- "constraintTokenRange": {
8801
- "startIndex": 0,
8802
- "endIndex": 0
8803
- },
8804
- "defaultTypeTokenRange": {
8805
- "startIndex": 0,
8806
- "endIndex": 0
8807
- }
8808
- }
8809
- ],
8810
- "name": "defineComponent"
8811
- },
8812
8828
  {
8813
8829
  "kind": "Variable",
8814
8830
  "canonicalReference": "@dcl/playground-assets!DEG2RAD:var",
@@ -10731,7 +10747,7 @@
10731
10747
  },
10732
10748
  {
10733
10749
  "kind": "Content",
10734
- "text": "): boolean;\n registerCustomComponent<T>(component: "
10750
+ "text": "): boolean;\n registerComponentDefinition<T>(componentName: string, componentDefinition: "
10735
10751
  },
10736
10752
  {
10737
10753
  "kind": "Reference",
@@ -10740,7 +10756,7 @@
10740
10756
  },
10741
10757
  {
10742
10758
  "kind": "Content",
10743
- "text": "<T>, componentId: number): "
10759
+ "text": "<T>): "
10744
10760
  },
10745
10761
  {
10746
10762
  "kind": "Reference",
@@ -10758,7 +10774,7 @@
10758
10774
  },
10759
10775
  {
10760
10776
  "kind": "Content",
10761
- "text": ">(spec: T, componentId: number, constructorDefault?: "
10777
+ "text": ">(componentName: string, spec: T, constructorDefault?: "
10762
10778
  },
10763
10779
  {
10764
10780
  "kind": "Reference",
@@ -10794,7 +10810,7 @@
10794
10810
  },
10795
10811
  {
10796
10812
  "kind": "Content",
10797
- "text": "<T>>;\n defineComponentFromSchema<T>(spec: "
10813
+ "text": "<T>>;\n defineComponentFromSchema<T>(componentName: string, spec: "
10798
10814
  },
10799
10815
  {
10800
10816
  "kind": "Reference",
@@ -10803,7 +10819,7 @@
10803
10819
  },
10804
10820
  {
10805
10821
  "kind": "Content",
10806
- "text": "<T>, componentId: number): "
10822
+ "text": "<T>): "
10807
10823
  },
10808
10824
  {
10809
10825
  "kind": "Reference",
@@ -10947,7 +10963,7 @@
10947
10963
  },
10948
10964
  {
10949
10965
  "kind": "Content",
10950
- "text": "<unknown>>;\n}"
10966
+ "text": "<unknown>>;\n seal(): void;\n}"
10951
10967
  },
10952
10968
  {
10953
10969
  "kind": "Content",
@@ -24663,6 +24679,39 @@
24663
24679
  "endIndex": 3
24664
24680
  }
24665
24681
  },
24682
+ {
24683
+ "kind": "Function",
24684
+ "canonicalReference": "@dcl/playground-assets!onStart:function(1)",
24685
+ "docComment": "",
24686
+ "excerptTokens": [
24687
+ {
24688
+ "kind": "Content",
24689
+ "text": "export declare function onStart(): "
24690
+ },
24691
+ {
24692
+ "kind": "Reference",
24693
+ "text": "Promise",
24694
+ "canonicalReference": "!Promise:interface"
24695
+ },
24696
+ {
24697
+ "kind": "Content",
24698
+ "text": "<void>"
24699
+ },
24700
+ {
24701
+ "kind": "Content",
24702
+ "text": ";"
24703
+ }
24704
+ ],
24705
+ "fileUrlPath": "../sdk/index.d.ts",
24706
+ "returnTypeTokenRange": {
24707
+ "startIndex": 1,
24708
+ "endIndex": 3
24709
+ },
24710
+ "releaseTag": "Public",
24711
+ "overloadIndex": 1,
24712
+ "parameters": [],
24713
+ "name": "onStart"
24714
+ },
24666
24715
  {
24667
24716
  "kind": "Function",
24668
24717
  "canonicalReference": "@dcl/playground-assets!onUpdate:function(1)",
@@ -395,7 +395,8 @@ export type CommonProps = {
395
395
 
396
396
  // @public (undocumented)
397
397
  export type ComponentDefinition<T> = {
398
- _id: number;
398
+ readonly componentId: number;
399
+ readonly componentName: string;
399
400
  default(): DeepReadonly<T>;
400
401
  has(entity: Entity): boolean;
401
402
  get(entity: Entity): DeepReadonly<T>;
@@ -467,6 +468,11 @@ export enum CrdtMessageType {
467
468
  RESERVED = 0
468
469
  }
469
470
 
471
+ // Warning: (ae-missing-release-tag) "createComponentDefinitionFromSchema" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
472
+ //
473
+ // @public (undocumented)
474
+ export function createComponentDefinitionFromSchema<T>(componentName: string, componentId: number, schema: ISchema<T>): ComponentDefinition<T>;
475
+
470
476
  // Warning: (ae-missing-release-tag) "createEthereumProvider" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
471
477
  //
472
478
  // @public (undocumented)
@@ -525,11 +531,6 @@ export type DeepReadonlyObject<T> = {
525
531
  // @public (undocumented)
526
532
  export type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
527
533
 
528
- // Warning: (ae-missing-release-tag) "defineComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
529
- //
530
- // @public (undocumented)
531
- export function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
532
-
533
534
  // @public
534
535
  export const DEG2RAD: number;
535
536
 
@@ -763,9 +764,9 @@ export type IEngine = {
763
764
  getEntityState(entity: Entity): EntityState;
764
765
  addSystem(system: SystemFn, priority?: number, name?: string): void;
765
766
  removeSystem(selector: string | SystemFn): boolean;
766
- registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
767
- defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
768
- defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
767
+ registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
768
+ defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
769
+ defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): ComponentDefinition<T>;
769
770
  getComponent<T>(componentId: number): ComponentDefinition<T>;
770
771
  getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
771
772
  getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
@@ -776,6 +777,7 @@ export type IEngine = {
776
777
  addTransport(transport: Transport): void;
777
778
  entityContainer: EntityContainer;
778
779
  componentsIter(): Iterable<ComponentDefinition<unknown>>;
780
+ seal(): void;
779
781
  };
780
782
 
781
783
  // @public (undocumented)
@@ -1556,6 +1558,11 @@ export const onRealmChangedObservable: Observable<{
1556
1558
  // @public (undocumented)
1557
1559
  export const onSceneReadyObservable: Observable<unknown>;
1558
1560
 
1561
+ // Warning: (ae-missing-release-tag) "onStart" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1562
+ //
1563
+ // @public (undocumented)
1564
+ export function onStart(): Promise<void>;
1565
+
1559
1566
  // Warning: (ae-missing-release-tag) "onUpdate" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1560
1567
  //
1561
1568
  // @public (undocumented)