@dcl/playground-assets 7.20.4-22621752364.commit-d72981b → 7.20.4-22623908379.commit-46ce898

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 CHANGED
@@ -115,61 +115,6 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
115
115
  */
116
116
  export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
117
117
 
118
- export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
119
-
120
- export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
121
- /**
122
- * Reads the component data of `entity` into the provided `out` view.
123
- *
124
- * @throws Error if the entity does not have an AudioAnalysis component.
125
- * @param entity - The entity whose AudioAnalysis data will be read.
126
- * @param out - An existing AudioAnalysisView to populate with the latest values.
127
- */
128
- readIntoView(entity: Entity, out: AudioAnalysisView): void;
129
- /**
130
- * Attempts to read the component data of `entity` into the provided `out` view.
131
- *
132
- * @returns `true` if the component exists and data was written into `out`,
133
- * `false` if the entity does not have an AudioAnalysis component.
134
- * @param entity - The entity whose AudioAnalysis data will be read.
135
- * @param out - An existing AudioAnalysisView to populate.
136
- */
137
- tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
138
- /**
139
- * Creates an AudioAnalysis component for the given `entity`.
140
- *
141
- * If a component already exists on the entity, this call fails (does not replace).
142
- *
143
- * @param entity - The entity to attach the component to.
144
- * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
145
- * @param amplitudeGain - Optional amplitude gain multiplier.
146
- * @param bandsGain - Optional gain multiplier applied to all frequency bands.
147
- */
148
- createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
149
- amplitudeGain?: number, bandsGain?: number): void;
150
- /**
151
- * Creates the AudioAnalysis component if missing, or replaces the existing one.
152
- *
153
- * @param entity - The target entity.
154
- * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
155
- * @param amplitudeGain - Optional amplitude gain multiplier.
156
- * @param bandsGain - Optional gain multiplier applied to the frequency bands.
157
- */
158
- createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
159
- amplitudeGain?: number, bandsGain?: number): void;
160
- }
161
-
162
- /**
163
- * A read-only JavaScript-friendly view of AudioAnalysis ECS data.
164
- *
165
- * `amplitude` represents the aggregated signal strength.
166
- * `bands` represents the processed frequency bands.
167
- */
168
- export declare type AudioAnalysisView = {
169
- amplitude: number;
170
- bands: number[];
171
- };
172
-
173
118
  /** @public */
174
119
  export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
175
120
 
@@ -264,9 +209,6 @@ export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBA
264
209
  /** @public */
265
210
  export declare const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
266
211
 
267
- /** @public */
268
- export declare const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
269
-
270
212
  /** @public */
271
213
  export declare const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
272
214
 
