@dcl/playground-assets 7.0.6-3808988484.commit-63d3e2c → 7.0.6-3823801200.commit-32470bd

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.
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.6-3808988484.commit-63d3e2c",
3
+ "version": "7.0.6-3823801200.commit-32470bd",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "types": "./index.d.ts",
8
8
  "scripts": {
9
9
  "build": "tsc -p tsconfig.json",
10
+ "build:cli": "tsc -p tsconfig.cli.json",
10
11
  "start": "npm run build && tsc -p tsconfig.json --watch"
11
12
  },
13
+ "bin": {
14
+ "sdk-commands": "./cli/index.js"
15
+ },
12
16
  "keywords": [],
13
17
  "tsdoc": {
14
18
  "tsdocFlavor": "AEDoc"
@@ -22,7 +26,8 @@
22
26
  "@dcl/js-runtime": "file:../js-runtime",
23
27
  "@dcl/kernel": "2.0.0-3766760530.commit-239d2a9",
24
28
  "@dcl/react-ecs": "file:../react-ecs",
25
- "@dcl/unity-renderer": "1.0.68557-20221221195847.commit-f743b85"
29
+ "@dcl/unity-renderer": "1.0.68557-20221221195847.commit-f743b85",
30
+ "arg": "5.0.2"
26
31
  },
27
32
  "minCliVersion": "3.14.1",
28
33
  "typedoc": {
@@ -31,5 +36,5 @@
31
36
  "displayName": "SDK",
32
37
  "tsconfig": "./tsconfig.json"
33
38
  },
34
- "commit": "63d3e2c15a5a2d09285eca1b08d3832a12f75f13"
39
+ "commit": "32470bdb44a9d3c8663f432e0d3262a09c4201cf"
35
40
  }
