@dcl/playground-assets 7.8.21 → 7.8.22-16119591948.commit-9ef869d
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 +146 -0
- package/dist/beta.d.ts +146 -0
- package/dist/index.bundled.d.ts +146 -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 +146 -0
- package/etc/playground-assets.api.json +2556 -1051
- package/etc/playground-assets.api.md +104 -0
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.8.
|
4
|
+
"version": "7.8.22-16119591948.commit-9ef869d",
|
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": "9ef869df14b805f6567304eef915422dcfc41d40"
|
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>>;
|
@@ -1322,6 +1323,7 @@ export declare const componentDefinitionByName: {
|
|
1322
1323
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1323
1324
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1324
1325
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
1326
|
+
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
1325
1327
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
1326
1328
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
1327
1329
|
"core::TweenSequence": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTweenSequence>>;
|
@@ -2675,6 +2677,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2675
2677
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2676
2678
|
}
|
2677
2679
|
|
2680
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2681
|
+
|
2682
|
+
/**
|
2683
|
+
* @public
|
2684
|
+
*/
|
2685
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2686
|
+
/**
|
2687
|
+
* LightSource helper with constructor
|
2688
|
+
*/
|
2689
|
+
Type: LightSourceHelper;
|
2690
|
+
}
|
2691
|
+
|
2692
|
+
/**
|
2693
|
+
* @public
|
2694
|
+
*/
|
2695
|
+
export declare interface LightSourceHelper {
|
2696
|
+
/**
|
2697
|
+
* @returns a Light Source type
|
2698
|
+
*/
|
2699
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2700
|
+
/**
|
2701
|
+
* @returns a Light Source type
|
2702
|
+
*/
|
2703
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2704
|
+
}
|
2705
|
+
|
2678
2706
|
/**
|
2679
2707
|
* User key event Listeners
|
2680
2708
|
* @public
|
@@ -4550,6 +4578,85 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4550
4578
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4551
4579
|
}
|
4552
4580
|
|
4581
|
+
/**
|
4582
|
+
* @public
|
4583
|
+
*/
|
4584
|
+
export declare interface PBLightSource {
|
4585
|
+
/** default = true, whether the lightSource is active or not. */
|
4586
|
+
active?: boolean | undefined;
|
4587
|
+
/** 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. */
|
4588
|
+
color?: PBColor3 | undefined;
|
4589
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4590
|
+
brightness?: number | undefined;
|
4591
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4592
|
+
range?: number | undefined;
|
4593
|
+
type?: {
|
4594
|
+
$case: "point";
|
4595
|
+
point: PBLightSource_Point;
|
4596
|
+
} | {
|
4597
|
+
$case: "spot";
|
4598
|
+
spot: PBLightSource_Spot;
|
4599
|
+
} | undefined;
|
4600
|
+
}
|
4601
|
+
|
4602
|
+
/**
|
4603
|
+
* @public
|
4604
|
+
*/
|
4605
|
+
export declare namespace PBLightSource {
|
4606
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4607
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4608
|
+
}
|
4609
|
+
|
4610
|
+
/**
|
4611
|
+
* @public
|
4612
|
+
*/
|
4613
|
+
export declare interface PBLightSource_Point {
|
4614
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4615
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4616
|
+
}
|
4617
|
+
|
4618
|
+
/**
|
4619
|
+
* @public
|
4620
|
+
*/
|
4621
|
+
export declare namespace PBLightSource_Point {
|
4622
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4623
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4624
|
+
}
|
4625
|
+
|
4626
|
+
/**
|
4627
|
+
* @public
|
4628
|
+
*/
|
4629
|
+
export declare const enum PBLightSource_ShadowType {
|
4630
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4631
|
+
ST_NONE = 0,
|
4632
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4633
|
+
ST_SOFT = 1,
|
4634
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4635
|
+
ST_HARD = 2
|
4636
|
+
}
|
4637
|
+
|
4638
|
+
/**
|
4639
|
+
* @public
|
4640
|
+
*/
|
4641
|
+
export declare interface PBLightSource_Spot {
|
4642
|
+
/** 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. */
|
4643
|
+
innerAngle?: number | undefined;
|
4644
|
+
/** 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. */
|
4645
|
+
outerAngle?: number | undefined;
|
4646
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4647
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4648
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4649
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4650
|
+
}
|
4651
|
+
|
4652
|
+
/**
|
4653
|
+
* @public
|
4654
|
+
*/
|
4655
|
+
export declare namespace PBLightSource_Spot {
|
4656
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4657
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4658
|
+
}
|
4659
|
+
|
4553
4660
|
/**
|
4554
4661
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
4555
4662
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5223,6 +5330,28 @@ export declare namespace PBRealmInfo {
|
|
5223
5330
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
5224
5331
|
}
|
5225
5332
|
|
5333
|
+
/**
|
5334
|
+
* The SkyboxTime component allows controlling the time of day for the skybox,
|
5335
|
+
* affecting the lighting and appearance of the sky in the scene.
|
5336
|
+
*/
|
5337
|
+
/**
|
5338
|
+
* @public
|
5339
|
+
*/
|
5340
|
+
export declare interface PBSkyboxTime {
|
5341
|
+
/** fixed time of day, represented as a number of seconds since the start of the day, where 0 is 00:00hs, 43200 is 12:00hs and 86400 is 24:00hs */
|
5342
|
+
fixedTime: number;
|
5343
|
+
/** default = TransitionMode.TM_FORWARD, controls the direction of time transitions */
|
5344
|
+
transitionMode?: TransitionMode | undefined;
|
5345
|
+
}
|
5346
|
+
|
5347
|
+
/**
|
5348
|
+
* @public
|
5349
|
+
*/
|
5350
|
+
export declare namespace PBSkyboxTime {
|
5351
|
+
export function encode(message: PBSkyboxTime, writer?: _m0.Writer): _m0.Writer;
|
5352
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
5353
|
+
}
|
5354
|
+
|
5226
5355
|
/**
|
5227
5356
|
* The TextShape component renders customizable floating text.
|
5228
5357
|
*
|
@@ -5733,6 +5862,7 @@ export declare namespace PBVideoPlayer {
|
|
5733
5862
|
* an 'instant' transition (like using speed/time = 0)
|
5734
5863
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5735
5864
|
* the holding entity transform).
|
5865
|
+
* * The fov defines the Field of View of the virtual camera
|
5736
5866
|
*/
|
5737
5867
|
/**
|
5738
5868
|
* @public
|
@@ -5740,6 +5870,8 @@ export declare namespace PBVideoPlayer {
|
|
5740
5870
|
export declare interface PBVirtualCamera {
|
5741
5871
|
defaultTransition?: CameraTransition | undefined;
|
5742
5872
|
lookAtEntity?: number | undefined;
|
5873
|
+
/** default: 60 */
|
5874
|
+
fov?: number | undefined;
|
5743
5875
|
}
|
5744
5876
|
|
5745
5877
|
/**
|
@@ -7081,6 +7213,9 @@ export declare namespace Schemas {
|
|
7081
7213
|
}) => void;
|
7082
7214
|
}
|
7083
7215
|
|
7216
|
+
/** @public */
|
7217
|
+
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
7218
|
+
|
7084
7219
|
/**
|
7085
7220
|
* @public
|
7086
7221
|
*/
|
@@ -7347,6 +7482,17 @@ export declare type TransformType = {
|
|
7347
7482
|
*/
|
7348
7483
|
export declare type TransformTypeWithOptionals = Partial<TransformType>;
|
7349
7484
|
|
7485
|
+
/** Controls the direction for animated skybox transitions */
|
7486
|
+
/**
|
7487
|
+
* @public
|
7488
|
+
*/
|
7489
|
+
export declare const enum TransitionMode {
|
7490
|
+
/** TM_FORWARD - transitions forward (default) */
|
7491
|
+
TM_FORWARD = 0,
|
7492
|
+
/** TM_BACKWARD - transitions backward */
|
7493
|
+
TM_BACKWARD = 1
|
7494
|
+
}
|
7495
|
+
|
7350
7496
|
/**
|
7351
7497
|
* @public
|
7352
7498
|
*/
|