@dcl/playground-assets 7.18.2-21457748765.commit-7ae2e38 → 7.18.2-21458377493.commit-ea4f3b6

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.18.2-21457748765.commit-7ae2e38",
4
+ "version": "7.18.2-21458377493.commit-ea4f3b6",
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": "7ae2e3848e600c323d6828ece5bcecd5fd9f3911"
38
+ "commit": "ea4f3b6e07da35b43506558fd0038b660475a0f9"
39
39
  }
@@ -90,6 +90,61 @@ export declare namespace AppendValueOperation {
90
90
  */
91
91
  export declare function areConnected(parcels: Coords[]): boolean;
92
92
 
93
+ export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
94
+
95
+ export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
96
+ /**
97
+ * Reads the component data of `entity` into the provided `out` view.
98
+ *
99
+ * @throws Error if the entity does not have an AudioAnalysis component.
100
+ * @param entity - The entity whose AudioAnalysis data will be read.
101
+ * @param out - An existing AudioAnalysisView to populate with the latest values.
102
+ */
103
+ readIntoView(entity: Entity, out: AudioAnalysisView): void;
104
+ /**
105
+ * Attempts to read the component data of `entity` into the provided `out` view.
106
+ *
107
+ * @returns `true` if the component exists and data was written into `out`,
108
+ * `false` if the entity does not have an AudioAnalysis component.
109
+ * @param entity - The entity whose AudioAnalysis data will be read.
110
+ * @param out - An existing AudioAnalysisView to populate.
111
+ */
112
+ tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
113
+ /**
114
+ * Creates an AudioAnalysis component for the given `entity`.
115
+ *
116
+ * If a component already exists on the entity, this call fails (does not replace).
117
+ *
118
+ * @param entity - The entity to attach the component to.
119
+ * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
120
+ * @param amplitudeGain - Optional amplitude gain multiplier.
121
+ * @param bandsGain - Optional gain multiplier applied to all frequency bands.
122
+ */
123
+ createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
124
+ amplitudeGain?: number, bandsGain?: number): void;
125
+ /**
126
+ * Creates the AudioAnalysis component if missing, or replaces the existing one.
127
+ *
128
+ * @param entity - The target entity.
129
+ * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
130
+ * @param amplitudeGain - Optional amplitude gain multiplier.
131
+ * @param bandsGain - Optional gain multiplier applied to the frequency bands.
132
+ */
133
+ createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
134
+ amplitudeGain?: number, bandsGain?: number): void;
135
+ }
136
+
137
+ /**
138
+ * A read-only JavaScript-friendly view of AudioAnalysis ECS data.
139
+ *
140
+ * `amplitude` represents the aggregated signal strength.
141
+ * `bands` represents the processed frequency bands.
142
+ */
143
+ export declare type AudioAnalysisView = {
144
+ amplitude: number;
145
+ bands: number[];
146
+ };
147
+
93
148
  /** @public */
94
149
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
95
150
 
@@ -184,6 +239,9 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
184
239
  /** @public */
185
240
  export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
186
241
 
242
+ /** @public */
243
+ export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
244
+
187
245
  /** @public */
188
246
  export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
189
247
 
@@ -1294,6 +1352,7 @@ export declare type ComponentDefinition<T> = LastWriteWinElementSetComponentDefi
1294
1352
  /** public */
