@dcl/playground-assets 7.0.6-3824930139.commit-9bd6c05 → 7.0.6-3832097301.commit-4e46b20
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 +162 -46
- package/dist/beta.d.ts +162 -46
- package/dist/index.bundled.d.ts +162 -46
- package/dist/index.js +995 -532
- 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 +162 -46
- package/etc/playground-assets.api.json +1608 -431
- package/etc/playground-assets.api.md +166 -46
- package/package.json +3 -3
|
@@ -151,7 +151,6 @@ export type ByteBuffer = {
|
|
|
151
151
|
readBuffer(): Uint8Array;
|
|
152
152
|
readUtf8String(): string;
|
|
153
153
|
incrementWriteOffset(amount: number): number;
|
|
154
|
-
size(): number;
|
|
155
154
|
toBinary(): Uint8Array;
|
|
156
155
|
toCopiedBinary(): Uint8Array;
|
|
157
156
|
writeUtf8String(value: string, writeLength?: boolean): void;
|
|
@@ -413,6 +412,55 @@ export type ComponentSchema<T extends [ComponentDefinition<any>, ...ComponentDef
|
|
|
413
412
|
[K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
|
|
414
413
|
};
|
|
415
414
|
|
|
415
|
+
// Warning: (ae-missing-release-tag) "CRDT_MESSAGE_HEADER_LENGTH" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
416
|
+
//
|
|
417
|
+
// @public (undocumented)
|
|
418
|
+
export const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
419
|
+
|
|
420
|
+
// Warning: (ae-missing-release-tag) "CrdtMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
421
|
+
//
|
|
422
|
+
// @public (undocumented)
|
|
423
|
+
export type CrdtMessage = PutComponentMessage | DeleteComponentMessage | DeleteEntityMessage;
|
|
424
|
+
|
|
425
|
+
// Warning: (ae-missing-release-tag) "CrdtMessageBody" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
426
|
+
//
|
|
427
|
+
// @public (undocumented)
|
|
428
|
+
export type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessage;
|
|
429
|
+
|
|
430
|
+
// Warning: (ae-missing-release-tag) "CrdtMessageHeader" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
431
|
+
//
|
|
432
|
+
// @public
|
|
433
|
+
export type CrdtMessageHeader = {
|
|
434
|
+
length: Uint32;
|
|
435
|
+
type: Uint32;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
// Warning: (ae-missing-release-tag) "CrdtMessageProtocol" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
439
|
+
//
|
|
440
|
+
// @public (undocumented)
|
|
441
|
+
export namespace CrdtMessageProtocol {
|
|
442
|
+
export function consumeMessage(buf: ByteBuffer): boolean;
|
|
443
|
+
export function getHeader(buf: ByteBuffer): CrdtMessageHeader | null;
|
|
444
|
+
export function readHeader(buf: ByteBuffer): CrdtMessageHeader | null;
|
|
445
|
+
export function validate(buf: ByteBuffer): boolean;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Warning: (ae-missing-release-tag) "CrdtMessageType" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
449
|
+
//
|
|
450
|
+
// @public (undocumented)
|
|
451
|
+
export enum CrdtMessageType {
|
|
452
|
+
// (undocumented)
|
|
453
|
+
DELETE_COMPONENT = 2,
|
|
454
|
+
// (undocumented)
|
|
455
|
+
DELETE_ENTITY = 3,
|
|
456
|
+
// (undocumented)
|
|
457
|
+
MAX_MESSAGE_TYPE = 4,
|
|
458
|
+
// (undocumented)
|
|
459
|
+
PUT_COMPONENT = 1,
|
|
460
|
+
// (undocumented)
|
|
461
|
+
RESERVED = 0
|
|
462
|
+
}
|
|
463
|
+
|
|
416
464
|
// 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)
|
|
417
465
|
//
|
|
418
466
|
// @public (undocumented)
|
|
@@ -479,6 +527,57 @@ export function defineComponent<T>(componentId: number, spec: ISchema<T>): Compo
|
|
|
479
527
|
// @public
|
|
480
528
|
export const DEG2RAD: number;
|
|
481
529
|
|
|
530
|
+
// Warning: (ae-missing-release-tag) "DeleteComponent" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
531
|
+
//
|
|
532
|
+
// @public (undocumented)
|
|
533
|
+
export namespace DeleteComponent {
|
|
534
|
+
const // (undocumented)
|
|
535
|
+
MESSAGE_HEADER_LENGTH = 20;
|
|
536
|
+
// (undocumented)
|
|
537
|
+
export function read(buf: ByteBuffer): DeleteComponentMessage | null;
|
|
538
|
+
export function write(entity: Entity, componentId: number, timestamp: number, buf: ByteBuffer): void;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// Warning: (ae-missing-release-tag) "DeleteComponentMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
542
|
+
//
|
|
543
|
+
// @public (undocumented)
|
|
544
|
+
export type DeleteComponentMessage = CrdtMessageHeader & DeleteComponentMessageBody;
|
|
545
|
+
|
|
546
|
+
// Warning: (ae-missing-release-tag) "DeleteComponentMessageBody" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
547
|
+
//
|
|
548
|
+
// @public (undocumented)
|
|
549
|
+
export type DeleteComponentMessageBody = {
|
|
550
|
+
type: CrdtMessageType.DELETE_COMPONENT;
|
|
551
|
+
entityId: Entity;
|
|
552
|
+
componentId: number;
|
|
553
|
+
timestamp: number;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// Warning: (ae-missing-release-tag) "DeleteEntity" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
557
|
+
//
|
|
558
|
+
// @public (undocumented)
|
|
559
|
+
export namespace DeleteEntity {
|
|
560
|
+
const // (undocumented)
|
|
561
|
+
MESSAGE_HEADER_LENGTH = 4;
|
|
562
|
+
// (undocumented)
|
|
563
|
+
export function read(buf: ByteBuffer): DeleteEntityMessage | null;
|
|
564
|
+
// (undocumented)
|
|
565
|
+
export function write(entity: Entity, buf: ByteBuffer): void;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// Warning: (ae-missing-release-tag) "DeleteEntityMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
569
|
+
//
|
|
570
|
+
// @public (undocumented)
|
|
571
|
+
export type DeleteEntityMessage = CrdtMessageHeader & DeleteEntityMessageBody;
|
|
572
|
+
|
|
573
|
+
// Warning: (ae-missing-release-tag) "DeleteEntityMessageBody" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
574
|
+
//
|
|
575
|
+
// @public (undocumented)
|
|
576
|
+
export type DeleteEntityMessageBody = {
|
|
577
|
+
type: CrdtMessageType.DELETE_ENTITY;
|
|
578
|
+
entityId: Entity;
|
|
579
|
+
};
|
|
580
|
+
|
|
482
581
|
// @public (undocumented)
|
|
483
582
|
export function Dropdown(props: EntityPropTypes & UiDropdownProps): ReactEcs.JSX.Element;
|
|
484
583
|
|
|
@@ -513,7 +612,7 @@ export type EngineEvent<T extends IEventNames = IEventNames, V = IEvents[T]> = {
|
|
|
513
612
|
// Warning: (tsdoc-malformed-html-name) Invalid HTML element: A space is not allowed here
|
|
514
613
|
//
|
|
515
614
|
// @public
|
|
516
|
-
export type Entity =
|
|
615
|
+
export type Entity = number & {
|
|
517
616
|
__entity_type: '';
|
|
518
617
|
};
|
|
519
618
|
|
|
@@ -530,17 +629,21 @@ export type EntityComponents = {
|
|
|
530
629
|
onMouseUp: Callback;
|
|
531
630
|
};
|
|
532
631
|
|
|
632
|
+
// Warning: (ae-missing-release-tag) "EntityContainer" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
533
633
|
// Warning: (ae-missing-release-tag) "EntityContainer" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
534
634
|
//
|
|
535
635
|
// @public (undocumented)
|
|
536
|
-
export function EntityContainer():
|
|
636
|
+
export function EntityContainer(): EntityContainer;
|
|
637
|
+
|
|
638
|
+
// @public (undocumented)
|
|
639
|
+
export type EntityContainer = {
|
|
537
640
|
generateEntity(): Entity;
|
|
538
641
|
removeEntity(entity: Entity): boolean;
|
|
539
|
-
|
|
642
|
+
getEntityState(entity: Entity): EntityState;
|
|
540
643
|
getExistingEntities(): Set<Entity>;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
644
|
+
releaseRemovedEntities(): Entity[];
|
|
645
|
+
updateRemovedEntity(entity: Entity): boolean;
|
|
646
|
+
updateUsedEntity(entity: Entity): boolean;
|
|
544
647
|
};
|
|
545
648
|
|
|
546
649
|
// @public (undocumented)
|
|
@@ -549,6 +652,25 @@ export type EntityPropTypes = {
|
|
|
549
652
|
uiBackground?: UiBackgroundProps;
|
|
550
653
|
} & Listeners & Pick<CommonProps, 'key'>;
|
|
551
654
|
|
|
655
|
+
// @public (undocumented)
|
|
656
|
+
export enum EntityState {
|
|
657
|
+
Removed = 2,
|
|
658
|
+
Reserved = 3,
|
|
659
|
+
// (undocumented)
|
|
660
|
+
Unknown = 0,
|
|
661
|
+
UsedEntity = 1
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
// Warning: (ae-missing-release-tag) "EntityUtils" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
665
|
+
//
|
|
666
|
+
// @public (undocumented)
|
|
667
|
+
export namespace EntityUtils {
|
|
668
|
+
// (undocumented)
|
|
669
|
+
export function fromEntityId(entityId: Entity): [number, number];
|
|
670
|
+
// (undocumented)
|
|
671
|
+
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
672
|
+
}
|
|
673
|
+
|
|
552
674
|
// @public
|
|
553
675
|
export const Epsilon = 0.000001;
|
|
554
676
|
|
|
@@ -632,7 +754,7 @@ export type IEngine = {
|
|
|
632
754
|
addEntity(dynamic?: boolean): Entity;
|
|
633
755
|
removeEntity(entity: Entity): void;
|
|
634
756
|
removeEntityWithChildren(firstEntity: Entity): void;
|
|
635
|
-
|
|
757
|
+
getEntityState(entity: Entity): EntityState;
|
|
636
758
|
addSystem(system: SystemFn, priority?: number, name?: string): void;
|
|
637
759
|
removeSystem(selector: string | SystemFn): boolean;
|
|
638
760
|
registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
|
|
@@ -646,6 +768,7 @@ export type IEngine = {
|
|
|
646
768
|
readonly PlayerEntity: Entity;
|
|
647
769
|
readonly CameraEntity: Entity;
|
|
648
770
|
addTransport(transport: Transport): void;
|
|
771
|
+
entityContainer: EntityContainer;
|
|
649
772
|
componentsIter(): Iterable<ComponentDefinition<unknown>>;
|
|
650
773
|
};
|
|
651
774
|
|
|
@@ -1319,7 +1442,7 @@ export class ObserverEventState {
|
|
|
1319
1442
|
}
|
|
1320
1443
|
|
|
1321
1444
|
// @public (undocumented)
|
|
1322
|
-
export type OnChangeFunction = (entity: Entity,
|
|
1445
|
+
export type OnChangeFunction = (entity: Entity, operation: CrdtMessageType, component?: ComponentDefinition<any>) => void;
|
|
1323
1446
|
|
|
1324
1447
|
// Warning: (ae-missing-release-tag) "onCommsMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
1325
1448
|
//
|
|
@@ -2478,6 +2601,34 @@ export type Position = {
|
|
|
2478
2601
|
// @public (undocumented)
|
|
2479
2602
|
export type PositionUnit = `${number}px` | `${number}%` | number;
|
|
2480
2603
|
|
|
2604
|
+
// Warning: (ae-missing-release-tag) "PutComponentMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2605
|
+
//
|
|
2606
|
+
// @public (undocumented)
|
|
2607
|
+
export type PutComponentMessage = CrdtMessageHeader & PutComponentMessageBody;
|
|
2608
|
+
|
|
2609
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
2610
|
+
// Warning: (ae-missing-release-tag) "PutComponentMessageBody" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2611
|
+
//
|
|
2612
|
+
// @public
|
|
2613
|
+
export type PutComponentMessageBody = {
|
|
2614
|
+
type: CrdtMessageType.PUT_COMPONENT;
|
|
2615
|
+
entityId: Entity;
|
|
2616
|
+
componentId: number;
|
|
2617
|
+
timestamp: number;
|
|
2618
|
+
data: Uint8Array;
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
// Warning: (ae-missing-release-tag) "PutComponentOperation" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2622
|
+
//
|
|
2623
|
+
// @public (undocumented)
|
|
2624
|
+
export namespace PutComponentOperation {
|
|
2625
|
+
const // (undocumented)
|
|
2626
|
+
MESSAGE_HEADER_LENGTH = 20;
|
|
2627
|
+
// (undocumented)
|
|
2628
|
+
export function read(buf: ByteBuffer): PutComponentMessage | null;
|
|
2629
|
+
export function write(entity: Entity, timestamp: number, componentDefinition: ComponentDefinition<unknown>, buf: ByteBuffer): void;
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2481
2632
|
// @public
|
|
2482
2633
|
export type Quaternion = Quaternion.ReadonlyQuaternion;
|
|
2483
2634
|
|
|
@@ -2634,13 +2785,8 @@ export type ReadonlyPrimitive = number | string | number[] | string[] | boolean
|
|
|
2634
2785
|
// Warning: (ae-missing-release-tag) "ReceiveMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
2635
2786
|
//
|
|
2636
2787
|
// @public (undocumented)
|
|
2637
|
-
export type ReceiveMessage = {
|
|
2638
|
-
type: WireMessage.Enum;
|
|
2639
|
-
entity: Entity;
|
|
2640
|
-
componentId: number;
|
|
2641
|
-
timestamp: number;
|
|
2788
|
+
export type ReceiveMessage = CrdtMessageBody & {
|
|
2642
2789
|
transportId?: number;
|
|
2643
|
-
data?: Uint8Array;
|
|
2644
2790
|
messageBuffer: Uint8Array;
|
|
2645
2791
|
};
|
|
2646
2792
|
|
|
@@ -2956,6 +3102,11 @@ export type UiInputProps = PBUiInput & {
|
|
|
2956
3102
|
// @public (undocumented)
|
|
2957
3103
|
export const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
2958
3104
|
|
|
3105
|
+
// Warning: (ae-missing-release-tag) "Uint32" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3106
|
+
//
|
|
3107
|
+
// @public (undocumented)
|
|
3108
|
+
export type Uint32 = number;
|
|
3109
|
+
|
|
2959
3110
|
// @public
|
|
2960
3111
|
export type uint32 = number;
|
|
2961
3112
|
|
|
@@ -3133,37 +3284,6 @@ export type Vector3Type = {
|
|
|
3133
3284
|
// @public (undocumented)
|
|
3134
3285
|
export const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
|
|
3135
3286
|
|
|
3136
|
-
// Warning: (ae-missing-release-tag) "WireMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3137
|
-
//
|
|
3138
|
-
// @public (undocumented)
|
|
3139
|
-
export namespace WireMessage {
|
|
3140
|
-
// (undocumented)
|
|
3141
|
-
export enum Enum {
|
|
3142
|
-
// (undocumented)
|
|
3143
|
-
DELETE_COMPONENT = 2,
|
|
3144
|
-
// (undocumented)
|
|
3145
|
-
MAX_MESSAGE_TYPE = 3,
|
|
3146
|
-
// (undocumented)
|
|
3147
|
-
PUT_COMPONENT = 1,
|
|
3148
|
-
// (undocumented)
|
|
3149
|
-
RESERVED = 0
|
|
3150
|
-
}
|
|
3151
|
-
// (undocumented)
|
|
3152
|
-
export function getType(component: ComponentDefinition<unknown>, entity: Entity): Enum;
|
|
3153
|
-
// (undocumented)
|
|
3154
|
-
export type Header = {
|
|
3155
|
-
length: Uint32;
|
|
3156
|
-
type: Uint32;
|
|
3157
|
-
};
|
|
3158
|
-
const // (undocumented)
|
|
3159
|
-
HEADER_LENGTH = 8;
|
|
3160
|
-
// (undocumented)
|
|
3161
|
-
export function readHeader(buf: ByteBuffer): Header | null;
|
|
3162
|
-
// (undocumented)
|
|
3163
|
-
export type Uint32 = number;
|
|
3164
|
-
export function validate(buf: ByteBuffer): boolean;
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
3287
|
// Warning: (ae-missing-release-tag) "YGAlign" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
3168
3288
|
//
|
|
3169
3289
|
// @public (undocumented)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-3832097301.commit-4e46b20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"author": "Decentraland",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcl/sdk": "7.0.6-
|
|
20
|
+
"@dcl/sdk": "7.0.6-3832097301.commit-4e46b20"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "4e46b208355a0a0d340a899c44f98bebb94d0c8b"
|
|
28
28
|
}
|