@dcl/playground-assets 7.2.4-5334700418.commit-a2ab16b → 7.2.4-5336980665.commit-96b8298

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.2.4-5334700418.commit-a2ab16b",
4
+ "version": "7.2.4-5336980665.commit-96b8298",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "types": "./index.d.ts",
36
36
  "typings": "./index.d.ts",
37
- "commit": "a2ab16bfbb192de20aaf93215f49f4ecb9e004bb"
37
+ "commit": "96b82981ea239874b2094af37ec0d30613a7f6e8"
38
38
  }
@@ -85,6 +85,11 @@ export declare namespace AppendValueOperation {
85
85
  export function read(buf: ByteBuffer): AppendValueMessage | null;
86
86
  }
87
87
 
88
+ /**
89
+ * Returns true if the given parcels array are connected
90
+ */
91
+ export declare function areConnected(parcels: Coords[]): boolean;
92
+
88
93
  /** @public */
89
94
  export declare const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
90
95
 
@@ -1336,6 +1341,11 @@ export declare type CompositeRootType = {
1336
1341
  */
1337
1342
  export declare type ConflictResolutionMessage = PutComponentMessageBody | DeleteComponentMessageBody;
1338
1343
 
1344
+ export declare type Coords = {
1345
+ x: number;
1346
+ y: number;
1347
+ };
1348
+
1339
1349
  /**
1340
1350
  * @public
1341
1351
  */
@@ -2255,6 +2265,11 @@ export declare interface ISchema<T = any> {
2255
2265
  jsonSchema: JsonSchemaExtended;
2256
2266
  }
2257
2267
 
2268
+ /**
2269
+ * Returns true if the given coords are equal
2270
+ */
2271
+ export declare function isEqual(p1: Coords, p2: Coords): boolean;
2272
+
2258
2273
  /**
2259
2274
  * @public
2260
2275
  */
@@ -830,6 +830,56 @@
830
830
  }
831
831
  ]
832
832
  },
833
+ {
834
+ "kind": "Function",
835
+ "canonicalReference": "@dcl/playground-assets!areConnected:function(1)",
836
+ "docComment": "/**\n * Returns true if the given parcels array are connected\n */\n",
837
+ "excerptTokens": [
838
+ {
839
+ "kind": "Content",
840
+ "text": "export declare function areConnected(parcels: "
841
+ },
842
+ {
843
+ "kind": "Reference",
844
+ "text": "Coords",
845
+ "canonicalReference": "@dcl/playground-assets!Coords:type"
846
+ },
847
+ {
848
+ "kind": "Content",
849
+ "text": "[]"
850
+ },
851
+ {
852
+ "kind": "Content",
853
+ "text": "): "
854
+ },
855
+ {
856
+ "kind": "Content",
857
+ "text": "boolean"
858
+ },
859
+ {
860
+ "kind": "Content",
861
+ "text": ";"
862
+ }
863
+ ],
864
+ "fileUrlPath": "../ecs/dist/runtime/helpers/coordinates.d.ts",
865
+ "returnTypeTokenRange": {
866
+ "startIndex": 4,
867
+ "endIndex": 5
868
+ },
869
+ "releaseTag": "Public",
870
+ "overloadIndex": 1,
871
+ "parameters": [
872
+ {
873
+ "parameterName": "parcels",
874
+ "parameterTypeTokenRange": {
875
+ "startIndex": 1,
876
+ "endIndex": 3
877
+ },
878
+ "isOptional": false
879
+ }
880
+ ],
881
+ "name": "areConnected"
882
+ },
833
883
  {
834
884
  "kind": "Variable",
835
885
  "canonicalReference": "@dcl/playground-assets!AudioSource:var",
@@ -13448,6 +13498,32 @@
13448
13498
  "endIndex": 4
13449
13499
  }
13450
13500
  },
13501
+ {
13502
+ "kind": "TypeAlias",
13503
+ "canonicalReference": "@dcl/playground-assets!Coords:type",
13504
+ "docComment": "",
13505
+ "excerptTokens": [
13506
+ {
13507
+ "kind": "Content",
13508
+ "text": "export type Coords = "
13509
+ },
13510
+ {
13511
+ "kind": "Content",
13512
+ "text": "{\n x: number;\n y: number;\n}"
13513
+ },
13514
+ {
13515
+ "kind": "Content",
13516
+ "text": ";"
13517
+ }
13518
+ ],
13519
+ "fileUrlPath": "../ecs/dist/runtime/helpers/coordinates.d.ts",
13520
+ "releaseTag": "Public",
13521
+ "name": "Coords",
13522
+ "typeTokenRange": {
13523
+ "startIndex": 1,
13524
+ "endIndex": 2
13525
+ }
13526
+ },
13451
13527
  {
13452
13528
  "kind": "Variable",
13453
13529
  "canonicalReference": "@dcl/playground-assets!CRDT_MESSAGE_HEADER_LENGTH:var",
@@ -20334,6 +20410,69 @@
20334
20410
  ],
