@dcl/protocol 1.0.0-2689188518.commit-e68d82c → 1.0.0-2792940147.commit-564d269

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.
@@ -3,7 +3,14 @@ syntax = "proto3";
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1073;
5
5
 
6
+ enum AvatarAnchorPoint {
7
+ POSITION = 0;
8
+ NAME_TAG = 1;
9
+ LEFT_HAND = 2;
10
+ RIGHT_HAND = 3;
11
+ }
12
+
6
13
  message PBAvatarAttach {
7
14
  string avatar_id = 1;
8
- int32 anchor_point_id = 2;
9
- }
15
+ AvatarAnchorPoint anchor_point_id = 2;
16
+ }
@@ -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
  }
@@ -0,0 +1,9 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1072;
5
+ import "common/CameraModeValue.proto";
6
+
7
+ message PBCameraMode {
8
+ CameraModeValue mode = 1;
9
+ }
@@ -3,12 +3,9 @@ syntax = "proto3";
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1071;
5
5
  import "common/Vector3.proto";
6
+ import "common/CameraModeValue.proto";
6
7
 
7
8
  message PBCameraModeArea {
8
9
  Vector3 area = 1;
9
- CameraMode mode = 2;
10
- enum CameraMode {
11
- FIRST_PERSON = 0;
12
- THIRD_PERSON = 1;
13
- }
14
- }
10
+ CameraModeValue mode = 2;
11
+ }
@@ -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,8 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1074;
5
+
6
+ message PBPointerLock {
7
+ bool isPointerLocked = 1;
8
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ syntax = "proto3";
2
+
3
+ enum CameraModeValue {
4
+ FIRST_PERSON = 0;
5
+ THIRD_PERSON = 1;
6
+ }
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-2792940147.commit-564d269",
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": "564d269311c46f736ddc1c606daf79341f5b4bf5"
21
21
  }