@dcl/sdk 7.0.0-2906745229.commit-d06bc1c → 7.0.0-2922539882.commit-9deab4c

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.
@@ -33,6 +33,15 @@ declare const enum AvatarAnchorPoint {
33
33
  /** @public */
34
34
  export declare const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
35
35
 
36
+ declare const enum AvatarModifier {
37
+ HIDE_AVATARS = 0,
38
+ DISABLE_PASSPORTS = 1,
39
+ UNRECOGNIZED = -1
40
+ }
41
+
42
+ /** @public */
43
+ export declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
44
+
36
45
  /** @public */
37
46
  export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
38
47
 
@@ -221,6 +230,8 @@ export declare namespace Components {
221
230
  /** @public */
222
231
  const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
223
232
  /** @public */
233
+ const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
234
+ /** @public */
224
235
  const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
225
236
  /** @public */
226
237
  const Billboard: ComponentDefinition<ISchema<PBBillboard>>;
@@ -235,6 +246,10 @@ export declare namespace Components {
235
246
  /** @public */
236
247
  const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
237
248
  /** @public */
249
+ const Material: ComponentDefinition<ISchema<PBMaterial>>;
250
+ /** @public */
251
+ const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
252
+ /** @public */
238
253
  const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
239
254
  /** @public */
240
255
  const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
@@ -252,6 +267,8 @@ export declare namespace Components {
252
267
  const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
253
268
  /** @public */
254
269
  const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
270
+ /** @public */
271
+ const UiText: ComponentDefinition<ISchema<PBUiText>>;
255
272
  }
256
273
 
257
274
  /**
@@ -438,6 +455,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
438
455
  Animator: ComponentDefinition<ISchema<PBAnimator>>;
439
456
  AudioSource: ComponentDefinition<ISchema<PBAudioSource>>;
440
457
  AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
458
+ AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
441
459
  AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
442
460
  Billboard: ComponentDefinition<ISchema<PBBillboard>>;
443
461
  BoxShape: ComponentDefinition<ISchema<PBBoxShape>>;
@@ -445,6 +463,8 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
445
463
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>>;
446
464
  CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
447
465
  GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
466
+ Material: ComponentDefinition<ISchema<PBMaterial>>;
467
+ MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
448
468
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
449
469
  OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
450
470
  OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
@@ -454,6 +474,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
454
474
  PointerLock: ComponentDefinition<ISchema<PBPointerLock>>;
455
475
  SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
456
476
  TextShape: ComponentDefinition<ISchema<PBTextShape>>;
477
+ UiText: ComponentDefinition<ISchema<PBUiText>>;
457
478
  };
458
479
 
459
480
  /**
@@ -503,6 +524,13 @@ declare type ExcludeUndefined<T> = {
503
524
  [P in keyof T]: undefined extends T[P] ? never : P;
504
525
  }[keyof T];
505
526
 
527
+ declare const enum FilterMode {
528
+ Point = 0,
529
+ Bilinear = 1,
530
+ Trilinear = 2,
531
+ UNRECOGNIZED = -1
532
+ }
533
+
506
534
  /** @public */
507
535
  export declare type float = number;
508
536
 
@@ -667,6 +695,9 @@ export declare interface ISize {
667
695
 
668
696
  export declare const log: (...a: any[]) => void;
669
697
 
698
+ /** @public */
699
+ export declare const Material: ComponentDefinition<ISchema<PBMaterial>>;
700
+
670
701
  /**
671
702
  * Class used to store matrix data (4x4)
672
703
  * @public
@@ -1386,6 +1417,9 @@ declare namespace Matrix {
1386
1417
  function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
1387
1418
  }
1388
1419
 
1420
+ /** @public */
1421
+ export declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
1422
+
1389
1423
  /** @public */
1390
1424
  export declare const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
1391
1425
 
@@ -1457,6 +1491,12 @@ declare interface PBAvatarAttach {
1457
1491
  anchorPointId: AvatarAnchorPoint;
1458
1492
  }
1459
1493
 
1494
+ declare interface PBAvatarModifierArea {
1495
+ area: Vector3_2 | undefined;
1496
+ excludeIds: string[];
1497
+ modifiers: AvatarModifier[];
1498
+ }
1499
+
1460
1500
  declare interface PBAvatarShape {
1461
1501
  id: string;
1462
1502
  name?: string | undefined;
@@ -1523,6 +1563,74 @@ declare interface PBGLTFShape {
1523
1563
  src: string;
1524
1564
  }
1525
1565
 
1566
+ declare interface PBMaterial {
1567
+ /** default = null */
1568
+ texture?: PBMaterial_Texture | undefined;
1569
+ /** default = 0.5. range value: from 0 to 1 */
1570
+ alphaTest?: number | undefined;
1571
+ /** default = true */
1572
+ castShadows?: boolean | undefined;
1573
+ /** default = null */
1574
+ alphaTexture?: PBMaterial_Texture | undefined;
1575
+ /** default = null */
1576
+ emissiveTexture?: PBMaterial_Texture | undefined;
1577
+ /** default = null */
1578
+ bumpTexture?: PBMaterial_Texture | undefined;
1579
+ /** default = white; */
1580
+ albedoColor?: Color3 | undefined;
1581
+ /** default = black; */
1582
+ emissiveColor?: Color3 | undefined;
1583
+ /** default = white; */
1584
+ reflectivityColor?: Color3 | undefined;
1585
+ /** default = TransparencyMode.Auto */
1586
+ transparencyMode?: TransparencyMode | undefined;
1587
+ /** default = 0.5 */
1588
+ metallic?: number | undefined;
1589
+ /** default = 0.5 */
1590
+ roughness?: number | undefined;
1591
+ /** default = 1 */
1592
+ glossiness?: number | undefined;
1593
+ /** default = 1 */
1594
+ specularIntensity?: number | undefined;
1595
+ /** default = 2 */
1596
+ emissiveIntensity?: number | undefined;
1597
+ /** default = 1 */
1598
+ directIntensity?: number | undefined;
1599
+ }
1600
+
1601
+ declare interface PBMaterial_Texture {
1602
+ src: string;
1603
+ /** default = TextureWrapMode.Clamp */
1604
+ wrapMode?: TextureWrapMode | undefined;
1605
+ /** default = FilterMode.Bilinear */
1606
+ filterMode?: FilterMode | undefined;
1607
+ }
1608
+
1609
+ declare interface PBMeshRenderer {
1610
+ box: PBMeshRenderer_BoxMesh | undefined;
1611
+ sphere: PBMeshRenderer_SphereMesh | undefined;
1612
+ cylinder: PBMeshRenderer_CylinderMesh | undefined;
1613
+ plane: PBMeshRenderer_PlaneMesh | undefined;
1614
+ }
1615
+
1616
+ declare interface PBMeshRenderer_BoxMesh {
1617
+ uvs: number[];
1618
+ }
1619
+
1620
+ declare interface PBMeshRenderer_CylinderMesh {
1621
+ /** default=1.0 */
1622
+ radiusTop?: number | undefined;
1623
+ /** default=1.0 */
1624
+ radiusBottom?: number | undefined;
1625
+ }
1626
+
1627
+ declare interface PBMeshRenderer_PlaneMesh {
1628
+ uvs: number[];
1629
+ }
1630
+
1631
+ declare interface PBMeshRenderer_SphereMesh {
1632
+ }
1633
+
1526
1634
  declare interface PBNFTShape {
1527
1635
  /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1528
1636
  withCollisions?: boolean | undefined;
@@ -1640,6 +1748,11 @@ declare interface PBTextShape {
1640
1748
  textColor?: Color3 | undefined;
1641
1749
  }
1642
1750
 
1751
+ declare interface PBUiText {
1752
+ text: string;
1753
+ textColor: Color3 | undefined;
1754
+ }
1755
+
1643
1756
  /**
1644
1757
  * Represens a plane by the equation ax + by + cz + d = 0
1645
1758
  * @public
@@ -1993,6 +2106,14 @@ export declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
1993
2106
  /** @public */
1994
2107
  export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
1995
2108
 
2109
+ declare const enum TextureWrapMode {
2110
+ Repeat = 0,
2111
+ Clamp = 1,
2112
+ Mirror = 2,
2113
+ MirrorOnce = 3,
2114
+ UNRECOGNIZED = -1
2115
+ }
2116
+
1996
2117
  /**
1997
2118
  * Constant used to convert a value to gamma space
1998
2119
  * @public
@@ -2028,6 +2149,15 @@ z: number;
2028
2149
  parent?: Entity | undefined;
2029
2150
  }>>;
2030
2151
 
2152
+ declare const enum TransparencyMode {
2153
+ Opaque = 0,
2154
+ AlphaTest = 1,
2155
+ AlphaBlend = 2,
2156
+ AlphaTestAndAlphaBlend = 3,
2157
+ Auto = 4,
2158
+ UNRECOGNIZED = -1
2159
+ }
2160
+
2031
2161
  export declare type Transport = {
2032
2162
  type: string;
2033
2163
  send(message: Uint8Array): void;
@@ -2039,6 +2169,9 @@ export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
2039
2169
 
2040
2170
  declare type Uint32 = number;
2041
2171
 
2172
+ /** @public */
2173
+ export declare const UiText: ComponentDefinition<ISchema<PBUiText>>;
2174
+
2042
2175
  /**
2043
2176
  * @public
2044
2177
  */