@dcl/sdk 7.0.0-3205963061.commit-6d3acc9 → 7.0.0-3220317770.commit-748a07b

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.
@@ -50,9 +50,6 @@ export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PB
50
50
  /** @public */
51
51
  export declare const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
52
52
 
53
- /** @public */
54
- export declare const BoxShape: ComponentDefinition<ISchema<PBBoxShape>, PBBoxShape>;
55
-
56
53
  /**
57
54
  * @public
58
55
  */
@@ -233,14 +230,10 @@ export declare namespace Components {
233
230
  /** @public */
234
231
  const Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
235
232
  /** @public */
236
- const BoxShape: ComponentDefinition<ISchema<PBBoxShape>, PBBoxShape>;
237
- /** @public */
238
233
  const CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCameraMode>;
239
234
  /** @public */
240
235
  const CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
241
236
  /** @public */
242
- const CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
243
- /** @public */
244
237
  const GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
245
238
  /** @public */
246
239
  const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
@@ -259,8 +252,6 @@ export declare namespace Components {
259
252
  /** @public */
260
253
  const OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
261
254
  /** @public */
262
- const PlaneShape: ComponentDefinition<ISchema<PBPlaneShape>, PBPlaneShape>;
263
- /** @public */
264
255
  const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
265
256
  /** @public */
266
257
  const PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
@@ -271,8 +262,6 @@ export declare namespace Components {
271
262
  /** @public */
272
263
  const RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
273
264
  /** @public */
274
- const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
275
- /** @public */
276
265
  const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
277
266
  /** @public */
278
267
  const UiStyles: ComponentDefinition<ISchema<PBUiStyles>, PBUiStyles>;
@@ -451,9 +440,6 @@ declare interface CreateByteBufferOptions {
451
440
  */
452
441
  export declare function cyclicParentingChecker(engine: IEngine): () => void;
453
442
 
454
- /** @public */
455
- export declare const CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
456
-
457
443
  /**
458
444
  * @public
459
445
  */
@@ -486,10 +472,8 @@ declare function defineSdkComponents(engine: PreEngine): {
486
472
  AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>, PBAvatarModifierArea>;
487
473
  AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarShape>;
488
474
  Billboard: ComponentDefinition<ISchema<PBBillboard>, PBBillboard>;
489
- BoxShape: ComponentDefinition<ISchema<PBBoxShape>, PBBoxShape>;
490
475
  CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCameraMode>;
491
476
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
492
- CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
493
477
  GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
494
478
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
495
479
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
@@ -497,13 +481,11 @@ declare function defineSdkComponents(engine: PreEngine): {
497
481
  OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
498
482
  OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
499
483
  OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
500
- PlaneShape: ComponentDefinition<ISchema<PBPlaneShape>, PBPlaneShape>;
501
484
  PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
502
485
  PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
503
486
  PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
504
487
  Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
505
488
  RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
506
- SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
507
489
  TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
508
490
  UiStyles: ComponentDefinition<ISchema<PBUiStyles>, PBUiStyles>;
509
491
  UiText: ComponentDefinition<ISchema<PBUiText>, PBUiText>;
@@ -597,8 +579,8 @@ export declare type IEngine = {
597
579
  * Example:
598
580
  * ```ts
599
581
  * function mySystem(dt: number) {
600
- * const entitiesWithBoxShapes = engine.getEntitiesWith(BoxShape, Transform)
601
- * for (const [entity, _boxShape, _transform] of engine.getEntitiesWith(BoxShape, Transform)) {
582
+ * const entitiesWithMeshRenderer = engine.getEntitiesWith(MeshRenderer, Transform)
583
+ * for (const [entity, _meshRenderer, _transform] of engine.getEntitiesWith(MeshRenderer, Transform)) {
602
584
  * // do stuffs
603
585
  * }
604
586
  * }
@@ -658,8 +640,8 @@ export declare type IEngine = {
658
640
  *
659
641
  * Example:
660
642
  * ```ts
661
- * for (const [entity, boxShape, transform] of engine.getEntitiesWith(BoxShape, Transform)) {
662
- * // the properties of boxShape and transform are read only
643
+ * for (const [entity, meshRenderer, transform] of engine.getEntitiesWith(MeshRenderer, Transform)) {
644
+ * // the properties of meshRenderer and transform are read only
663
645
  * }
664
646
  * ```
665
647
  */
@@ -1904,16 +1886,6 @@ declare interface PBBillboard {
1904
1886
  z?: boolean | undefined;
1905
1887
  }
1906
1888
 
1907
- declare interface PBBoxShape {
1908
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1909
- withCollisions?: boolean | undefined;
1910
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1911
- isPointerBlocker?: boolean | undefined;
1912
- /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1913
- visible?: boolean | undefined;
1914
- uvs: number[];
1915
- }
1916
-
1917
1889
  declare interface PBCameraMode {
1918
1890
  mode: CameraModeValue;
1919
1891
  }
@@ -1923,19 +1895,6 @@ declare interface PBCameraModeArea {
1923
1895
  mode: CameraModeValue;
1924
1896
  }
1925
1897
 
1926
- declare interface PBCylinderShape {
1927
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1928
- withCollisions?: boolean | undefined;
1929
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1930
- isPointerBlocker?: boolean | undefined;
1931
- /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
1932
- visible?: boolean | undefined;
1933
- /** default=1.0 */
1934
- radiusTop?: number | undefined;
1935
- /** default=1.0 */
1936
- radiusBottom?: number | undefined;
1937
- }
1938
-
1939
1898
  declare interface PBGltfContainer {
1940
1899
  /** which file to load */
1941
1900
  src: string;
@@ -2113,16 +2072,6 @@ declare interface PBOnPointerUpResult {
2113
2072
  timestamp: number;
2114
2073
  }
2115
2074
 
2116
- declare interface PBPlaneShape {
2117
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2118
- withCollisions?: boolean | undefined;
2119
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2120
- isPointerBlocker?: boolean | undefined;
2121
- /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
2122
- visible?: boolean | undefined;
2123
- uvs: number[];
2124
- }
2125
-
2126
2075
  declare interface PBPointerEvents {
2127
2076
  pointerEvents: PBPointerEvents_Entry[];
2128
2077
  }
@@ -2180,15 +2129,6 @@ declare interface PBRaycastResult {
2180
2129
  hits: RaycastHit[];
2181
2130
  }
2182
2131
 
2183
- declare interface PBSphereShape {
2184
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2185
- withCollisions?: boolean | undefined;
2186
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2187
- isPointerBlocker?: boolean | undefined;
2188
- /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
2189
- visible?: boolean | undefined;
2190
- }
2191
-
2192
2132
  declare interface PBTextShape {
2193
2133
  text: string;
2194
2134
  /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
@@ -2427,9 +2367,6 @@ declare namespace Plane {
2427
2367
  function signedDistanceTo(plane: ReadonlyPlane, point: Vector3.ReadonlyVector3): number;
2428
2368
  }
2429
2369
 
2430
- /** @public */
2431
- export declare const PlaneShape: ComponentDefinition<ISchema<PBPlaneShape>, PBPlaneShape>;
2432
-
2433
2370
  /** @public */
2434
2371
  export declare const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
2435
2372
 
@@ -2747,9 +2684,6 @@ export declare interface Spec {
2747
2684
  [key: string]: ISchema;
2748
2685
  }
2749
2686
 
2750
- /** @public */
2751
- export declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
2752
-
2753
2687
  /**
2754
2688
  * @public
2755
2689
  */