@dcl/playground-assets 7.5.5 → 7.5.6-9700437476.commit-7649f90
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 +165 -1
- package/dist/beta.d.ts +165 -1
- package/dist/index.bundled.d.ts +165 -1
- 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 +165 -1
- package/etc/playground-assets.api.json +2474 -554
- package/etc/playground-assets.api.md +123 -0
- package/package.json +4 -4
package/dist/index.bundled.d.ts
CHANGED
@@ -177,6 +177,18 @@ export declare const AvatarAttach: LastWriteWinElementSetComponentDefinition<PBA
|
|
177
177
|
/** @public */
|
178
178
|
export declare const AvatarBase: LastWriteWinElementSetComponentDefinition<PBAvatarBase>;
|
179
179
|
|
180
|
+
/**
|
181
|
+
* @public
|
182
|
+
*/
|
183
|
+
export declare const enum AvatarControlType {
|
184
|
+
/** CCT_NONE - avatar cannot move */
|
185
|
+
CCT_NONE = 0,
|
186
|
+
/** CCT_RELATIVE - avatar moves relative to the camera origin */
|
187
|
+
CCT_RELATIVE = 1,
|
188
|
+
/** CCT_TANK - avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player */
|
189
|
+
CCT_TANK = 2
|
190
|
+
}
|
191
|
+
|
180
192
|
/** @public */
|
181
193
|
export declare const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>;
|
182
194
|
|
@@ -197,6 +209,37 @@ export declare const enum AvatarModifierType {
|
|
197
209
|
AMT_DISABLE_PASSPORTS = 1
|
198
210
|
}
|
199
211
|
|
212
|
+
/**
|
213
|
+
* @public
|
214
|
+
*/
|
215
|
+
export declare interface AvatarMovementSettings {
|
216
|
+
controlMode?: AvatarControlType | undefined;
|
217
|
+
/** if not explicitly set, the following properties default to user's preference settings */
|
218
|
+
runSpeed?: number | undefined;
|
219
|
+
/** how fast the player gets up to speed or comes to rest. higher = more responsive */
|
220
|
+
friction?: number | undefined;
|
221
|
+
/** how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative */
|
222
|
+
gravity?: number | undefined;
|
223
|
+
/** how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible */
|
224
|
+
jumpHeight?: number | undefined;
|
225
|
+
/** max fall speed in m/s. should normally be negative */
|
226
|
+
maxFallSpeed?: number | undefined;
|
227
|
+
/** speed the player turns in tank mode, in radians/s */
|
228
|
+
turnSpeed?: number | undefined;
|
229
|
+
/** speed the player walks at, in m/s */
|
230
|
+
walkSpeed?: number | undefined;
|
231
|
+
/** whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true */
|
232
|
+
allowWeightedMovement?: boolean | undefined;
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* @public
|
237
|
+
*/
|
238
|
+
export declare namespace AvatarMovementSettings {
|
239
|
+
export function encode(message: AvatarMovementSettings, writer?: _m0.Writer): _m0.Writer;
|
240
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): AvatarMovementSettings;
|
241
|
+
}
|
242
|
+
|
200
243
|
/** @public */
|
201
244
|
export declare const AvatarShape: LastWriteWinElementSetComponentDefinition<PBAvatarShape>;
|
202
245
|
|
@@ -479,6 +522,39 @@ export declare const enum CameraType {
|
|
479
522
|
|
480
523
|
export declare type Children = ReactEcs.JSX.ReactNode;
|
481
524
|
|
525
|
+
/**
|
526
|
+
* @public
|
527
|
+
*/
|
528
|
+
export declare interface CinematicSettings {
|
529
|
+
/** Entity that defines the cinematic camera transform. */
|
530
|
+
cameraEntity: number;
|
531
|
+
/**
|
532
|
+
* Position -> camera's position
|
533
|
+
* Rotation -> camera's direction
|
534
|
+
* scale.z -> zoom level
|
535
|
+
* scale.x and scale.y -> unused
|
536
|
+
*/
|
537
|
+
allowManualRotation?: boolean | undefined;
|
538
|
+
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
539
|
+
yawRange?: number | undefined;
|
540
|
+
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
541
|
+
pitchRange?: number | undefined;
|
542
|
+
/** note: cameras can never look up/down further than Vec3::Y */
|
543
|
+
rollRange?: number | undefined;
|
544
|
+
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
545
|
+
zoomMin?: number | undefined;
|
546
|
+
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
547
|
+
zoomMax?: number | undefined;
|
548
|
+
}
|
549
|
+
|
550
|
+
/**
|
551
|
+
* @public
|
552
|
+
*/
|
553
|
+
export declare namespace CinematicSettings {
|
554
|
+
export function encode(message: CinematicSettings, writer?: _m0.Writer): _m0.Writer;
|
555
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings;
|
556
|
+
}
|
557
|
+
|
482
558
|
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
483
559
|
/**
|
484
560
|
* @public
|
@@ -1278,6 +1354,7 @@ export declare const componentDefinitionByName: {
|
|
1278
1354
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
1279
1355
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
1280
1356
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
1357
|
+
"core::UiScrollResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiScrollResult>>;
|
1281
1358
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
1282
1359
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1283
1360
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
@@ -4135,6 +4212,9 @@ export declare interface PBAvatarModifierArea {
|
|
4135
4212
|
excludeIds: string[];
|
4136
4213
|
/** list of modifiers to apply */
|
4137
4214
|
modifiers: AvatarModifierType[];
|
4215
|
+
movementSettings?: AvatarMovementSettings | undefined;
|
4216
|
+
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4217
|
+
useColliderRange?: boolean | undefined;
|
4138
4218
|
}
|
4139
4219
|
|
4140
4220
|
/**
|
@@ -4247,7 +4327,7 @@ export declare namespace PBCameraMode {
|
|
4247
4327
|
|
4248
4328
|
/**
|
4249
4329
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4250
|
-
* the player's camera mode (1st-person
|
4330
|
+
* the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
|
4251
4331
|
*
|
4252
4332
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4253
4333
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4257,6 +4337,8 @@ export declare namespace PBCameraMode {
|
|
4257
4337
|
*
|
4258
4338
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4259
4339
|
* is actually a 3D volume.
|
4340
|
+
*
|
4341
|
+
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4260
4342
|
*/
|
4261
4343
|
/**
|
4262
4344
|
* @public
|
@@ -4266,6 +4348,9 @@ export declare interface PBCameraModeArea {
|
|
4266
4348
|
area: PBVector3 | undefined;
|
4267
4349
|
/** the camera mode to enforce */
|
4268
4350
|
mode: CameraType;
|
4351
|
+
cinematicSettings?: CinematicSettings | undefined;
|
4352
|
+
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4353
|
+
useColliderRange?: boolean | undefined;
|
4269
4354
|
}
|
4270
4355
|
|
4271
4356
|
/**
|
@@ -5247,6 +5332,21 @@ export declare namespace PBUiInputResult {
|
|
5247
5332
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
5248
5333
|
}
|
5249
5334
|
|
5335
|
+
/**
|
5336
|
+
* @public
|
5337
|
+
*/
|
5338
|
+
export declare interface PBUiScrollResult {
|
5339
|
+
value: PBVector2 | undefined;
|
5340
|
+
}
|
5341
|
+
|
5342
|
+
/**
|
5343
|
+
* @public
|
5344
|
+
*/
|
5345
|
+
export declare namespace PBUiScrollResult {
|
5346
|
+
export function encode(message: PBUiScrollResult, writer?: _m0.Writer): _m0.Writer;
|
5347
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiScrollResult;
|
5348
|
+
}
|
5349
|
+
|
5250
5350
|
/**
|
5251
5351
|
* @public
|
5252
5352
|
*/
|
@@ -5263,6 +5363,10 @@ export declare interface PBUiText {
|
|
5263
5363
|
fontSize?: number | undefined;
|
5264
5364
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
5265
5365
|
textWrap?: TextWrap | undefined;
|
5366
|
+
/** width of the outline (default: 0) */
|
5367
|
+
outlineWidth?: number | undefined;
|
5368
|
+
/** RGBA color of the outline (default: opaque black) */
|
5369
|
+
outlineColor?: PBColor4 | undefined;
|
5266
5370
|
}
|
5267
5371
|
|
5268
5372
|
/**
|
@@ -5359,6 +5463,14 @@ export declare interface PBUiTransform {
|
|
5359
5463
|
paddingBottom: number;
|
5360
5464
|
/** default: PointerFilterMode.PFM_NONE */
|
5361
5465
|
pointerFilter?: PointerFilterMode | undefined;
|
5466
|
+
/** default: 1 */
|
5467
|
+
opacity?: number | undefined;
|
5468
|
+
/** default empty */
|
5469
|
+
elementId?: string | undefined;
|
5470
|
+
/** default position=(0,0) */
|
5471
|
+
scrollPosition?: ScrollPositionValue | undefined;
|
5472
|
+
/** default ShowScrollBar.SSB_BOTH */
|
5473
|
+
scrollVisible?: ShowScrollBar | undefined;
|
5362
5474
|
}
|
5363
5475
|
|
5364
5476
|
/**
|
@@ -6722,6 +6834,43 @@ export declare namespace Schemas {
|
|
6722
6834
|
}) => void;
|
6723
6835
|
}
|
6724
6836
|
|
6837
|
+
/**
|
6838
|
+
* @public
|
6839
|
+
*/
|
6840
|
+
export declare interface ScrollPositionValue {
|
6841
|
+
value?: {
|
6842
|
+
$case: "position";
|
6843
|
+
position: PBVector2;
|
6844
|
+
} | {
|
6845
|
+
$case: "reference";
|
6846
|
+
reference: string;
|
6847
|
+
} | undefined;
|
6848
|
+
}
|
6849
|
+
|
6850
|
+
/**
|
6851
|
+
* @public
|
6852
|
+
*/
|
6853
|
+
export declare namespace ScrollPositionValue {
|
6854
|
+
export function encode(message: ScrollPositionValue, writer?: _m0.Writer): _m0.Writer;
|
6855
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue;
|
6856
|
+
}
|
6857
|
+
|
6858
|
+
/**
|
6859
|
+
* @public
|
6860
|
+
* The scroll-visible determines if the scrollbars are shown when the scroll overflow is enabled
|
6861
|
+
*/
|
6862
|
+
export declare type ScrollVisibleType = 'horizontal' | 'vertical' | 'both' | 'hidden';
|
6863
|
+
|
6864
|
+
/**
|
6865
|
+
* @public
|
6866
|
+
*/
|
6867
|
+
export declare const enum ShowScrollBar {
|
6868
|
+
SSB_BOTH = 0,
|
6869
|
+
SSB_ONLY_VERTICAL = 1,
|
6870
|
+
SSB_ONLY_HORIZONTAL = 2,
|
6871
|
+
SSB_HIDDEN = 3
|
6872
|
+
}
|
6873
|
+
|
6725
6874
|
/**
|
6726
6875
|
* @public
|
6727
6876
|
*/
|
@@ -7145,6 +7294,10 @@ export declare interface UiLabelProps {
|
|
7145
7294
|
textAlign?: TextAlignType | undefined;
|
7146
7295
|
/** Label font type. @defaultValue 'sans-serif' */
|
7147
7296
|
font?: UiFontType | undefined;
|
7297
|
+
/** Outline width of the text. @defaultValue 0 */
|
7298
|
+
outlineWidth?: number | undefined;
|
7299
|
+
/** Outline color of the text. @defaultValue `{ r: 0, g: 0, b: 0, a: 1 }` */
|
7300
|
+
outlineColor?: PBColor4 | undefined;
|
7148
7301
|
/** Behaviour when text reached. @defaultValue 'wrap' */
|
7149
7302
|
textWrap?: UiTextWrapType | undefined;
|
7150
7303
|
}
|
@@ -7154,6 +7307,9 @@ export declare interface UiLabelProps {
|
|
7154
7307
|
*/
|
7155
7308
|
export declare type uint32 = number;
|
7156
7309
|
|
7310
|
+
/** @public */
|
7311
|
+
export declare const UiScrollResult: LastWriteWinElementSetComponentDefinition<PBUiScrollResult>;
|
7312
|
+
|
7157
7313
|
/** @public */
|
7158
7314
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
7159
7315
|
|
@@ -7226,6 +7382,14 @@ export declare interface UiTransformProps {
|
|
7226
7382
|
overflow?: OverflowType;
|
7227
7383
|
/** The pointer filter property determines if the ui element blocks the pointer or not (elements with pointer events always block the pointer regardless of this property) **/
|
7228
7384
|
pointerFilter?: PointerFilterType;
|
7385
|
+
/** The opacity property sets the opacity level for an element, it's accumulated across children @defaultValue 1 */
|
7386
|
+
opacity?: number;
|
7387
|
+
/** A reference value to identify the element, default empty */
|
7388
|
+
elementId?: string;
|
7389
|
+
/** default position=(0,0) if it aplies, a vector or a reference-id */
|
7390
|
+
scrollPosition?: PBVector2 | string;
|
7391
|
+
/** default ShowScrollBar.SSB_BOTH */
|
7392
|
+
scrollVisible?: ScrollVisibleType;
|
7229
7393
|
}
|
7230
7394
|
|
7231
7395
|
/**
|