@dcl/playground-assets 7.8.9 → 7.8.10-15468321387.commit-ea03486

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.
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1312
1313
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1313
1314
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1314
1315
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1318,6 +1319,7 @@ export declare const componentDefinitionByName: {
1318
1319
  "core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
1319
1320
  "core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
1320
1321
  "core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
1322
+ "core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
1321
1323
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
1322
1324
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
1323
1325
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
@@ -2665,6 +2667,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2665
2667
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2666
2668
  }
2667
2669
 
2670
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2671
+
2672
+ /**
2673
+ * @public
2674
+ */
2675
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2676
+ /**
2677
+ * LightSource helper with constructor
2678
+ */
2679
+ Type: LightSourceHelper;
2680
+ }
2681
+
2682
+ /**
2683
+ * @public
2684
+ */
2685
+ export declare interface LightSourceHelper {
2686
+ /**
2687
+ * @returns a Light Source type
2688
+ */
2689
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2690
+ /**
2691
+ * @returns a Light Source type
2692
+ */
2693
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2694
+ }
2695
+
2668
2696
  /**
2669
2697
  * User key event Listeners
2670
2698
  * @public
@@ -4521,6 +4549,85 @@ export declare namespace PBInputModifier_StandardInput {
4521
4549
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4522
4550
  }
4523
4551
 
4552
+ /**
4553
+ * @public
4554
+ */
4555
+ export declare interface PBLightSource {
4556
+ /** default = true, whether the lightSource is active or not. */
4557
+ active?: boolean | undefined;
4558
+ /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4559
+ color?: PBColor3 | undefined;
4560
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4561
+ brightness?: number | undefined;
4562
+ /** default = 10, how far the light travels, expressed in meters. */
4563
+ range?: number | undefined;
4564
+ type?: {
4565
+ $case: "point";
4566
+ point: PBLightSource_Point;
4567
+ } | {
4568
+ $case: "spot";
4569
+ spot: PBLightSource_Spot;
4570
+ } | undefined;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare namespace PBLightSource {
4577
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4578
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4579
+ }
4580
+
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare interface PBLightSource_Point {
4585
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4586
+ shadow?: PBLightSource_ShadowType | undefined;
4587
+ }
4588
+
4589
+ /**
4590
+ * @public
4591
+ */
4592
+ export declare namespace PBLightSource_Point {
4593
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4594
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4595
+ }
4596
+
4597
+ /**
4598
+ * @public
4599
+ */
4600
+ export declare const enum PBLightSource_ShadowType {
4601
+ /** ST_NONE - No shadows are cast from this LightSource. */
4602
+ ST_NONE = 0,
4603
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4604
+ ST_SOFT = 1,
4605
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4606
+ ST_HARD = 2
4607
+ }
4608
+
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare interface PBLightSource_Spot {
4613
+ /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4614
+ innerAngle?: number | undefined;
4615
+ /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4616
+ outerAngle?: number | undefined;
4617
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4618
+ shadow?: PBLightSource_ShadowType | undefined;
4619
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4620
+ shadowMaskTexture?: TextureUnion | undefined;
4621
+ }
4622
+
4623
+ /**
4624
+ * @public
4625
+ */
4626
+ export declare namespace PBLightSource_Spot {
4627
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4628
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4629
+ }
4630
+
4524
4631
  /**
4525
4632
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4526
4633
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5024,6 +5131,48 @@ export declare namespace PBPosition {
5024
5131
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
5025
5132
  }
5026
5133
 
5134
+ /**
5135
+ * The PBPrimaryPointerInfo component provides information about the current state of the primary
5136
+ * pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
5137
+ * movement, and interaction capabilities in both 2D screen space and 3D world space.
5138
+ *
5139
+ * This component is essential for:
5140
+ * - Tracking cursor/pointer position and movement
5141
+ * - Converting 2D screen coordinates to 3D world space interactions
5142
+ * - Supporting multiple input methods (mouse, touch, gamepad, VR)
5143
+ * - Enabling ray-based interactions for 3D object selection
5144
+ *
5145
+ * The component can be used to:
5146
+ * - Implement drag-and-drop functionality
5147
+ * - Handle touch interactions on mobile devices
5148
+ * - Support gamepad navigation
5149
+ * - Enable VR controller interactions
5150
+ * - Convert screen coordinates to world space rays for 3D interactions
5151
+ *
5152
+ * Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
5153
+ */
5154
+ /**
5155
+ * @public
5156
+ */
5157
+ export declare interface PBPrimaryPointerInfo {
5158
+ /** The type of input device being used */
5159
+ pointerType?: PointerType | undefined;
5160
+ /** Current position in screen space (pixels) */
5161
+ screenCoordinates?: PBVector2 | undefined;
5162
+ /** Movement since last frame (pixels) */
5163
+ screenDelta?: PBVector2 | undefined;
5164
+ /** Direction vector for 3D ray casting */
5165
+ worldRayDirection?: PBVector3 | undefined;
5166
+ }
5167
+
5168
+ /**
5169
+ * @public
5170
+ */
5171
+ export declare namespace PBPrimaryPointerInfo {
5172
+ export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
5173
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
5174
+ }
5175
+
5027
5176
  /**
5028
5177
  * @public
5029
5178
  */
@@ -5128,12 +5277,19 @@ export declare namespace PBRaycastResult {
5128
5277
  * @public
5129
5278
  */
5130
5279
  export declare interface PBRealmInfo {
5280
+ /** the domain of the realm server */
5131
5281
  baseUrl: string;
5282
+ /** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
5132
5283
  realmName: string;
5284
+ /** the network id (1=Ethereum, more info https://chainlist.org/) */
5133
5285
  networkId: number;
5286
+ /** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
5134
5287
  commsAdapter: string;
5288
+ /** true if the scene is running as a local preview, instead of published in Decentraland. */
5135
5289
  isPreview: boolean;
5290
+ /** the room session id. */
5136
5291
  room?: string | undefined;
5292
+ /** true if the user is connected to the scene room. */
5137
5293
  isConnectedSceneRoom?: boolean | undefined;
5138
5294
  }
5139
5295
 
@@ -5651,6 +5807,7 @@ export declare namespace PBVideoPlayer {
5651
5807
  * an 'instant' transition (like using speed/time = 0)
5652
5808
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5653
5809
  * the holding entity transform).
5810
+ * * The fov defines the Field of View of the virtual camera
5654
5811
  */
5655
5812
  /**
5656
5813
  * @public
@@ -5658,6 +5815,8 @@ export declare namespace PBVideoPlayer {
5658
5815
  export declare interface PBVirtualCamera {
5659
5816
  defaultTransition?: CameraTransition | undefined;
5660
5817
  lookAtEntity?: number | undefined;
5818
+ /** default: 60 */
5819
+ fov?: number | undefined;
5661
5820
  }
5662
5821
 
5663
5822
  /**
@@ -5929,6 +6088,20 @@ export declare type PointerFilterType = 'none' | 'block';
5929
6088
  /** @public */
5930
6089
  export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
5931
6090
 
6091
+ /**
6092
+ * PointerType enumerates the different input devices that can be used for pointer interactions.
6093
+ * Each type has specific characteristics and use cases in the virtual world.
6094
+ */
6095
+ /**
6096
+ * @public
6097
+ */
6098
+ export declare const enum PointerType {
6099
+ /** POT_NONE - No pointer input */
6100
+ POT_NONE = 0,
6101
+ /** POT_MOUSE - Traditional mouse input */
6102
+ POT_MOUSE = 1
6103
+ }
6104
+
5932
6105
  /**
5933
6106
  * Type used for defining the position of the element. i.e. margin, padding
5934
6107
  * @public
@@ -5966,6 +6139,9 @@ export declare type PositionType = 'absolute' | 'relative';
5966
6139
  */
5967
6140
  export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
5968
6141
 
6142
+ /** @public */
6143
+ export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
6144
+
5969
6145
  export declare enum ProcessMessageResultType {
5970
6146
  /**
5971
6147
  * Typical message and new state set.