@dcl/playground-assets 7.5.8-10743784489.commit-d6809c5 → 7.5.8-10777738407.commit-ecf90a0

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
@@ -468,6 +468,43 @@ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCam
468
468
  /** @public */
469
469
  export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
470
470
 
471
+ /**
472
+ * @public
473
+ */
474
+ export declare interface CameraTransition {
475
+ fromEntity?: number | undefined;
476
+ toEntity?: number | undefined;
477
+ transitionMode?: {
478
+ $case: "time";
479
+ time: number;
480
+ } | {
481
+ $case: "speed";
482
+ speed: number;
483
+ } | undefined;
484
+ }
485
+
486
+ /**
487
+ * @public
488
+ */
489
+ export declare namespace CameraTransition {
490
+ export function encode(message: CameraTransition, writer?: _m0.Writer): _m0.Writer;
491
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CameraTransition;
492
+ }
493
+
494
+ /**
495
+ * @public
496
+ */
497
+ export declare interface CameraTransitionHelper {
498
+ /**
499
+ * @returns a CameraTransition speed
500
+ */
501
+ Speed: (speed: number) => CameraTransition['transitionMode'];
502
+ /**
503
+ * @returns a CameraTransition time
504
+ */
505
+ Time: (time: number) => CameraTransition['transitionMode'];
506
+ }
507
+
471
508
  /**
472
509
  * @public
473
510
  */
