@dcl/playground-assets 7.31.1-41498712919.commit-5e4cada → 7.32.0
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 +222 -111
- package/dist/beta.d.ts +222 -111
- package/dist/index.bundled.d.ts +222 -111
- package/dist/index.js +7 -7
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +222 -111
- package/etc/playground-assets.api.json +3244 -2037
- package/etc/playground-assets.api.md +136 -80
- package/package.json +5 -6
package/dist/beta.d.ts
CHANGED
|
@@ -245,42 +245,6 @@ export declare interface AudioStreamComponentDefinitionExtended extends LastWrit
|
|
|
245
245
|
getAudioState(entity: Entity): PBAudioEvent | undefined;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
/**
|
|
249
|
-
* @public
|
|
250
|
-
*/
|
|
251
|
-
export declare type AuthoritativePutComponentMessage = CrdtMessageHeader & AuthoritativePutComponentMessageBody;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Server authoritative message - identical to PutComponentMessageBody but with forced processing
|
|
255
|
-
* Min. length = header (8 bytes) + 16 bytes = 24 bytes
|
|
256
|
-
*
|
|
257
|
-
* @param entity - Uint32 number of the entity
|
|
258
|
-
* @param componentId - Uint32 number of id
|
|
259
|
-
* @param timestamp - Uint32 Lamport timestamp (server's authoritative timestamp)
|
|
260
|
-
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
export declare type AuthoritativePutComponentMessageBody = {
|
|
264
|
-
type: CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT;
|
|
265
|
-
entityId: Entity;
|
|
266
|
-
componentId: number;
|
|
267
|
-
timestamp: number;
|
|
268
|
-
data: Uint8Array;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @public
|
|
273
|
-
*/
|
|
274
|
-
export declare namespace AuthoritativePutComponentOperation {
|
|
275
|
-
const MESSAGE_HEADER_LENGTH = 16;
|
|
276
|
-
/**
|
|
277
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
278
|
-
* already allocated
|
|
279
|
-
*/
|
|
280
|
-
export function write(entity: Entity, timestamp: number, componentId: number, data: Uint8Array, buf: ByteBuffer): void;
|
|
281
|
-
export function read(buf: ByteBuffer): AuthoritativePutComponentMessage | null;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
248
|
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
285
249
|
/**
|
|
286
250
|
* @public
|
|
@@ -456,22 +420,6 @@ export declare interface BaseComponent<T> {
|
|
|
456
420
|
* If the value is undefined, the component was deleted.
|
|
457
421
|
*/
|
|
458
422
|
onChange(entity: Entity, cb: (value: T | undefined) => void): void;
|
|
459
|
-
/**
|
|
460
|
-
* @public
|
|
461
|
-
*
|
|
462
|
-
*/
|
|
463
|
-
validateBeforeChange(entity: Entity, cb: ValidateCallback<T>): void;
|
|
464
|
-
validateBeforeChange(cb: ValidateCallback<T>): void;
|
|
465
|
-
/**
|
|
466
|
-
* Get the CRDT state for an entity (serialized data and timestamp)
|
|
467
|
-
* @param entity - Entity to get the CRDT state for
|
|
468
|
-
* @returns Object with serialized data and timestamp, or null if entity doesn't have the component
|
|
469
|
-
* @public
|
|
470
|
-
*/
|
|
471
|
-
getCrdtState(entity: Entity): {
|
|
472
|
-
data: Uint8Array;
|
|
473
|
-
timestamp: number;
|
|
474
|
-
} | null;
|
|
475
423
|
}
|
|
476
424
|
|
|
477
425
|
/** @public */
|
|
@@ -1439,6 +1387,44 @@ export declare type Color4Type = {
|
|
|
1439
1387
|
a: number;
|
|
1440
1388
|
};
|
|
1441
1389
|
|
|
1390
|
+
/**
|
|
1391
|
+
* Piecewise-linear, with keys interpolated in ascending order of `time`. Positions before the first key
|
|
1392
|
+
* or after the last key take that key's color. No keys means the gradient is unset.
|
|
1393
|
+
* If two keys have the same `time`, then the gradient keeps the key that comes later in `keys`.
|
|
1394
|
+
*/
|
|
1395
|
+
/**
|
|
1396
|
+
* @public
|
|
1397
|
+
*/
|
|
1398
|
+
export declare interface ColorGradient {
|
|
1399
|
+
keys: ColorKey[];
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* @public
|
|
1404
|
+
*/
|
|
1405
|
+
export declare namespace ColorGradient {
|
|
1406
|
+
export function encode(message: ColorGradient, writer?: _m0.Writer): _m0.Writer;
|
|
1407
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorGradient;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* @public
|
|
1412
|
+
*/
|
|
1413
|
+
export declare interface ColorKey {
|
|
1414
|
+
/** position along the gradient, from 0 to 1. Values outside that range clamp to it */
|
|
1415
|
+
time: number;
|
|
1416
|
+
/** linear color. Values above 1 are allowed (HDR) */
|
|
1417
|
+
color: PBColor4 | undefined;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* @public
|
|
1422
|
+
*/
|
|
1423
|
+
export declare namespace ColorKey {
|
|
1424
|
+
export function encode(message: ColorKey, writer?: _m0.Writer): _m0.Writer;
|
|
1425
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorKey;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1442
1428
|
/** A range of Color4 values. Randomized or lerped between start and end. */
|
|
1443
1429
|
/**
|
|
1444
1430
|
* @public
|
|
@@ -1505,6 +1491,7 @@ export declare const componentDefinitionByName: {
|
|
|
1505
1491
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
1506
1492
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
1507
1493
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
1494
|
+
"core::EnvironmentFog": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>>;
|
|
1508
1495
|
"core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
|
|
1509
1496
|
"core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
1510
1497
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
@@ -1528,7 +1515,9 @@ export declare const componentDefinitionByName: {
|
|
|
1528
1515
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
|
1529
1516
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
1530
1517
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1518
|
+
"core::Skybox": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkybox>>;
|
|
1531
1519
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1520
|
+
"core::Sun": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSun>>;
|
|
1532
1521
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1533
1522
|
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
1534
1523
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
@@ -1715,12 +1704,12 @@ export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
|
1715
1704
|
/**
|
|
1716
1705
|
* @public
|
|
1717
1706
|
*/
|
|
1718
|
-
export declare type CrdtMessage = PutComponentMessage |
|
|
1707
|
+
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | AppendValueMessage | DeleteEntityMessage | PutNetworkComponentMessage | DeleteComponentNetworkMessage | DeleteEntityNetworkMessage;
|
|
1719
1708
|
|
|
1720
1709
|
/**
|
|
1721
1710
|
* @public
|
|
1722
1711
|
*/
|
|
1723
|
-
export declare type CrdtMessageBody = PutComponentMessageBody |
|
|
1712
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody | AppendValueMessageBody | CrdtNetworkMessageBody;
|
|
1724
1713
|
|
|
1725
1714
|
/**
|
|
1726
1715
|
* Min length = 8 bytes
|
|
@@ -1775,8 +1764,7 @@ export declare enum CrdtMessageType {
|
|
|
1775
1764
|
PUT_COMPONENT_NETWORK = 5,
|
|
1776
1765
|
DELETE_COMPONENT_NETWORK = 6,
|
|
1777
1766
|
DELETE_ENTITY_NETWORK = 7,
|
|
1778
|
-
|
|
1779
|
-
MAX_MESSAGE_TYPE = 9
|
|
1767
|
+
MAX_MESSAGE_TYPE = 8
|
|
1780
1768
|
}
|
|
1781
1769
|
|
|
1782
1770
|
/**
|
|
@@ -1784,8 +1772,6 @@ export declare enum CrdtMessageType {
|
|
|
1784
1772
|
*/
|
|
1785
1773
|
export declare type CrdtNetworkMessageBody = PutNetworkComponentMessageBody | DeleteComponentNetworkMessageBody | DeleteEntityNetworkMessageBody;
|
|
1786
1774
|
|
|
1787
|
-
export declare const CreatedBy: ICreatedBy;
|
|
1788
|
-
|
|
1789
1775
|
/**
|
|
1790
1776
|
* @public
|
|
1791
1777
|
*/
|
|
@@ -2222,6 +2208,9 @@ export declare namespace EntityUtils {
|
|
|
2222
2208
|
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
2223
2209
|
}
|
|
2224
2210
|
|
|
2211
|
+
/** @public */
|
|
2212
|
+
export declare const EnvironmentFog: LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>;
|
|
2213
|
+
|
|
2225
2214
|
/**
|
|
2226
2215
|
* Constant used to define the minimal number value in Babylon.js
|
|
2227
2216
|
* @public
|
|
@@ -2562,12 +2551,6 @@ export declare interface GrowOnlyValueSetComponentDefinition<T> extends BaseComp
|
|
|
2562
2551
|
|
|
2563
2552
|
export declare type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineValueSetComponentFromSchema'>) => T;
|
|
2564
2553
|
|
|
2565
|
-
export declare type ICreatedBy = LastWriteWinElementSetComponentDefinition<ICreatedByType>;
|
|
2566
|
-
|
|
2567
|
-
export declare interface ICreatedByType {
|
|
2568
|
-
address: string;
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
2554
|
/**
|
|
2572
2555
|
* @public
|
|
2573
2556
|
*/
|
|
@@ -3045,35 +3028,6 @@ export declare const enum InteractionType {
|
|
|
3045
3028
|
PROXIMITY = 1
|
|
3046
3029
|
}
|
|
3047
3030
|
|
|
3048
|
-
/**
|
|
3049
|
-
* Internal component interface that exposes all internal methods for SDK use
|
|
3050
|
-
* This is not exposed to users, only for internal SDK operations
|
|
3051
|
-
*/
|
|
3052
|
-
export declare interface InternalBaseComponent<T> extends BaseComponent<T> {
|
|
3053
|
-
/**
|
|
3054
|
-
* @public
|
|
3055
|
-
* Dry run update to check if a CRDT message would be accepted without actually applying it
|
|
3056
|
-
*/
|
|
3057
|
-
__dry_run_updateFromCrdt(body: CrdtMessageBody): ProcessMessageResultType;
|
|
3058
|
-
/**
|
|
3059
|
-
* @public
|
|
3060
|
-
* Get the iterator to every entity has the component
|
|
3061
|
-
*/
|
|
3062
|
-
iterator(): Iterable<[Entity, any]>;
|
|
3063
|
-
/**
|
|
3064
|
-
* @public
|
|
3065
|
-
*/
|
|
3066
|
-
dirtyIterator(): Iterable<Entity>;
|
|
3067
|
-
/**
|
|
3068
|
-
* @public
|
|
3069
|
-
*/
|
|
3070
|
-
__onChangeCallbacks(entity: Entity, value: T): void;
|
|
3071
|
-
/**
|
|
3072
|
-
* @public
|
|
3073
|
-
*/
|
|
3074
|
-
__run_validateBeforeChange(entity: Entity, newValue: T | undefined, senderAddress: string, createdBy: string): boolean;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
3031
|
/**
|
|
3078
3032
|
* @public
|
|
3079
3033
|
*/
|
|
@@ -5343,6 +5297,34 @@ export declare namespace PBEngineInfo {
|
|
|
5343
5297
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
|
|
5344
5298
|
}
|
|
5345
5299
|
|
|
5300
|
+
/**
|
|
5301
|
+
* PBEnvironmentFog overrides the environment fog while the player is inside the scene.
|
|
5302
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
5303
|
+
*
|
|
5304
|
+
* An unset field keeps the time-of-day default.
|
|
5305
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
5306
|
+
* Gradients do not wrap around midnight.
|
|
5307
|
+
* A scene cannot turn fog on or off. That is a user quality setting.
|
|
5308
|
+
*
|
|
5309
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
5310
|
+
*/
|
|
5311
|
+
/**
|
|
5312
|
+
* @public
|
|
5313
|
+
*/
|
|
5314
|
+
export declare interface PBEnvironmentFog {
|
|
5315
|
+
color?: ColorGradient | undefined;
|
|
5316
|
+
/** default = 0.0005, per meter: fog = 1 - e^(-density * distance). Negative values clamp to 0 */
|
|
5317
|
+
density?: number | undefined;
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* @public
|
|
5322
|
+
*/
|
|
5323
|
+
export declare namespace PBEnvironmentFog {
|
|
5324
|
+
export function encode(message: PBEnvironmentFog, writer?: _m0.Writer): _m0.Writer;
|
|
5325
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEnvironmentFog;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5346
5328
|
/**
|
|
5347
5329
|
* Grow-only value set appended to the scene root entity.
|
|
5348
5330
|
* Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
|
|
@@ -6700,6 +6682,105 @@ export declare namespace PBRealmInfo {
|
|
|
6700
6682
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
|
|
6701
6683
|
}
|
|
6702
6684
|
|
|
6685
|
+
/**
|
|
6686
|
+
* PBSkybox overrides the visible sky while the player is inside the scene.
|
|
6687
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
6688
|
+
*
|
|
6689
|
+
* An unset field keeps the time-of-day default.
|
|
6690
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
6691
|
+
* Gradients do not wrap around midnight.
|
|
6692
|
+
* The sun is controlled by `PBSun` and the fog by `PBEnvironmentFog`.
|
|
6693
|
+
*
|
|
6694
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
6695
|
+
*/
|
|
6696
|
+
/**
|
|
6697
|
+
* @public
|
|
6698
|
+
*/
|
|
6699
|
+
export declare interface PBSkybox {
|
|
6700
|
+
/**
|
|
6701
|
+
* Replaces the visible sky with an image, given as its source path with the same rules as `Texture.src`.
|
|
6702
|
+
* It must be an equirectangular (latitude-longitude) image with a 2:1 aspect ratio:
|
|
6703
|
+
* the image centre faces +Z, the top row is the zenith and the bottom row the nadir.
|
|
6704
|
+
* Cube cross, 3x2 and six-face layouts are not supported.
|
|
6705
|
+
* The sun, the fog and the ambient lighting do not change: the ambient still follows `sky_colors`.
|
|
6706
|
+
*/
|
|
6707
|
+
skyboxTexture?: string | undefined;
|
|
6708
|
+
/**
|
|
6709
|
+
* Procedural sky colors. They also drive the ambient lighting, also while `skybox_texture` is set.
|
|
6710
|
+
* While `skybox_texture` is set they no longer color the visible sky.
|
|
6711
|
+
*/
|
|
6712
|
+
skyColors?: PBSkybox_SkyColors | undefined;
|
|
6713
|
+
/** Ignored while `skybox_texture` is set. */
|
|
6714
|
+
clouds?: PBSkybox_Clouds | undefined;
|
|
6715
|
+
/** Ignored while `skybox_texture` is set. */
|
|
6716
|
+
stars?: PBSkybox_Stars | undefined;
|
|
6717
|
+
}
|
|
6718
|
+
|
|
6719
|
+
/**
|
|
6720
|
+
* @public
|
|
6721
|
+
*/
|
|
6722
|
+
export declare namespace PBSkybox {
|
|
6723
|
+
export function encode(message: PBSkybox, writer?: _m0.Writer): _m0.Writer;
|
|
6724
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox;
|
|
6725
|
+
}
|
|
6726
|
+
|
|
6727
|
+
/**
|
|
6728
|
+
* @public
|
|
6729
|
+
*/
|
|
6730
|
+
export declare interface PBSkybox_Clouds {
|
|
6731
|
+
/** default = 1, from 0 to 1 */
|
|
6732
|
+
opacity?: number | undefined;
|
|
6733
|
+
/** 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 */
|
|
6734
|
+
speed?: number | undefined;
|
|
6735
|
+
color?: ColorGradient | undefined;
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
/**
|
|
6739
|
+
* @public
|
|
6740
|
+
*/
|
|
6741
|
+
export declare namespace PBSkybox_Clouds {
|
|
6742
|
+
export function encode(message: PBSkybox_Clouds, writer?: _m0.Writer): _m0.Writer;
|
|
6743
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Clouds;
|
|
6744
|
+
}
|
|
6745
|
+
|
|
6746
|
+
/**
|
|
6747
|
+
* @public
|
|
6748
|
+
*/
|
|
6749
|
+
export declare interface PBSkybox_SkyColors {
|
|
6750
|
+
/** the sky straight up */
|
|
6751
|
+
zenith?: ColorGradient | undefined;
|
|
6752
|
+
/** the broad band of sky around the horizon */
|
|
6753
|
+
horizon?: ColorGradient | undefined;
|
|
6754
|
+
/** The sky below the horizon, visible wherever no terrain covers it (landscape disabled, high altitude). */
|
|
6755
|
+
nadir?: ColorGradient | undefined;
|
|
6756
|
+
/** Narrow glow right on the horizon line, like a sunset glow. Unset = follows `horizon` when that is set. */
|
|
6757
|
+
rim?: ColorGradient | undefined;
|
|
6758
|
+
}
|
|
6759
|
+
|
|
6760
|
+
/**
|
|
6761
|
+
* @public
|
|
6762
|
+
*/
|
|
6763
|
+
export declare namespace PBSkybox_SkyColors {
|
|
6764
|
+
export function encode(message: PBSkybox_SkyColors, writer?: _m0.Writer): _m0.Writer;
|
|
6765
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_SkyColors;
|
|
6766
|
+
}
|
|
6767
|
+
|
|
6768
|
+
/**
|
|
6769
|
+
* @public
|
|
6770
|
+
*/
|
|
6771
|
+
export declare interface PBSkybox_Stars {
|
|
6772
|
+
/** 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 */
|
|
6773
|
+
brightness?: number | undefined;
|
|
6774
|
+
}
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* @public
|
|
6778
|
+
*/
|
|
6779
|
+
export declare namespace PBSkybox_Stars {
|
|
6780
|
+
export function encode(message: PBSkybox_Stars, writer?: _m0.Writer): _m0.Writer;
|
|
6781
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Stars;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6703
6784
|
/**
|
|
6704
6785
|
* The SkyboxTime component allows controlling the time of day for the skybox,
|
|
6705
6786
|
* affecting the lighting and appearance of the sky in the scene.
|
|
@@ -6722,6 +6803,42 @@ export declare namespace PBSkyboxTime {
|
|
|
6722
6803
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
|
|
6723
6804
|
}
|
|
6724
6805
|
|
|
6806
|
+
/**
|
|
6807
|
+
* PBSun overrides the directional light (sun and moon) while the player is inside the scene.
|
|
6808
|
+
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
6809
|
+
*
|
|
6810
|
+
* An unset field keeps the time-of-day default.
|
|
6811
|
+
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
6812
|
+
* Gradients do not wrap around midnight.
|
|
6813
|
+
*
|
|
6814
|
+
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
6815
|
+
*/
|
|
6816
|
+
/**
|
|
6817
|
+
* @public
|
|
6818
|
+
*/
|
|
6819
|
+
export declare interface PBSun {
|
|
6820
|
+
/** tints the directional light and the sun disc */
|
|
6821
|
+
color?: ColorGradient | undefined;
|
|
6822
|
+
/** default = true. false hides the sun and moon discs and the lens flare, but not their light */
|
|
6823
|
+
visible?: boolean | undefined;
|
|
6824
|
+
/** default = 1, multiplier on the renderer's time-of-day light intensity. Negative values clamp to 0 */
|
|
6825
|
+
intensity?: number | undefined;
|
|
6826
|
+
/**
|
|
6827
|
+
* Direction the sunlight travels, in scene space: (0,-1,0) = sun straight overhead. Normalized by the renderer.
|
|
6828
|
+
* Set = the sun stays fixed at every time of day; its color and intensity still follow the time of day.
|
|
6829
|
+
* Unset or zero = the time-of-day path.
|
|
6830
|
+
*/
|
|
6831
|
+
direction?: PBVector3 | undefined;
|
|
6832
|
+
}
|
|
6833
|
+
|
|
6834
|
+
/**
|
|
6835
|
+
* @public
|
|
6836
|
+
*/
|
|
6837
|
+
export declare namespace PBSun {
|
|
6838
|
+
export function encode(message: PBSun, writer?: _m0.Writer): _m0.Writer;
|
|
6839
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSun;
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6725
6842
|
/**
|
|
6726
6843
|
* The TextShape component renders customizable floating text.
|
|
6727
6844
|
*
|
|
@@ -9154,6 +9271,9 @@ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModePar
|
|
|
9154
9271
|
easingFunction?: EasingFunction;
|
|
9155
9272
|
}
|
|
9156
9273
|
|
|
9274
|
+
/** @public */
|
|
9275
|
+
export declare const Skybox: LastWriteWinElementSetComponentDefinition<PBSkybox>;
|
|
9276
|
+
|
|
9157
9277
|
/** @public */
|
|
9158
9278
|
export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
|
|
9159
9279
|
|
|
@@ -9164,6 +9284,9 @@ export declare interface Spec {
|
|
|
9164
9284
|
[key: string]: ISchema;
|
|
9165
9285
|
}
|
|
9166
9286
|
|
|
9287
|
+
/** @public */
|
|
9288
|
+
export declare const Sun: LastWriteWinElementSetComponentDefinition<PBSun>;
|
|
9289
|
+
|
|
9167
9290
|
/* Excluded from this release type: SyncComponents */
|
|
9168
9291
|
|
|
9169
9292
|
/**
|
|
@@ -9508,6 +9631,12 @@ export declare interface TouchScreenControlsComponentDefinitionExtended extends
|
|
|
9508
9631
|
* Does NOT change the joystick/crosshair — use `showJoystick()` / `showCrosshair()` for those.
|
|
9509
9632
|
*/
|
|
9510
9633
|
showAll(): void;
|
|
9634
|
+
/**
|
|
9635
|
+
* Show the default button set: jump, pointer and primary visible, secondary and
|
|
9636
|
+
* actions 3-6 hidden. This is the state every scene starts in.
|
|
9637
|
+
* Does NOT change the joystick/crosshair, the main action or custom icons.
|
|
9638
|
+
*/
|
|
9639
|
+
showDefault(): void;
|
|
9511
9640
|
/** Hide the given on-screen buttons (merged into the current config). */
|
|
9512
9641
|
hide(actions: InputAction[]): void;
|
|
9513
9642
|
/** Set which action the large central button triggers. */
|
|
@@ -9600,16 +9729,6 @@ export declare type Transport = {
|
|
|
9600
9729
|
onmessage?(message: Uint8Array): void;
|
|
9601
9730
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
9602
9731
|
type?: string;
|
|
9603
|
-
/**
|
|
9604
|
-
* Whether this transport is allowed to mutate reserved-range entities
|
|
9605
|
-
* (root/player/camera + avatars, entity number below `RESERVED_STATIC_ENTITIES`).
|
|
9606
|
-
* Only the trusted host/renderer transport sets this. An inbound DELETE_ENTITY
|
|
9607
|
-
* or component operation (PUT_COMPONENT, DELETE_COMPONENT, APPEND_VALUE,
|
|
9608
|
-
* AUTHORITATIVE_PUT_COMPONENT) on a reserved entity from a transport without
|
|
9609
|
-
* this flag (a comms peer, or any scene-added transport) is rejected — see
|
|
9610
|
-
* `receiveMessages`.
|
|
9611
|
-
*/
|
|
9612
|
-
allowReservedEntities?: boolean;
|
|
9613
9732
|
};
|
|
9614
9733
|
|
|
9615
9734
|
/**
|
|
@@ -10191,14 +10310,6 @@ export declare interface UiTransformProps {
|
|
|
10191
10310
|
*/
|
|
10192
10311
|
export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
10193
10312
|
|
|
10194
|
-
export declare type ValidateCallback<T> = (value: {
|
|
10195
|
-
entity: Entity;
|
|
10196
|
-
currentValue: T | undefined;
|
|
10197
|
-
newValue: T | undefined;
|
|
10198
|
-
senderAddress: string;
|
|
10199
|
-
createdBy: string;
|
|
10200
|
-
}) => boolean;
|
|
10201
|
-
|
|
10202
10313
|
/**
|
|
10203
10314
|
* @public
|
|
10204
10315
|
*/
|