@dcl/playground-assets 7.1.3-4479271193.commit-2d89420 → 7.1.3-4479720615.commit-2839aba
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/dist/alpha.d.ts +19 -1
- package/dist/beta.d.ts +19 -1
- package/dist/index.bundled.d.ts +19 -1
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +19 -1
- package/etc/playground-assets.api.json +177 -54
- package/etc/playground-assets.api.md +28 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
|
-
"version": "7.1.3-
|
|
3
|
+
"version": "7.1.3-4479720615.commit-2839aba",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"displayName": "SDK",
|
|
31
31
|
"tsconfig": "./tsconfig.json"
|
|
32
32
|
},
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "2839abac7c9c4f2006b23f770ecba166250c6365"
|
|
34
34
|
}
|
|
@@ -1458,6 +1458,12 @@ export declare type EntityContainer = {
|
|
|
1458
1458
|
updateUsedEntity(entity: Entity): boolean;
|
|
1459
1459
|
};
|
|
1460
1460
|
|
|
1461
|
+
export declare enum EntityMappingMode {
|
|
1462
|
+
EMM_NONE = 0,
|
|
1463
|
+
EMM_NEXT_AVAILABLE = 1,
|
|
1464
|
+
EMM_DIRECT_MAPPING = 2
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1461
1467
|
/**
|
|
1462
1468
|
* @public
|
|
1463
1469
|
* Common props to all components
|
|
@@ -2028,7 +2034,19 @@ export declare const inputSystem: IInputSystem;
|
|
|
2028
2034
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
2029
2035
|
*
|
|
2030
2036
|
*/
|
|
2031
|
-
export declare function instanceComposite(engine: IEngine, compositeData: Composite,
|
|
2037
|
+
export declare function instanceComposite(engine: IEngine, compositeData: Composite, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
2038
|
+
|
|
2039
|
+
export declare type InstanceCompositeOptions = {
|
|
2040
|
+
entityMapping?: {
|
|
2041
|
+
type: EntityMappingMode.EMM_NEXT_AVAILABLE;
|
|
2042
|
+
getNextAvailableEntity: () => Entity | null;
|
|
2043
|
+
} | {
|
|
2044
|
+
type: EntityMappingMode.EMM_DIRECT_MAPPING;
|
|
2045
|
+
getCompositeEntity: (compositeEntity: Entity | number) => Entity;
|
|
2046
|
+
};
|
|
2047
|
+
rootEntity?: Entity;
|
|
2048
|
+
alreadyRequestedId?: Set<string>;
|
|
2049
|
+
};
|
|
2032
2050
|
|
|
2033
2051
|
/**
|
|
2034
2052
|
* @public
|
|
@@ -13277,6 +13277,86 @@
|
|
|
13277
13277
|
"endIndex": 20
|
|
13278
13278
|
}
|
|
13279
13279
|
},
|
|
13280
|
+
{
|
|
13281
|
+
"kind": "Enum",
|
|
13282
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode:enum",
|
|
13283
|
+
"docComment": "",
|
|
13284
|
+
"excerptTokens": [
|
|
13285
|
+
{
|
|
13286
|
+
"kind": "Content",
|
|
13287
|
+
"text": "export declare enum EntityMappingMode "
|
|
13288
|
+
}
|
|
13289
|
+
],
|
|
13290
|
+
"fileUrlPath": "../ecs/dist/composite/instance.d.ts",
|
|
13291
|
+
"releaseTag": "Public",
|
|
13292
|
+
"name": "EntityMappingMode",
|
|
13293
|
+
"preserveMemberOrder": false,
|
|
13294
|
+
"members": [
|
|
13295
|
+
{
|
|
13296
|
+
"kind": "EnumMember",
|
|
13297
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode.EMM_DIRECT_MAPPING:member",
|
|
13298
|
+
"docComment": "",
|
|
13299
|
+
"excerptTokens": [
|
|
13300
|
+
{
|
|
13301
|
+
"kind": "Content",
|
|
13302
|
+
"text": "EMM_DIRECT_MAPPING = "
|
|
13303
|
+
},
|
|
13304
|
+
{
|
|
13305
|
+
"kind": "Content",
|
|
13306
|
+
"text": "2"
|
|
13307
|
+
}
|
|
13308
|
+
],
|
|
13309
|
+
"initializerTokenRange": {
|
|
13310
|
+
"startIndex": 1,
|
|
13311
|
+
"endIndex": 2
|
|
13312
|
+
},
|
|
13313
|
+
"releaseTag": "Public",
|
|
13314
|
+
"name": "EMM_DIRECT_MAPPING"
|
|
13315
|
+
},
|
|
13316
|
+
{
|
|
13317
|
+
"kind": "EnumMember",
|
|
13318
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode.EMM_NEXT_AVAILABLE:member",
|
|
13319
|
+
"docComment": "",
|
|
13320
|
+
"excerptTokens": [
|
|
13321
|
+
{
|
|
13322
|
+
"kind": "Content",
|
|
13323
|
+
"text": "EMM_NEXT_AVAILABLE = "
|
|
13324
|
+
},
|
|
13325
|
+
{
|
|
13326
|
+
"kind": "Content",
|
|
13327
|
+
"text": "1"
|
|
13328
|
+
}
|
|
13329
|
+
],
|
|
13330
|
+
"initializerTokenRange": {
|
|
13331
|
+
"startIndex": 1,
|
|
13332
|
+
"endIndex": 2
|
|
13333
|
+
},
|
|
13334
|
+
"releaseTag": "Public",
|
|
13335
|
+
"name": "EMM_NEXT_AVAILABLE"
|
|
13336
|
+
},
|
|
13337
|
+
{
|
|
13338
|
+
"kind": "EnumMember",
|
|
13339
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode.EMM_NONE:member",
|
|
13340
|
+
"docComment": "",
|
|
13341
|
+
"excerptTokens": [
|
|
13342
|
+
{
|
|
13343
|
+
"kind": "Content",
|
|
13344
|
+
"text": "EMM_NONE = "
|
|
13345
|
+
},
|
|
13346
|
+
{
|
|
13347
|
+
"kind": "Content",
|
|
13348
|
+
"text": "0"
|
|
13349
|
+
}
|
|
13350
|
+
],
|
|
13351
|
+
"initializerTokenRange": {
|
|
13352
|
+
"startIndex": 1,
|
|
13353
|
+
"endIndex": 2
|
|
13354
|
+
},
|
|
13355
|
+
"releaseTag": "Public",
|
|
13356
|
+
"name": "EMM_NONE"
|
|
13357
|
+
}
|
|
13358
|
+
]
|
|
13359
|
+
},
|
|
13280
13360
|
{
|
|
13281
13361
|
"kind": "Interface",
|
|
13282
13362
|
"canonicalReference": "@dcl/playground-assets!EntityPropTypes:interface",
|
|
@@ -17387,23 +17467,6 @@
|
|
|
17387
17467
|
"text": "Composite",
|
|
17388
17468
|
"canonicalReference": "@dcl/playground-assets!Composite:interface"
|
|
17389
17469
|
},
|
|
17390
|
-
{
|
|
17391
|
-
"kind": "Content",
|
|
17392
|
-
"text": ", getNextAvailableEntity: "
|
|
17393
|
-
},
|
|
17394
|
-
{
|
|
17395
|
-
"kind": "Content",
|
|
17396
|
-
"text": "() => "
|
|
17397
|
-
},
|
|
17398
|
-
{
|
|
17399
|
-
"kind": "Reference",
|
|
17400
|
-
"text": "Entity",
|
|
17401
|
-
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
17402
|
-
},
|
|
17403
|
-
{
|
|
17404
|
-
"kind": "Content",
|
|
17405
|
-
"text": " | null"
|
|
17406
|
-
},
|
|
17407
17470
|
{
|
|
17408
17471
|
"kind": "Content",
|
|
17409
17472
|
"text": ", compositeProvider: "
|
|
@@ -17415,25 +17478,12 @@
|
|
|
17415
17478
|
},
|
|
17416
17479
|
{
|
|
17417
17480
|
"kind": "Content",
|
|
17418
|
-
"text": ",
|
|
17481
|
+
"text": ", options?: "
|
|
17419
17482
|
},
|
|
17420
17483
|
{
|
|
17421
17484
|
"kind": "Reference",
|
|
17422
|
-
"text": "
|
|
17423
|
-
"canonicalReference": "@dcl/playground-assets!
|
|
17424
|
-
},
|
|
17425
|
-
{
|
|
17426
|
-
"kind": "Content",
|
|
17427
|
-
"text": ", alreadyRequestedId?: "
|
|
17428
|
-
},
|
|
17429
|
-
{
|
|
17430
|
-
"kind": "Reference",
|
|
17431
|
-
"text": "Set",
|
|
17432
|
-
"canonicalReference": "!Set:interface"
|
|
17433
|
-
},
|
|
17434
|
-
{
|
|
17435
|
-
"kind": "Content",
|
|
17436
|
-
"text": "<string>"
|
|
17485
|
+
"text": "InstanceCompositeOptions",
|
|
17486
|
+
"canonicalReference": "@dcl/playground-assets!InstanceCompositeOptions:type"
|
|
17437
17487
|
},
|
|
17438
17488
|
{
|
|
17439
17489
|
"kind": "Content",
|
|
@@ -17451,8 +17501,8 @@
|
|
|
17451
17501
|
],
|
|
17452
17502
|
"fileUrlPath": "../ecs/dist/composite/instance.d.ts",
|
|
17453
17503
|
"returnTypeTokenRange": {
|
|
17454
|
-
"startIndex":
|
|
17455
|
-
"endIndex":
|
|
17504
|
+
"startIndex": 9,
|
|
17505
|
+
"endIndex": 10
|
|
17456
17506
|
},
|
|
17457
17507
|
"releaseTag": "Public",
|
|
17458
17508
|
"overloadIndex": 1,
|
|
@@ -17474,39 +17524,112 @@
|
|
|
17474
17524
|
"isOptional": false
|
|
17475
17525
|
},
|
|
17476
17526
|
{
|
|
17477
|
-
"parameterName": "
|
|
17527
|
+
"parameterName": "compositeProvider",
|
|
17478
17528
|
"parameterTypeTokenRange": {
|
|
17479
17529
|
"startIndex": 5,
|
|
17480
|
-
"endIndex":
|
|
17530
|
+
"endIndex": 6
|
|
17481
17531
|
},
|
|
17482
17532
|
"isOptional": false
|
|
17483
17533
|
},
|
|
17484
17534
|
{
|
|
17485
|
-
"parameterName": "
|
|
17535
|
+
"parameterName": "options",
|
|
17486
17536
|
"parameterTypeTokenRange": {
|
|
17487
|
-
"startIndex":
|
|
17488
|
-
"endIndex":
|
|
17537
|
+
"startIndex": 7,
|
|
17538
|
+
"endIndex": 8
|
|
17489
17539
|
},
|
|
17490
|
-
"isOptional":
|
|
17540
|
+
"isOptional": true
|
|
17541
|
+
}
|
|
17542
|
+
],
|
|
17543
|
+
"name": "instanceComposite"
|
|
17544
|
+
},
|
|
17545
|
+
{
|
|
17546
|
+
"kind": "TypeAlias",
|
|
17547
|
+
"canonicalReference": "@dcl/playground-assets!InstanceCompositeOptions:type",
|
|
17548
|
+
"docComment": "",
|
|
17549
|
+
"excerptTokens": [
|
|
17550
|
+
{
|
|
17551
|
+
"kind": "Content",
|
|
17552
|
+
"text": "export type InstanceCompositeOptions = "
|
|
17491
17553
|
},
|
|
17492
17554
|
{
|
|
17493
|
-
"
|
|
17494
|
-
"
|
|
17495
|
-
"startIndex": 11,
|
|
17496
|
-
"endIndex": 12
|
|
17497
|
-
},
|
|
17498
|
-
"isOptional": true
|
|
17555
|
+
"kind": "Content",
|
|
17556
|
+
"text": "{\n entityMapping?: {\n type: "
|
|
17499
17557
|
},
|
|
17500
17558
|
{
|
|
17501
|
-
"
|
|
17502
|
-
"
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
"
|
|
17559
|
+
"kind": "Reference",
|
|
17560
|
+
"text": "EntityMappingMode.EMM_NEXT_AVAILABLE",
|
|
17561
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode.EMM_NEXT_AVAILABLE:member"
|
|
17562
|
+
},
|
|
17563
|
+
{
|
|
17564
|
+
"kind": "Content",
|
|
17565
|
+
"text": ";\n getNextAvailableEntity: () => "
|
|
17566
|
+
},
|
|
17567
|
+
{
|
|
17568
|
+
"kind": "Reference",
|
|
17569
|
+
"text": "Entity",
|
|
17570
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
17571
|
+
},
|
|
17572
|
+
{
|
|
17573
|
+
"kind": "Content",
|
|
17574
|
+
"text": " | null;\n } | {\n type: "
|
|
17575
|
+
},
|
|
17576
|
+
{
|
|
17577
|
+
"kind": "Reference",
|
|
17578
|
+
"text": "EntityMappingMode.EMM_DIRECT_MAPPING",
|
|
17579
|
+
"canonicalReference": "@dcl/playground-assets!EntityMappingMode.EMM_DIRECT_MAPPING:member"
|
|
17580
|
+
},
|
|
17581
|
+
{
|
|
17582
|
+
"kind": "Content",
|
|
17583
|
+
"text": ";\n getCompositeEntity: (compositeEntity: "
|
|
17584
|
+
},
|
|
17585
|
+
{
|
|
17586
|
+
"kind": "Reference",
|
|
17587
|
+
"text": "Entity",
|
|
17588
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
17589
|
+
},
|
|
17590
|
+
{
|
|
17591
|
+
"kind": "Content",
|
|
17592
|
+
"text": " | number) => "
|
|
17593
|
+
},
|
|
17594
|
+
{
|
|
17595
|
+
"kind": "Reference",
|
|
17596
|
+
"text": "Entity",
|
|
17597
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
17598
|
+
},
|
|
17599
|
+
{
|
|
17600
|
+
"kind": "Content",
|
|
17601
|
+
"text": ";\n };\n rootEntity?: "
|
|
17602
|
+
},
|
|
17603
|
+
{
|
|
17604
|
+
"kind": "Reference",
|
|
17605
|
+
"text": "Entity",
|
|
17606
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
17607
|
+
},
|
|
17608
|
+
{
|
|
17609
|
+
"kind": "Content",
|
|
17610
|
+
"text": ";\n alreadyRequestedId?: "
|
|
17611
|
+
},
|
|
17612
|
+
{
|
|
17613
|
+
"kind": "Reference",
|
|
17614
|
+
"text": "Set",
|
|
17615
|
+
"canonicalReference": "!Set:interface"
|
|
17616
|
+
},
|
|
17617
|
+
{
|
|
17618
|
+
"kind": "Content",
|
|
17619
|
+
"text": "<string>;\n}"
|
|
17620
|
+
},
|
|
17621
|
+
{
|
|
17622
|
+
"kind": "Content",
|
|
17623
|
+
"text": ";"
|
|
17507
17624
|
}
|
|
17508
17625
|
],
|
|
17509
|
-
"
|
|
17626
|
+
"fileUrlPath": "../ecs/dist/composite/instance.d.ts",
|
|
17627
|
+
"releaseTag": "Public",
|
|
17628
|
+
"name": "InstanceCompositeOptions",
|
|
17629
|
+
"typeTokenRange": {
|
|
17630
|
+
"startIndex": 1,
|
|
17631
|
+
"endIndex": 16
|
|
17632
|
+
}
|
|
17510
17633
|
},
|
|
17511
17634
|
{
|
|
17512
17635
|
"kind": "Interface",
|
|
@@ -730,6 +730,18 @@ export type EntityContainer = {
|
|
|
730
730
|
updateUsedEntity(entity: Entity): boolean;
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
+
// Warning: (ae-missing-release-tag) "EntityMappingMode" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
734
|
+
//
|
|
735
|
+
// @public (undocumented)
|
|
736
|
+
export enum EntityMappingMode {
|
|
737
|
+
// (undocumented)
|
|
738
|
+
EMM_DIRECT_MAPPING = 2,
|
|
739
|
+
// (undocumented)
|
|
740
|
+
EMM_NEXT_AVAILABLE = 1,
|
|
741
|
+
// (undocumented)
|
|
742
|
+
EMM_NONE = 0
|
|
743
|
+
}
|
|
744
|
+
|
|
733
745
|
// @public
|
|
734
746
|
export interface EntityPropTypes extends Listeners {
|
|
735
747
|
key?: Key;
|
|
@@ -1138,7 +1150,22 @@ export const inputSystem: IInputSystem;
|
|
|
1138
1150
|
// Warning: (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
|
|
1139
1151
|
//
|
|
1140
1152
|
// @public @deprecated
|
|
1141
|
-
export function instanceComposite(engine: IEngine, compositeData: Composite,
|
|
1153
|
+
export function instanceComposite(engine: IEngine, compositeData: Composite, compositeProvider: CompositeProvider, options?: InstanceCompositeOptions): Entity;
|
|
1154
|
+
|
|
1155
|
+
// Warning: (ae-missing-release-tag) "InstanceCompositeOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1156
|
+
//
|
|
1157
|
+
// @public (undocumented)
|
|
1158
|
+
export type InstanceCompositeOptions = {
|
|
1159
|
+
entityMapping?: {
|
|
1160
|
+
type: EntityMappingMode.EMM_NEXT_AVAILABLE;
|
|
1161
|
+
getNextAvailableEntity: () => Entity | null;
|
|
1162
|
+
} | {
|
|
1163
|
+
type: EntityMappingMode.EMM_DIRECT_MAPPING;
|
|
1164
|
+
getCompositeEntity: (compositeEntity: Entity | number) => Entity;
|
|
1165
|
+
};
|
|
1166
|
+
rootEntity?: Entity;
|
|
1167
|
+
alreadyRequestedId?: Set<string>;
|
|
1168
|
+
};
|
|
1142
1169
|
|
|
1143
1170
|
// @public (undocumented)
|
|
1144
1171
|
export interface ISchema<T = any> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
|
-
"version": "7.1.3-
|
|
3
|
+
"version": "7.1.3-4479720615.commit-2839aba",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "Decentraland",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcl/sdk": "7.1.3-
|
|
20
|
+
"@dcl/sdk": "7.1.3-4479720615.commit-2839aba"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"dist",
|
|
28
28
|
"etc"
|
|
29
29
|
],
|
|
30
|
-
"commit": "
|
|
30
|
+
"commit": "2839abac7c9c4f2006b23f770ecba166250c6365"
|
|
31
31
|
}
|