@dcl/playground-assets 7.5.8-10743784489.commit-d6809c5 → 7.5.8-10777738407.commit-ecf90a0
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 +93 -0
- package/dist/beta.d.ts +93 -0
- package/dist/index.bundled.d.ts +93 -0
- 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 +93 -0
- package/etc/playground-assets.api.json +978 -26
- package/etc/playground-assets.api.md +76 -0
- package/package.json +4 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
3
|
"description": "",
|
4
|
-
"version": "7.5.8-
|
4
|
+
"version": "7.5.8-10777738407.commit-ecf90a0",
|
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": "ecf90a015714fbd45b735d1cecbf5ef5578493e9"
|
39
39
|
}
|
@@ -468,6 +468,43 @@ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCam
|
|
468
468
|
/** @public */
|
469
469
|
export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
|
470
470
|
|
471
|
+
/**
|
472
|
+
* @public
|
473
|
+
*/
|
474
|
+
export declare interface CameraTransition {
|
475
|
+
fromEntity?: number | undefined;
|
476
|
+
toEntity?: number | undefined;
|
477
|
+
transitionMode?: {
|
478
|
+
$case: "time";
|
479
|
+
time: number;
|
480
|
+
} | {
|
481
|
+
$case: "speed";
|
482
|
+
speed: number;
|
483
|
+
} | undefined;
|
484
|
+
}
|
485
|
+
|
486
|
+
/**
|
487
|
+
* @public
|
488
|
+
*/
|
489
|
+
export declare namespace CameraTransition {
|
490
|
+
export function encode(message: CameraTransition, writer?: _m0.Writer): _m0.Writer;
|
491
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): CameraTransition;
|
492
|
+
}
|
493
|
+
|
494
|
+
/**
|
495
|
+
* @public
|
496
|
+
*/
|
497
|
+
export declare interface CameraTransitionHelper {
|
498
|
+
/**
|
499
|
+
* @returns a CameraTransition speed
|
500
|
+
*/
|
501
|
+
Speed: (speed: number) => CameraTransition['transitionMode'];
|
502
|
+
/**
|
503
|
+
* @returns a CameraTransition time
|
504
|
+
*/
|
505
|
+
Time: (time: number) => CameraTransition['transitionMode'];
|
506
|
+
}
|
507
|
+
|
471
508
|
/**
|
472
509
|
* @public
|
473
510
|
*/
|
@@ -1259,6 +1296,7 @@ export declare const componentDefinitionByName: {
|
|
1259
1296
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1260
1297
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1261
1298
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1299
|
+
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1262
1300
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1263
1301
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
1264
1302
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
@@ -1284,6 +1322,7 @@ export declare const componentDefinitionByName: {
|
|
1284
1322
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
1285
1323
|
"core::VideoEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBVideoEvent>>;
|
1286
1324
|
"core::VideoPlayer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
|
1325
|
+
"core::VirtualCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVirtualCamera>>;
|
1287
1326
|
"core::VisibilityComponent": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
|
1288
1327
|
};
|
1289
1328
|
|
@@ -2616,6 +2655,9 @@ export declare type LocalDirectionRaycastSystemOptions = {
|
|
2616
2655
|
|
2617
2656
|
export declare type LwwComponentGetter<T extends LastWriteWinElementSetComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
|
2618
2657
|
|
2658
|
+
/** @public */
|
2659
|
+
export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
2660
|
+
|
2619
2661
|
/**
|
2620
2662
|
* @public
|
2621
2663
|
* Overrides component definition to support partial default values
|
@@ -4454,6 +4496,23 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4454
4496
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4455
4497
|
}
|
4456
4498
|
|
4499
|
+
/** PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment. 0 means none. */
|
4500
|
+
/**
|
4501
|
+
* @public
|
4502
|
+
*/
|
4503
|
+
export declare interface PBMainCamera {
|
4504
|
+
/** currently active virtual camera (default: 0) */
|
4505
|
+
virtualCameraEntity: number;
|
4506
|
+
}
|
4507
|
+
|
4508
|
+
/**
|
4509
|
+
* @public
|
4510
|
+
*/
|
4511
|
+
export declare namespace PBMainCamera {
|
4512
|
+
export function encode(message: PBMainCamera, writer?: _m0.Writer): _m0.Writer;
|
4513
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBMainCamera;
|
4514
|
+
}
|
4515
|
+
|
4457
4516
|
/**
|
4458
4517
|
* @public
|
4459
4518
|
*/
|
@@ -5521,6 +5580,28 @@ export declare namespace PBVideoPlayer {
|
|
5521
5580
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVideoPlayer;
|
5522
5581
|
}
|
5523
5582
|
|
5583
|
+
/**
|
5584
|
+
* PBVirtualCamera represents a camera to be used at some point in time during the scene execution
|
5585
|
+
* * The defaultTransition represents the transition TOWARDS this camera.
|
5586
|
+
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5587
|
+
* the holding entity transform).
|
5588
|
+
*/
|
5589
|
+
/**
|
5590
|
+
* @public
|
5591
|
+
*/
|
5592
|
+
export declare interface PBVirtualCamera {
|
5593
|
+
defaultTransition: CameraTransition | undefined;
|
5594
|
+
lookAtEntity?: number | undefined;
|
5595
|
+
}
|
5596
|
+
|
5597
|
+
/**
|
5598
|
+
* @public
|
5599
|
+
*/
|
5600
|
+
export declare namespace PBVirtualCamera {
|
5601
|
+
export function encode(message: PBVirtualCamera, writer?: _m0.Writer): _m0.Writer;
|
5602
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBVirtualCamera;
|
5603
|
+
}
|
5604
|
+
|
5524
5605
|
/**
|
5525
5606
|
* @public
|
5526
5607
|
*/
|
@@ -7985,6 +8066,18 @@ export declare namespace VideoTexture {
|
|
7985
8066
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTexture;
|
7986
8067
|
}
|
7987
8068
|
|
8069
|
+
export declare const VirtualCamera: VirtualCameraComponentDefinitionExtended;
|
8070
|
+
|
8071
|
+
/**
|
8072
|
+
* @public
|
8073
|
+
*/
|
8074
|
+
export declare interface VirtualCameraComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBVirtualCamera> {
|
8075
|
+
/**
|
8076
|
+
* Camera transition helper for time and speed modes
|
8077
|
+
*/
|
8078
|
+
Transition: CameraTransitionHelper;
|
8079
|
+
}
|
8080
|
+
|
7988
8081
|
/** @public */
|
7989
8082
|
export declare const VisibilityComponent: LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>;
|
7990
8083
|
|