@@ -1174,7 +1174,7 @@ export declare type EcsElements = {
1174
1174
  /**
1175
1175
  * @public
1176
1176
  */
1177
- export declare function Engine(): IEngine;
1177
+ export declare function Engine(options?: IEngineOptions): IEngine;
1178
1178
 
1179
1179
  export declare const engine: IEngine;
1180
1180
 
@@ -1430,6 +1430,17 @@ export declare type IEngine = {
1430
1430
  * @param transport - transport which changes its onmessage to process CRDT messages
1431
1431
  */
1432
1432
  addTransport(transport: Transport): void;
1433
+ /**
1434
+ * Iterator of registered components
1435
+ */
1436
+ componentsIter(): Iterable<ComponentDefinition<unknown>>;
1437
+ };
1438
+
1439
+ /**
1440
+ * @public
1441
+ */
1442
+ export declare type IEngineOptions = {
1443
+ onChangeFunction: OnChangeFunction;
1433
1444
  };
1434
1445
 
1435
1446
  /**
@@ -2649,6 +2660,11 @@ export declare class ObserverEventState {
2649
2660
  initalize(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any): ObserverEventState;
2650
2661
  }
2651
2662
 
2663
+ /**
2664
+ * @public
2665
+ */
2666
+ export declare type OnChangeFunction = (entity: Entity, component: ComponentDefinition<any>, operation: WireMessage.Enum) => void;
2667
+
2652
2668
  export declare const onCommsMessage: Observable<{
2653
2669
  sender: string;
2654
2670
  message: string;
@@ -8395,7 +8395,16 @@
8395
8395
  "excerptTokens": [
8396
8396
  {
8397
8397
  "kind": "Content",
8398
- "text": "export declare function Engine(): "
8398
+ "text": "export declare function Engine(options?: "
8399
+ },
8400
+ {
8401
+ "kind": "Reference",
8402
+ "text": "IEngineOptions",
8403
+ "canonicalReference": "@dcl/playground-assets!IEngineOptions:type"
8404
+ },
8405
+ {
8406
+ "kind": "Content",
8407
+ "text": "): "
8399
8408
  },
8400
8409
  {
8401
8410
  "kind": "Reference",
@@ -8409,12 +8418,21 @@
8409
8418
  ],
8410
8419
  "fileUrlPath": "../ecs/dist/engine/index.d.ts",
8411
8420
  "returnTypeTokenRange": {
8412
- "startIndex": 1,
8413
- "endIndex": 2
8421
+ "startIndex": 3,
8422
+ "endIndex": 4
8414
8423
  },
8415
8424
  "releaseTag": "Public",
8416
8425
  "overloadIndex": 1,
8417
- "parameters": [],
8426
+ "parameters": [
8427
+ {
8428
+ "parameterName": "options",
8429
+ "parameterTypeTokenRange": {
8430
+ "startIndex": 1,
8431
+ "endIndex": 2
8432
+ },
8433
+ "isOptional": true
8434
+ }
8435
+ ],
8418
8436
  "name": "Engine"
8419
8437
  },
8420
8438
  {
@@ -9583,7 +9601,25 @@
9583
9601
  },
9584
9602
  {
9585
9603
  "kind": "Content",
9586
- "text": "): void;\n}"
9604
+ "text": "): void;\n componentsIter(): "
9605
+ },
9606
+ {
9607
+ "kind": "Reference",
9608
+ "text": "Iterable",
9609
+ "canonicalReference": "!Iterable:interface"
9610
+ },
9611
+ {
9612
+ "kind": "Content",
9613
+ "text": "<"
9614
+ },
9615
+ {
9616
+ "kind": "Reference",
9617
+ "text": "ComponentDefinition",
9618
+ "canonicalReference": "@dcl/playground-assets!ComponentDefinition:type"
9619
+ },
9620
+ {
9621
+ "kind": "Content",
9622
+ "text": "<unknown>>;\n}"
9587
9623
  },
9588
9624
  {
9589
9625
  "kind": "Content",
@@ -9595,7 +9631,42 @@
9595
9631
  "name": "IEngine",
9596
9632
  "typeTokenRange": {
9597
9633
  "startIndex": 1,
9598
- "endIndex": 56
9634
+ "endIndex": 60
9635
+ }
9636
+ },
9637
+ {
9638
+ "kind": "TypeAlias",
9639
+ "canonicalReference": "@dcl/playground-assets!IEngineOptions:type",
9640
+ "docComment": "/**\n * @public\n */\n",
9641
+ "excerptTokens": [
9642
+ {
9643
+ "kind": "Content",
9644
+ "text": "export declare type IEngineOptions = "
9645
+ },
9646
+ {
9647
+ "kind": "Content",
9648
+ "text": "{\n onChangeFunction: "
9649
+ },
9650
+ {
9651
+ "kind": "Reference",
9652
+ "text": "OnChangeFunction",
9653
+ "canonicalReference": "@dcl/playground-assets!OnChangeFunction:type"
9654
+ },
9655
+ {
9656
+ "kind": "Content",
9657
+ "text": ";\n}"
9658
+ },
9659
+ {
9660
+ "kind": "Content",
9661
+ "text": ";"
9662
+ }
9663
+ ],
9664
+ "fileUrlPath": "../ecs/dist/engine/index.d.ts",
9665
+ "releaseTag": "Public",
9666
+ "name": "IEngineOptions",
9667
+ "typeTokenRange": {
9668
+ "startIndex": 1,
9669
+ "endIndex": 4
9599
9670
  }
9600
9671
  },
9601
9672
  {
@@ -22761,6 +22832,59 @@
22761
22832
  ],
22762
22833
  "implementsTokenRanges": []
22763
22834
  },
22835
+ {
22836
+ "kind": "TypeAlias",
22837
+ "canonicalReference": "@dcl/playground-assets!OnChangeFunction:type",
22838
+ "docComment": "/**\n * @public\n */\n",
22839
+ "excerptTokens": [
22840
+ {
22841
+ "kind": "Content",
22842
+ "text": "export declare type OnChangeFunction = "
22843
+ },
22844
+ {
22845
+ "kind": "Content",
22846
+ "text": "(entity: "
22847
+ },
22848
+ {
22849
+ "kind": "Reference",
22850
+ "text": "Entity",
22851
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
22852
+ },
22853
+ {
22854
+ "kind": "Content",
22855
+ "text": ", component: "
22856
+ },
22857
+ {
22858
+ "kind": "Reference",
22859
+ "text": "ComponentDefinition",
22860
+ "canonicalReference": "@dcl/playground-assets!ComponentDefinition:type"
22861
+ },
22862
+ {
22863
+ "kind": "Content",
22864
+ "text": "<any>, operation: "
22865
+ },
22866
+ {
22867
+ "kind": "Reference",
22868
+ "text": "WireMessage.Enum",
22869
+ "canonicalReference": "@dcl/playground-assets!WireMessage.Enum:enum"
22870
+ },
22871
+ {
22872
+ "kind": "Content",
22873
+ "text": ") => void"
22874
+ },
22875
+ {
22876
+ "kind": "Content",
22877
+ "text": ";"
22878
+ }
22879
+ ],
22880
+ "fileUrlPath": "../ecs/dist/systems/crdt/index.d.ts",
22881
+ "releaseTag": "Public",
22882
+ "name": "OnChangeFunction",
22883
+ "typeTokenRange": {
22884
+ "startIndex": 1,
22885
+ "endIndex": 8
22886
+ }
22887
+ },
22764
22888
  {
22765
22889
  "kind": "Variable",
22766
22890
  "canonicalReference": "@dcl/playground-assets!onCommsMessage:var",
@@ -490,7 +490,7 @@ export type EcsElements = {
490
490
  };
491
491
 
492
492
  // @public (undocumented)
493
- export function Engine(): IEngine;
493
+ export function Engine(options?: IEngineOptions): IEngine;
494
494
 
495
495
  // Warning: (ae-missing-release-tag) "engine" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
496
496
  //
@@ -646,6 +646,12 @@ export type IEngine = {
646
646
  readonly PlayerEntity: Entity;
647
647
  readonly CameraEntity: Entity;
648
648
  addTransport(transport: Transport): void;
649
+ componentsIter(): Iterable<ComponentDefinition<unknown>>;
650
+ };
651
+
652
+ // @public (undocumented)
653
+ export type IEngineOptions = {
654
+ onChangeFunction: OnChangeFunction;
649
655
  };
650
656
 
651
657
  // @public (undocumented)
@@ -1312,6 +1318,9 @@ export class ObserverEventState {
1312
1318
  target?: any;
1313
1319
  }
1314
1320
 
1321
+ // @public (undocumented)
1322
+ export type OnChangeFunction = (entity: Entity, component: ComponentDefinition<any>, operation: WireMessage.Enum) => void;
1323
+
1315
1324
  // Warning: (ae-missing-release-tag) "onCommsMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1316
1325
  //
1317
1326
  // @public (undocumented)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.0.6-3808988484.commit-63d3e2c",
3
+ "version": "7.0.6-3823801200.commit-32470bd",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,12 +17,12 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.0.6-3808988484.commit-63d3e2c"
20
+ "@dcl/sdk": "7.0.6-3823801200.commit-32470bd"
21
21
  },
22
22
  "minCliVersion": "3.12.3",
23
23
  "files": [
24
24
  "dist",
25
25
  "etc"
26
26
  ],
27
- "commit": "63d3e2c15a5a2d09285eca1b08d3832a12f75f13"
27
+ "commit": "32470bdb44a9d3c8663f432e0d3262a09c4201cf"
28
28
  }