@dcl/playground-assets 7.3.31-7169243942.commit-5f044c6 → 7.3.32-7170667436.commit-11a2181
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 +117 -16
- package/dist/beta.d.ts +109 -6
- package/dist/index.bundled.d.ts +109 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +7 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +117 -16
- package/etc/playground-assets.api.json +1264 -119
- package/etc/playground-assets.api.md +111 -10
- package/package.json +4 -4
@@ -676,10 +676,10 @@ export type Coords = {
|
|
676
676
|
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
677
677
|
|
678
678
|
// @public (undocumented)
|
679
|
-
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | DeleteEntityMessage |
|
679
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
680
680
|
|
681
681
|
// @public (undocumented)
|
682
|
-
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody;
|
682
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
683
683
|
|
684
684
|
// @public
|
685
685
|
export type CrdtMessageHeader = {
|
@@ -702,15 +702,24 @@ export enum CrdtMessageType {
|
|
702
702
|
// (undocumented)
|
703
703
|
DELETE_COMPONENT = 2,
|
704
704
|
// (undocumented)
|
705
|
+
DELETE_COMPONENT_NETWORK = 6,
|
706
|
+
// (undocumented)
|
705
707
|
DELETE_ENTITY = 3,
|
706
708
|
// (undocumented)
|
707
|
-
|
709
|
+
DELETE_ENTITY_NETWORK = 7,
|
710
|
+
// (undocumented)
|
711
|
+
MAX_MESSAGE_TYPE = 8,
|
708
712
|
// (undocumented)
|
709
713
|
PUT_COMPONENT = 1,
|
710
714
|
// (undocumented)
|
715
|
+
PUT_COMPONENT_NETWORK = 5,
|
716
|
+
// (undocumented)
|
711
717
|
RESERVED = 0
|
712
718
|
}
|
713
719
|
|
720
|
+
// @public (undocumented)
|
721
|
+
export type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
722
|
+
|
714
723
|
// Warning: (ae-missing-release-tag) "createEthereumProvider" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
715
724
|
//
|
716
725
|
// @public (undocumented)
|
@@ -763,6 +772,27 @@ export type DeleteComponentMessageBody = {
|
|
763
772
|
timestamp: number;
|
764
773
|
};
|
765
774
|
|
775
|
+
// @public (undocumented)
|
776
|
+
export namespace DeleteComponentNetwork {
|
777
|
+
const // (undocumented)
|
778
|
+
MESSAGE_HEADER_LENGTH = 16;
|
779
|
+
// (undocumented)
|
780
|
+
export function read(buf: ByteBuffer): DeleteComponentNetworkMessage | null;
|
781
|
+
export function write(entity: Entity, componentId: number, timestamp: number, networkId: number, buf: ByteBuffer): void;
|
782
|
+
}
|
783
|
+
|
784
|
+
// @public (undocumented)
|
785
|
+
export type DeleteComponentNetworkMessage = CrdtMessageHeader & DeleteComponentNetworkMessageBody;
|
786
|
+
|
787
|
+
// @public (undocumented)
|
788
|
+
export type DeleteComponentNetworkMessageBody = {
|
789
|
+
type: CrdtMessageType.DELETE_COMPONENT_NETWORK;
|
790
|
+
entityId: Entity;
|
791
|
+
componentId: number;
|
792
|
+
timestamp: number;
|
793
|
+
networkId: number;
|
794
|
+
};
|
795
|
+
|
766
796
|
// @public (undocumented)
|
767
797
|
export namespace DeleteEntity {
|
768
798
|
const // (undocumented)
|
@@ -782,6 +812,26 @@ export type DeleteEntityMessageBody = {
|
|
782
812
|
entityId: Entity;
|
783
813
|
};
|
784
814
|
|
815
|
+
// @public (undocumented)
|
816
|
+
export namespace DeleteEntityNetwork {
|
817
|
+
const // (undocumented)
|
818
|
+
MESSAGE_HEADER_LENGTH = 8;
|
819
|
+
// (undocumented)
|
820
|
+
export function read(buf: ByteBuffer): DeleteEntityNetworkMessage | null;
|
821
|
+
// (undocumented)
|
822
|
+
export function write(entity: Entity, networkId: number, buf: ByteBuffer): void;
|
823
|
+
}
|
824
|
+
|
825
|
+
// @public (undocumented)
|
826
|
+
export type DeleteEntityNetworkMessage = CrdtMessageHeader & DeleteEntityNetworkMessageBody;
|
827
|
+
|
828
|
+
// @public (undocumented)
|
829
|
+
export type DeleteEntityNetworkMessageBody = {
|
830
|
+
type: CrdtMessageType.DELETE_ENTITY_NETWORK;
|
831
|
+
entityId: Entity;
|
832
|
+
networkId: number;
|
833
|
+
};
|
834
|
+
|
785
835
|
// @public (undocumented)
|
786
836
|
export type DisplayType = 'flex' | 'none';
|
787
837
|
|
@@ -1094,10 +1144,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
1094
1144
|
// @public (undocumented)
|
1095
1145
|
export interface IEngine {
|
1096
1146
|
addEntity(): Entity;
|
1097
|
-
// @alpha
|
1098
|
-
addNetworkManager(reservedLocalEntities: number, range: [number, number]): {
|
1099
|
-
addEntity: IEngine['addEntity'];
|
1100
|
-
};
|
1101
1147
|
addSystem(system: SystemFn, priority?: number, name?: string): void;
|
1102
1148
|
// @alpha (undocumented)
|
1103
1149
|
addTransport(transport: Transport): void;
|
@@ -1112,8 +1158,6 @@ export interface IEngine {
|
|
1112
1158
|
// @alpha
|
1113
1159
|
getEntityOrNullByName(label: string): Entity | null;
|
1114
1160
|
getEntityState(entity: Entity): EntityState;
|
1115
|
-
// @alpha
|
1116
|
-
getNetworkManager(): ReturnType<IEngine['addNetworkManager']>;
|
1117
1161
|
readonly PlayerEntity: Entity;
|
1118
1162
|
registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
|
1119
1163
|
// (undocumented)
|
@@ -1328,6 +1372,36 @@ export type IncludeUndefined<T> = {
|
|
1328
1372
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
1329
1373
|
}[keyof T];
|
1330
1374
|
|
1375
|
+
// Warning: (ae-missing-release-tag) "INetowrkEntity" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
1376
|
+
//
|
1377
|
+
// @public (undocumented)
|
1378
|
+
export type INetowrkEntity = LastWriteWinElementSetComponentDefinition<INetowrkEntityType>;
|
1379
|
+
|
1380
|
+
// Warning: (ae-missing-release-tag) "INetowrkEntityType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
1381
|
+
//
|
1382
|
+
// @public (undocumented)
|
1383
|
+
export interface INetowrkEntityType {
|
1384
|
+
// (undocumented)
|
1385
|
+
entityId: Entity;
|
1386
|
+
// (undocumented)
|
1387
|
+
networkId: number;
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
// Warning: (ae-missing-release-tag) "INetowrkParent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
1391
|
+
//
|
1392
|
+
// @public (undocumented)
|
1393
|
+
export type INetowrkParent = LastWriteWinElementSetComponentDefinition<INetowrkParentType>;
|
1394
|
+
|
1395
|
+
// Warning: (ae-missing-release-tag) "INetowrkParentType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
1396
|
+
//
|
1397
|
+
// @public (undocumented)
|
1398
|
+
export interface INetowrkParentType {
|
1399
|
+
// (undocumented)
|
1400
|
+
entityId: Entity;
|
1401
|
+
// (undocumented)
|
1402
|
+
networkId: number;
|
1403
|
+
}
|
1404
|
+
|
1331
1405
|
// Warning: (tsdoc-html-tag-missing-string) The HTML element has an invalid attribute: Expecting an HTML string starting with a single-quote or double-quote character
|
1332
1406
|
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
1333
1407
|
// Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
|
@@ -1800,6 +1874,12 @@ export interface NameType {
|
|
1800
1874
|
value: string;
|
1801
1875
|
}
|
1802
1876
|
|
1877
|
+
// @alpha
|
1878
|
+
export const NetworkEntity: INetowrkEntity;
|
1879
|
+
|
1880
|
+
// @alpha
|
1881
|
+
export const NetworkParent: INetowrkParent;
|
1882
|
+
|
1803
1883
|
// @public (undocumented)
|
1804
1884
|
export const enum NftFrameType {
|
1805
1885
|
// (undocumented)
|
@@ -3217,6 +3297,26 @@ export namespace PutComponentOperation {
|
|
3217
3297
|
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
3218
3298
|
}
|
3219
3299
|
|
3300
|
+
// @public (undocumented)
|
3301
|
+
export type PutNetworkComponentMessage = CrdtMessageHeader & PutNetworkComponentMessageBody;
|
3302
|
+
|
3303
|
+
// Warning: (ae-missing-release-tag) "PutNetworkComponentMessageBody" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
3304
|
+
//
|
3305
|
+
// @public (undocumented)
|
3306
|
+
export type PutNetworkComponentMessageBody = Omit<PutComponentMessageBody, 'type'> & {
|
3307
|
+
type: CrdtMessageType.PUT_COMPONENT_NETWORK;
|
3308
|
+
networkId: number;
|
3309
|
+
};
|
3310
|
+
|
3311
|
+
// @public (undocumented)
|
3312
|
+
export namespace PutNetworkComponentOperation {
|
3313
|
+
const // (undocumented)
|
3314
|
+
MESSAGE_HEADER_LENGTH = 20;
|
3315
|
+
// (undocumented)
|
3316
|
+
export function read(buf: ByteBuffer): PutNetworkComponentMessage | null;
|
3317
|
+
export function write(entity: Entity, timestamp: number, componentId: number, networkId: number, data: Uint8Array, buf: ByteBuffer): void;
|
3318
|
+
}
|
3319
|
+
|
3220
3320
|
// @public
|
3221
3321
|
export type Quaternion = Quaternion.ReadonlyQuaternion;
|
3222
3322
|
|
@@ -3439,7 +3539,7 @@ export namespace Rect {
|
|
3439
3539
|
}
|
3440
3540
|
|
3441
3541
|
// @public
|
3442
|
-
export function removeEntityWithChildren(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'removeEntity'>, entity: Entity): void;
|
3542
|
+
export function removeEntityWithChildren(engine: Pick<IEngine, 'getEntitiesWith' | 'defineComponentFromSchema' | 'removeEntity' | 'defineComponent'>, entity: Entity): void;
|
3443
3543
|
|
3444
3544
|
// 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)
|
3445
3545
|
//
|
@@ -3777,6 +3877,7 @@ export type Transport = {
|
|
3777
3877
|
send(message: Uint8Array): Promise<void>;
|
3778
3878
|
onmessage?(message: Uint8Array): void;
|
3779
3879
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
3880
|
+
type?: string;
|
3780
3881
|
};
|
3781
3882
|
|
3782
3883
|
// @public (undocumented)
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/playground-assets",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.3.
|
4
|
+
"version": "7.3.32-7170667436.commit-11a2181",
|
5
5
|
"author": "Decentraland",
|
6
6
|
"dependencies": {
|
7
|
-
"@dcl/js-runtime": "7.3.
|
8
|
-
"@dcl/sdk": "7.3.
|
7
|
+
"@dcl/js-runtime": "7.3.32-7170667436.commit-11a2181",
|
8
|
+
"@dcl/sdk": "7.3.32-7170667436.commit-11a2181"
|
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": "11a21816f9bf404c90ba02782ad7e359262a909d"
|
36
36
|
}
|