@@ -1379,7 +1321,6 @@ export declare const componentDefinitionByName: {
1379
1321
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
1380
1322
  "core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
1381
1323
  "core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
1382
- "core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
1383
1324
  "core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
1384
1325
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
1385
1326
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -1387,7 +1328,6 @@ export declare const componentDefinitionByName: {
1387
1328
  "core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
1388
1329
  "core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
1389
1330
  "core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
1390
- "core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
1391
1331
  "core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
1392
1332
  "core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
1393
1333
  "core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
@@ -2092,7 +2032,6 @@ export declare type EventSystemOptions = {
2092
2032
  showFeedback?: boolean;
2093
2033
  showHighlight?: boolean;
2094
2034
  maxPlayerDistance?: number;
2095
- priority?: number;
2096
2035
  };
2097
2036
 
2098
2037
  /**
@@ -2746,8 +2685,7 @@ export declare const enum InputAction {
2746
2685
  IA_ACTION_3 = 10,
2747
2686
  IA_ACTION_4 = 11,
2748
2687
  IA_ACTION_5 = 12,
2749
- IA_ACTION_6 = 13,
2750
- IA_MODIFIER = 14
2688
+ IA_ACTION_6 = 13
2751
2689
  }
2752
2690
 
2753
2691
  export declare const InputModifier: InputModifierComponentDefinitionExtended;
@@ -2795,14 +2733,6 @@ export declare type InstanceCompositeOptions = {
2795
2733
  alreadyRequestedSrc?: Set<string>;
2796
2734
  };
2797
2735
 
2798
- /**
2799
- * @public
2800
- */
2801
- export declare const enum InteractionType {
2802
- CURSOR = 0,
2803
- PROXIMITY = 1
2804
- }
2805
-
2806
2736
  /**
2807
2737
  * @public
2808
2738
  */
@@ -3981,88 +3911,6 @@ export declare namespace MoveContinuous {
3981
3911
  export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
3982
3912
  }
3983
3913
 
3984
- /**
3985
- * @public
3986
- */
3987
- export declare interface MoveRotateScale {
3988
- positionStart: PBVector3 | undefined;
3989
- positionEnd: PBVector3 | undefined;
3990
- rotationStart: PBQuaternion | undefined;
3991
- rotationEnd: PBQuaternion | undefined;
3992
- scaleStart: PBVector3 | undefined;
3993
- scaleEnd: PBVector3 | undefined;
3994
- }
3995
-
3996
- /**
3997
- * @public
3998
- */
3999
- export declare namespace MoveRotateScale {
4000
- export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
4001
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
4002
- }
4003
-
4004
- /**
4005
- * @public
4006
- */
4007
- export declare interface MoveRotateScaleContinuous {
4008
- positionDirection: PBVector3 | undefined;
4009
- rotationDirection: PBQuaternion | undefined;
4010
- scaleDirection: PBVector3 | undefined;
4011
- speed: number;
4012
- }
4013
-
4014
- /**
4015
- * @public
4016
- */
4017
- export declare namespace MoveRotateScaleContinuous {
4018
- export function encode(message: MoveRotateScaleContinuous, writer?: _m0.Writer): _m0.Writer;
4019
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous;
4020
- }
4021
-
4022
- /**
4023
- * @public
4024
- * Partial params for Tween.Mode.MoveRotateScaleContinuous(). At least one of position, rotation, or scale must be provided.
4025
- */
4026
- export declare interface MoveRotateScaleContinuousModeParams {
4027
- /** Position direction for continuous movement. Optional. */
4028
- position?: {
4029
- direction: PBVector3;
4030
- };
4031
- /** Rotation direction for continuous rotation. Optional. */
4032
- rotation?: {
4033
- direction: PBQuaternion;
4034
- };
4035
- /** Scale direction for continuous scale change. Optional. */
4036
- scale?: {
4037
- direction: PBVector3;
4038
- };
4039
- /** Speed of the animation per second. */
4040
- speed: number;
4041
- }
4042
-
4043
- /**
4044
- * @public
4045
- * Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
4046
- * Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
4047
- */
4048
- export declare interface MoveRotateScaleModeParams {
4049
- /** Position tween (start → end). Optional. */
4050
- position?: {
4051
- start: PBVector3;
4052
- end: PBVector3;
4053
- };
4054
- /** Rotation tween (start → end). Optional. */
4055
- rotation?: {
4056
- start: PBQuaternion;
4057
- end: PBQuaternion;
4058
- };
4059
- /** Scale tween (start → end). Optional. */
4060
- scale?: {
4061
- start: PBVector3;
4062
- end: PBVector3;
4063
- };
4064
- }
4065
-
4066
3914
  export declare const Name: NameComponent;
4067
3915
 
4068
3916
  export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
@@ -4541,45 +4389,6 @@ export declare namespace PBAssetLoadLoadingState {
4541
4389
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAssetLoadLoadingState;
4542
4390
  }
4543
4391
 
4544
- /**
4545
- * @public
4546
- */
4547
- export declare interface PBAudioAnalysis {
4548
- /** Parameters section */
4549
- mode: PBAudioAnalysisMode;
4550
- /** Used only when mode == MODE_LOGARITHMIC */
4551
- amplitudeGain?: number | undefined;
4552
- /** End when mode == MODE_LOGARITHMIC */
4553
- bandsGain?: number | undefined;
4554
- /** Result section */
4555
- amplitude: number;
4556
- /** Protobuf doesn't support fixed arrays -> 8 band fields */
4557
- band0: number;
4558
- band1: number;
4559
- band2: number;
4560
- band3: number;
4561
- band4: number;
4562
- band5: number;
4563
- band6: number;
4564
- band7: number;
4565
- }
4566
-
4567
- /**
4568
- * @public
4569
- */
4570
- export declare namespace PBAudioAnalysis {
4571
- export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
4572
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
4573
- }
4574
-
4575
- /**
4576
- * @public
4577
- */
4578
- export declare const enum PBAudioAnalysisMode {
4579
- MODE_RAW = 0,
4580
- MODE_LOGARITHMIC = 1
4581
- }
4582
-
4583
4392
  /**
4584
4393
  * @public
4585
4394
  */
@@ -4769,36 +4578,6 @@ export declare namespace PBAvatarEquippedData {
4769
4578
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
4770
4579
  }
4771
4580
 
4772
- /**
4773
- * The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
4774
- * as the avatar movement speed, jump height etc.
4775
- */
4776
- /**
4777
- * @public
4778
- */
4779
- export declare interface PBAvatarLocomotionSettings {
4780
- /** Maximum speed when walking (in meters per second) */
4781
- walkSpeed?: number | undefined;
4782
- /** Maximum speed when jogging (in meters per second) */
4783
- jogSpeed?: number | undefined;
4784
- /** Maximum speed when running (in meters per second) */
4785
- runSpeed?: number | undefined;
4786
- /** Height of a regular jump (in meters) */
4787
- jumpHeight?: number | undefined;
4788
- /** Height of a jump while running (in meters) */
4789
- runJumpHeight?: number | undefined;
4790
- /** Cooldown time after a hard landing before the avatar can move again (in seconds) */
4791
- hardLandingCooldown?: number | undefined;
4792
- }
4793
-
4794
- /**
4795
- * @public
4796
- */
4797
- export declare namespace PBAvatarLocomotionSettings {
4798
- export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
4799
- export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
4800
- }
4801
-
4802
4581
  /**
4803
4582
  * The AvatarModifierArea component can be attached to an Entity to define a region of space where
4804
4583
  * avatar behavior changes.
@@ -5651,8 +5430,6 @@ export declare interface PBPointerEvents_Entry {
5651
5430
  eventType: PointerEventType;
5652
5431
  /** additional configuration for this detection */
5653
5432
  eventInfo: PBPointerEvents_Info | undefined;
5654
- /** the type of interaction source (default 0 == CURSOR) */
5655
- interactionType?: InteractionType | undefined;
5656
5433
  }
5657
5434
 
5658
5435
  /**
@@ -5679,8 +5456,6 @@ export declare interface PBPointerEvents_Info {
5679
5456
  showHighlight?: boolean | undefined;
5680
5457
  /** range of interaction from the avatar's position (default 0) */
5681
5458
  maxPlayerDistance?: number | undefined;
5682
- /** resolution order when multiple events overlap, higher wins (default 0) */
5683
- priority?: number | undefined;
5684
5459
  }
