@dcl/playground-assets 7.8.4 → 7.8.5
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 +8 -1
- package/dist/beta.d.ts +7 -0
- package/dist/index.bundled.d.ts +7 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +8 -1
- package/etc/playground-assets.api.json +112 -5
- package/etc/playground-assets.api.md +2 -1
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.8.
|
4
|
+
"version": "7.8.5",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
@@ -35,5 +35,5 @@
|
|
35
35
|
},
|
36
36
|
"types": "./index.d.ts",
|
37
37
|
"typings": "./index.d.ts",
|
38
|
-
"commit": "
|
38
|
+
"commit": "a5e11cbf36bbfb2a0f3f4e450e0f8ea843bb319e"
|
39
39
|
}
|
@@ -2235,7 +2235,14 @@ export declare interface IEngine {
|
|
2235
2235
|
* Search for the entity that matches de label string defined in the editor.
|
2236
2236
|
* @param value - Name value string
|
2237
2237
|
*/
|
2238
|
-
getEntityOrNullByName(label:
|
2238
|
+
getEntityOrNullByName<T = string>(label: T): Entity | null;
|
2239
|
+
/**
|
2240
|
+
* @public
|
2241
|
+
* Search for the entity that matches de label string defined in the editor.
|
2242
|
+
* @param value - Name value string
|
2243
|
+
* @typeParam T - The type of the entity name value
|
2244
|
+
*/
|
2245
|
+
getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
|
2239
2246
|
/**
|
2240
2247
|
* @public
|
2241
2248
|
* @param deltaTime - deltaTime in seconds
|
@@ -20980,6 +20980,92 @@
|
|
20980
20980
|
],
|
20981
20981
|
"name": "getEntitiesWith"
|
20982
20982
|
},
|
20983
|
+
{
|
20984
|
+
"kind": "MethodSignature",
|
20985
|
+
"canonicalReference": "@dcl/playground-assets!IEngine#getEntityByName:member(1)",
|
20986
|
+
"docComment": "/**\n * Search for the entity that matches de label string defined in the editor.\n *\n * @param value - Name value string\n *\n * @typeParam T - The type of the entity name value\n *\n * @public\n */\n",
|
20987
|
+
"excerptTokens": [
|
20988
|
+
{
|
20989
|
+
"kind": "Content",
|
20990
|
+
"text": "getEntityByName<T = "
|
20991
|
+
},
|
20992
|
+
{
|
20993
|
+
"kind": "Content",
|
20994
|
+
"text": "never"
|
20995
|
+
},
|
20996
|
+
{
|
20997
|
+
"kind": "Content",
|
20998
|
+
"text": ", K = "
|
20999
|
+
},
|
21000
|
+
{
|
21001
|
+
"kind": "Content",
|
21002
|
+
"text": "T"
|
21003
|
+
},
|
21004
|
+
{
|
21005
|
+
"kind": "Content",
|
21006
|
+
"text": ">(value: "
|
21007
|
+
},
|
21008
|
+
{
|
21009
|
+
"kind": "Content",
|
21010
|
+
"text": "K & (T extends never ? never : string)"
|
21011
|
+
},
|
21012
|
+
{
|
21013
|
+
"kind": "Content",
|
21014
|
+
"text": "): "
|
21015
|
+
},
|
21016
|
+
{
|
21017
|
+
"kind": "Reference",
|
21018
|
+
"text": "Entity",
|
21019
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
21020
|
+
},
|
21021
|
+
{
|
21022
|
+
"kind": "Content",
|
21023
|
+
"text": ";"
|
21024
|
+
}
|
21025
|
+
],
|
21026
|
+
"isOptional": false,
|
21027
|
+
"returnTypeTokenRange": {
|
21028
|
+
"startIndex": 7,
|
21029
|
+
"endIndex": 8
|
21030
|
+
},
|
21031
|
+
"releaseTag": "Public",
|
21032
|
+
"overloadIndex": 1,
|
21033
|
+
"parameters": [
|
21034
|
+
{
|
21035
|
+
"parameterName": "value",
|
21036
|
+
"parameterTypeTokenRange": {
|
21037
|
+
"startIndex": 5,
|
21038
|
+
"endIndex": 6
|
21039
|
+
},
|
21040
|
+
"isOptional": false
|
21041
|
+
}
|
21042
|
+
],
|
21043
|
+
"typeParameters": [
|
21044
|
+
{
|
21045
|
+
"typeParameterName": "T",
|
21046
|
+
"constraintTokenRange": {
|
21047
|
+
"startIndex": 0,
|
21048
|
+
"endIndex": 0
|
21049
|
+
},
|
21050
|
+
"defaultTypeTokenRange": {
|
21051
|
+
"startIndex": 1,
|
21052
|
+
"endIndex": 2
|
21053
|
+
}
|
21054
|
+
},
|
21055
|
+
{
|
21056
|
+
"typeParameterName": "K",
|
21057
|
+
"constraintTokenRange": {
|
21058
|
+
"startIndex": 0,
|
21059
|
+
"endIndex": 0
|
21060
|
+
},
|
21061
|
+
"defaultTypeTokenRange": {
|
21062
|
+
"startIndex": 3,
|
21063
|
+
"endIndex": 4
|
21064
|
+
}
|
21065
|
+
}
|
21066
|
+
],
|
21067
|
+
"name": "getEntityByName"
|
21068
|
+
},
|
20983
21069
|
{
|
20984
21070
|
"kind": "MethodSignature",
|
20985
21071
|
"canonicalReference": "@dcl/playground-assets!IEngine#getEntityOrNullByName:member(1)",
|
@@ -20987,12 +21073,20 @@
|
|
20987
21073
|
"excerptTokens": [
|
20988
21074
|
{
|
20989
21075
|
"kind": "Content",
|
20990
|
-
"text": "getEntityOrNullByName
|
21076
|
+
"text": "getEntityOrNullByName<T = "
|
20991
21077
|
},
|
20992
21078
|
{
|
20993
21079
|
"kind": "Content",
|
20994
21080
|
"text": "string"
|
20995
21081
|
},
|
21082
|
+
{
|
21083
|
+
"kind": "Content",
|
21084
|
+
"text": ">(label: "
|
21085
|
+
},
|
21086
|
+
{
|
21087
|
+
"kind": "Content",
|
21088
|
+
"text": "T"
|
21089
|
+
},
|
20996
21090
|
{
|
20997
21091
|
"kind": "Content",
|
20998
21092
|
"text": "): "
|
@@ -21013,8 +21107,8 @@
|
|
21013
21107
|
],
|
21014
21108
|
"isOptional": false,
|
21015
21109
|
"returnTypeTokenRange": {
|
21016
|
-
"startIndex":
|
21017
|
-
"endIndex":
|
21110
|
+
"startIndex": 5,
|
21111
|
+
"endIndex": 7
|
21018
21112
|
},
|
21019
21113
|
"releaseTag": "Alpha",
|
21020
21114
|
"overloadIndex": 1,
|
@@ -21022,12 +21116,25 @@
|
|
21022
21116
|
{
|
21023
21117
|
"parameterName": "label",
|
21024
21118
|
"parameterTypeTokenRange": {
|
21025
|
-
"startIndex":
|
21026
|
-
"endIndex":
|
21119
|
+
"startIndex": 3,
|
21120
|
+
"endIndex": 4
|
21027
21121
|
},
|
21028
21122
|
"isOptional": false
|
21029
21123
|
}
|
21030
21124
|
],
|
21125
|
+
"typeParameters": [
|
21126
|
+
{
|
21127
|
+
"typeParameterName": "T",
|
21128
|
+
"constraintTokenRange": {
|
21129
|
+
"startIndex": 0,
|
21130
|
+
"endIndex": 0
|
21131
|
+
},
|
21132
|
+
"defaultTypeTokenRange": {
|
21133
|
+
"startIndex": 1,
|
21134
|
+
"endIndex": 2
|
21135
|
+
}
|
21136
|
+
}
|
21137
|
+
],
|
21031
21138
|
"name": "getEntityOrNullByName"
|
21032
21139
|
},
|
21033
21140
|
{
|
@@ -1247,8 +1247,9 @@ export interface IEngine {
|
|
1247
1247
|
getComponent<T>(componentId: number | string): ComponentDefinition<T>;
|
1248
1248
|
getComponentOrNull<T>(componentId: number | string): ComponentDefinition<T> | null;
|
1249
1249
|
getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
|
1250
|
+
getEntityByName<T = never, K = T>(value: K & (T extends never ? never : string)): Entity;
|
1250
1251
|
// @alpha
|
1251
|
-
getEntityOrNullByName(label:
|
1252
|
+
getEntityOrNullByName<T = string>(label: T): Entity | null;
|
1252
1253
|
getEntityState(entity: Entity): EntityState;
|
1253
1254
|
// (undocumented)
|
1254
1255
|
_id: number;
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/playground-assets",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.8.
|
4
|
+
"version": "7.8.5",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
|
-
"@dcl/js-runtime": "7.8.
|
8
|
-
"@dcl/sdk": "7.8.
|
7
|
+
"@dcl/js-runtime": "7.8.5",
|
8
|
+
"@dcl/sdk": "7.8.5"
|
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": "
|
35
|
+
"commit": "a5e11cbf36bbfb2a0f3f4e450e0f8ea843bb319e"
|
36
36
|
}
|