20335
20411
  "extendsTokenRanges": []
20336
20412
  },
20413
+ {
20414
+ "kind": "Function",
20415
+ "canonicalReference": "@dcl/playground-assets!isEqual:function(1)",
20416
+ "docComment": "/**\n * Returns true if the given coords are equal\n */\n",
20417
+ "excerptTokens": [
20418
+ {
20419
+ "kind": "Content",
20420
+ "text": "export declare function isEqual(p1: "
20421
+ },
20422
+ {
20423
+ "kind": "Reference",
20424
+ "text": "Coords",
20425
+ "canonicalReference": "@dcl/playground-assets!Coords:type"
20426
+ },
20427
+ {
20428
+ "kind": "Content",
20429
+ "text": ", p2: "
20430
+ },
20431
+ {
20432
+ "kind": "Reference",
20433
+ "text": "Coords",
20434
+ "canonicalReference": "@dcl/playground-assets!Coords:type"
20435
+ },
20436
+ {
20437
+ "kind": "Content",
20438
+ "text": "): "
20439
+ },
20440
+ {
20441
+ "kind": "Content",
20442
+ "text": "boolean"
20443
+ },
20444
+ {
20445
+ "kind": "Content",
20446
+ "text": ";"
20447
+ }
20448
+ ],
20449
+ "fileUrlPath": "../ecs/dist/runtime/helpers/coordinates.d.ts",
20450
+ "returnTypeTokenRange": {
20451
+ "startIndex": 5,
20452
+ "endIndex": 6
20453
+ },
20454
+ "releaseTag": "Public",
20455
+ "overloadIndex": 1,
20456
+ "parameters": [
20457
+ {
20458
+ "parameterName": "p1",
20459
+ "parameterTypeTokenRange": {
20460
+ "startIndex": 1,
20461
+ "endIndex": 2
20462
+ },
20463
+ "isOptional": false
20464
+ },
20465
+ {
20466
+ "parameterName": "p2",
20467
+ "parameterTypeTokenRange": {
20468
+ "startIndex": 3,
20469
+ "endIndex": 4
20470
+ },
20471
+ "isOptional": false
20472
+ }
20473
+ ],
20474
+ "name": "isEqual"
20475
+ },
20337
20476
  {
20338
20477
  "kind": "TypeAlias",
20339
20478
  "canonicalReference": "@dcl/playground-assets!JsonArray:type",
@@ -45,6 +45,11 @@ export namespace AppendValueOperation {
45
45
  export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
46
46
  }
47
47
 
48
+ // Warning: (ae-missing-release-tag) "areConnected" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
49
+ //
50
+ // @public
51
+ export function areConnected(parcels: Coords[]): boolean;
52
+
48
53
  // @public (undocumented)
49
54
  export const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
50
55
 
@@ -656,6 +661,14 @@ export type CompositeRootType = {
656
661
  // @public
657
662
  export type ConflictResolutionMessage = PutComponentMessageBody | DeleteComponentMessageBody;
658
663
 
664
+ // Warning: (ae-missing-release-tag) "Coords" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
665
+ //
666
+ // @public (undocumented)
667
+ export type Coords = {
668
+ x: number;
669
+ y: number;
670
+ };
671
+
659
672
  // @public (undocumented)
660
673
  export const CRDT_MESSAGE_HEADER_LENGTH = 8;
661
674
 
@@ -1332,6 +1345,11 @@ export interface ISchema<T = any> {
1332
1345
  serialize(value: DeepReadonly<T>, builder: ByteBuffer): void;
1333
1346
  }
1334
1347
 
1348
+ // Warning: (ae-missing-release-tag) "isEqual" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1349
+ //
1350
+ // @public
1351
+ export function isEqual(p1: Coords, p2: Coords): boolean;
1352
+
1335
1353
  // @public (undocumented)
1336
1354
  export type JsonArray = Array<JsonPrimitive | JsonMap | JsonArray>;
1337
1355
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.2.4-5334700418.commit-a2ab16b",
4
+ "version": "7.2.4-5336980665.commit-96b8298",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.2.4-5334700418.commit-a2ab16b",
8
- "@dcl/sdk": "7.2.4-5334700418.commit-a2ab16b"
7
+ "@dcl/js-runtime": "7.2.4-5336980665.commit-96b8298",
8
+ "@dcl/sdk": "7.2.4-5336980665.commit-96b8298"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "a2ab16bfbb192de20aaf93215f49f4ecb9e004bb"
35
+ "commit": "96b82981ea239874b2094af37ec0d30613a7f6e8"
36
36
  }