@dcl/sdk 7.0.0-2965783764.commit-18f9e1c → 7.0.0-2979842512.commit-00b1870
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 +64 -3
- package/dist/ecs7/index.js +276 -51
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/AvatarShape.proto +18 -11
- package/dist/ecs7/proto-definitions/MeshCollider.proto +35 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +64 -3
@@ -6,15 +6,22 @@ import "common/Color3.proto";
|
|
6
6
|
|
7
7
|
message PBAvatarShape {
|
8
8
|
string id = 1;
|
9
|
-
optional string name = 2;
|
10
|
-
optional string body_shape = 3;
|
11
|
-
optional Color3 skin_color = 4;
|
12
|
-
optional Color3 hair_color = 5;
|
13
|
-
optional Color3 eye_color = 6;
|
14
|
-
|
15
|
-
optional
|
16
|
-
optional
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
optional string name = 2; // default = NPC
|
10
|
+
optional string body_shape = 3; // default = urn:decentraland:off-chain:base-avatars:BaseFemale
|
11
|
+
optional Color3 skin_color = 4; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
12
|
+
optional Color3 hair_color = 5; // default = Color3(R = 0.283f, G = 0.142f, B = 0f)
|
13
|
+
optional Color3 eye_color = 6; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
14
|
+
optional string expression_trigger_id = 7;
|
15
|
+
optional int64 expression_trigger_timestamp = 8; // default = timestamp
|
16
|
+
optional bool talking = 9;
|
17
|
+
/**
|
18
|
+
* default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
|
19
|
+
* "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
|
20
|
+
* "urn:decentraland:off-chain:base-avatars:f_mouth_00"
|
21
|
+
* "urn:decentraland:off-chain:base-avatars:standard_hair",
|
22
|
+
* "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
|
23
|
+
* "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
|
24
|
+
* "urn:decentraland:off-chain:base-avatars:bun_shoes"]
|
25
|
+
*/
|
26
|
+
repeated string wearables = 10;
|
20
27
|
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1019;
|
5
|
+
|
6
|
+
enum ColliderLayer {
|
7
|
+
None = 0;
|
8
|
+
Pointer = 1;
|
9
|
+
Physics = 2;
|
10
|
+
}
|
11
|
+
|
12
|
+
message PBMeshCollider {
|
13
|
+
message BoxMesh {
|
14
|
+
}
|
15
|
+
|
16
|
+
message CylinderMesh {
|
17
|
+
optional float radius_top = 1; // default=1.0
|
18
|
+
optional float radius_bottom = 2; // default=1.0
|
19
|
+
}
|
20
|
+
|
21
|
+
message PlaneMesh {
|
22
|
+
}
|
23
|
+
|
24
|
+
message SphereMesh {
|
25
|
+
}
|
26
|
+
|
27
|
+
optional int32 collision_mask = 1; // default = ColliderLayer.Physics | ColliderLayer.Pointer
|
28
|
+
|
29
|
+
oneof mesh {
|
30
|
+
BoxMesh box = 2;
|
31
|
+
SphereMesh sphere = 3;
|
32
|
+
CylinderMesh cylinder = 4;
|
33
|
+
PlaneMesh plane = 5;
|
34
|
+
}
|
35
|
+
}
|
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-2979842512.commit-00b1870",
|
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.
|
31
|
-
"@dcl/build-ecs": "6.11.
|
30
|
+
"@dcl/amd": "6.11.7-2979842512.commit-00b1870",
|
31
|
+
"@dcl/build-ecs": "6.11.7-2979842512.commit-00b1870",
|
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": "00b1870f87c0030d5bba0000af015a4e4240357f"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -229,6 +229,8 @@ declare namespace Components {
|
|
229
229
|
/** @public */
|
230
230
|
const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
231
231
|
/** @public */
|
232
|
+
const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
|
233
|
+
/** @public */
|
232
234
|
const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
233
235
|
/** @public */
|
234
236
|
const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
|
@@ -404,6 +406,23 @@ declare interface CreateByteBufferOptions {
|
|
404
406
|
initialCapacity?: number;
|
405
407
|
}
|
406
408
|
|
409
|
+
/**
|
410
|
+
* Transform parenting: cyclic dependency checker
|
411
|
+
* It checks only in modified Transforms
|
412
|
+
*
|
413
|
+
* Add this system with:
|
414
|
+
* ```ts
|
415
|
+
* engine.addSystem(cyclicParentingChecker(engine))
|
416
|
+
* ````
|
417
|
+
* And then it will check every tick the parenting.
|
418
|
+
*
|
419
|
+
* @public
|
420
|
+
*
|
421
|
+
* @params engine
|
422
|
+
* @returns a system
|
423
|
+
*/
|
424
|
+
declare function cyclicParentingChecker(engine: IEngine): () => void;
|
425
|
+
|
407
426
|
/** @public */
|
408
427
|
declare const CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
|
409
428
|
|
@@ -452,6 +471,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
452
471
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>, PBCylinderShape>;
|
453
472
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>, PBGLTFShape>;
|
454
473
|
Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
474
|
+
MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
|
455
475
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
|
456
476
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
|
457
477
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
|
@@ -1402,6 +1422,9 @@ declare namespace Matrix {
|
|
1402
1422
|
function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
|
1403
1423
|
}
|
1404
1424
|
|
1425
|
+
/** @public */
|
1426
|
+
declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
|
1427
|
+
|
1405
1428
|
/** @public */
|
1406
1429
|
declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
1407
1430
|
|
@@ -1484,17 +1507,30 @@ declare interface PBAvatarModifierArea {
|
|
1484
1507
|
|
1485
1508
|
declare interface PBAvatarShape {
|
1486
1509
|
id: string;
|
1510
|
+
/** default = NPC */
|
1487
1511
|
name?: string | undefined;
|
1512
|
+
/** default = urn:decentraland:off-chain:base-avatars:BaseFemale */
|
1488
1513
|
bodyShape?: string | undefined;
|
1514
|
+
/** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1489
1515
|
skinColor?: Color3 | undefined;
|
1516
|
+
/** default = Color3(R = 0.283f, G = 0.142f, B = 0f) */
|
1490
1517
|
hairColor?: Color3 | undefined;
|
1518
|
+
/** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1491
1519
|
eyeColor?: Color3 | undefined;
|
1492
|
-
wearables: string[];
|
1493
1520
|
expressionTriggerId?: string | undefined;
|
1521
|
+
/** default = timestamp */
|
1494
1522
|
expressionTriggerTimestamp?: number | undefined;
|
1495
|
-
stickerTriggerId?: string | undefined;
|
1496
|
-
stickerTriggerTimestamp?: number | undefined;
|
1497
1523
|
talking?: boolean | undefined;
|
1524
|
+
/**
|
1525
|
+
* default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
|
1526
|
+
* "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
|
1527
|
+
* "urn:decentraland:off-chain:base-avatars:f_mouth_00"
|
1528
|
+
* "urn:decentraland:off-chain:base-avatars:standard_hair",
|
1529
|
+
* "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
|
1530
|
+
* "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
|
1531
|
+
* "urn:decentraland:off-chain:base-avatars:bun_shoes"]
|
1532
|
+
*/
|
1533
|
+
wearables: string[];
|
1498
1534
|
}
|
1499
1535
|
|
1500
1536
|
declare interface PBBillboard {
|
@@ -1591,6 +1627,31 @@ declare interface PBMaterial_Texture {
|
|
1591
1627
|
filterMode?: FilterMode | undefined;
|
1592
1628
|
}
|
1593
1629
|
|
1630
|
+
declare interface PBMeshCollider {
|
1631
|
+
/** default = ColliderLayer.Physics | ColliderLayer.Pointer */
|
1632
|
+
collisionMask?: number | undefined;
|
1633
|
+
box: PBMeshCollider_BoxMesh | undefined;
|
1634
|
+
sphere: PBMeshCollider_SphereMesh | undefined;
|
1635
|
+
cylinder: PBMeshCollider_CylinderMesh | undefined;
|
1636
|
+
plane: PBMeshCollider_PlaneMesh | undefined;
|
1637
|
+
}
|
1638
|
+
|
1639
|
+
declare interface PBMeshCollider_BoxMesh {
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
declare interface PBMeshCollider_CylinderMesh {
|
1643
|
+
/** default=1.0 */
|
1644
|
+
radiusTop?: number | undefined;
|
1645
|
+
/** default=1.0 */
|
1646
|
+
radiusBottom?: number | undefined;
|
1647
|
+
}
|
1648
|
+
|
1649
|
+
declare interface PBMeshCollider_PlaneMesh {
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
declare interface PBMeshCollider_SphereMesh {
|
1653
|
+
}
|
1654
|
+
|
1594
1655
|
declare interface PBMeshRenderer {
|
1595
1656
|
box: PBMeshRenderer_BoxMesh | undefined;
|
1596
1657
|
sphere: PBMeshRenderer_SphereMesh | undefined;
|