@dcl/sdk 7.0.0-3152576867.commit-badeb3e → 7.0.0-3175157853.commit-5773687
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/ecs7/index.d.ts +19 -10
- package/dist/ecs7/index.js +17 -33
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/GltfContainer.proto +12 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +19 -10
- package/dist/ecs7/proto-definitions/GLTFShape.proto +0 -14
package/dist/ecs7/index.d.ts
CHANGED
@@ -234,7 +234,7 @@ export declare namespace Components {
|
|
234
234
|
/** @public */
|
235
235
|
const CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
|
236
236
|
/** @public */
|
237
|
-
const
|
237
|
+
const GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
|
238
238
|
/** @public */
|
239
239
|
const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
240
240
|
/** @public */
|
@@ -483,7 +483,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
483
483
|
CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCameraMode>;
|
484
484
|
CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
|
485
485
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
|
486
|
-
|
486
|
+
GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
|
487
487
|
Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
488
488
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
|
489
489
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
|
@@ -555,7 +555,7 @@ declare const enum Font {
|
|
555
555
|
}
|
556
556
|
|
557
557
|
/** @public */
|
558
|
-
export declare const
|
558
|
+
export declare const GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
|
559
559
|
|
560
560
|
/**
|
561
561
|
* @public
|
@@ -657,7 +657,21 @@ export declare type IEngine = {
|
|
657
657
|
* ```
|
658
658
|
*/
|
659
659
|
getEntitiesWith<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
|
660
|
+
/**
|
661
|
+
* @public
|
662
|
+
* Refer to the root of the scene, all Transforms without a parent are parenting with RootEntity.
|
663
|
+
*/
|
660
664
|
RootEntity: Entity;
|
665
|
+
/**
|
666
|
+
* @public
|
667
|
+
* The current player entity
|
668
|
+
*/
|
669
|
+
PlayerEntity: Entity;
|
670
|
+
/**
|
671
|
+
* @public
|
672
|
+
* Camera entity of current player.
|
673
|
+
*/
|
674
|
+
CameraEntity: Entity;
|
661
675
|
baseComponents: SdkComponents;
|
662
676
|
};
|
663
677
|
|
@@ -1896,13 +1910,8 @@ declare interface PBCylinderShape {
|
|
1896
1910
|
radiusBottom?: number | undefined;
|
1897
1911
|
}
|
1898
1912
|
|
1899
|
-
declare interface
|
1900
|
-
/**
|
1901
|
-
withCollisions?: boolean | undefined;
|
1902
|
-
/** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
|
1903
|
-
isPointerBlocker?: boolean | undefined;
|
1904
|
-
/** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
|
1905
|
-
visible?: boolean | undefined;
|
1913
|
+
declare interface PBGltfContainer {
|
1914
|
+
/** which file to load */
|
1906
1915
|
src: string;
|
1907
1916
|
}
|
1908
1917
|
|