@dcl/playground-assets 7.23.4-26106700711.commit-2afa13b → 7.23.4-26110424113.commit-4b40cec

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.
@@ -1293,6 +1293,7 @@ declare module "~system/RestrictedActions" {
1293
1293
  }
1294
1294
  export interface TriggerEmoteRequest {
1295
1295
  predefinedEmote: string;
1296
+ mask?: number | undefined;
1296
1297
  }
1297
1298
  export interface ChangeRealmRequest {
1298
1299
  realm: string;
@@ -1312,6 +1313,7 @@ declare module "~system/RestrictedActions" {
1312
1313
  export interface TriggerSceneEmoteRequest {
1313
1314
  src: string;
1314
1315
  loop?: boolean | undefined;
1316
+ mask?: number | undefined;
1315
1317
  }
1316
1318
  export interface SuccessResponse {
1317
1319
  success: boolean;
@@ -1327,6 +1329,8 @@ declare module "~system/RestrictedActions" {
1327
1329
  text: string;
1328
1330
  }
1329
1331
  export interface EmptyResponse {
1332
+ }
1333
+ export interface StopEmoteRequest {
1330
1334
  }
1331
1335
 
1332
1336
  // Function declaration section
@@ -1355,6 +1359,8 @@ declare module "~system/RestrictedActions" {
1355
1359
  export function triggerSceneEmote(body: TriggerSceneEmoteRequest): Promise<SuccessResponse>;
1356
1360
  /** CopyToClipboard copies the provided text into the clipboard */
1357
1361
  export function copyToClipboard(body: CopyToClipboardRequest): Promise<EmptyResponse>;
1362
+ /** StopEmote will stop the current emote */
1363
+ export function stopEmote(body: StopEmoteRequest): Promise<SuccessResponse>;
1358
1364
 
1359
1365
  }
1360
1366
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.23.4-26106700711.commit-2afa13b",
4
+ "version": "7.23.4-26110424113.commit-4b40cec",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "2afa13b8e15ada6f90af741de1248c348f136a38"
38
+ "commit": "4b40cecb57de72e7f621c501ee058b6a35e28873"
39
39
  }
@@ -218,42 +218,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
218
218
  getAudioState(entity: Entity): PBAudioEvent | undefined;
219
219
  }
220
220
 
221
- /**
222
- * @public
223
- */
224
- export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
225
-
226
- /**
227
- * Server authoritative message - identical to PutComponentMessageBody but with forced processing
228
- * Min. length = header (8 bytes) + 16 bytes = 24 bytes
229
- *
230
- * @param entity - Uint32 number of the entity
231
- * @param componentId - Uint32 number of id
232
- * @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
233
- * @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
234
- * @public
235
- */
236
- export declare type AuthoritativePutComponentMessageBody = {
237
- type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
238
- entityId: Entity;
239
- componentId: number;
240
- timestamp: number;
241
- data: Uint8Array;
242
- };
243
-
244
- /**
245
- * @public
246
- */
247
- export declare namespace AuthoritativePutComponentOperation {
248
- const MESSAGE_HEADER_LENGTH = 16;
249
- /**
250
- * Call this function for an optimal writing data passing the ByteBuffer
251
- * already allocated
252
- */
253
- export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
254
- export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
255
- }
256
-
257
221
  /** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
258
222
  /**
259
223
  * @public
@@ -297,6 +261,15 @@ export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAva
297
261
  /** @public */
298
262
  export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
299
263
 
264
+ /** Mask for which bones an animation applies to. */
265
+ /**
266
+ * @public
267
+ */
268
+ export declare const enum AvatarEmoteMask {
269
+ AEM_FULL_BODY = 0,
270
+ AEM_UPPER_BODY = 1
271
+ }
272
+
300
273
  /** @public */
301
274
  export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
302
275
 
@@ -416,22 +389,6 @@ export declare interface BaseComponent<T> {
416
389
  * If the value is undefined, the component was deleted.
417
390
  */
418
391
  onChange(entity: Entity, cb: (value: T | undefined) => void): void;
419
- /**
420
- * @public
421
- *
422
- */
423
- validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
424
- validateBeforeChange(cb: ValidateCallback<T>): void;
425
- /**
426
- * Get the CRDT state for an entity (serialized data and timestamp)
427
- * @param entity - Entity to get the CRDT state for
428
- * @returns Object with serialized data and timestamp, or null if entity doesn't have the component
429
- * @public
430
- */
431
- getCrdtState(entity: Entity): {
432
- data: Uint8Array;
433
- timestamp: number;
434
- } | null;
435
392
  }
436
393
 
437
394
  /** @public */
@@ -1662,12 +1619,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
1662
1619
  /**
1663
1620
  * @public
1664
1621
  */
1665
- export declare type CrdtMessage = PutComponentMessage | AuthoritativePutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1622
+ export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
1666
1623
 
1667
1624
  /**
1668
1625
  * @public
1669
1626
  */
1670
- export declare type CrdtMessageBody = PutComponentMessageBody | AuthoritativePutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1627
+ export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
1671
1628
 
1672
1629
  /**
1673
1630
  * Min length = 8 bytes
@@ -1722,8 +1679,7 @@ export declare enum CrdtMessageType {
1722
1679
  PUT_COMPONENT_NETWORK = 5,
1723
1680
  DELETE_COMPONENT_NETWORK = 6,
1724
1681
  DELETE_ENTITY_NETWORK = 7,
1725
- AUTHORITATIVE_PUT_COMPONENT = 8,
1726
- MAX_MESSAGE_TYPE = 9
1682
+ MAX_MESSAGE_TYPE = 8
1727
1683
  }
1728
1684
 
1729
1685
  /**
@@ -1731,8 +1687,6 @@ export declare enum CrdtMessageType {
1731
1687
  */
1732
1688
  export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
1733
1689
 
1734
- export declare const CreatedBy: ICreatedBy;
1735
-
1736
1690
  /**
1737
1691
  * @public
1738
1692
  */
@@ -2452,12 +2406,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
2452
2406
 
2453
2407
  export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
2454
2408
 
2455
- export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
2456
-
2457
- export declare interface ICreatedByType {
2458
- address: string;
2459
- }
2460
-
2461
2409
  /**
2462
2410
  * @public
2463
2411
  */
@@ -2911,35 +2859,6 @@ export declare const enum InteractionType {
2911
2859
  PROXIMITY = 1
2912
2860
  }
2913
2861
 
2914
- /**
2915
- * Internal component interface that exposes all internal methods for SDK use
2916
- * This is not exposed to users, only for internal SDK operations
2917
- */
2918
- export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
2919
- /**
2920
- * @public
2921
- * Dry run update to check if a CRDT message would be accepted without actually applying it
2922
- */
2923
- __dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
2924
- /**
2925
- * @public
2926
- * Get the iterator to every entity has the component
2927
- */
2928
- iterator(): Iterable<[Entity, any]>;
2929
- /**
2930
- * @public
2931
- */
2932
- dirtyIterator(): Iterable<Entity>;
2933
- /**
2934
- * @public
2935
- */
2936
- __onChangeCallbacks(entity: Entity, value: T): void;
2937
- /**
2938
- * @public
2939
- */
2940
- __run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
2941
- }
2942
-
2943
2862
  /**
2944
2863
  * @public
2945
2864
  */
