@dcl/playground-assets 7.5.0 → 7.5.1-9235895775.commit-075ab65
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 +91 -1
- package/dist/beta.d.ts +91 -1
- package/dist/index.bundled.d.ts +91 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +91 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/etc/playground-assets.api.json +1267 -208
- package/etc/playground-assets.api.md +61 -0
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.5.
|
4
|
+
"version": "7.5.1-9235895775.commit-075ab65",
|
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": "075ab65a8da74643a2d70ea916d4c0d9feb8b89b"
|
39
39
|
}
|
@@ -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 = 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
|
@@ -4163,6 +4239,9 @@ export declare interface PBAvatarModifierArea {
|
|
4163
4239
|
excludeIds: string[];
|
4164
4240
|
/** list of modifiers to apply */
|
4165
4241
|
modifiers: AvatarModifierType[];
|
4242
|
+
movementSettings?: AvatarMovementSettings | undefined;
|
4243
|
+
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4244
|
+
useColliderRange?: boolean | undefined;
|
4166
4245
|
}
|
4167
4246
|
|
4168
4247
|
/**
|
@@ -4275,7 +4354,7 @@ export declare namespace PBCameraMode {
|
|
4275
4354
|
|
4276
4355
|
/**
|
4277
4356
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
4278
|
-
* the player's camera mode (1st-person
|
4357
|
+
* the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
|
4279
4358
|
*
|
4280
4359
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
4281
4360
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
@@ -4285,6 +4364,8 @@ export declare namespace PBCameraMode {
|
|
4285
4364
|
*
|
4286
4365
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
4287
4366
|
* is actually a 3D volume.
|
4367
|
+
*
|
4368
|
+
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
4288
4369
|
*/
|
4289
4370
|
/**
|
4290
4371
|
* @public
|
@@ -4294,6 +4375,9 @@ export declare interface PBCameraModeArea {
|
|
4294
4375
|
area: PBVector3 | undefined;
|
4295
4376
|
/** the camera mode to enforce */
|
4296
4377
|
mode: CameraType;
|
4378
|
+
cinematicSettings?: CinematicSettings | undefined;
|
4379
|
+
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
4380
|
+
useColliderRange?: boolean | undefined;
|
4297
4381
|
}
|
4298
4382
|
|
4299
4383
|
/**
|
@@ -5289,6 +5373,10 @@ export declare interface PBUiText {
|
|
5289
5373
|
font?: Font | undefined;
|
5290
5374
|
/** size of the text (default: 10) */
|
5291
5375
|
fontSize?: number | undefined;
|
5376
|
+
/** width of the outline (default: 0) */
|
5377
|
+
outlineWidth?: number | undefined;
|
5378
|
+
/** RGBA color of the outline (default: opaque black) */
|
5379
|
+
outlineColor?: PBColor4 | undefined;
|
5292
5380
|
}
|
5293
5381
|
|
5294
5382
|
/**
|
@@ -5385,6 +5473,8 @@ export declare interface PBUiTransform {
|
|
5385
5473
|
paddingBottom: number;
|
5386
5474
|
/** default: PointerFilterMode.PFM_NONE */
|
5387
5475
|
pointerFilter?: PointerFilterMode | undefined;
|
5476
|
+
/** default: 1 */
|
5477
|
+
opacity?: number | undefined;
|
5388
5478
|
}
|
5389
5479
|
|
5390
5480
|
/**
|