@dcl/playground-assets 7.1.1-4387338275.commit-167a7e2 → 7.1.1-4388004980.commit-d41e42b

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.
@@ -34,6 +34,15 @@ export type AppendValueMessageBody = {
34
34
  data: Uint8Array;
35
35
  };
36
36
 
37
+ // @public (undocumented)
38
+ export namespace AppendValueOperation {
39
+ const // (undocumented)
40
+ MESSAGE_HEADER_LENGTH = 16;
41
+ // (undocumented)
42
+ export function read(buf: ByteBuffer): AppendValueMessage | null;
43
+ export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
44
+ }
45
+
37
46
  // @public (undocumented)
38
47
  export const AudioSource: LastWriteWinElementSetComponentDefinition<PBAudioSource>;
39
48
 
@@ -92,6 +101,7 @@ export interface BaseComponent<T> {
92
101
  readonly componentName: string;
93
102
  // (undocumented)
94
103
  readonly componentType: ComponentType;
104
+ dumpCrdtState(buffer: ByteBuffer): void;
95
105
  entityDeleted(entity: Entity, markAsDirty: boolean): void;
96
106
  get(entity: Entity): any;
97
107
  getCrdtUpdates(): Iterable<CrdtMessageBody>;
@@ -452,6 +462,14 @@ export type CrdtMessageHeader = {
452
462
  type: uint32;
453
463
  };
454
464
 
465
+ // @public (undocumented)
466
+ export namespace CrdtMessageProtocol {
467
+ export function consumeMessage(buf: ByteBuffer): boolean;
468
+ export function getHeader(buf: ByteBuffer): CrdtMessageHeader | null;
469
+ export function readHeader(buf: ByteBuffer): CrdtMessageHeader | null;
470
+ export function validate(buf: ByteBuffer): boolean;
471
+ }
472
+
455
473
  // @public (undocumented)
456
474
  export enum CrdtMessageType {
457
475
  // (undocumented)
@@ -500,6 +518,15 @@ export type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
500
518
  // @public
501
519
  export const DEG2RAD: number;
502
520
 
521
+ // @public (undocumented)
522
+ export namespace DeleteComponent {
523
+ const // (undocumented)
524
+ MESSAGE_HEADER_LENGTH = 12;
525
+ // (undocumented)
526
+ export function read(buf: ByteBuffer): DeleteComponentMessage | null;
527
+ export function write(entity: Entity, componentId: number, timestamp: number, buf: ByteBuffer): void;
528
+ }
529
+
503
530
  // @public (undocumented)
504
531
  export type DeleteComponentMessage = CrdtMessageHeader & DeleteComponentMessageBody;
505
532
 
@@ -511,6 +538,16 @@ export type DeleteComponentMessageBody = {
511
538
  timestamp: number;
512
539
  };
513
540
 
541
+ // @public (undocumented)
542
+ export namespace DeleteEntity {
543
+ const // (undocumented)
544
+ MESSAGE_HEADER_LENGTH = 4;
545
+ // (undocumented)
546
+ export function read(buf: ByteBuffer): DeleteEntityMessage | null;
547
+ // (undocumented)
548
+ export function write(entity: Entity, buf: ByteBuffer): void;
549
+ }
550
+
514
551
  // @public (undocumented)
515
552
  export type DeleteEntityMessage = CrdtMessageHeader & DeleteEntityMessageBody;
516
553
 
@@ -550,6 +587,9 @@ export interface EcsElements {
550
587
  };
551
588
  }
552
589
 
590
+ // @public @deprecated
591
+ export function Engine(options?: IEngineOptions): IEngine;
592
+
553
593
  // Warning: (tsdoc-at-sign-in-word) The "@" character looks like part of a TSDoc tag; use a backslash to escape it
554
594
  // Warning: (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
555
595
  // Warning: (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
@@ -730,6 +770,12 @@ export interface IEngine {
730
770
  update(deltaTime: number): Promise<void>;
731
771
  }
732
772
 
773
+ // @public (undocumented)
774
+ export interface IEngineOptions {
775
+ // (undocumented)
776
+ onChangeFunction: OnChangeFunction;
777
+ }
778
+
733
779
  // Warning: (ae-missing-release-tag) "IEventNames" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
734
780
  //
735
781
  // @public (undocumented)
@@ -2195,6 +2241,15 @@ export type PutComponentMessageBody = {
2195
2241
  data: Uint8Array;
2196
2242
  };
2197
2243
 
2244
+ // @public (undocumented)
2245
+ export namespace PutComponentOperation {
2246
+ const // (undocumented)
2247
+ MESSAGE_HEADER_LENGTH = 16;
2248
+ // (undocumented)
2249
+ export function read(buf: ByteBuffer): PutComponentMessage | null;
2250
+ export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
2251
+ }
2252
+
2198
2253
  // @public
2199
2254
  export type Quaternion = Quaternion.ReadonlyQuaternion;
2200
2255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.1.1-4387338275.commit-167a7e2",
3
+ "version": "7.1.1-4388004980.commit-d41e42b",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.1.1-4387338275.commit-167a7e2"
20
+ "@dcl/sdk": "7.1.1-4388004980.commit-d41e42b"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@microsoft/api-extractor": "^7.33.8"
@@ -27,5 +27,5 @@
27
27
  "dist",
28
28
  "etc"
29
29
  ],
30
- "commit": "167a7e2cdf2b8ba2832595085fadf48f9f6c5bed"
30
+ "commit": "d41e42b3708afee075cd36ec8ab5649b119f88ad"
31
31
  }