@dcl/playground-assets 7.20.5-22670537517.commit-a403a9f → 7.20.5-22673942652.commit-fcc5752

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
@@ -3913,6 +3913,49 @@ export declare namespace MoveContinuous {
3913
3913
  export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
3914
3914
  }
3915
3915
 
3916
+ /**
3917
+ * @public
3918
+ */
3919
+ export declare interface MoveRotateScale {
3920
+ positionStart: PBVector3 | undefined;
3921
+ positionEnd: PBVector3 | undefined;
3922
+ rotationStart: PBQuaternion | undefined;
3923
+ rotationEnd: PBQuaternion | undefined;
3924
+ scaleStart: PBVector3 | undefined;
3925
+ scaleEnd: PBVector3 | undefined;
3926
+ }
3927
+
3928
+ /**
3929
+ * @public
3930
+ */
3931
+ export declare namespace MoveRotateScale {
3932
+ export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
3933
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
3934
+ }
3935
+
3936
+ /**
3937
+ * @public
3938
+ * Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
3939
+ * Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
3940
+ */
3941
+ export declare interface MoveRotateScaleModeParams {
3942
+ /** Position tween (start → end). Optional. */
3943
+ position?: {
3944
+ start: PBVector3;
3945
+ end: PBVector3;
3946
+ };
3947
+ /** Rotation tween (start → end). Optional. */
3948
+ rotation?: {
3949
+ start: PBQuaternion;
3950
+ end: PBQuaternion;
3951
+ };
3952
+ /** Scale tween (start → end). Optional. */
3953
+ scale?: {
3954
+ start: PBVector3;
3955
+ end: PBVector3;
3956
+ };
3957
+ }
3958
+
3916
3959
  export declare const Name: NameComponent;
3917
3960
 
3918
3961
  export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
@@ -5949,6 +5992,9 @@ export declare interface PBTween {
5949
5992
  } | {
5950
5993
  $case: "textureMoveContinuous";
5951
5994
  textureMoveContinuous: TextureMoveContinuous;
5995
+ } | {
5996
+ $case: "moveRotateScale";
5997
+ moveRotateScale: MoveRotateScale;
5952
5998
  } | undefined;
5953
5999
  /** default true (pause or running) */
5954
6000
  playing?: boolean | undefined;
@@ -7875,6 +7921,17 @@ export declare namespace Schemas {
7875
7921
  }) => void;
7876
7922
  }
7877
7923
 
7924
+ /**
7925
+ * @public
7926
+ * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
7927
+ */
7928
+ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
7929
+ /** Duration of the tween in milliseconds. */
7930
+ duration: number;
7931
+ /** Easing function (defaults to EF_LINEAR). */
7932
+ easingFunction?: EasingFunction;
7933
+ }
7934
+
7878
7935
  /** @public */
7879
7936
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
7880
7937
 
@@ -8397,7 +8454,7 @@ export declare const Tween: TweenComponentDefinitionExtended;
8397
8454
  */
8398
8455
  export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
8399
8456
  /**
8400
- * Texture helpers with constructor
8457
+ * Helpers with constructor
8401
8458
  */
8402
8459
  Mode: TweenHelper;
8403
8460
  /**
@@ -8476,6 +8533,16 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8476
8533
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8477
8534
  */
8478
8535
  setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8536
+ /**
8537
+ * @public
8538
+ *
8539
+ * Creates or replaces a move-rotate-scale tween component that simultaneously animates
8540
+ * an entity's position, rotation, and/or scale from start to end. Provide only the
8541
+ * properties you need (at least one of position, rotation, or scale).
8542
+ * @param entity - entity to apply the tween to
8543
+ * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
8544
+ */
8545
+ setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
8479
8546
  }
8480
8547
 
8481
8548
  /**
@@ -8510,6 +8577,11 @@ export declare interface TweenHelper {
8510
8577
  * @returns a texture-move-continuous mode tween
8511
8578
  */
8512
8579
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8580
+ /**
8581
+ * @returns a move-rotate-scale mode tween
8582
+ * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
8583
+ */
8584
+ MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
8513
8585
  }
8514
8586
 