5685
5460
 
5686
5461
  /**
@@ -6117,12 +5892,6 @@ export declare interface PBTween {
6117
5892
  } | {
6118
5893
  $case: "textureMoveContinuous";
6119
5894
  textureMoveContinuous: TextureMoveContinuous;
6120
- } | {
6121
- $case: "moveRotateScale";
6122
- moveRotateScale: MoveRotateScale;
6123
- } | {
6124
- $case: "moveRotateScaleContinuous";
6125
- moveRotateScaleContinuous: MoveRotateScaleContinuous;
6126
5895
  } | undefined;
6127
5896
  /** default true (pause or running) */
6128
5897
  playing?: boolean | undefined;
@@ -6560,7 +6329,6 @@ export declare namespace PBVideoPlayer {
6560
6329
  * an 'instant' transition (like using speed/time = 0)
6561
6330
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
6562
6331
  * the holding entity transform).
6563
- * * The fov defines the Field of View of the virtual camera
6564
6332
  */
6565
6333
  /**
6566
6334
  * @public
@@ -6568,8 +6336,6 @@ export declare namespace PBVideoPlayer {
6568
6336
  export declare interface PBVirtualCamera {
6569
6337
  defaultTransition?: CameraTransition | undefined;
6570
6338
  lookAtEntity?: number | undefined;
6571
- /** default: 60 */
6572
- fov?: number | undefined;
6573
6339
  }
6574
6340
 
6575
6341
  /**
@@ -6759,30 +6525,6 @@ export declare interface PointerEventsSystem {
6759
6525
  * @param entity - Entity where the callback was attached
6760
6526
  */
6761
6527
  removeOnPointerHoverLeave(entity: Entity): void;
