@dcl/protocol 1.0.0-2959077731.commit-a10e494 → 1.0.0-3015628754.commit-7713e2e

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.
@@ -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
- repeated string wearables = 7;
15
- optional string expression_trigger_id = 8;
16
- optional int64 expression_trigger_timestamp = 9;
17
- optional string sticker_trigger_id = 10;
18
- optional int64 sticker_trigger_timestamp = 11;
19
- optional bool talking = 12;
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
+ }
@@ -0,0 +1,28 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1062;
5
+ import "common/ActionButton.proto";
6
+
7
+ enum PointerEventType {
8
+ UP = 0;
9
+ DOWN = 1;
10
+ HOVER_ENTER = 2;
11
+ HOVER_LEAVE = 3;
12
+ }
13
+
14
+ message PBPointerEvents {
15
+ message Info {
16
+ optional ActionButton button = 1; // default=ActionButton.ANY
17
+ optional string hover_text = 2; // default='Interact'
18
+ optional float max_distance = 3; // default=10
19
+ optional bool show_feedback = 4; // default=true
20
+ }
21
+
22
+ message Entry {
23
+ PointerEventType eventType = 1;
24
+ Info eventInfo = 2;
25
+ }
26
+
27
+ repeated Entry pointerEvents = 1;
28
+ }
@@ -0,0 +1,22 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ import "RaycastResult.proto";
5
+ import "PointerEvents.proto";
6
+ option (ecs_component_id) = 1063;
7
+ import "common/ActionButton.proto";
8
+
9
+ // the renderer will set this component to the root entity once per frame with all the events
10
+ message PBPointerEventsResult {
11
+ // a list of the last N pointer commands (from the engine)
12
+ repeated PointerCommand commands = 1;
13
+
14
+ // this message represents a pointer event, used both for UP and DOWN actions
15
+ message PointerCommand {
16
+ ActionButton button = 1; // identifier of the input
17
+ RaycastHit hit = 2;
18
+ PointerEventType state = 4;
19
+ int32 timestamp = 5; // could be a Lamport timestamp
20
+ optional float analog = 6; // if the input is analog then we store it here
21
+ }
22
+ }
@@ -0,0 +1,23 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1064;
5
+ import "common/Vector3.proto";
6
+
7
+ message PBRaycastResult {
8
+ int32 timestamp = 1;
9
+ Vector3 origin = 2;
10
+ Vector3 direction = 3;
11
+ repeated RaycastHit hits = 4;
12
+ }
13
+
14
+ // Position will be relative to the scene
15
+ message RaycastHit {
16
+ Vector3 position = 1;
17
+ Vector3 origin = 2;
18
+ Vector3 direction = 3;
19
+ Vector3 normal_hit = 4;
20
+ float length = 5;
21
+ optional string mesh_name = 6;
22
+ optional int64 entity_id = 7;
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-2959077731.commit-a10e494",
3
+ "version": "1.0.0-3015628754.commit-7713e2e",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,5 +18,5 @@
18
18
  "ecs",
19
19
  "bff"
20
20
  ],
21
- "commit": "a10e494213acb02f71f3e6215d7163a71d999588"
21
+ "commit": "7713e2e945f66805e16aeac2955f6878b52ddfee"
22
22
  }