8515
8587
  /**
package/dist/beta.d.ts CHANGED
@@ -3893,6 +3893,49 @@ export declare namespace MoveContinuous {
3893
3893
  export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
3894
3894
  }
3895
3895
 
3896
+ /**
3897
+ * @public
3898
+ */
3899
+ export declare interface MoveRotateScale {
3900
+ positionStart: PBVector3 | undefined;
3901
+ positionEnd: PBVector3 | undefined;
3902
+ rotationStart: PBQuaternion | undefined;
3903
+ rotationEnd: PBQuaternion | undefined;
3904
+ scaleStart: PBVector3 | undefined;
3905
+ scaleEnd: PBVector3 | undefined;
3906
+ }
3907
+
3908
+ /**
3909
+ * @public
3910
+ */
3911
+ export declare namespace MoveRotateScale {
3912
+ export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
3913
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
3914
+ }
3915
+
3916
+ /**
3917
+ * @public
3918
+ * Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
3919
+ * Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
3920
+ */
3921
+ export declare interface MoveRotateScaleModeParams {
3922
+ /** Position tween (start → end). Optional. */
3923
+ position?: {
3924
+ start: PBVector3;
3925
+ end: PBVector3;
3926
+ };
3927
+ /** Rotation tween (start → end). Optional. */
3928
+ rotation?: {
3929
+ start: PBQuaternion;
3930
+ end: PBQuaternion;
3931
+ };
3932
+ /** Scale tween (start → end). Optional. */
3933
+ scale?: {
3934
+ start: PBVector3;
3935
+ end: PBVector3;
3936
+ };
3937
+ }
3938
+
3896
3939
  export declare const Name: NameComponent;
3897
3940
 
3898
3941
  export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
@@ -5921,6 +5964,9 @@ export declare interface PBTween {
5921
5964
  } | {
5922
5965
  $case: "textureMoveContinuous";
5923
5966
  textureMoveContinuous: TextureMoveContinuous;
5967
+ } | {
5968
+ $case: "moveRotateScale";
5969
+ moveRotateScale: MoveRotateScale;
5924
5970
  } | undefined;
5925
5971
  /** default true (pause or running) */
5926
5972
  playing?: boolean | undefined;
@@ -7847,6 +7893,17 @@ export declare namespace Schemas {
7847
7893
  }) => void;
7848
7894
  }
7849
7895
 
7896
+ /**
7897
+ * @public
7898
+ * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
7899
+ */
7900
+ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
7901
+ /** Duration of the tween in milliseconds. */
7902
+ duration: number;
7903
+ /** Easing function (defaults to EF_LINEAR). */
7904
+ easingFunction?: EasingFunction;
7905
+ }
7906
+
7850
7907
  /** @public */
7851
7908
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
7852
7909
 
@@ -8364,7 +8421,7 @@ export declare const Tween: TweenComponentDefinitionExtended;
8364
8421
  */
8365
8422
  export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
8366
8423
  /**
8367
- * Texture helpers with constructor
8424
+ * Helpers with constructor
8368
8425
  */
8369
8426
  Mode: TweenHelper;
8370
8427
  /**
@@ -8443,6 +8500,16 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8443
8500
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8444
8501
  */
8445
8502
  setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8503
+ /**
8504
+ * @public
8505
+ *
8506
+ * Creates or replaces a move-rotate-scale tween component that simultaneously animates
8507
+ * an entity's position, rotation, and/or scale from start to end. Provide only the
8508
+ * properties you need (at least one of position, rotation, or scale).
8509
+ * @param entity - entity to apply the tween to
8510
+ * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
8511
+ */
8512
+ setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
8446
8513
  }
8447
8514
 
8448
8515
  /**
@@ -8477,6 +8544,11 @@ export declare interface TweenHelper {
8477
8544
  * @returns a texture-move-continuous mode tween
8478
8545
  */
8479
8546
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8547
+ /**
8548
+ * @returns a move-rotate-scale mode tween
8549
+ * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
8550
+ */
8551
+ MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
8480
8552
  }
8481
8553
 