@@ -1259,6 +1296,7 @@ export declare const componentDefinitionByName: {
1259
1296
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1260
1297
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1261
1298
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1299
+ "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1262
1300
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1263
1301
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1264
1302
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1284,6 +1322,7 @@ export declare const componentDefinitionByName: {
1284
1322
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
1285
1323
  "core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
1286
1324
  "core::VideoPlayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
1325
+ "core::VirtualCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVirtualCamera>>;
1287
1326
  "core::VisibilityComponent": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
1288
1327
  };
1289
1328
 
@@ -2616,6 +2655,9 @@ export declare type LocalDirectionRaycastSystemOptions = {
2616
2655
 
2617
2656
  export declare type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
2618
2657
 
2658
+ /** @public */
2659
+ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
2660
+
2619
2661
  /**
2620
2662
  * @public
2621
2663
  * Overrides component definition to support partial default values
@@ -4454,6 +4496,23 @@ export declare namespace PBInputModifier_StandardInput {
4454
4496
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4455
4497
  }
4456
4498
 
4499
+ /** PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment. 0 means none. */
4500
+ /**
4501
+ * @public
4502
+ */
4503
+ export declare interface PBMainCamera {
4504
+ /** currently active virtual camera (default: 0) */
4505
+ virtualCameraEntity: number;
4506
+ }
4507
+
4508
+ /**
4509
+ * @public
4510
+ */
4511
+ export declare namespace PBMainCamera {
4512
+ export function encode(message: PBMainCamera, writer?: _m0.Writer): _m0.Writer;
4513
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMainCamera;
4514
+ }
4515
+
4457
4516
  /**
4458
4517
  * @public
4459
4518
  */
@@ -5521,6 +5580,28 @@ export declare namespace PBVideoPlayer {
5521
5580
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVideoPlayer;
5522
5581
  }
5523
5582
 
5583
+ /**
5584
+ * PBVirtualCamera represents a camera to be used at some point in time during the scene execution
5585
+ * * The defaultTransition represents the transition TOWARDS this camera.
5586
+ * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5587
+ * the holding entity transform).
5588
+ */
5589
+ /**
5590
+ * @public
5591
+ */
5592
+ export declare interface PBVirtualCamera {
5593
+ defaultTransition: CameraTransition | undefined;
5594
+ lookAtEntity?: number | undefined;
5595
+ }
5596
+
5597
+ /**
5598
+ * @public
5599
+ */
5600
+ export declare namespace PBVirtualCamera {
5601
+ export function encode(message: PBVirtualCamera, writer?: _m0.Writer): _m0.Writer;
5602
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVirtualCamera;
5603
+ }
5604
+
5524
5605
  /**
5525
5606
  * @public
5526
5607
  */
@@ -7985,6 +8066,18 @@ export declare namespace VideoTexture {
7985
8066
  export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTexture;
7986
8067
  }
7987
8068
 
8069
+ export declare const VirtualCamera: VirtualCameraComponentDefinitionExtended;
8070
+
8071
+ /**
8072
+ * @public
8073
+ */
8074
+ export declare interface VirtualCameraComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBVirtualCamera> {
8075
+ /**
8076
+ * Camera transition helper for time and speed modes
8077
+ */
8078
+ Transition: CameraTransitionHelper;
8079
+ }
8080
+
7988
8081
  /** @public */
7989
8082
  export declare const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
7990
8083
 
package/dist/beta.d.ts CHANGED
@@ -468,6 +468,43 @@ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCam
468
468
  /** @public */
469
469
  export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
470
470
 
471
+ /**
472
+ * @public
473
+ */
474
+ export declare interface CameraTransition {
475
+ fromEntity?: number | undefined;
476
+ toEntity?: number | undefined;
477
+ transitionMode?: {
478
+ $case: "time";
479
+ time: number;
480
+ } | {
481
+ $case: "speed";
482
+ speed: number;
483
+ } | undefined;
484
+ }
485
+
486
+ /**
487
+ * @public
488
+ */
489
+ export declare namespace CameraTransition {
490
+ export function encode(message: CameraTransition, writer?: _m0.Writer): _m0.Writer;
491
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CameraTransition;
492
+ }
493
+
494
+ /**
495
+ * @public
496
+ */
497
+ export declare interface CameraTransitionHelper {
498
+ /**
499
+ * @returns a CameraTransition speed
500
+ */
501
+ Speed: (speed: number) => CameraTransition['transitionMode'];
502
+ /**
503
+ * @returns a CameraTransition time
504
+ */
505
+ Time: (time: number) => CameraTransition['transitionMode'];
506
+ }
507
+
471
508
  /**
472
509
  * @public
473
510
  */
@@ -1259,6 +1296,7 @@ export declare const componentDefinitionByName: {
1259
1296
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1260
1297
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1261
1298
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1299
+ "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1262
1300
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1263
1301
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1264
1302
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1284,6 +1322,7 @@ export declare const componentDefinitionByName: {
1284
1322
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
1285
1323
  "core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
1286
1324
  "core::VideoPlayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
1325
+ "core::VirtualCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVirtualCamera>>;
1287
1326
  "core::VisibilityComponent": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
1288
1327
  };
1289
1328
 
@@ -2607,6 +2646,9 @@ export declare type LocalDirectionRaycastSystemOptions = {
2607
2646
 
2608
2647
  export declare type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
2609
2648
 
2649
+ /** @public */
2650
+ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
2651
+
2610
2652
  /**
2611
2653
  * @public
2612
2654
  * Overrides component definition to support partial default values
@@ -4426,6 +4468,23 @@ export declare namespace PBInputModifier_StandardInput {
4426
4468
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4427
4469
  }
4428
4470
 
4471
+ /** PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment. 0 means none. */
4472
+ /**
4473
+ * @public
4474
+ */
4475
+ export declare interface PBMainCamera {
4476
+ /** currently active virtual camera (default: 0) */
4477
+ virtualCameraEntity: number;
4478
+ }
4479
+
4480
+ /**
4481
+ * @public
4482
+ */
4483
+ export declare namespace PBMainCamera {
4484
+ export function encode(message: PBMainCamera, writer?: _m0.Writer): _m0.Writer;
4485
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMainCamera;
4486
+ }
4487
+
4429
4488
  /**
4430
4489
  * @public
4431
4490
  */
@@ -5493,6 +5552,28 @@ export declare namespace PBVideoPlayer {
5493
5552
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVideoPlayer;
5494
5553
  }
5495
5554
 
5555
+ /**
5556
+ * PBVirtualCamera represents a camera to be used at some point in time during the scene execution
5557
+ * * The defaultTransition represents the transition TOWARDS this camera.
5558
+ * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5559
+ * the holding entity transform).
5560
+ */
5561
+ /**
5562
+ * @public
5563
+ */
5564
+ export declare interface PBVirtualCamera {
5565
+ defaultTransition: CameraTransition | undefined;
5566
+ lookAtEntity?: number | undefined;
5567
+ }
5568
+
5569
+ /**
5570
+ * @public
5571
+ */
5572
+ export declare namespace PBVirtualCamera {
5573
+ export function encode(message: PBVirtualCamera, writer?: _m0.Writer): _m0.Writer;
5574
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVirtualCamera;
5575
+ }
5576
+
5496
5577
  /**
5497
5578
  * @public
5498
5579
  */
@@ -7952,6 +8033,18 @@ export declare namespace VideoTexture {
7952
8033
  export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTexture;
7953
8034
  }
7954
8035
 
8036
+ export declare const VirtualCamera: VirtualCameraComponentDefinitionExtended;
8037
+
8038
+ /**
8039
+ * @public
8040
+ */
8041
+ export declare interface VirtualCameraComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBVirtualCamera> {
8042
+ /**
8043
+ * Camera transition helper for time and speed modes
8044
+ */
8045
+ Transition: CameraTransitionHelper;
8046
+ }
8047
+
7955
8048
  /** @public */
7956
8049
  export declare const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
7957
8050
 
@@ -468,6 +468,43 @@ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCam
468
468
  /** @public */
469
469
  export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
470
470
 
471
+ /**
472
+ * @public
473
+ */
474
+ export declare interface CameraTransition {
475
+ fromEntity?: number | undefined;
476
+ toEntity?: number | undefined;
477
+ transitionMode?: {
478
+ $case: "time";
479
+ time: number;
480
+ } | {
481
+ $case: "speed";
482
+ speed: number;
483
+ } | undefined;
484
+ }
485
+
486
+ /**
487
+ * @public
488
+ */
489
+ export declare namespace CameraTransition {
490
+ export function encode(message: CameraTransition, writer?: _m0.Writer): _m0.Writer;
491
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): CameraTransition;
492
+ }
493
+
494
+ /**
495
+ * @public
496
+ */
497
+ export declare interface CameraTransitionHelper {
498
+ /**
499
+ * @returns a CameraTransition speed
500
+ */
501
+ Speed: (speed: number) => CameraTransition['transitionMode'];
502
+ /**
503
+ * @returns a CameraTransition time
504
+ */
505
+ Time: (time: number) => CameraTransition['transitionMode'];
506
+ }
507
+
471
508
  /**
472
509
  * @public
473
510
  */
@@ -1259,6 +1296,7 @@ export declare const componentDefinitionByName: {
1259
1296
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1260
1297
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1261
1298
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1299
+ "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1262
1300
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1263
1301
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
1264
1302
  "core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
@@ -1284,6 +1322,7 @@ export declare const componentDefinitionByName: {
1284
1322
  "core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
1285
1323
  "core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
1286
1324
  "core::VideoPlayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
1325
+ "core::VirtualCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVirtualCamera>>;
1287
1326
  "core::VisibilityComponent": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
1288
1327
  };
1289
1328
 
@@ -2607,6 +2646,9 @@ export declare type LocalDirectionRaycastSystemOptions = {
2607
2646
 
2608
2647
  export declare type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
2609
2648
 
2649
+ /** @public */
2650
+ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
2651
+
2610
2652
  /**
2611
2653
  * @public
2612
2654
  * Overrides component definition to support partial default values
@@ -4426,6 +4468,23 @@ export declare namespace PBInputModifier_StandardInput {
4426
4468
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4427
4469
  }
4428
4470
 
4471
+ /** PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment. 0 means none. */
4472
+ /**
4473
+ * @public
4474
+ */
4475
+ export declare interface PBMainCamera {
4476
+ /** currently active virtual camera (default: 0) */
4477
+ virtualCameraEntity: number;
4478
+ }
4479
+
4480
+ /**
4481
+ * @public
4482
+ */
4483
+ export declare namespace PBMainCamera {
4484
+ export function encode(message: PBMainCamera, writer?: _m0.Writer): _m0.Writer;
4485
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMainCamera;
4486
+ }
4487
+
4429
4488
  /**
4430
4489
  * @public
4431
4490
  */
@@ -5493,6 +5552,28 @@ export declare namespace PBVideoPlayer {
5493
5552
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVideoPlayer;
5494
5553
  }
5495
5554
 
5555
+ /**
5556
+ * PBVirtualCamera represents a camera to be used at some point in time during the scene execution
5557
+ * * The defaultTransition represents the transition TOWARDS this camera.
5558
+ * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5559
+ * the holding entity transform).
5560
+ */
5561
+ /**
5562
+ * @public
5563
+ */
5564
+ export declare interface PBVirtualCamera {
5565
+ defaultTransition: CameraTransition | undefined;
5566
+ lookAtEntity?: number | undefined;
5567
+ }
5568
+
5569
+ /**
5570
+ * @public
5571
+ */
5572
+ export declare namespace PBVirtualCamera {
5573
+ export function encode(message: PBVirtualCamera, writer?: _m0.Writer): _m0.Writer;
5574
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVirtualCamera;
5575
+ }
5576
+
5496
5577
  /**
5497
5578
  * @public
5498
5579
  */
@@ -7952,6 +8033,18 @@ export declare namespace VideoTexture {
7952
8033
  export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTexture;
7953
8034
  }
7954
8035
 
8036
+ export declare const VirtualCamera: VirtualCameraComponentDefinitionExtended;
8037
+
8038
+ /**
8039
+ * @public
8040
+ */
8041
+ export declare interface VirtualCameraComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBVirtualCamera> {
8042
+ /**
8043
+ * Camera transition helper for time and speed modes
8044
+ */
8045
+ Transition: CameraTransitionHelper;
8046
+ }
8047
+
7955
8048
  /** @public */
7956
8049
  export declare const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
7957
8050