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