@dcl/playground-assets 7.3.15-6201184205.commit-767716e → 7.3.15-6201308535.commit-dd17bb7
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 +50 -4
- package/dist/beta.d.ts +35 -4
- package/dist/index.bundled.d.ts +35 -4
- package/dist/index.js +5 -5
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +6 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +50 -4
- package/etc/playground-assets.api.json +296 -26
- package/etc/playground-assets.api.md +44 -3
- package/package.json +4 -4
|
@@ -886,6 +886,11 @@ declare module "~system/EngineApi" {
|
|
|
886
886
|
export interface CrdtMessageFromRendererResponse {
|
|
887
887
|
data: Uint8Array[];
|
|
888
888
|
}
|
|
889
|
+
export interface IsServerRequest {
|
|
890
|
+
}
|
|
891
|
+
export interface IsServerResponse {
|
|
892
|
+
isServer: boolean;
|
|
893
|
+
}
|
|
889
894
|
|
|
890
895
|
// Function declaration section
|
|
891
896
|
export function sendBatch(body: ManyEntityAction): Promise<SendBatchResponse>;
|
|
@@ -894,6 +899,7 @@ declare module "~system/EngineApi" {
|
|
|
894
899
|
export function crdtSendToRenderer(body: CrdtSendToRendererRequest): Promise<CrdtSendToResponse>;
|
|
895
900
|
export function crdtGetState(body: CrdtSendToRendererRequest): Promise<CrdtGetStateResponse>;
|
|
896
901
|
export function crdtGetMessageFromRenderer(body: CrdtMessageFromRendererRequest): Promise<CrdtMessageFromRendererResponse>;
|
|
902
|
+
export function isServer(body: IsServerRequest): Promise<IsServerResponse>;
|
|
897
903
|
|
|
898
904
|
}
|
|
899
905
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.3.15-
|
|
4
|
+
"version": "7.3.15-6201308535.commit-dd17bb7",
|
|
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": "
|
|
37
|
+
"commit": "dd17bb77900cab91f1a031bffbc9e9e20697902a"
|
|
38
38
|
}
|
|
@@ -196,7 +196,7 @@ export declare interface BaseComponent<T> {
|
|
|
196
196
|
* This function writes the whole state of the component into a ByteBuffer
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
dumpCrdtStateToBuffer(buffer: ByteBuffer): void;
|
|
199
|
+
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
200
200
|
/**
|
|
201
201
|
* @public
|
|
202
202
|
* Marks the entity as deleted and signals it cannot be used ever again. It must
|
|
@@ -1614,13 +1614,14 @@ export declare type EntityComponents = {
|
|
|
1614
1614
|
* @intenral
|
|
1615
1615
|
*/
|
|
1616
1616
|
export declare type EntityContainer = {
|
|
1617
|
-
generateEntity(): Entity;
|
|
1617
|
+
generateEntity(networked?: boolean): Entity;
|
|
1618
1618
|
removeEntity(entity: Entity): boolean;
|
|
1619
1619
|
getEntityState(entity: Entity): EntityState;
|
|
1620
1620
|
getExistingEntities(): Set<Entity>;
|
|
1621
1621
|
releaseRemovedEntities(): Entity[];
|
|
1622
1622
|
updateRemovedEntity(entity: Entity): boolean;
|
|
1623
1623
|
updateUsedEntity(entity: Entity): boolean;
|
|
1624
|
+
setNetworkEntitiesRange(reservedLocalEntities: number, range: [number, number]): void;
|
|
1624
1625
|
};
|
|
1625
1626
|
|
|
1626
1627
|
/** @public */
|
|
@@ -1662,6 +1663,20 @@ export declare enum EntityState {
|
|
|
1662
1663
|
Reserved = 3
|
|
1663
1664
|
}
|
|
1664
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* @public
|
|
1668
|
+
*/
|
|
1669
|
+
export declare namespace EntityUtils {
|
|
1670
|
+
/**
|
|
1671
|
+
* @returns [entityNumber, entityVersion]
|
|
1672
|
+
*/
|
|
1673
|
+
export function fromEntityId(entityId: Entity): [number, number];
|
|
1674
|
+
/**
|
|
1675
|
+
* @returns compound number from entityNumber and entityVerison
|
|
1676
|
+
*/
|
|
1677
|
+
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1665
1680
|
/**
|
|
1666
1681
|
* Constant used to define the minimal number value in Babylon.js
|
|
1667
1682
|
* @public
|
|
@@ -1817,10 +1832,9 @@ export declare interface IEngine {
|
|
|
1817
1832
|
/**
|
|
1818
1833
|
* @public
|
|
1819
1834
|
* Increment the used entity counter and return the next one.
|
|
1820
|
-
* @param dynamic - whether or no the entity should be considered as Dynamic (vs Static)
|
|
1821
1835
|
* @returns the next entity unused
|
|
1822
1836
|
*/
|
|
1823
|
-
addEntity(
|
|
1837
|
+
addEntity(): Entity;
|
|
1824
1838
|
/**
|
|
1825
1839
|
* @public
|
|
1826
1840
|
* Remove all components of an entity
|
|
@@ -1999,6 +2013,18 @@ export declare interface IEngine {
|
|
|
1999
2013
|
* components that will be available to this engine and to run optimizations.
|
|
2000
2014
|
*/
|
|
2001
2015
|
seal(): void;
|
|
2016
|
+
/**
|
|
2017
|
+
* @alpha
|
|
2018
|
+
* Initialize network manager
|
|
2019
|
+
*/
|
|
2020
|
+
addNetworkManager(reservedLocalEntities: number, range: [number, number]): {
|
|
2021
|
+
addEntity: IEngine['addEntity'];
|
|
2022
|
+
};
|
|
2023
|
+
/**
|
|
2024
|
+
* @alpha
|
|
2025
|
+
* Get netowrk manager to create entities.
|
|
2026
|
+
*/
|
|
2027
|
+
getNetworkManager(): ReturnType<IEngine['addNetworkManager']>;
|
|
2002
2028
|
}
|
|
2003
2029
|
|
|
2004
2030
|
/**
|
|
@@ -2275,6 +2301,12 @@ export declare interface ISchema<T = any> {
|
|
|
2275
2301
|
*/
|
|
2276
2302
|
export declare function isEqual(p1: Coords, p2: Coords): boolean;
|
|
2277
2303
|
|
|
2304
|
+
export declare type ISyncComponents = LastWriteWinElementSetComponentDefinition<ISyncComponentsType>;
|
|
2305
|
+
|
|
2306
|
+
export declare interface ISyncComponentsType {
|
|
2307
|
+
componentIds: number[];
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2278
2310
|
/**
|
|
2279
2311
|
* @public
|
|
2280
2312
|
*/
|
|
@@ -5697,6 +5729,13 @@ export declare namespace Rect {
|
|
|
5697
5729
|
*/
|
|
5698
5730
|
export declare function removeEntityWithChildren(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'removeEntity'>, entity: Entity): void;
|
|
5699
5731
|
|
|
5732
|
+
export declare const RESERVED_LOCAL_ENTITIES = 65535;
|
|
5733
|
+
|
|
5734
|
+
/**
|
|
5735
|
+
* This first 512 entities are reserved by the renderer
|
|
5736
|
+
*/
|
|
5737
|
+
export declare const RESERVED_STATIC_ENTITIES = 512;
|
|
5738
|
+
|
|
5700
5739
|
export declare type RPCSendableMessage = {
|
|
5701
5740
|
jsonrpc: '2.0';
|
|
5702
5741
|
id: number;
|
|
@@ -5977,6 +6016,13 @@ export declare interface Spec {
|
|
|
5977
6016
|
[key: string]: ISchema;
|
|
5978
6017
|
}
|
|
5979
6018
|
|
|
6019
|
+
/**
|
|
6020
|
+
* @alpha
|
|
6021
|
+
* This is going to be used for sync components through a server.
|
|
6022
|
+
* Can be modified in the future since it's still in research
|
|
6023
|
+
*/
|
|
6024
|
+
export declare const SyncComponents: ISyncComponents;
|
|
6025
|
+
|
|
5980
6026
|
/**
|
|
5981
6027
|
* @public
|
|
5982
6028
|
*/
|
|
@@ -1689,6 +1689,23 @@
|
|
|
1689
1689
|
"text": "ByteBuffer",
|
|
1690
1690
|
"canonicalReference": "@dcl/playground-assets!ByteBuffer:interface"
|
|
1691
1691
|
},
|
|
1692
|
+
{
|
|
1693
|
+
"kind": "Content",
|
|
1694
|
+
"text": ", filterEntity?: "
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"kind": "Content",
|
|
1698
|
+
"text": "(entity: "
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"kind": "Reference",
|
|
1702
|
+
"text": "Entity",
|
|
1703
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"kind": "Content",
|
|
1707
|
+
"text": ") => boolean"
|
|
1708
|
+
},
|
|
1692
1709
|
{
|
|
1693
1710
|
"kind": "Content",
|
|
1694
1711
|
"text": "): "
|
|
@@ -1704,8 +1721,8 @@
|
|
|
1704
1721
|
],
|
|
1705
1722
|
"isOptional": false,
|
|
1706
1723
|
"returnTypeTokenRange": {
|
|
1707
|
-
"startIndex":
|
|
1708
|
-
"endIndex":
|
|
1724
|
+
"startIndex": 7,
|
|
1725
|
+
"endIndex": 8
|
|
1709
1726
|
},
|
|
1710
1727
|
"releaseTag": "Public",
|
|
1711
1728
|
"overloadIndex": 1,
|
|
@@ -1717,6 +1734,14 @@
|
|
|
1717
1734
|
"endIndex": 2
|
|
1718
1735
|
},
|
|
1719
1736
|
"isOptional": false
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"parameterName": "filterEntity",
|
|
1740
|
+
"parameterTypeTokenRange": {
|
|
1741
|
+
"startIndex": 3,
|
|
1742
|
+
"endIndex": 6
|
|
1743
|
+
},
|
|
1744
|
+
"isOptional": true
|
|
1720
1745
|
}
|
|
1721
1746
|
],
|
|
1722
1747
|
"name": "dumpCrdtStateToBuffer"
|
|
@@ -15447,7 +15472,7 @@
|
|
|
15447
15472
|
},
|
|
15448
15473
|
{
|
|
15449
15474
|
"kind": "Content",
|
|
15450
|
-
"text": "{\n generateEntity(): "
|
|
15475
|
+
"text": "{\n generateEntity(networked?: boolean): "
|
|
15451
15476
|
},
|
|
15452
15477
|
{
|
|
15453
15478
|
"kind": "Reference",
|
|
@@ -15528,7 +15553,7 @@
|
|
|
15528
15553
|
},
|
|
15529
15554
|
{
|
|
15530
15555
|
"kind": "Content",
|
|
15531
|
-
"text": "): boolean;\n}"
|
|
15556
|
+
"text": "): boolean;\n setNetworkEntitiesRange(reservedLocalEntities: number, range: [number, number]): void;\n}"
|
|
15532
15557
|
},
|
|
15533
15558
|
{
|
|
15534
15559
|
"kind": "Content",
|
|
@@ -15840,6 +15865,129 @@
|
|
|
15840
15865
|
}
|
|
15841
15866
|
]
|
|
15842
15867
|
},
|
|
15868
|
+
{
|
|
15869
|
+
"kind": "Namespace",
|
|
15870
|
+
"canonicalReference": "@dcl/playground-assets!EntityUtils:namespace",
|
|
15871
|
+
"docComment": "/**\n * @public\n */\n",
|
|
15872
|
+
"excerptTokens": [
|
|
15873
|
+
{
|
|
15874
|
+
"kind": "Content",
|
|
15875
|
+
"text": "export declare namespace EntityUtils "
|
|
15876
|
+
}
|
|
15877
|
+
],
|
|
15878
|
+
"fileUrlPath": "../ecs/dist/engine/entity.d.ts",
|
|
15879
|
+
"releaseTag": "Public",
|
|
15880
|
+
"name": "EntityUtils",
|
|
15881
|
+
"preserveMemberOrder": false,
|
|
15882
|
+
"members": [
|
|
15883
|
+
{
|
|
15884
|
+
"kind": "Function",
|
|
15885
|
+
"canonicalReference": "@dcl/playground-assets!EntityUtils.fromEntityId:function(1)",
|
|
15886
|
+
"docComment": "/**\n * @returns [entityNumber, entityVersion]\n */\n",
|
|
15887
|
+
"excerptTokens": [
|
|
15888
|
+
{
|
|
15889
|
+
"kind": "Content",
|
|
15890
|
+
"text": "function fromEntityId(entityId: "
|
|
15891
|
+
},
|
|
15892
|
+
{
|
|
15893
|
+
"kind": "Reference",
|
|
15894
|
+
"text": "Entity",
|
|
15895
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
15896
|
+
},
|
|
15897
|
+
{
|
|
15898
|
+
"kind": "Content",
|
|
15899
|
+
"text": "): "
|
|
15900
|
+
},
|
|
15901
|
+
{
|
|
15902
|
+
"kind": "Content",
|
|
15903
|
+
"text": "[number, number]"
|
|
15904
|
+
},
|
|
15905
|
+
{
|
|
15906
|
+
"kind": "Content",
|
|
15907
|
+
"text": ";"
|
|
15908
|
+
}
|
|
15909
|
+
],
|
|
15910
|
+
"returnTypeTokenRange": {
|
|
15911
|
+
"startIndex": 3,
|
|
15912
|
+
"endIndex": 4
|
|
15913
|
+
},
|
|
15914
|
+
"releaseTag": "Public",
|
|
15915
|
+
"overloadIndex": 1,
|
|
15916
|
+
"parameters": [
|
|
15917
|
+
{
|
|
15918
|
+
"parameterName": "entityId",
|
|
15919
|
+
"parameterTypeTokenRange": {
|
|
15920
|
+
"startIndex": 1,
|
|
15921
|
+
"endIndex": 2
|
|
15922
|
+
},
|
|
15923
|
+
"isOptional": false
|
|
15924
|
+
}
|
|
15925
|
+
],
|
|
15926
|
+
"name": "fromEntityId"
|
|
15927
|
+
},
|
|
15928
|
+
{
|
|
15929
|
+
"kind": "Function",
|
|
15930
|
+
"canonicalReference": "@dcl/playground-assets!EntityUtils.toEntityId:function(1)",
|
|
15931
|
+
"docComment": "/**\n * @returns compound number from entityNumber and entityVerison\n */\n",
|
|
15932
|
+
"excerptTokens": [
|
|
15933
|
+
{
|
|
15934
|
+
"kind": "Content",
|
|
15935
|
+
"text": "function toEntityId(entityNumber: "
|
|
15936
|
+
},
|
|
15937
|
+
{
|
|
15938
|
+
"kind": "Content",
|
|
15939
|
+
"text": "number"
|
|
15940
|
+
},
|
|
15941
|
+
{
|
|
15942
|
+
"kind": "Content",
|
|
15943
|
+
"text": ", entityVersion: "
|
|
15944
|
+
},
|
|
15945
|
+
{
|
|
15946
|
+
"kind": "Content",
|
|
15947
|
+
"text": "number"
|
|
15948
|
+
},
|
|
15949
|
+
{
|
|
15950
|
+
"kind": "Content",
|
|
15951
|
+
"text": "): "
|
|
15952
|
+
},
|
|
15953
|
+
{
|
|
15954
|
+
"kind": "Reference",
|
|
15955
|
+
"text": "Entity",
|
|
15956
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
15957
|
+
},
|
|
15958
|
+
{
|
|
15959
|
+
"kind": "Content",
|
|
15960
|
+
"text": ";"
|
|
15961
|
+
}
|
|
15962
|
+
],
|
|
15963
|
+
"returnTypeTokenRange": {
|
|
15964
|
+
"startIndex": 5,
|
|
15965
|
+
"endIndex": 6
|
|
15966
|
+
},
|
|
15967
|
+
"releaseTag": "Public",
|
|
15968
|
+
"overloadIndex": 1,
|
|
15969
|
+
"parameters": [
|
|
15970
|
+
{
|
|
15971
|
+
"parameterName": "entityNumber",
|
|
15972
|
+
"parameterTypeTokenRange": {
|
|
15973
|
+
"startIndex": 1,
|
|
15974
|
+
"endIndex": 2
|
|
15975
|
+
},
|
|
15976
|
+
"isOptional": false
|
|
15977
|
+
},
|
|
15978
|
+
{
|
|
15979
|
+
"parameterName": "entityVersion",
|
|
15980
|
+
"parameterTypeTokenRange": {
|
|
15981
|
+
"startIndex": 3,
|
|
15982
|
+
"endIndex": 4
|
|
15983
|
+
},
|
|
15984
|
+
"isOptional": false
|
|
15985
|
+
}
|
|
15986
|
+
],
|
|
15987
|
+
"name": "toEntityId"
|
|
15988
|
+
}
|
|
15989
|
+
]
|
|
15990
|
+
},
|
|
15843
15991
|
{
|
|
15844
15992
|
"kind": "Variable",
|
|
15845
15993
|
"canonicalReference": "@dcl/playground-assets!Epsilon:var",
|
|
@@ -16982,19 +17130,11 @@
|
|
|
16982
17130
|
{
|
|
16983
17131
|
"kind": "MethodSignature",
|
|
16984
17132
|
"canonicalReference": "@dcl/playground-assets!IEngine#addEntity:member(1)",
|
|
16985
|
-
"docComment": "/**\n * Increment the used entity counter and return the next one.\n *\n * @
|
|
17133
|
+
"docComment": "/**\n * Increment the used entity counter and return the next one.\n *\n * @returns the next entity unused\n *\n * @public\n */\n",
|
|
16986
17134
|
"excerptTokens": [
|
|
16987
17135
|
{
|
|
16988
17136
|
"kind": "Content",
|
|
16989
|
-
"text": "addEntity(
|
|
16990
|
-
},
|
|
16991
|
-
{
|
|
16992
|
-
"kind": "Content",
|
|
16993
|
-
"text": "boolean"
|
|
16994
|
-
},
|
|
16995
|
-
{
|
|
16996
|
-
"kind": "Content",
|
|
16997
|
-
"text": "): "
|
|
17137
|
+
"text": "addEntity(): "
|
|
16998
17138
|
},
|
|
16999
17139
|
{
|
|
17000
17140
|
"kind": "Reference",
|
|
@@ -17008,21 +17148,12 @@
|
|
|
17008
17148
|
],
|
|
17009
17149
|
"isOptional": false,
|
|
17010
17150
|
"returnTypeTokenRange": {
|
|
17011
|
-
"startIndex":
|
|
17012
|
-
"endIndex":
|
|
17151
|
+
"startIndex": 1,
|
|
17152
|
+
"endIndex": 2
|
|
17013
17153
|
},
|
|
17014
17154
|
"releaseTag": "Public",
|
|
17015
17155
|
"overloadIndex": 1,
|
|
17016
|
-
"parameters": [
|
|
17017
|
-
{
|
|
17018
|
-
"parameterName": "dynamic",
|
|
17019
|
-
"parameterTypeTokenRange": {
|
|
17020
|
-
"startIndex": 1,
|
|
17021
|
-
"endIndex": 2
|
|
17022
|
-
},
|
|
17023
|
-
"isOptional": true
|
|
17024
|
-
}
|
|
17025
|
-
],
|
|
17156
|
+
"parameters": [],
|
|
17026
17157
|
"name": "addEntity"
|
|
17027
17158
|
},
|
|
17028
17159
|
{
|
|
@@ -20532,6 +20663,91 @@
|
|
|
20532
20663
|
],
|
|
20533
20664
|
"name": "isEqual"
|
|
20534
20665
|
},
|
|
20666
|
+
{
|
|
20667
|
+
"kind": "TypeAlias",
|
|
20668
|
+
"canonicalReference": "@dcl/playground-assets!ISyncComponents:type",
|
|
20669
|
+
"docComment": "",
|
|
20670
|
+
"excerptTokens": [
|
|
20671
|
+
{
|
|
20672
|
+
"kind": "Content",
|
|
20673
|
+
"text": "export type ISyncComponents = "
|
|
20674
|
+
},
|
|
20675
|
+
{
|
|
20676
|
+
"kind": "Reference",
|
|
20677
|
+
"text": "LastWriteWinElementSetComponentDefinition",
|
|
20678
|
+
"canonicalReference": "@dcl/playground-assets!LastWriteWinElementSetComponentDefinition:interface"
|
|
20679
|
+
},
|
|
20680
|
+
{
|
|
20681
|
+
"kind": "Content",
|
|
20682
|
+
"text": "<"
|
|
20683
|
+
},
|
|
20684
|
+
{
|
|
20685
|
+
"kind": "Reference",
|
|
20686
|
+
"text": "ISyncComponentsType",
|
|
20687
|
+
"canonicalReference": "@dcl/playground-assets!ISyncComponentsType:interface"
|
|
20688
|
+
},
|
|
20689
|
+
{
|
|
20690
|
+
"kind": "Content",
|
|
20691
|
+
"text": ">"
|
|
20692
|
+
},
|
|
20693
|
+
{
|
|
20694
|
+
"kind": "Content",
|
|
20695
|
+
"text": ";"
|
|
20696
|
+
}
|
|
20697
|
+
],
|
|
20698
|
+
"fileUrlPath": "../ecs/dist/components/manual/SyncComponents.d.ts",
|
|
20699
|
+
"releaseTag": "Public",
|
|
20700
|
+
"name": "ISyncComponents",
|
|
20701
|
+
"typeTokenRange": {
|
|
20702
|
+
"startIndex": 1,
|
|
20703
|
+
"endIndex": 5
|
|
20704
|
+
}
|
|
20705
|
+
},
|
|
20706
|
+
{
|
|
20707
|
+
"kind": "Interface",
|
|
20708
|
+
"canonicalReference": "@dcl/playground-assets!ISyncComponentsType:interface",
|
|
20709
|
+
"docComment": "",
|
|
20710
|
+
"excerptTokens": [
|
|
20711
|
+
{
|
|
20712
|
+
"kind": "Content",
|
|
20713
|
+
"text": "export interface ISyncComponentsType "
|
|
20714
|
+
}
|
|
20715
|
+
],
|
|
20716
|
+
"fileUrlPath": "../ecs/dist/components/manual/SyncComponents.d.ts",
|
|
20717
|
+
"releaseTag": "Public",
|
|
20718
|
+
"name": "ISyncComponentsType",
|
|
20719
|
+
"preserveMemberOrder": false,
|
|
20720
|
+
"members": [
|
|
20721
|
+
{
|
|
20722
|
+
"kind": "PropertySignature",
|
|
20723
|
+
"canonicalReference": "@dcl/playground-assets!ISyncComponentsType#componentIds:member",
|
|
20724
|
+
"docComment": "",
|
|
20725
|
+
"excerptTokens": [
|
|
20726
|
+
{
|
|
20727
|
+
"kind": "Content",
|
|
20728
|
+
"text": "componentIds: "
|
|
20729
|
+
},
|
|
20730
|
+
{
|
|
20731
|
+
"kind": "Content",
|
|
20732
|
+
"text": "number[]"
|
|
20733
|
+
},
|
|
20734
|
+
{
|
|
20735
|
+
"kind": "Content",
|
|
20736
|
+
"text": ";"
|
|
20737
|
+
}
|
|
20738
|
+
],
|
|
20739
|
+
"isReadonly": false,
|
|
20740
|
+
"isOptional": false,
|
|
20741
|
+
"releaseTag": "Public",
|
|
20742
|
+
"name": "componentIds",
|
|
20743
|
+
"propertyTypeTokenRange": {
|
|
20744
|
+
"startIndex": 1,
|
|
20745
|
+
"endIndex": 2
|
|
20746
|
+
}
|
|
20747
|
+
}
|
|
20748
|
+
],
|
|
20749
|
+
"extendsTokenRanges": []
|
|
20750
|
+
},
|
|
20535
20751
|
{
|
|
20536
20752
|
"kind": "TypeAlias",
|
|
20537
20753
|
"canonicalReference": "@dcl/playground-assets!JsonArray:type",
|
|
@@ -55279,6 +55495,60 @@
|
|
|
55279
55495
|
],
|
|
55280
55496
|
"name": "removeEntityWithChildren"
|
|
55281
55497
|
},
|
|
55498
|
+
{
|
|
55499
|
+
"kind": "Variable",
|
|
55500
|
+
"canonicalReference": "@dcl/playground-assets!RESERVED_LOCAL_ENTITIES:var",
|
|
55501
|
+
"docComment": "",
|
|
55502
|
+
"excerptTokens": [
|
|
55503
|
+
{
|
|
55504
|
+
"kind": "Content",
|
|
55505
|
+
"text": "RESERVED_LOCAL_ENTITIES = "
|
|
55506
|
+
},
|
|
55507
|
+
{
|
|
55508
|
+
"kind": "Content",
|
|
55509
|
+
"text": "65535"
|
|
55510
|
+
}
|
|
55511
|
+
],
|
|
55512
|
+
"fileUrlPath": "../ecs/dist/engine/entity.d.ts",
|
|
55513
|
+
"initializerTokenRange": {
|
|
55514
|
+
"startIndex": 1,
|
|
55515
|
+
"endIndex": 2
|
|
55516
|
+
},
|
|
55517
|
+
"isReadonly": true,
|
|
55518
|
+
"releaseTag": "Public",
|
|
55519
|
+
"name": "RESERVED_LOCAL_ENTITIES",
|
|
55520
|
+
"variableTypeTokenRange": {
|
|
55521
|
+
"startIndex": 0,
|
|
55522
|
+
"endIndex": 0
|
|
55523
|
+
}
|
|
55524
|
+
},
|
|
55525
|
+
{
|
|
55526
|
+
"kind": "Variable",
|
|
55527
|
+
"canonicalReference": "@dcl/playground-assets!RESERVED_STATIC_ENTITIES:var",
|
|
55528
|
+
"docComment": "/**\n * This first 512 entities are reserved by the renderer\n */\n",
|
|
55529
|
+
"excerptTokens": [
|
|
55530
|
+
{
|
|
55531
|
+
"kind": "Content",
|
|
55532
|
+
"text": "RESERVED_STATIC_ENTITIES = "
|
|
55533
|
+
},
|
|
55534
|
+
{
|
|
55535
|
+
"kind": "Content",
|
|
55536
|
+
"text": "512"
|
|
55537
|
+
}
|
|
55538
|
+
],
|
|
55539
|
+
"fileUrlPath": "../ecs/dist/engine/entity.d.ts",
|
|
55540
|
+
"initializerTokenRange": {
|
|
55541
|
+
"startIndex": 1,
|
|
55542
|
+
"endIndex": 2
|
|
55543
|
+
},
|
|
55544
|
+
"isReadonly": true,
|
|
55545
|
+
"releaseTag": "Public",
|
|
55546
|
+
"name": "RESERVED_STATIC_ENTITIES",
|
|
55547
|
+
"variableTypeTokenRange": {
|
|
55548
|
+
"startIndex": 0,
|
|
55549
|
+
"endIndex": 0
|
|
55550
|
+
}
|
|
55551
|
+
},
|
|
55282
55552
|
{
|
|
55283
55553
|
"kind": "TypeAlias",
|
|
55284
55554
|
"canonicalReference": "@dcl/playground-assets!RPCSendableMessage:type",
|
|
@@ -114,7 +114,7 @@ export interface BaseComponent<T> {
|
|
|
114
114
|
readonly componentName: string;
|
|
115
115
|
// (undocumented)
|
|
116
116
|
readonly componentType: ComponentType;
|
|
117
|
-
dumpCrdtStateToBuffer(buffer: ByteBuffer): void;
|
|
117
|
+
dumpCrdtStateToBuffer(buffer: ByteBuffer, filterEntity?: (entity: Entity) => boolean): void;
|
|
118
118
|
entityDeleted(entity: Entity, markAsDirty: boolean): void;
|
|
119
119
|
get(entity: Entity): any;
|
|
120
120
|
getCrdtUpdates(): Iterable<CrdtMessageBody>;
|
|
@@ -858,13 +858,14 @@ export type EntityComponents = {
|
|
|
858
858
|
//
|
|
859
859
|
// @public (undocumented)
|
|
860
860
|
export type EntityContainer = {
|
|
861
|
-
generateEntity(): Entity;
|
|
861
|
+
generateEntity(networked?: boolean): Entity;
|
|
862
862
|
removeEntity(entity: Entity): boolean;
|
|
863
863
|
getEntityState(entity: Entity): EntityState;
|
|
864
864
|
getExistingEntities(): Set<Entity>;
|
|
865
865
|
releaseRemovedEntities(): Entity[];
|
|
866
866
|
updateRemovedEntity(entity: Entity): boolean;
|
|
867
867
|
updateUsedEntity(entity: Entity): boolean;
|
|
868
|
+
setNetworkEntitiesRange(reservedLocalEntities: number, range: [number, number]): void;
|
|
868
869
|
};
|
|
869
870
|
|
|
870
871
|
// @public (undocumented)
|
|
@@ -893,6 +894,14 @@ export enum EntityState {
|
|
|
893
894
|
UsedEntity = 1
|
|
894
895
|
}
|
|
895
896
|
|
|
897
|
+
// @public (undocumented)
|
|
898
|
+
export namespace EntityUtils {
|
|
899
|
+
// (undocumented)
|
|
900
|
+
export function fromEntityId(entityId: Entity): [number, number];
|
|
901
|
+
// (undocumented)
|
|
902
|
+
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
903
|
+
}
|
|
904
|
+
|
|
896
905
|
// @public
|
|
897
906
|
export const Epsilon = 0.000001;
|
|
898
907
|
|
|
@@ -1016,7 +1025,11 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
1016
1025
|
|
|
1017
1026
|
// @public (undocumented)
|
|
1018
1027
|
export interface IEngine {
|
|
1019
|
-
addEntity(
|
|
1028
|
+
addEntity(): Entity;
|
|
1029
|
+
// @alpha
|
|
1030
|
+
addNetworkManager(reservedLocalEntities: number, range: [number, number]): {
|
|
1031
|
+
addEntity: IEngine['addEntity'];
|
|
1032
|
+
};
|
|
1020
1033
|
addSystem(system: SystemFn, priority?: number, name?: string): void;
|
|
1021
1034
|
// @alpha (undocumented)
|
|
1022
1035
|
addTransport(transport: Transport): void;
|
|
@@ -1031,6 +1044,8 @@ export interface IEngine {
|
|
|
1031
1044
|
// @alpha
|
|
1032
1045
|
getEntityOrNullByName(label: string): Entity | null;
|
|
1033
1046
|
getEntityState(entity: Entity): EntityState;
|
|
1047
|
+
// @alpha
|
|
1048
|
+
getNetworkManager(): ReturnType<IEngine['addNetworkManager']>;
|
|
1034
1049
|
readonly PlayerEntity: Entity;
|
|
1035
1050
|
registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
|
|
1036
1051
|
// (undocumented)
|
|
@@ -1351,6 +1366,19 @@ export interface ISchema<T = any> {
|
|
|
1351
1366
|
// @public
|
|
1352
1367
|
export function isEqual(p1: Coords, p2: Coords): boolean;
|
|
1353
1368
|
|
|
1369
|
+
// Warning: (ae-missing-release-tag) "ISyncComponents" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1370
|
+
//
|
|
1371
|
+
// @public (undocumented)
|
|
1372
|
+
export type ISyncComponents = LastWriteWinElementSetComponentDefinition<ISyncComponentsType>;
|
|
1373
|
+
|
|
1374
|
+
// Warning: (ae-missing-release-tag) "ISyncComponentsType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1375
|
+
//
|
|
1376
|
+
// @public (undocumented)
|
|
1377
|
+
export interface ISyncComponentsType {
|
|
1378
|
+
// (undocumented)
|
|
1379
|
+
componentIds: number[];
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1354
1382
|
// @public (undocumented)
|
|
1355
1383
|
export type JsonArray = Array<JsonPrimitive | JsonMap | JsonArray>;
|
|
1356
1384
|
|
|
@@ -3231,6 +3259,16 @@ export namespace Rect {
|
|
|
3231
3259
|
// @public
|
|
3232
3260
|
export function removeEntityWithChildren(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'removeEntity'>, entity: Entity): void;
|
|
3233
3261
|
|
|
3262
|
+
// Warning: (ae-missing-release-tag) "RESERVED_LOCAL_ENTITIES" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3263
|
+
//
|
|
3264
|
+
// @public (undocumented)
|
|
3265
|
+
export const RESERVED_LOCAL_ENTITIES = 65535;
|
|
3266
|
+
|
|
3267
|
+
// Warning: (ae-missing-release-tag) "RESERVED_STATIC_ENTITIES" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3268
|
+
//
|
|
3269
|
+
// @public
|
|
3270
|
+
export const RESERVED_STATIC_ENTITIES = 512;
|
|
3271
|
+
|
|
3234
3272
|
// 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)
|
|
3235
3273
|
//
|
|
3236
3274
|
// @public (undocumented)
|
|
@@ -3328,6 +3366,9 @@ export interface Spec {
|
|
|
3328
3366
|
[key: string]: ISchema;
|
|
3329
3367
|
}
|
|
3330
3368
|
|
|
3369
|
+
// @alpha
|
|
3370
|
+
export const SyncComponents: ISyncComponents;
|
|
3371
|
+
|
|
3331
3372
|
// @public (undocumented)
|
|
3332
3373
|
export type SystemFn = (dt: number) => void;
|
|
3333
3374
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.3.15-
|
|
4
|
+
"version": "7.3.15-6201308535.commit-dd17bb7",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.3.15-
|
|
8
|
-
"@dcl/sdk": "7.3.15-
|
|
7
|
+
"@dcl/js-runtime": "7.3.15-6201308535.commit-dd17bb7",
|
|
8
|
+
"@dcl/sdk": "7.3.15-6201308535.commit-dd17bb7"
|
|
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": "dd17bb77900cab91f1a031bffbc9e9e20697902a"
|
|
36
36
|
}
|