@dcl/protocol 1.0.0-2966376980.commit-dc74106 → 1.0.0-3038005755.commit-fdaecb0

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,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
+ }
@@ -79,8 +79,9 @@ enum YGEdge {
79
79
  }
80
80
 
81
81
  message PBUiTransform {
82
- int64 parent = 79;
83
-
82
+ int32 parent = 79;
83
+ int32 right_of = 80;
84
+
84
85
  YGPositionType position_type = 1;
85
86
 
86
87
  YGAlign align_content = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-2966376980.commit-dc74106",
3
+ "version": "1.0.0-3038005755.commit-fdaecb0",
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": "dc74106b0230645466ca078d5c48912297633697"
21
+ "commit": "fdaecb0751fe17636e0918ae7e1245ff790bc061"
22
22
  }