8482
8554
  /**
@@ -3893,6 +3893,49 @@ export declare namespace MoveContinuous {
3893
3893
  export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous;
3894
3894
  }
3895
3895
 
3896
+ /**
3897
+ * @public
3898
+ */
3899
+ export declare interface MoveRotateScale {
3900
+ positionStart: PBVector3 | undefined;
3901
+ positionEnd: PBVector3 | undefined;
3902
+ rotationStart: PBQuaternion | undefined;
3903
+ rotationEnd: PBQuaternion | undefined;
3904
+ scaleStart: PBVector3 | undefined;
3905
+ scaleEnd: PBVector3 | undefined;
3906
+ }
3907
+
3908
+ /**
3909
+ * @public
3910
+ */
3911
+ export declare namespace MoveRotateScale {
3912
+ export function encode(message: MoveRotateScale, writer?: _m0.Writer): _m0.Writer;
3913
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale;
3914
+ }
3915
+
3916
+ /**
3917
+ * @public
3918
+ * Partial params for Tween.Mode.MoveRotateScale(). At least one of position, rotation, or scale must be provided.
3919
+ * Use this when building a mode for Tween.createOrReplace() or TweenSequence (e.g. only positionStart/positionEnd).
3920
+ */
3921
+ export declare interface MoveRotateScaleModeParams {
3922
+ /** Position tween (start → end). Optional. */
3923
+ position?: {
3924
+ start: PBVector3;
3925
+ end: PBVector3;
3926
+ };
3927
+ /** Rotation tween (start → end). Optional. */
3928
+ rotation?: {
3929
+ start: PBQuaternion;
3930
+ end: PBQuaternion;
3931
+ };
3932
+ /** Scale tween (start → end). Optional. */
3933
+ scale?: {
3934
+ start: PBVector3;
3935
+ end: PBVector3;
3936
+ };
3937
+ }
3938
+
3896
3939
  export declare const Name: NameComponent;
3897
3940
 
3898
3941
  export declare type NameComponent = LastWriteWinElementSetComponentDefinition<NameType>;
@@ -5921,6 +5964,9 @@ export declare interface PBTween {
5921
5964
  } | {
5922
5965
  $case: "textureMoveContinuous";
5923
5966
  textureMoveContinuous: TextureMoveContinuous;
5967
+ } | {
5968
+ $case: "moveRotateScale";
5969
+ moveRotateScale: MoveRotateScale;
5924
5970
  } | undefined;
5925
5971
  /** default true (pause or running) */
5926
5972
  playing?: boolean | undefined;
@@ -7847,6 +7893,17 @@ export declare namespace Schemas {
7847
7893
  }) => void;
7848
7894
  }
7849
7895
 
7896
+ /**
7897
+ * @public
7898
+ * Parameters for setMoveRotateScale. At least one of position, rotation, or scale must be provided.
7899
+ */
7900
+ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModeParams {
7901
+ /** Duration of the tween in milliseconds. */
7902
+ duration: number;
7903
+ /** Easing function (defaults to EF_LINEAR). */
7904
+ easingFunction?: EasingFunction;
7905
+ }
7906
+
7850
7907
  /** @public */
7851
7908
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
7852
7909
 
@@ -8364,7 +8421,7 @@ export declare const Tween: TweenComponentDefinitionExtended;
8364
8421
  */
8365
8422
  export declare interface TweenComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBTween> {
8366
8423
  /**
8367
- * Texture helpers with constructor
8424
+ * Helpers with constructor
8368
8425
  */
8369
8426
  Mode: TweenHelper;
8370
8427
  /**
@@ -8443,6 +8500,16 @@ export declare interface TweenComponentDefinitionExtended extends LastWriteWinEl
8443
8500
  * @param duration - duration of the tween in milliseconds (defaults to 0 for infinite)
8444
8501
  */
8445
8502
  setTextureMoveContinuous(entity: Entity, direction: PBVector2, speed: number, movementType?: TextureMovementType, duration?: number): void;
8503
+ /**
8504
+ * @public
8505
+ *
8506
+ * Creates or replaces a move-rotate-scale tween component that simultaneously animates
8507
+ * an entity's position, rotation, and/or scale from start to end. Provide only the
8508
+ * properties you need (at least one of position, rotation, or scale).
8509
+ * @param entity - entity to apply the tween to
8510
+ * @param params - object with optional position, rotation, scale (each with start/end), duration, and optional easingFunction
8511
+ */
8512
+ setMoveRotateScale(entity: Entity, params: SetMoveRotateScaleParams): void;
8446
8513
  }
8447
8514
 
8448
8515
  /**
@@ -8477,6 +8544,11 @@ export declare interface TweenHelper {
8477
8544
  * @returns a texture-move-continuous mode tween
8478
8545
  */
8479
8546
  TextureMoveContinuous: (textureMove: TextureMoveContinuous) => PBTween['mode'];
8547
+ /**
8548
+ * @returns a move-rotate-scale mode tween
8549
+ * @param params - partial transform (at least one of position, rotation, scale); omit axes you don't need
8550
+ */
8551
+ MoveRotateScale: (params: MoveRotateScaleModeParams) => PBTween['mode'];
8480
8552
  }
8481
8553
 
8482
8554
  /**