@dcl/playground-assets 7.31.1-41508430758.commit-0af8af0 → 7.32.1-41669733463.commit-b1b1d79
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 +213 -0
- package/dist/beta.d.ts +213 -0
- package/dist/index.bundled.d.ts +213 -0
- package/dist/index.js +6 -6
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +213 -0
- package/etc/playground-assets.api.json +2856 -680
- package/etc/playground-assets.api.md +132 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.31.1-
|
|
4
|
+
"version": "7.31.1-41669733463.commit-b1b1d79",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "./index.d.ts",
|
|
35
35
|
"typings": "./index.d.ts",
|
|
36
|
-
"commit": "
|
|
36
|
+
"commit": "b1b1d7963076769f826f5f64ed249dd0a4bdf54a"
|
|
37
37
|
}
|
|
@@ -1439,6 +1439,44 @@ export declare type Color4Type = {
|
|
|
1439
1439
|
a: number;
|
|
1440
1440
|
};
|
|
1441
1441
|
|
|
1442
|
+
/**
|
|
1443
|
+
* Piecewise-linear, with keys interpolated in ascending order of `time`. Positions before the first key
|
|
1444
|
+
* or after the last key take that key's color. No keys means the gradient is unset.
|
|
1445
|
+
* If two keys have the same `time`, then the gradient keeps the key that comes later in `keys`.
|
|
1446
|
+
*/
|
|
1447
|
+
/**
|
|
1448
|
+
* @public
|
|
1449
|
+
*/
|
|
1450
|
+
export declare interface ColorGradient {
|
|
1451
|
+
keys: ColorKey[];
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* @public
|
|
1456
|
+
*/
|
|
1457
|
+
export declare namespace ColorGradient {
|
|
1458
|
+
export function encode(message: ColorGradient, writer?: _m0.Writer): _m0.Writer;
|
|
1459
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorGradient;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* @public
|
|
1464
|
+
*/
|
|
1465
|
+
export declare interface ColorKey {
|
|
1466
|
+
/** position along the gradient, from 0 to 1. Values outside that range clamp to it */
|
|
1467
|
+
time: number;
|
|
1468
|
+
/** linear color. Values above 1 are allowed (HDR) */
|
|
1469
|
+
color: PBColor4 | undefined;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* @public
|
|
1474
|
+
*/
|
|
1475
|
+
export declare namespace ColorKey {
|
|
1476
|
+
export function encode(message: ColorKey, writer?: _m0.Writer): _m0.Writer;
|
|
1477
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorKey;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1442
1480
|
/** A range of Color4 values. Randomized or lerped between start and end. */
|
|
1443
1481
|
/**
|
|
1444
1482
|
* @public
|
|
@@ -1505,6 +1543,7 @@ export declare const componentDefinitionByName: {
|
|
|
1505
1543
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
1506
1544
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
1507
1545
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
1546
|
+
"core::EnvironmentFog": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>>;
|
|
1508
1547
|
"core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
|
|
1509
1548
|
"core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
1510
1549
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
@@ -1528,7 +1567,9 @@ export declare const componentDefinitionByName: {
|
|
|
1528
1567
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
1529
1568
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
1530
1569
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1570
|
+
"core::Skybox": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkybox>>;
|
|
1531
1571
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1572
|
+
"core::Sun": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSun>>;
|
|
1532
1573
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1533
1574
|
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
1534
1575
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
@@ -2222,6 +2263,9 @@ export declare namespace EntityUtils {
|
|
|
2222
2263
|
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
2223
2264
|
}
|
|
2224
2265
|
|
|
2266
|
+
/** @public */
|
|
2267
|
+
export declare const EnvironmentFog: LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>;
|
|
2268
|
+
|
|
2225
2269
|
/**
|
|
2226
2270
|
* Constant used to define the minimal number value in Babylon.js
|
|
2227
2271
|
* @public
|
|
@@ -5371,6 +5415,34 @@ export declare namespace PBEngineInfo {
|
|
|
5371
5415
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
|
5372
5416
|
}
|
|
5373
5417
|
|
|
5418
|
+
/**
|
|
5419
|
+
* PBEnvironmentFog overrides the environment fog while the player is inside the scene.
|
|
5420
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
5421
|
+
*
|
|
5422
|
+
* An unset field keeps the time-of-day default.
|
|
5423
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
5424
|
+
* Gradients do not wrap around midnight.
|
|
5425
|
+
* A scene cannot turn fog on or off. That is a user quality setting.
|
|
5426
|
+
*
|
|
5427
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
5428
|
+
*/
|
|
5429
|
+
/**
|
|
5430
|
+
* @public
|
|
5431
|
+
*/
|
|
5432
|
+
export declare interface PBEnvironmentFog {
|
|
5433
|
+
color?: ColorGradient | undefined;
|
|
5434
|
+
/** default = 0.0005, per meter: fog = 1 - e^(-density * distance). Negative values clamp to 0 */
|
|
5435
|
+
density?: number | undefined;
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
/**
|
|
5439
|
+
* @public
|
|
5440
|
+
*/
|
|
5441
|
+
export declare namespace PBEnvironmentFog {
|
|
5442
|
+
export function encode(message: PBEnvironmentFog, writer?: _m0.Writer): _m0.Writer;
|
|
5443
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEnvironmentFog;
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5374
5446
|
/**
|
|
5375
5447
|
* Grow-only value set appended to the scene root entity.
|
|
5376
5448
|
* Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
|
|
@@ -6728,6 +6800,105 @@ export declare namespace PBRealmInfo {
|
|
|
6728
6800
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
|
6729
6801
|
}
|
|
6730
6802
|
|
|
6803
|
+
/**
|
|
6804
|
+
* PBSkybox overrides the visible sky while the player is inside the scene.
|
|
6805
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
6806
|
+
*
|
|
6807
|
+
* An unset field keeps the time-of-day default.
|
|
6808
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
6809
|
+
* Gradients do not wrap around midnight.
|
|
6810
|
+
* The sun is controlled by `PBSun` and the fog by `PBEnvironmentFog`.
|
|
6811
|
+
*
|
|
6812
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
6813
|
+
*/
|
|
6814
|
+
/**
|
|
6815
|
+
* @public
|
|
6816
|
+
*/
|
|
6817
|
+
export declare interface PBSkybox {
|
|
6818
|
+
/**
|
|
6819
|
+
* Replaces the visible sky with an image, given as its source path with the same rules as `Texture.src`.
|
|
6820
|
+
* It must be an equirectangular (latitude-longitude) image with a 2:1 aspect ratio:
|
|
6821
|
+
* the image centre faces +Z, the top row is the zenith and the bottom row the nadir.
|
|
6822
|
+
* Cube cross, 3x2 and six-face layouts are not supported.
|
|
6823
|
+
* The sun, the fog and the ambient lighting do not change: the ambient still follows `sky_colors`.
|
|
6824
|
+
*/
|
|
6825
|
+
skyboxTexture?: string | undefined;
|
|
6826
|
+
/**
|
|
6827
|
+
* Procedural sky colors. They also drive the ambient lighting, also while `skybox_texture` is set.
|
|
6828
|
+
* While `skybox_texture` is set they no longer color the visible sky.
|
|
6829
|
+
*/
|
|
6830
|
+
skyColors?: PBSkybox_SkyColors | undefined;
|
|
6831
|
+
/** Ignored while `skybox_texture` is set. */
|
|
6832
|
+
clouds?: PBSkybox_Clouds | undefined;
|
|
6833
|
+
/** Ignored while `skybox_texture` is set. */
|
|
6834
|
+
stars?: PBSkybox_Stars | undefined;
|
|
6835
|
+
}
|
|
6836
|
+
|
|
6837
|
+
/**
|
|
6838
|
+
* @public
|
|
6839
|
+
*/
|
|
6840
|
+
export declare namespace PBSkybox {
|
|
6841
|
+
export function encode(message: PBSkybox, writer?: _m0.Writer): _m0.Writer;
|
|
6842
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox;
|
|
6843
|
+
}
|
|
6844
|
+
|
|
6845
|
+
/**
|
|
6846
|
+
* @public
|
|
6847
|
+
*/
|
|
6848
|
+
export declare interface PBSkybox_Clouds {
|
|
6849
|
+
/** default = 1, from 0 to 1 */
|
|
6850
|
+
opacity?: number | undefined;
|
|
6851
|
+
/** default = 0.01, in radians per second around the sky axis (0.01 is one turn every ~10 minutes). 0 = static, negative reverses the direction */
|
|
6852
|
+
speed?: number | undefined;
|
|
6853
|
+
color?: ColorGradient | undefined;
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6856
|
+
/**
|
|
6857
|
+
* @public
|
|
6858
|
+
*/
|
|
6859
|
+
export declare namespace PBSkybox_Clouds {
|
|
6860
|
+
export function encode(message: PBSkybox_Clouds, writer?: _m0.Writer): _m0.Writer;
|
|
6861
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Clouds;
|
|
6862
|
+
}
|
|
6863
|
+
|
|
6864
|
+
/**
|
|
6865
|
+
* @public
|
|
6866
|
+
*/
|
|
6867
|
+
export declare interface PBSkybox_SkyColors {
|
|
6868
|
+
/** the sky straight up */
|
|
6869
|
+
zenith?: ColorGradient | undefined;
|
|
6870
|
+
/** the broad band of sky around the horizon */
|
|
6871
|
+
horizon?: ColorGradient | undefined;
|
|
6872
|
+
/** The sky below the horizon, visible wherever no terrain covers it (landscape disabled, high altitude). */
|
|
6873
|
+
nadir?: ColorGradient | undefined;
|
|
6874
|
+
/** Narrow glow right on the horizon line, like a sunset glow. Unset = follows `horizon` when that is set. */
|
|
6875
|
+
rim?: ColorGradient | undefined;
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
/**
|
|
6879
|
+
* @public
|
|
6880
|
+
*/
|
|
6881
|
+
export declare namespace PBSkybox_SkyColors {
|
|
6882
|
+
export function encode(message: PBSkybox_SkyColors, writer?: _m0.Writer): _m0.Writer;
|
|
6883
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_SkyColors;
|
|
6884
|
+
}
|
|
6885
|
+
|
|
6886
|
+
/**
|
|
6887
|
+
* @public
|
|
6888
|
+
*/
|
|
6889
|
+
export declare interface PBSkybox_Stars {
|
|
6890
|
+
/** default = 4.62, multiplier on the star texture (1 = as authored, values above 1 are HDR). 0 hides the stars, negative values clamp to 0. Stars are visible only at night */
|
|
6891
|
+
brightness?: number | undefined;
|
|
6892
|
+
}
|
|
6893
|
+
|
|
6894
|
+
/**
|
|
6895
|
+
* @public
|
|
6896
|
+
*/
|
|
6897
|
+
export declare namespace PBSkybox_Stars {
|
|
6898
|
+
export function encode(message: PBSkybox_Stars, writer?: _m0.Writer): _m0.Writer;
|
|
6899
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Stars;
|
|
6900
|
+
}
|
|
6901
|
+
|
|
6731
6902
|
/**
|
|
6732
6903
|
* The SkyboxTime component allows controlling the time of day for the skybox,
|
|
6733
6904
|
* affecting the lighting and appearance of the sky in the scene.
|
|
@@ -6750,6 +6921,42 @@ export declare namespace PBSkyboxTime {
|
|
|
6750
6921
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
|
6751
6922
|
}
|
|
6752
6923
|
|
|
6924
|
+
/**
|
|
6925
|
+
* PBSun overrides the directional light (sun and moon) while the player is inside the scene.
|
|
6926
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
6927
|
+
*
|
|
6928
|
+
* An unset field keeps the time-of-day default.
|
|
6929
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
6930
|
+
* Gradients do not wrap around midnight.
|
|
6931
|
+
*
|
|
6932
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
6933
|
+
*/
|
|
6934
|
+
/**
|
|
6935
|
+
* @public
|
|
6936
|
+
*/
|
|
6937
|
+
export declare interface PBSun {
|
|
6938
|
+
/** tints the directional light and the sun disc */
|
|
6939
|
+
color?: ColorGradient | undefined;
|
|
6940
|
+
/** default = true. false hides the sun and moon discs and the lens flare, but not their light */
|
|
6941
|
+
visible?: boolean | undefined;
|
|
6942
|
+
/** default = 1, multiplier on the renderer's time-of-day light intensity. Negative values clamp to 0 */
|
|
6943
|
+
intensity?: number | undefined;
|
|
6944
|
+
/**
|
|
6945
|
+
* Direction the sunlight travels, in scene space: (0,-1,0) = sun straight overhead. Normalized by the renderer.
|
|
6946
|
+
* Set = the sun stays fixed at every time of day; its color and intensity still follow the time of day.
|
|
6947
|
+
* Unset or zero = the time-of-day path.
|
|
6948
|
+
*/
|
|
6949
|
+
direction?: PBVector3 | undefined;
|
|
6950
|
+
}
|
|
6951
|
+
|
|
6952
|
+
/**
|
|
6953
|
+
* @public
|
|
6954
|
+
*/
|
|
6955
|
+
export declare namespace PBSun {
|
|
6956
|
+
export function encode(message: PBSun, writer?: _m0.Writer): _m0.Writer;
|
|
6957
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSun;
|
|
6958
|
+
}
|
|
6959
|
+
|
|
6753
6960
|
/**
|
|
6754
6961
|
* The TextShape component renders customizable floating text.
|
|
6755
6962
|
*
|
|
@@ -9182,6 +9389,9 @@ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModePar
|
|
|
9182
9389
|
easingFunction?: EasingFunction;
|
|
9183
9390
|
}
|
|
9184
9391
|
|
|
9392
|
+
/** @public */
|
|
9393
|
+
export declare const Skybox: LastWriteWinElementSetComponentDefinition<PBSkybox>;
|
|
9394
|
+
|
|
9185
9395
|
/** @public */
|
|
9186
9396
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
9187
9397
|
|
|
@@ -9192,6 +9402,9 @@ export declare interface Spec {
|
|
|
9192
9402
|
[key: string]: ISchema;
|
|
9193
9403
|
}
|
|
9194
9404
|
|
|
9405
|
+
/** @public */
|
|
9406
|
+
export declare const Sun: LastWriteWinElementSetComponentDefinition<PBSun>;
|
|
9407
|
+
|
|
9195
9408
|
/**
|
|
9196
9409
|
* @alpha
|
|
9197
9410
|
* This is going to be used for sync components through a server.
|