@dcl/playground-assets 7.8.7-14862279953.commit-72a7f7e → 7.8.7-14910296669.commit-0575dbe
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 +109 -0
- package/dist/beta.d.ts +109 -0
- package/dist/index.bundled.d.ts +109 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +109 -0
- package/etc/playground-assets.api.json +1525 -371
- package/etc/playground-assets.api.md +80 -0
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.8.7-
|
4
|
+
"version": "7.8.7-14910296669.commit-0575dbe",
|
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": "
|
38
|
+
"commit": "0575dbe72baac2ddc76e6784e3fc52a4d330d60f"
|
39
39
|
}
|
@@ -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>>;
|
@@ -2674,6 +2675,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2674
2675
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2675
2676
|
}
|
2676
2677
|
|
2678
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2679
|
+
|
2680
|
+
/**
|
2681
|
+
* @public
|
2682
|
+
*/
|
2683
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2684
|
+
/**
|
2685
|
+
* LightSource helper with constructor
|
2686
|
+
*/
|
2687
|
+
Type: LightSourceHelper;
|
2688
|
+
}
|
2689
|
+
|
2690
|
+
/**
|
2691
|
+
* @public
|
2692
|
+
*/
|
2693
|
+
export declare interface LightSourceHelper {
|
2694
|
+
/**
|
2695
|
+
* @returns a Light Source type
|
2696
|
+
*/
|
2697
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2698
|
+
/**
|
2699
|
+
* @returns a Light Source type
|
2700
|
+
*/
|
2701
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2702
|
+
}
|
2703
|
+
|
2677
2704
|
/**
|
2678
2705
|
* User key event Listeners
|
2679
2706
|
* @public
|
@@ -4549,6 +4576,85 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4549
4576
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4550
4577
|
}
|
4551
4578
|
|
4579
|
+
/**
|
4580
|
+
* @public
|
4581
|
+
*/
|
4582
|
+
export declare interface PBLightSource {
|
4583
|
+
/** default = true, whether the lightSource is active or not. */
|
4584
|
+
active?: boolean | undefined;
|
4585
|
+
/** 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. */
|
4586
|
+
color?: PBColor3 | undefined;
|
4587
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4588
|
+
brightness?: number | undefined;
|
4589
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4590
|
+
range?: number | undefined;
|
4591
|
+
type?: {
|
4592
|
+
$case: "point";
|
4593
|
+
point: PBLightSource_Point;
|
4594
|
+
} | {
|
4595
|
+
$case: "spot";
|
4596
|
+
spot: PBLightSource_Spot;
|
4597
|
+
} | undefined;
|
4598
|
+
}
|
4599
|
+
|
4600
|
+
/**
|
4601
|
+
* @public
|
4602
|
+
*/
|
4603
|
+
export declare namespace PBLightSource {
|
4604
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4605
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4606
|
+
}
|
4607
|
+
|
4608
|
+
/**
|
4609
|
+
* @public
|
4610
|
+
*/
|
4611
|
+
export declare interface PBLightSource_Point {
|
4612
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4613
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4614
|
+
}
|
4615
|
+
|
4616
|
+
/**
|
4617
|
+
* @public
|
4618
|
+
*/
|
4619
|
+
export declare namespace PBLightSource_Point {
|
4620
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4621
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4622
|
+
}
|
4623
|
+
|
4624
|
+
/**
|
4625
|
+
* @public
|
4626
|
+
*/
|
4627
|
+
export declare const enum PBLightSource_ShadowType {
|
4628
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4629
|
+
ST_NONE = 0,
|
4630
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4631
|
+
ST_SOFT = 1,
|
4632
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4633
|
+
ST_HARD = 2
|
4634
|
+
}
|
4635
|
+
|
4636
|
+
/**
|
4637
|
+
* @public
|
4638
|
+
*/
|
4639
|
+
export declare interface PBLightSource_Spot {
|
4640
|
+
/** 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. */
|
4641
|
+
innerAngle?: number | undefined;
|
4642
|
+
/** 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. */
|
4643
|
+
outerAngle?: number | undefined;
|
4644
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4645
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4646
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4647
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4648
|
+
}
|
4649
|
+
|
4650
|
+
/**
|
4651
|
+
* @public
|
4652
|
+
*/
|
4653
|
+
export declare namespace PBLightSource_Spot {
|
4654
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4655
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4656
|
+
}
|
4657
|
+
|
4552
4658
|
/**
|
4553
4659
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
4554
4660
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5679,6 +5785,7 @@ export declare namespace PBVideoPlayer {
|
|
5679
5785
|
* an 'instant' transition (like using speed/time = 0)
|
5680
5786
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5681
5787
|
* the holding entity transform).
|
5788
|
+
* * The fov defines the Field of View of the virtual camera
|
5682
5789
|
*/
|
5683
5790
|
/**
|
5684
5791
|
* @public
|
@@ -5686,6 +5793,8 @@ export declare namespace PBVideoPlayer {
|
|
5686
5793
|
export declare interface PBVirtualCamera {
|
5687
5794
|
defaultTransition?: CameraTransition | undefined;
|
5688
5795
|
lookAtEntity?: number | undefined;
|
5796
|
+
/** default: 60 */
|
5797
|
+
fov?: number | undefined;
|
5689
5798
|
}
|
5690
5799
|
|
5691
5800
|
/**
|