1295
1353
  export declare const componentDefinitionByName: {
1296
1354
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1355
+ "core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
1297
1356
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1298
1357
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1299
1358
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -1301,6 +1360,7 @@ export declare const componentDefinitionByName: {
1301
1360
  "core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
1302
1361
  "core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
1303
1362
  "core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
1363
+ "core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
1304
1364
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
1305
1365
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
1306
1366
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -2658,7 +2718,8 @@ export declare const enum InputAction {
2658
2718
  IA_ACTION_3 = 10,
2659
2719
  IA_ACTION_4 = 11,
2660
2720
  IA_ACTION_5 = 12,
2661
- IA_ACTION_6 = 13
2721
+ IA_ACTION_6 = 13,
2722
+ IA_MODIFIER = 14
2662
2723
  }
2663
2724
 
2664
2725
  export declare const InputModifier: InputModifierComponentDefinitionExtended;
@@ -4321,6 +4382,45 @@ export declare namespace PBAnimator {
4321
4382
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
4322
4383
  }
4323
4384
 
4385
+ /**
4386
+ * @public
4387
+ */
4388
+ export declare interface PBAudioAnalysis {
4389
+ /** Parameters section */
4390
+ mode: PBAudioAnalysisMode;
4391
+ /** Used only when mode == MODE_LOGARITHMIC */
4392
+ amplitudeGain?: number | undefined;
4393
+ /** End when mode == MODE_LOGARITHMIC */
4394
+ bandsGain?: number | undefined;
4395
+ /** Result section */
4396
+ amplitude: number;
4397
+ /** Protobuf doesn't support fixed arrays -> 8 band fields */
4398
+ band0: number;
4399
+ band1: number;
4400
+ band2: number;
4401
+ band3: number;
4402
+ band4: number;
4403
+ band5: number;
4404
+ band6: number;
4405
+ band7: number;
4406
+ }
4407
+
4408
+ /**
4409
+ * @public
4410
+ */
4411
+ export declare namespace PBAudioAnalysis {
4412
+ export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
4413
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
4414
+ }
4415
+
4416
+ /**
4417
+ * @public
4418
+ */
4419
+ export declare const enum PBAudioAnalysisMode {
4420
+ MODE_RAW = 0,
4421
+ MODE_LOGARITHMIC = 1
4422
+ }
4423
+
4324
4424
  /**
4325
4425
  * @public
4326
4426
  */
@@ -4510,6 +4610,36 @@ export declare namespace PBAvatarEquippedData {
4510
4610
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
4511
4611
  }
4512
4612
 
4613
+ /**
4614
+ * The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
4615
+ * as the avatar movement speed, jump height etc.
4616
+ */
4617
+ /**
4618
+ * @public
4619
+ */
4620
+ export declare interface PBAvatarLocomotionSettings {
4621
+ /** Maximum speed when walking (in meters per second) */
4622
+ walkSpeed?: number | undefined;
4623
+ /** Maximum speed when jogging (in meters per second) */
4624
+ jogSpeed?: number | undefined;
4625
+ /** Maximum speed when running (in meters per second) */
4626
+ runSpeed?: number | undefined;
4627
+ /** Height of a regular jump (in meters) */
4628
+ jumpHeight?: number | undefined;
4629
+ /** Height of a jump while running (in meters) */
4630
+ runJumpHeight?: number | undefined;
4631
+ /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
4632
+ hardLandingCooldown?: number | undefined;
4633
+ }
4634
+
4635
+ /**
4636
+ * @public
4637
+ */
4638
+ export declare namespace PBAvatarLocomotionSettings {
4639
+ export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
4640
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
4641
+ }
4642
+
4513
4643
  /**
4514
4644
  * The AvatarModifierArea component can be attached to an Entity to define a region of space where
4515
4645
  * avatar behavior changes.
@@ -6261,6 +6391,7 @@ export declare namespace PBVideoPlayer {
6261
6391
  * an 'instant' transition (like using speed/time = 0)
6262
6392
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
6263
6393
  * the holding entity transform).
6394
+ * * The fov defines the Field of View of the virtual camera
6264
6395
  */
6265
6396
  /**
6266
6397
  * @public
@@ -6268,6 +6399,8 @@ export declare namespace PBVideoPlayer {
6268
6399
  export declare interface PBVirtualCamera {
6269
6400
  defaultTransition?: CameraTransition | undefined;
6270
6401
  lookAtEntity?: number | undefined;
6402
+ /** default: 60 */
6403
+ fov?: number | undefined;
6271
6404
  }
6272
6405
 
6273
6406
  /**