@@ -4924,6 +4843,12 @@ export declare interface PBAvatarLocomotionSettings {
4924
4843
  runJumpHeight?: number | undefined;
4925
4844
  /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
4926
4845
  hardLandingCooldown?: number | undefined;
4846
+ /** Height of the double jump (in meters) */
4847
+ doubleJumpHeight?: number | undefined;
4848
+ /** Maximum speed when gliding (in meters per second) */
4849
+ glidingSpeed?: number | undefined;
4850
+ /** Maximum falling speed when gliding (in meters per second) */
4851
+ glidingFallingSpeed?: number | undefined;
4927
4852
  }
4928
4853
 
4929
4854
  /**
@@ -7008,6 +6933,7 @@ export declare namespace PBVideoPlayer {
7008
6933
  * an 'instant' transition (like using speed/time = 0)
7009
6934
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
7010
6935
  * the holding entity transform).
6936
+ * * The fov defines the Field of View of the virtual camera
7011
6937
  */
7012
6938
  /**
7013
6939
  * @public
@@ -7015,6 +6941,8 @@ export declare namespace PBVideoPlayer {
7015
6941
  export declare interface PBVirtualCamera {
7016
6942
  defaultTransition?: CameraTransition | undefined;
7017
6943
  lookAtEntity?: number | undefined;
6944
+ /** default: 60 */
6945
+ fov?: number | undefined;
7018
6946
  }
7019
6947
 
7020
6948
  /**
@@ -9591,14 +9519,6 @@ export declare interface UiTransformProps {
9591
9519
  */
9592
9520
  export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
9593
9521
 
9594
- export declare type ValidateCallback<T> = (value: {
9595
- entity: Entity;
9596
- currentValue: T | undefined;
9597
- newValue: T | undefined;
9598
- senderAddress: string;
9599
- createdBy: string;
9600
- }) => boolean;
9601
-
9602
9522
  /**
9603
9523
  * @public
9604
9524
  */