@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.
- package/dist/ecs7/index.d.ts +133 -0
- package/dist/ecs7/index.js +704 -86
- 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/dist/ecs7/proto-definitions/MeshRenderer.proto +29 -0
- package/dist/ecs7/proto-definitions/UiText.proto +11 -0
- package/dist/ecs7/proto-definitions/UiTransform.proto +2 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +133 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1017;
|
5
|
+
|
6
|
+
import "common/Color3.proto";
|
7
|
+
|
8
|
+
enum TextureWrapMode {
|
9
|
+
Repeat = 0;
|
10
|
+
Clamp = 1;
|
11
|
+
Mirror = 2;
|
12
|
+
MirrorOnce = 3;
|
13
|
+
}
|
14
|
+
|
15
|
+
enum FilterMode
|
16
|
+
{
|
17
|
+
Point = 0;
|
18
|
+
Bilinear = 1;
|
19
|
+
Trilinear = 2;
|
20
|
+
}
|
21
|
+
|
22
|
+
enum TransparencyMode
|
23
|
+
{
|
24
|
+
Opaque = 0;
|
25
|
+
AlphaTest = 1;
|
26
|
+
AlphaBlend = 2;
|
27
|
+
AlphaTestAndAlphaBlend = 3;
|
28
|
+
Auto = 4;
|
29
|
+
}
|
30
|
+
|
31
|
+
message PBMaterial {
|
32
|
+
message Texture {
|
33
|
+
string src = 1;
|
34
|
+
optional TextureWrapMode wrapMode = 2; // default = TextureWrapMode.Clamp
|
35
|
+
optional FilterMode filterMode = 3; // default = FilterMode.Bilinear
|
36
|
+
}
|
37
|
+
|
38
|
+
optional Texture texture = 1; // default = null
|
39
|
+
optional float alphaTest = 2; // default = 0.5. range value: from 0 to 1
|
40
|
+
optional bool castShadows = 3; // default = true
|
41
|
+
|
42
|
+
optional Texture alphaTexture = 4; // default = null
|
43
|
+
optional Texture emissiveTexture = 5; // default = null
|
44
|
+
optional Texture bumpTexture = 6; // default = null
|
45
|
+
|
46
|
+
optional Color3 albedoColor = 7; // default = white;
|
47
|
+
optional Color3 emissiveColor = 8; // default = black;
|
48
|
+
optional Color3 reflectivityColor = 9; // default = white;
|
49
|
+
|
50
|
+
optional TransparencyMode transparencyMode = 10; // default = TransparencyMode.Auto
|
51
|
+
|
52
|
+
optional float metallic = 11; // default = 0.5
|
53
|
+
optional float roughness = 12; // default = 0.5
|
54
|
+
optional float glossiness = 13; // default = 1
|
55
|
+
|
56
|
+
optional float specularIntensity = 14; // default = 1
|
57
|
+
optional float emissiveIntensity = 15; // default = 2
|
58
|
+
optional float directIntensity = 16; // default = 1
|
59
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1018;
|
5
|
+
|
6
|
+
message PBMeshRenderer {
|
7
|
+
message BoxMesh {
|
8
|
+
repeated float uvs = 1;
|
9
|
+
}
|
10
|
+
|
11
|
+
message CylinderMesh {
|
12
|
+
optional float radius_top = 1; // default=1.0
|
13
|
+
optional float radius_bottom = 2; // default=1.0
|
14
|
+
}
|
15
|
+
|
16
|
+
message PlaneMesh {
|
17
|
+
repeated float uvs = 1;
|
18
|
+
}
|
19
|
+
|
20
|
+
message SphereMesh {
|
21
|
+
}
|
22
|
+
|
23
|
+
oneof mesh {
|
24
|
+
BoxMesh box = 1;
|
25
|
+
SphereMesh sphere = 2;
|
26
|
+
CylinderMesh cylinder = 3;
|
27
|
+
PlaneMesh plane = 4;
|
28
|
+
}
|
29
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-2922539882.commit-9deab4c",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.5-
|
31
|
-
"@dcl/build-ecs": "6.11.5-
|
30
|
+
"@dcl/amd": "6.11.5-2922539882.commit-9deab4c",
|
31
|
+
"@dcl/build-ecs": "6.11.5-2922539882.commit-9deab4c",
|
32
32
|
"@dcl/kernel": "1.0.0-2638443584.commit-696a74b",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "9deab4cb0136ed3d6074a7f0b7af8f6efafad714"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -33,6 +33,15 @@ declare const enum AvatarAnchorPoint {
|
|
33
33
|
/** @public */
|
34
34
|
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
|
+
declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
|
44
|
+
|
36
45
|
/** @public */
|
37
46
|
declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
|
38
47
|
|
@@ -221,6 +230,8 @@ 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 @@ 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 @@ 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
|
declare type float = number;
|
508
536
|
|
@@ -667,6 +695,9 @@ declare interface ISize {
|
|
667
695
|
|
668
696
|
declare const log: (...a: any[]) => void;
|
669
697
|
|
698
|
+
/** @public */
|
699
|
+
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
|
+
declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
|
1422
|
+
|
1389
1423
|
/** @public */
|
1390
1424
|
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 @@ declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
|
1993
2106
|
/** @public */
|
1994
2107
|
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
|
declare type Transport = {
|
2032
2162
|
type: string;
|
2033
2163
|
send(message: Uint8Array): void;
|
@@ -2039,6 +2169,9 @@ declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
2039
2169
|
|
2040
2170
|
declare type Uint32 = number;
|
2041
2171
|
|
2172
|
+
/** @public */
|
2173
|
+
declare const UiText: ComponentDefinition<ISchema<PBUiText>>;
|
2174
|
+
|
2042
2175
|
/**
|
2043
2176
|
* @public
|
2044
2177
|
*/
|