@dcl/playground-assets 7.8.22-16440664916.commit-1438afe → 7.8.22-16446000492.commit-c18a4fd
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 +5 -5
- 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 +1643 -489
- 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.22-
|
4
|
+
"version": "7.8.22-16446000492.commit-c18a4fd",
|
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": "c18a4fd7d4d342026012cc0de239b9cdc8c26060"
|
39
39
|
}
|
@@ -1310,6 +1310,7 @@ export declare const componentDefinitionByName: {
|
|
1310
1310
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1311
1311
|
"core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
|
1312
1312
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1313
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
1313
1314
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1314
1315
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1315
1316
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -2680,6 +2681,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2680
2681
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2681
2682
|
}
|
2682
2683
|
|
2684
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2685
|
+
|
2686
|
+
/**
|
2687
|
+
* @public
|
2688
|
+
*/
|
2689
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2690
|
+
/**
|
2691
|
+
* LightSource helper with constructor
|
2692
|
+
*/
|
2693
|
+
Type: LightSourceHelper;
|
2694
|
+
}
|
2695
|
+
|
2696
|
+
/**
|
2697
|
+
* @public
|
2698
|
+
*/
|
2699
|
+
export declare interface LightSourceHelper {
|
2700
|
+
/**
|
2701
|
+
* @returns a Light Source type
|
2702
|
+
*/
|
2703
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2704
|
+
/**
|
2705
|
+
* @returns a Light Source type
|
2706
|
+
*/
|
2707
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2708
|
+
}
|
2709
|
+
|
2683
2710
|
/**
|
2684
2711
|
* User key event Listeners
|
2685
2712
|
* @public
|
@@ -4600,6 +4627,85 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4600
4627
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4601
4628
|
}
|
4602
4629
|
|
4630
|
+
/**
|
4631
|
+
* @public
|
4632
|
+
*/
|
4633
|
+
export declare interface PBLightSource {
|
4634
|
+
/** default = true, whether the lightSource is active or not. */
|
4635
|
+
active?: boolean | undefined;
|
4636
|
+
/** 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. */
|
4637
|
+
color?: PBColor3 | undefined;
|
4638
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4639
|
+
brightness?: number | undefined;
|
4640
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4641
|
+
range?: number | undefined;
|
4642
|
+
type?: {
|
4643
|
+
$case: "point";
|
4644
|
+
point: PBLightSource_Point;
|
4645
|
+
} | {
|
4646
|
+
$case: "spot";
|
4647
|
+
spot: PBLightSource_Spot;
|
4648
|
+
} | undefined;
|
4649
|
+
}
|
4650
|
+
|
4651
|
+
/**
|
4652
|
+
* @public
|
4653
|
+
*/
|
4654
|
+
export declare namespace PBLightSource {
|
4655
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4656
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4657
|
+
}
|
4658
|
+
|
4659
|
+
/**
|
4660
|
+
* @public
|
4661
|
+
*/
|
4662
|
+
export declare interface PBLightSource_Point {
|
4663
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4664
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4665
|
+
}
|
4666
|
+
|
4667
|
+
/**
|
4668
|
+
* @public
|
4669
|
+
*/
|
4670
|
+
export declare namespace PBLightSource_Point {
|
4671
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4672
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4673
|
+
}
|
4674
|
+
|
4675
|
+
/**
|
4676
|
+
* @public
|
4677
|
+
*/
|
4678
|
+
export declare const enum PBLightSource_ShadowType {
|
4679
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4680
|
+
ST_NONE = 0,
|
4681
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4682
|
+
ST_SOFT = 1,
|
4683
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4684
|
+
ST_HARD = 2
|
4685
|
+
}
|
4686
|
+
|
4687
|
+
/**
|
4688
|
+
* @public
|
4689
|
+
*/
|
4690
|
+
export declare interface PBLightSource_Spot {
|
4691
|
+
/** 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. */
|
4692
|
+
innerAngle?: number | undefined;
|
4693
|
+
/** 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. */
|
4694
|
+
outerAngle?: number | undefined;
|
4695
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4696
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4697
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4698
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4699
|
+
}
|
4700
|
+
|
4701
|
+
/**
|
4702
|
+
* @public
|
4703
|
+
*/
|
4704
|
+
export declare namespace PBLightSource_Spot {
|
4705
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4706
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4707
|
+
}
|
4708
|
+
|
4603
4709
|
/**
|
4604
4710
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
4605
4711
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5805,6 +5911,7 @@ export declare namespace PBVideoPlayer {
|
|
5805
5911
|
* an 'instant' transition (like using speed/time = 0)
|
5806
5912
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5807
5913
|
* the holding entity transform).
|
5914
|
+
* * The fov defines the Field of View of the virtual camera
|
5808
5915
|
*/
|
5809
5916
|
/**
|
5810
5917
|
* @public
|
@@ -5812,6 +5919,8 @@ export declare namespace PBVideoPlayer {
|
|
5812
5919
|
export declare interface PBVirtualCamera {
|
5813
5920
|
defaultTransition?: CameraTransition | undefined;
|
5814
5921
|
lookAtEntity?: number | undefined;
|
5922
|
+
/** default: 60 */
|
5923
|
+
fov?: number | undefined;
|
5815
5924
|
}
|
5816
5925
|
|
5817
5926
|
/**
|