@dcl/playground-assets 7.1.9-4800243746.commit-c0e370e → 7.1.9-4810794032.commit-8752a16
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 +61 -5
- package/dist/beta.d.ts +61 -5
- package/dist/index.bundled.d.ts +61 -5
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +3 -3
- package/dist/playground-assets.d.ts +61 -5
- package/etc/playground-assets.api.json +509 -6
- package/etc/playground-assets.api.md +39 -0
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.1.9-
|
|
4
|
+
"version": "7.1.9-4810794032.commit-8752a16",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
8
8
|
"@dcl/ecs-math": "2.0.1-20221129185242.commit-40495c1",
|
|
9
|
-
"@dcl/explorer": "1.0.
|
|
9
|
+
"@dcl/explorer": "1.0.106064-20230424164124.commit-fdcdf1a",
|
|
10
10
|
"@dcl/js-runtime": "file:../js-runtime",
|
|
11
11
|
"@dcl/react-ecs": "file:../react-ecs",
|
|
12
12
|
"@dcl/sdk-commands": "file:../sdk-commands"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
},
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"typings": "./index.d.ts",
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "8752a16ce1389f4baa8cdb218ebcf1c2ed2ba97c"
|
|
34
34
|
}
|
|
@@ -1138,7 +1138,9 @@ export declare const componentDefinitionByName: {
|
|
|
1138
1138
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
1139
1139
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
1140
1140
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
1141
|
+
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
1141
1142
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
1143
|
+
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
1142
1144
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
|
1143
1145
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
1144
1146
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
@@ -1507,6 +1509,9 @@ export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents
|
|
|
1507
1509
|
data: Readonly<V>;
|
|
1508
1510
|
};
|
|
1509
1511
|
|
|
1512
|
+
/** @public */
|
|
1513
|
+
export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
|
|
1514
|
+
|
|
1510
1515
|
/**
|
|
1511
1516
|
* @public The Entity is a number type, the cast is only for typescript, the final javascript code treat as a number
|
|
1512
1517
|
* version number
|
|
@@ -1710,6 +1715,9 @@ export declare type GlobalTargetRaycastSystemOptions = {
|
|
|
1710
1715
|
/** @public */
|
|
1711
1716
|
export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
1712
1717
|
|
|
1718
|
+
/** @public */
|
|
1719
|
+
export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
1720
|
+
|
|
1713
1721
|
/**
|
|
1714
1722
|
* @public
|
|
1715
1723
|
*/
|
|
@@ -2310,6 +2318,17 @@ export declare type Listeners = {
|
|
|
2310
2318
|
onMouseUp?: Callback;
|
|
2311
2319
|
};
|
|
2312
2320
|
|
|
2321
|
+
/**
|
|
2322
|
+
* @public
|
|
2323
|
+
*/
|
|
2324
|
+
export declare const enum LoadingState {
|
|
2325
|
+
UNKNOWN = 0,
|
|
2326
|
+
LOADING = 1,
|
|
2327
|
+
NOT_FOUND = 2,
|
|
2328
|
+
FINISHED_WITH_ERROR = 3,
|
|
2329
|
+
FINISHED = 4
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2313
2332
|
export declare type LocalDirectionRaycastOptions = RaycastSystemOptions & LocalDirectionRaycastSystemOptions;
|
|
2314
2333
|
|
|
2315
2334
|
export declare type LocalDirectionRaycastSystemOptions = {
|
|
@@ -3603,6 +3622,24 @@ export declare interface PBColor4 {
|
|
|
3603
3622
|
a: number;
|
|
3604
3623
|
}
|
|
3605
3624
|
|
|
3625
|
+
/**
|
|
3626
|
+
* EngineInfo provides information about the graphics engine running the scene.
|
|
3627
|
+
* The values of this component are written at the "physics" stage of the ADR-148. Meaning
|
|
3628
|
+
* the tick_number and frame_number of the same frame could be used as correlation numbers
|
|
3629
|
+
* for timestamps in other components.
|
|
3630
|
+
*/
|
|
3631
|
+
/**
|
|
3632
|
+
* @public
|
|
3633
|
+
*/
|
|
3634
|
+
export declare interface PBEngineInfo {
|
|
3635
|
+
/** frame counter of the engine */
|
|
3636
|
+
frameNumber: number;
|
|
3637
|
+
/** total runtime of this scene in seconds */
|
|
3638
|
+
totalRuntime: number;
|
|
3639
|
+
/** tick counter of the scene as per ADR-148 */
|
|
3640
|
+
tickNumber: number;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3606
3643
|
/**
|
|
3607
3644
|
* GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
|
|
3608
3645
|
*
|
|
@@ -3615,6 +3652,21 @@ export declare interface PBColor4 {
|
|
|
3615
3652
|
export declare interface PBGltfContainer {
|
|
3616
3653
|
/** the GLTF file path as listed in the scene's manifest. */
|
|
3617
3654
|
src: string;
|
|
3655
|
+
/** disable automatic physics collider creation (default: false) */
|
|
3656
|
+
disablePhysicsColliders?: boolean | undefined;
|
|
3657
|
+
/** copies the visible meshes into a virtual MeshCollider with CL_POINTER collider_mask (default: false) */
|
|
3658
|
+
createPointerColliders?: boolean | undefined;
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* GltfContainerLoadingState is set by the engine and provides information about
|
|
3663
|
+
* the current state of the GltfContainer of an entity.
|
|
3664
|
+
*/
|
|
3665
|
+
/**
|
|
3666
|
+
* @public
|
|
3667
|
+
*/
|
|
3668
|
+
export declare interface PBGltfContainerLoadingState {
|
|
3669
|
+
currentState: LoadingState;
|
|
3618
3670
|
}
|
|
3619
3671
|
|
|
3620
3672
|
/**
|
|
@@ -3725,9 +3777,9 @@ export declare interface PBMeshCollider_BoxMesh {
|
|
|
3725
3777
|
* @public
|
|
3726
3778
|
*/
|
|
3727
3779
|
export declare interface PBMeshCollider_CylinderMesh {
|
|
3728
|
-
/** (default
|
|
3780
|
+
/** (default 0.5) */
|
|
3729
3781
|
radiusTop?: number | undefined;
|
|
3730
|
-
/** (default
|
|
3782
|
+
/** (default 0.5) */
|
|
3731
3783
|
radiusBottom?: number | undefined;
|
|
3732
3784
|
}
|
|
3733
3785
|
|
|
@@ -3788,9 +3840,9 @@ export declare interface PBMeshRenderer_BoxMesh {
|
|
|
3788
3840
|
* @public
|
|
3789
3841
|
*/
|
|
3790
3842
|
export declare interface PBMeshRenderer_CylinderMesh {
|
|
3791
|
-
/** (default
|
|
3843
|
+
/** (default 0.5) */
|
|
3792
3844
|
radiusTop?: number | undefined;
|
|
3793
|
-
/** (default
|
|
3845
|
+
/** (default 0.5) */
|
|
3794
3846
|
radiusBottom?: number | undefined;
|
|
3795
3847
|
}
|
|
3796
3848
|
|
|
@@ -3887,10 +3939,12 @@ export declare interface PBPointerEventsResult {
|
|
|
3887
3939
|
button: InputAction;
|
|
3888
3940
|
hit: RaycastHit | undefined;
|
|
3889
3941
|
state: PointerEventType;
|
|
3890
|
-
/**
|
|
3942
|
+
/** monotonic counter */
|
|
3891
3943
|
timestamp: number;
|
|
3892
3944
|
/** if the input is analog then we store it here */
|
|
3893
3945
|
analog?: number | undefined;
|
|
3946
|
+
/** number of tick in which the event was produced, equals to EngineInfo.tick_number */
|
|
3947
|
+
tickNumber: number;
|
|
3894
3948
|
}
|
|
3895
3949
|
|
|
3896
3950
|
/**
|
|
@@ -3976,6 +4030,8 @@ export declare interface PBRaycastResult {
|
|
|
3976
4030
|
direction: PBVector3 | undefined;
|
|
3977
4031
|
/** zero or more hits */
|
|
3978
4032
|
hits: RaycastHit[];
|
|
4033
|
+
/** number of tick in which the event was produced, equals to EngineInfo.tick_number */
|
|
4034
|
+
tickNumber: number;
|
|
3979
4035
|
}
|
|
3980
4036
|
|
|
3981
4037
|
/**
|