6762
- /**
6763
- * @public
6764
- * Remove the callback for onProximityDown event
6765
- * @param entity - Entity where the callback was attached
6766
- */
6767
- removeOnProximityDown(entity: Entity): void;
6768
- /**
6769
- * @public
6770
- * Remove the callback for onProximityUp event
6771
- * @param entity - Entity where the callback was attached
6772
- */
6773
- removeOnProximityUp(entity: Entity): void;
6774
- /**
6775
- * @public
6776
- * Remove the callback for onProximityEnter event
6777
- * @param entity - Entity where the callback was attached
6778
- */
6779
- removeOnProximityEnter(entity: Entity): void;
6780
- /**
6781
- * @public
6782
- * Remove the callback for onProximityLeave event
6783
- * @param entity - Entity where the callback was attached
6784
- */
6785
- removeOnProximityLeave(entity: Entity): void;
6786
6528
  /**
6787
6529
  * @public
6788
6530
  * Execute callback when the user press the InputButton pointing at the entity
@@ -6837,46 +6579,6 @@ export declare interface PointerEventsSystem {
6837
6579
  entity: Entity;
6838
6580
  opts?: Partial<EventSystemOptions>;
6839
6581
  }, cb: EventSystemCallback): void;
6840
- /**
6841
- * @public
6842
- * Execute callback when the user presses the proximity button on the entity
6843
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6844
- * @param cb - Function to execute when click fires
6845
- */
6846
- onProximityDown(pointerData: {
6847
- entity: Entity;
6848
- opts?: Partial<EventSystemOptions>;
6849
- }, cb: EventSystemCallback): void;
6850
- /**
6851
- * @public
6852
- * Execute callback when the user releases the proximity button on the entity
6853
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6854
- * @param cb - Function to execute when event fires
6855
- */
6856
- onProximityUp(pointerData: {
6857
- entity: Entity;
6858
- opts?: Partial<EventSystemOptions>;
6859
- }, cb: EventSystemCallback): void;
6860
- /**
6861
- * @public
6862
- * Execute callback when the entity enters the proximity zone of the user
6863
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6864
- * @param cb - Function to execute when event fires
6865
- */
6866
- onProximityEnter(pointerData: {
6867
- entity: Entity;
6868
- opts?: Partial<EventSystemOptions>;
6869
- }, cb: EventSystemCallback): void;
6870
- /**
6871
- * @public
6872
- * Execute callback when the entity leaves the proximity zone of the user
6873
- * @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
6874
- * @param cb - Function to execute when event fires
6875
- */
6876
- onProximityLeave(pointerData: {
6877
- entity: Entity;
6878
- opts?: Partial<EventSystemOptions>;
6879
- }, cb: EventSystemCallback): void;
6880
6582
  }
6881
6583
 
6882
6584
  /**
@@ -6893,9 +6595,7 @@ export declare const enum PointerEventType {
6893
6595
  PET_UP = 0,
6894
6596
  PET_DOWN = 1,
6895
6597
  PET_HOVER_ENTER = 2,
6896
- PET_HOVER_LEAVE = 3,
6897
- PET_PROXIMITY_ENTER = 4,
6898
- PET_PROXIMITY_LEAVE = 5
6598
+ PET_HOVER_LEAVE = 3
6899
6599
  }
6900
6600
 
6901
6601
  /**
@@ -8112,26 +7812,6 @@ export declare namespace Schemas {
8112
7812
  }) => void;
8113
7813
  }
8114
7814
 
8115
- /**
8116
- * @public
8117
- * Parameters for setMoveRotateScaleContinuous. At least one of position, rotation, or scale must be provided.
8118
- */
8119
- export declare interface SetMoveRotateScaleContinuousParams extends MoveRotateScaleContinuousModeParams {
8120
- /** Duration in milliseconds (defaults to 0 for infinite). */
8121
- duration?: number;
8122
- }
8123
-
8124
- /**
8125
- * @public
8126
- * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
8127
- */
8128
- export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
8129
- /** Duration of the tween in milliseconds. */
8130
- duration: number;
8131
- /** Easing function (defaults to EF_LINEAR). */
8132
- easingFunction?: EasingFunction;
8133
- }
8134
-
8135
7815
  /** @public */
8136
7816
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
8137
7817
 
@@ -8733,26 +8413,6 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8733
8413
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8734
8414
  */
8735
8415
  setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8736
- /**
8737
- * @public
8738
- *
8739
- * Creates or replaces a move-rotate-scale tween component that simultaneously animates
8740
- * an entity's position, rotation, and/or scale from start to end. Provide only the
8741
- * properties you need (at least one of position, rotation, or scale).
8742
- * @param entity - entity to apply the tween to
8743
- * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
8744
- */
8745
- setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
8746
- /**
8747
- * @public
8748
- *
8749
- * Creates or replaces a continuous move-rotate-scale tween component that simultaneously
8750
- * moves, rotates, and/or scales an entity continuously. Provide only the properties
8751
- * you need (at least one of position, rotation, or scale).
8752
- * @param entity - entity to apply the tween to
8753
- * @param params - object with optional position, rotation, scale (each with direction), speed, and optional duration
8754
- */
8755
- setMoveRotateScaleContinuous(entity: Entity, params: SetMoveRotateScaleContinuousParams): void;
8756
8416
  }
8757
8417
 
8758
8418
  /**
@@ -8787,16 +8447,6 @@ export declare interface TweenHelper {
8787
8447
  * @returns a texture-move-continuous mode tween
8788
8448
  */
8789
8449
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8790
- /**
8791
- * @returns a move-rotate-scale mode tween
8792
- * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
8793
- */
8794
- MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
8795
- /**
8796
- * @returns a move-rotate-scale-continuous mode tween
8797
- * @param params - partial transform (at least one of position, rotation, scale) + speed; omit axes you don't need
8798
- */
8799
- MoveRotateScaleContinuous: (params: MoveRotateScaleContinuousModeParams) => PBTween['mode'];
8800
8450
  }
8801
8451
 
8802
8452
  /**