@dcl/sdk 7.0.0-2891892090.commit-2d30b23 → 7.0.0-2910409620.commit-f5c436b
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 +91 -0
- package/dist/ecs7/index.js +436 -101
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/Material.proto +59 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +91 -0
package/dist/ecs7/index.d.ts
CHANGED
@@ -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,8 @@ 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 */
|
238
251
|
const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
239
252
|
/** @public */
|
240
253
|
const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
@@ -438,6 +451,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
438
451
|
Animator: ComponentDefinition<ISchema<PBAnimator>>;
|
439
452
|
AudioSource: ComponentDefinition<ISchema<PBAudioSource>>;
|
440
453
|
AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
|
454
|
+
AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
|
441
455
|
AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
|
442
456
|
Billboard: ComponentDefinition<ISchema<PBBillboard>>;
|
443
457
|
BoxShape: ComponentDefinition<ISchema<PBBoxShape>>;
|
@@ -445,6 +459,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
445
459
|
CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>>;
|
446
460
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
|
447
461
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
462
|
+
Material: ComponentDefinition<ISchema<PBMaterial>>;
|
448
463
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
449
464
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
450
465
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
|
@@ -503,6 +518,13 @@ declare type ExcludeUndefined<T> = {
|
|
503
518
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
504
519
|
}[keyof T];
|
505
520
|
|
521
|
+
declare const enum FilterMode {
|
522
|
+
Point = 0,
|
523
|
+
Bilinear = 1,
|
524
|
+
Trilinear = 2,
|
525
|
+
UNRECOGNIZED = -1
|
526
|
+
}
|
527
|
+
|
506
528
|
/** @public */
|
507
529
|
export declare type float = number;
|
508
530
|
|
@@ -667,6 +689,9 @@ export declare interface ISize {
|
|
667
689
|
|
668
690
|
export declare const log: (...a: any[]) => void;
|
669
691
|
|
692
|
+
/** @public */
|
693
|
+
export declare const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
694
|
+
|
670
695
|
/**
|
671
696
|
* Class used to store matrix data (4x4)
|
672
697
|
* @public
|
@@ -1457,6 +1482,12 @@ declare interface PBAvatarAttach {
|
|
1457
1482
|
anchorPointId: AvatarAnchorPoint;
|
1458
1483
|
}
|
1459
1484
|
|
1485
|
+
declare interface PBAvatarModifierArea {
|
1486
|
+
area: Vector3_2 | undefined;
|
1487
|
+
excludeIds: string[];
|
1488
|
+
modifiers: AvatarModifier[];
|
1489
|
+
}
|
1490
|
+
|
1460
1491
|
declare interface PBAvatarShape {
|
1461
1492
|
id: string;
|
1462
1493
|
name?: string | undefined;
|
@@ -1523,6 +1554,49 @@ declare interface PBGLTFShape {
|
|
1523
1554
|
src: string;
|
1524
1555
|
}
|
1525
1556
|
|
1557
|
+
declare interface PBMaterial {
|
1558
|
+
/** default = null */
|
1559
|
+
texture?: PBMaterial_Texture | undefined;
|
1560
|
+
/** default = 0.5. range value: from 0 to 1 */
|
1561
|
+
alphaTest?: number | undefined;
|
1562
|
+
/** default = true */
|
1563
|
+
castShadows?: boolean | undefined;
|
1564
|
+
/** default = null */
|
1565
|
+
alphaTexture?: PBMaterial_Texture | undefined;
|
1566
|
+
/** default = null */
|
1567
|
+
emissiveTexture?: PBMaterial_Texture | undefined;
|
1568
|
+
/** default = null */
|
1569
|
+
bumpTexture?: PBMaterial_Texture | undefined;
|
1570
|
+
/** default = white; */
|
1571
|
+
albedoColor?: Color3 | undefined;
|
1572
|
+
/** default = black; */
|
1573
|
+
emissiveColor?: Color3 | undefined;
|
1574
|
+
/** default = white; */
|
1575
|
+
reflectivityColor?: Color3 | undefined;
|
1576
|
+
/** default = TransparencyMode.Auto */
|
1577
|
+
transparencyMode?: TransparencyMode | undefined;
|
1578
|
+
/** default = 0.5 */
|
1579
|
+
metallic?: number | undefined;
|
1580
|
+
/** default = 0.5 */
|
1581
|
+
roughness?: number | undefined;
|
1582
|
+
/** default = 1 */
|
1583
|
+
glossiness?: number | undefined;
|
1584
|
+
/** default = 1 */
|
1585
|
+
specularIntensity?: number | undefined;
|
1586
|
+
/** default = 2 */
|
1587
|
+
emissiveIntensity?: number | undefined;
|
1588
|
+
/** default = 1 */
|
1589
|
+
directIntensity?: number | undefined;
|
1590
|
+
}
|
1591
|
+
|
1592
|
+
declare interface PBMaterial_Texture {
|
1593
|
+
src: string;
|
1594
|
+
/** default = TextureWrapMode.Clamp */
|
1595
|
+
wrapMode?: TextureWrapMode | undefined;
|
1596
|
+
/** default = FilterMode.Bilinear */
|
1597
|
+
filterMode?: FilterMode | undefined;
|
1598
|
+
}
|
1599
|
+
|
1526
1600
|
declare interface PBNFTShape {
|
1527
1601
|
/** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
|
1528
1602
|
withCollisions?: boolean | undefined;
|
@@ -1993,6 +2067,14 @@ export declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
|
1993
2067
|
/** @public */
|
1994
2068
|
export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
|
1995
2069
|
|
2070
|
+
declare const enum TextureWrapMode {
|
2071
|
+
Repeat = 0,
|
2072
|
+
Clamp = 1,
|
2073
|
+
Mirror = 2,
|
2074
|
+
MirrorOnce = 3,
|
2075
|
+
UNRECOGNIZED = -1
|
2076
|
+
}
|
2077
|
+
|
1996
2078
|
/**
|
1997
2079
|
* Constant used to convert a value to gamma space
|
1998
2080
|
* @public
|
@@ -2028,6 +2110,15 @@ z: number;
|
|
2028
2110
|
parent?: Entity | undefined;
|
2029
2111
|
}>>;
|
2030
2112
|
|
2113
|
+
declare const enum TransparencyMode {
|
2114
|
+
Opaque = 0,
|
2115
|
+
AlphaTest = 1,
|
2116
|
+
AlphaBlend = 2,
|
2117
|
+
AlphaTestAndAlphaBlend = 3,
|
2118
|
+
Auto = 4,
|
2119
|
+
UNRECOGNIZED = -1
|
2120
|
+
}
|
2121
|
+
|
2031
2122
|
export declare type Transport = {
|
2032
2123
|
type: string;
|
2033
2124
|
send(message: Uint8Array): void;
|