@dcl/playground-assets 7.1.8 → 7.1.9-4789623295.commit-8cfb6bb
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 +32 -5
- package/dist/beta.d.ts +32 -5
- package/dist/index.bundled.d.ts +32 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +32 -5
- package/etc/playground-assets.api.json +183 -46
- package/etc/playground-assets.api.md +8 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.9-4789623295.commit-8cfb6bb",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
},
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"typings": "./index.d.ts",
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "8cfb6bba4f73ce95a482ebec015d20cf3b8e0b2c"
|
|
34
34
|
}
|
|
@@ -1645,6 +1645,30 @@ export declare const enum Font {
|
|
|
1645
1645
|
F_MONOSPACE = 2
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
|
+
/**
|
|
1649
|
+
* Get an iterator of entities that follow a tree structure for a component
|
|
1650
|
+
* @public
|
|
1651
|
+
* @param engine - the engine running the entities
|
|
1652
|
+
* @param entity - the root entity of the tree
|
|
1653
|
+
* @param component - the parenting component to filter by
|
|
1654
|
+
* @returns An iterator of an array as [entity, entity2, ...]
|
|
1655
|
+
*
|
|
1656
|
+
* Example:
|
|
1657
|
+
* ```ts
|
|
1658
|
+
* const TreeComponent = engine.defineComponent('custom::TreeComponent', {
|
|
1659
|
+
* label: Schemas.String,
|
|
1660
|
+
* parent: Schemas.Entity
|
|
1661
|
+
* })
|
|
1662
|
+
*
|
|
1663
|
+
* for (const entity of getComponentEntityTree(engine, entity, TreeComponent)) {
|
|
1664
|
+
* // entity in the tree
|
|
1665
|
+
* }
|
|
1666
|
+
* ```
|
|
1667
|
+
*/
|
|
1668
|
+
export declare function getComponentEntityTree<T>(engine: IEngine, entity: Entity, component: ComponentDefinition<T & {
|
|
1669
|
+
parent?: Entity;
|
|
1670
|
+
}>): Generator<Entity>;
|
|
1671
|
+
|
|
1648
1672
|
/**
|
|
1649
1673
|
* @public
|
|
1650
1674
|
* @deprecated composite is not being supported so far, please do not use this feature
|
|
@@ -1726,11 +1750,6 @@ export declare interface IEngine {
|
|
|
1726
1750
|
* @param entity - entity
|
|
1727
1751
|
*/
|
|
1728
1752
|
removeEntity(entity: Entity): void;
|
|
1729
|
-
/**
|
|
1730
|
-
* Remove all components of each entity in the tree made with Transform parenting
|
|
1731
|
-
* @param firstEntity - the root entity of the tree
|
|
1732
|
-
*/
|
|
1733
|
-
removeEntityWithChildren(firstEntity: Entity): void;
|
|
1734
1753
|
/**
|
|
1735
1754
|
*
|
|
1736
1755
|
* @public
|
|
@@ -4994,6 +5013,14 @@ export declare interface Rect {
|
|
|
4994
5013
|
height: number;
|
|
4995
5014
|
}
|
|
4996
5015
|
|
|
5016
|
+
/**
|
|
5017
|
+
* Remove all components of each entity in the tree made with Transform parenting
|
|
5018
|
+
* @param engine - the engine running the entities
|
|
5019
|
+
* @param firstEntity - the root entity of the tree
|
|
5020
|
+
* @public
|
|
5021
|
+
*/
|
|
5022
|
+
export declare function removeEntityWithChildren(engine: IEngine, entity: Entity): void;
|
|
5023
|
+
|
|
4997
5024
|
export declare type RPCSendableMessage = {
|
|
4998
5025
|
jsonrpc: '2.0';
|
|
4999
5026
|
id: number;
|
|
@@ -14688,6 +14688,126 @@
|
|
|
14688
14688
|
}
|
|
14689
14689
|
]
|
|
14690
14690
|
},
|
|
14691
|
+
{
|
|
14692
|
+
"kind": "Function",
|
|
14693
|
+
"canonicalReference": "@dcl/playground-assets!getComponentEntityTree:function(1)",
|
|
14694
|
+
"docComment": "/**\n * Get an iterator of entities that follow a tree structure for a component\n *\n * @param engine - the engine running the entities\n *\n * @param entity - the root entity of the tree\n *\n * @param component - the parenting component to filter by\n *\n * @returns An iterator of an array as [entity, entity2, ...]\n *\n * Example:\n * ```ts\n * const TreeComponent = engine.defineComponent('custom::TreeComponent', {\n * label: Schemas.String,\n * parent: Schemas.Entity\n * })\n *\n * for (const entity of getComponentEntityTree(engine, entity, TreeComponent)) {\n * // entity in the tree\n * }\n * ```\n *\n * @public\n */\n",
|
|
14695
|
+
"excerptTokens": [
|
|
14696
|
+
{
|
|
14697
|
+
"kind": "Content",
|
|
14698
|
+
"text": "export declare function getComponentEntityTree<T>(engine: "
|
|
14699
|
+
},
|
|
14700
|
+
{
|
|
14701
|
+
"kind": "Reference",
|
|
14702
|
+
"text": "IEngine",
|
|
14703
|
+
"canonicalReference": "@dcl/playground-assets!IEngine:interface"
|
|
14704
|
+
},
|
|
14705
|
+
{
|
|
14706
|
+
"kind": "Content",
|
|
14707
|
+
"text": ", entity: "
|
|
14708
|
+
},
|
|
14709
|
+
{
|
|
14710
|
+
"kind": "Reference",
|
|
14711
|
+
"text": "Entity",
|
|
14712
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
14713
|
+
},
|
|
14714
|
+
{
|
|
14715
|
+
"kind": "Content",
|
|
14716
|
+
"text": ", component: "
|
|
14717
|
+
},
|
|
14718
|
+
{
|
|
14719
|
+
"kind": "Reference",
|
|
14720
|
+
"text": "ComponentDefinition",
|
|
14721
|
+
"canonicalReference": "@dcl/playground-assets!ComponentDefinition:type"
|
|
14722
|
+
},
|
|
14723
|
+
{
|
|
14724
|
+
"kind": "Content",
|
|
14725
|
+
"text": "<T & {\n parent?: "
|
|
14726
|
+
},
|
|
14727
|
+
{
|
|
14728
|
+
"kind": "Reference",
|
|
14729
|
+
"text": "Entity",
|
|
14730
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
14731
|
+
},
|
|
14732
|
+
{
|
|
14733
|
+
"kind": "Content",
|
|
14734
|
+
"text": ";\n}>"
|
|
14735
|
+
},
|
|
14736
|
+
{
|
|
14737
|
+
"kind": "Content",
|
|
14738
|
+
"text": "): "
|
|
14739
|
+
},
|
|
14740
|
+
{
|
|
14741
|
+
"kind": "Reference",
|
|
14742
|
+
"text": "Generator",
|
|
14743
|
+
"canonicalReference": "!Generator:interface"
|
|
14744
|
+
},
|
|
14745
|
+
{
|
|
14746
|
+
"kind": "Content",
|
|
14747
|
+
"text": "<"
|
|
14748
|
+
},
|
|
14749
|
+
{
|
|
14750
|
+
"kind": "Reference",
|
|
14751
|
+
"text": "Entity",
|
|
14752
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
14753
|
+
},
|
|
14754
|
+
{
|
|
14755
|
+
"kind": "Content",
|
|
14756
|
+
"text": ">"
|
|
14757
|
+
},
|
|
14758
|
+
{
|
|
14759
|
+
"kind": "Content",
|
|
14760
|
+
"text": ";"
|
|
14761
|
+
}
|
|
14762
|
+
],
|
|
14763
|
+
"fileUrlPath": "../ecs/dist/runtime/helpers/tree.d.ts",
|
|
14764
|
+
"returnTypeTokenRange": {
|
|
14765
|
+
"startIndex": 10,
|
|
14766
|
+
"endIndex": 14
|
|
14767
|
+
},
|
|
14768
|
+
"releaseTag": "Public",
|
|
14769
|
+
"overloadIndex": 1,
|
|
14770
|
+
"parameters": [
|
|
14771
|
+
{
|
|
14772
|
+
"parameterName": "engine",
|
|
14773
|
+
"parameterTypeTokenRange": {
|
|
14774
|
+
"startIndex": 1,
|
|
14775
|
+
"endIndex": 2
|
|
14776
|
+
},
|
|
14777
|
+
"isOptional": false
|
|
14778
|
+
},
|
|
14779
|
+
{
|
|
14780
|
+
"parameterName": "entity",
|
|
14781
|
+
"parameterTypeTokenRange": {
|
|
14782
|
+
"startIndex": 3,
|
|
14783
|
+
"endIndex": 4
|
|
14784
|
+
},
|
|
14785
|
+
"isOptional": false
|
|
14786
|
+
},
|
|
14787
|
+
{
|
|
14788
|
+
"parameterName": "component",
|
|
14789
|
+
"parameterTypeTokenRange": {
|
|
14790
|
+
"startIndex": 5,
|
|
14791
|
+
"endIndex": 9
|
|
14792
|
+
},
|
|
14793
|
+
"isOptional": false
|
|
14794
|
+
}
|
|
14795
|
+
],
|
|
14796
|
+
"typeParameters": [
|
|
14797
|
+
{
|
|
14798
|
+
"typeParameterName": "T",
|
|
14799
|
+
"constraintTokenRange": {
|
|
14800
|
+
"startIndex": 0,
|
|
14801
|
+
"endIndex": 0
|
|
14802
|
+
},
|
|
14803
|
+
"defaultTypeTokenRange": {
|
|
14804
|
+
"startIndex": 0,
|
|
14805
|
+
"endIndex": 0
|
|
14806
|
+
}
|
|
14807
|
+
}
|
|
14808
|
+
],
|
|
14809
|
+
"name": "getComponentEntityTree"
|
|
14810
|
+
},
|
|
14691
14811
|
{
|
|
14692
14812
|
"kind": "Function",
|
|
14693
14813
|
"canonicalReference": "@dcl/playground-assets!getCompositeRootComponent:function(1)",
|
|
@@ -16279,52 +16399,6 @@
|
|
|
16279
16399
|
],
|
|
16280
16400
|
"name": "removeEntity"
|
|
16281
16401
|
},
|
|
16282
|
-
{
|
|
16283
|
-
"kind": "MethodSignature",
|
|
16284
|
-
"canonicalReference": "@dcl/playground-assets!IEngine#removeEntityWithChildren:member(1)",
|
|
16285
|
-
"docComment": "/**\n * Remove all components of each entity in the tree made with Transform parenting\n *\n * @param firstEntity - the root entity of the tree\n */\n",
|
|
16286
|
-
"excerptTokens": [
|
|
16287
|
-
{
|
|
16288
|
-
"kind": "Content",
|
|
16289
|
-
"text": "removeEntityWithChildren(firstEntity: "
|
|
16290
|
-
},
|
|
16291
|
-
{
|
|
16292
|
-
"kind": "Reference",
|
|
16293
|
-
"text": "Entity",
|
|
16294
|
-
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
16295
|
-
},
|
|
16296
|
-
{
|
|
16297
|
-
"kind": "Content",
|
|
16298
|
-
"text": "): "
|
|
16299
|
-
},
|
|
16300
|
-
{
|
|
16301
|
-
"kind": "Content",
|
|
16302
|
-
"text": "void"
|
|
16303
|
-
},
|
|
16304
|
-
{
|
|
16305
|
-
"kind": "Content",
|
|
16306
|
-
"text": ";"
|
|
16307
|
-
}
|
|
16308
|
-
],
|
|
16309
|
-
"isOptional": false,
|
|
16310
|
-
"returnTypeTokenRange": {
|
|
16311
|
-
"startIndex": 3,
|
|
16312
|
-
"endIndex": 4
|
|
16313
|
-
},
|
|
16314
|
-
"releaseTag": "Public",
|
|
16315
|
-
"overloadIndex": 1,
|
|
16316
|
-
"parameters": [
|
|
16317
|
-
{
|
|
16318
|
-
"parameterName": "firstEntity",
|
|
16319
|
-
"parameterTypeTokenRange": {
|
|
16320
|
-
"startIndex": 1,
|
|
16321
|
-
"endIndex": 2
|
|
16322
|
-
},
|
|
16323
|
-
"isOptional": false
|
|
16324
|
-
}
|
|
16325
|
-
],
|
|
16326
|
-
"name": "removeEntityWithChildren"
|
|
16327
|
-
},
|
|
16328
16402
|
{
|
|
16329
16403
|
"kind": "MethodSignature",
|
|
16330
16404
|
"canonicalReference": "@dcl/playground-assets!IEngine#removeSystem:member(1)",
|
|
@@ -43904,6 +43978,69 @@
|
|
|
43904
43978
|
],
|
|
43905
43979
|
"extendsTokenRanges": []
|
|
43906
43980
|
},
|
|
43981
|
+
{
|
|
43982
|
+
"kind": "Function",
|
|
43983
|
+
"canonicalReference": "@dcl/playground-assets!removeEntityWithChildren:function(1)",
|
|
43984
|
+
"docComment": "/**\n * Remove all components of each entity in the tree made with Transform parenting\n *\n * @param engine - the engine running the entities\n *\n * @param firstEntity - the root entity of the tree\n *\n * @public\n */\n",
|
|
43985
|
+
"excerptTokens": [
|
|
43986
|
+
{
|
|
43987
|
+
"kind": "Content",
|
|
43988
|
+
"text": "export declare function removeEntityWithChildren(engine: "
|
|
43989
|
+
},
|
|
43990
|
+
{
|
|
43991
|
+
"kind": "Reference",
|
|
43992
|
+
"text": "IEngine",
|
|
43993
|
+
"canonicalReference": "@dcl/playground-assets!IEngine:interface"
|
|
43994
|
+
},
|
|
43995
|
+
{
|
|
43996
|
+
"kind": "Content",
|
|
43997
|
+
"text": ", entity: "
|
|
43998
|
+
},
|
|
43999
|
+
{
|
|
44000
|
+
"kind": "Reference",
|
|
44001
|
+
"text": "Entity",
|
|
44002
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
44003
|
+
},
|
|
44004
|
+
{
|
|
44005
|
+
"kind": "Content",
|
|
44006
|
+
"text": "): "
|
|
44007
|
+
},
|
|
44008
|
+
{
|
|
44009
|
+
"kind": "Content",
|
|
44010
|
+
"text": "void"
|
|
44011
|
+
},
|
|
44012
|
+
{
|
|
44013
|
+
"kind": "Content",
|
|
44014
|
+
"text": ";"
|
|
44015
|
+
}
|
|
44016
|
+
],
|
|
44017
|
+
"fileUrlPath": "../ecs/dist/runtime/helpers/tree.d.ts",
|
|
44018
|
+
"returnTypeTokenRange": {
|
|
44019
|
+
"startIndex": 5,
|
|
44020
|
+
"endIndex": 6
|
|
44021
|
+
},
|
|
44022
|
+
"releaseTag": "Public",
|
|
44023
|
+
"overloadIndex": 1,
|
|
44024
|
+
"parameters": [
|
|
44025
|
+
{
|
|
44026
|
+
"parameterName": "engine",
|
|
44027
|
+
"parameterTypeTokenRange": {
|
|
44028
|
+
"startIndex": 1,
|
|
44029
|
+
"endIndex": 2
|
|
44030
|
+
},
|
|
44031
|
+
"isOptional": false
|
|
44032
|
+
},
|
|
44033
|
+
{
|
|
44034
|
+
"parameterName": "entity",
|
|
44035
|
+
"parameterTypeTokenRange": {
|
|
44036
|
+
"startIndex": 3,
|
|
44037
|
+
"endIndex": 4
|
|
44038
|
+
},
|
|
44039
|
+
"isOptional": false
|
|
44040
|
+
}
|
|
44041
|
+
],
|
|
44042
|
+
"name": "removeEntityWithChildren"
|
|
44043
|
+
},
|
|
43907
44044
|
{
|
|
43908
44045
|
"kind": "TypeAlias",
|
|
43909
44046
|
"canonicalReference": "@dcl/playground-assets!RPCSendableMessage:type",
|
|
@@ -849,6 +849,11 @@ export const enum Font {
|
|
|
849
849
|
F_SERIF = 1
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
+
// @public
|
|
853
|
+
export function getComponentEntityTree<T>(engine: IEngine, entity: Entity, component: ComponentDefinition<T & {
|
|
854
|
+
parent?: Entity;
|
|
855
|
+
}>): Generator<Entity>;
|
|
856
|
+
|
|
852
857
|
// @public @deprecated (undocumented)
|
|
853
858
|
export function getCompositeRootComponent(engine: IEngine): LastWriteWinElementSetComponentDefinition<CompositeRootType>;
|
|
854
859
|
|
|
@@ -939,7 +944,6 @@ export interface IEngine {
|
|
|
939
944
|
readonly PlayerEntity: Entity;
|
|
940
945
|
registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
|
|
941
946
|
removeEntity(entity: Entity): void;
|
|
942
|
-
removeEntityWithChildren(firstEntity: Entity): void;
|
|
943
947
|
removeSystem(selector: string | SystemFn): boolean;
|
|
944
948
|
readonly RootEntity: Entity;
|
|
945
949
|
seal(): void;
|
|
@@ -2609,6 +2613,9 @@ export interface Rect {
|
|
|
2609
2613
|
y: number;
|
|
2610
2614
|
}
|
|
2611
2615
|
|
|
2616
|
+
// @public
|
|
2617
|
+
export function removeEntityWithChildren(engine: IEngine, entity: Entity): void;
|
|
2618
|
+
|
|
2612
2619
|
// Warning: (ae-missing-release-tag) "RPCSendableMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2613
2620
|
//
|
|
2614
2621
|
// @public (undocumented)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.9-4789623295.commit-8cfb6bb",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.1.
|
|
8
|
-
"@dcl/sdk": "7.1.
|
|
7
|
+
"@dcl/js-runtime": "7.1.9-4789623295.commit-8cfb6bb",
|
|
8
|
+
"@dcl/sdk": "7.1.9-4789623295.commit-8cfb6bb"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
},
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"typings": "./dist/index.d.ts",
|
|
31
|
-
"commit": "
|
|
31
|
+
"commit": "8cfb6bba4f73ce95a482ebec015d20cf3b8e0b2c"
|
|
32
32
|
}
|