@dcl/protocol 1.0.0-2689188518.commit-e68d82c → 1.0.0-2705199166.commit-ad4bfef

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.
@@ -4,12 +4,13 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1070;
5
5
  import "common/Vector3.proto";
6
6
 
7
+ enum AvatarModifier {
8
+ HIDE_AVATARS = 0;
9
+ DISABLE_PASSPORTS = 1;
10
+ }
11
+
7
12
  message PBAvatarModifierArea {
8
13
  Vector3 area = 1;
9
14
  repeated string exclude_ids = 2;
10
- repeated Modifier modifiers = 3;
11
- enum Modifier {
12
- HIDE_AVATARS = 0;
13
- DISABLE_PASSPORTS = 1;
14
- }
15
+ repeated AvatarModifier modifiers = 3;
15
16
  }
@@ -4,11 +4,12 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1071;
5
5
  import "common/Vector3.proto";
6
6
 
7
+ enum CameraMode {
8
+ FIRST_PERSON = 0;
9
+ THIRD_PERSON = 1;
10
+ }
11
+
7
12
  message PBCameraModeArea {
8
13
  Vector3 area = 1;
9
14
  CameraMode mode = 2;
10
- enum CameraMode {
11
- FIRST_PERSON = 0;
12
- THIRD_PERSON = 1;
13
- }
14
15
  }
@@ -2,9 +2,10 @@
2
2
 
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1060;
5
+ import "common/ActionButton.proto";
5
6
 
6
7
  message PBOnPointerDown {
7
- int32 button = 1;
8
+ ActionButton button = 1;
8
9
  string hover_text = 2;
9
10
  float distance = 3;
10
11
  bool show_feedback = 4;
@@ -3,9 +3,10 @@
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1066;
5
5
  import "common/Vector3.proto";
6
+ import "common/ActionButton.proto";
6
7
 
7
8
  message PBOnPointerDownResult {
8
- int32 button = 2;
9
+ ActionButton button = 2;
9
10
  string meshName = 3;
10
11
  Vector3 origin = 4;
11
12
  Vector3 direction = 5;
@@ -2,9 +2,10 @@
2
2
 
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1061;
5
+ import "common/ActionButton.proto";
5
6
 
6
7
  message PBOnPointerUp {
7
- int32 button = 1;
8
+ ActionButton button = 1;
8
9
  string hover_text = 2;
9
10
  float distance = 3;
10
11
  bool show_feedback = 4;
@@ -3,9 +3,10 @@
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1065;
5
5
  import "common/Vector3.proto";
6
+ import "common/ActionButton.proto";
6
7
 
7
8
  message PBOnPointerUpResult {
8
- int32 button = 2;
9
+ ActionButton button = 2;
9
10
  string meshName = 3;
10
11
  Vector3 origin = 4;
11
12
  Vector3 direction = 5;
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ enum ActionButton {
4
+ POINTER = 0;
5
+ PRIMARY = 1;
6
+ SECONDARY = 2;
7
+ ANY = 3;
8
+ FORWARD = 4;
9
+ BACKWARD = 5;
10
+ RIGHT = 6;
11
+ LEFT = 7;
12
+ JUMP = 8;
13
+ WALK = 9;
14
+ ACTION_3 = 10;
15
+ ACTION_4 = 11;
16
+ ACTION_5 = 12;
17
+ ACTION_6 = 13;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-2689188518.commit-e68d82c",
3
+ "version": "1.0.0-2705199166.commit-ad4bfef",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,5 +17,5 @@
17
17
  "renderer-protocol",
18
18
  "ecs"
19
19
  ],
20
- "commit": "e68d82c07973dc2e797ee473eaa04023bf27966a"
20
+ "commit": "ad4bfef541a776b556a207d7ff98062a23ab7fc7"
21
21
  }