@dcl/protocol 1.0.0-9079009942.commit-57ffac6 → 1.0.0-9115457439.commit-926ebd1

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.
@@ -7,15 +7,30 @@ export const protobufPackage = "decentraland.sdk.components";
7
7
  export enum AvatarAnchorPointType {
8
8
  AAPT_POSITION = 0,
9
9
  AAPT_NAME_TAG = 1,
10
+ AAPT_HEAD = 4,
11
+ AAPT_NECK = 5,
12
+ AAPT_SPINE = 6,
13
+ AAPT_SPINE1 = 7,
14
+ AAPT_SPINE2 = 8,
15
+ AAPT_HIP = 9,
16
+ AAPT_LEFT_SHOULDER = 10,
17
+ AAPT_LEFT_ARM = 11,
18
+ AAPT_LEFT_FOREARM = 12,
10
19
  AAPT_LEFT_HAND = 2,
20
+ AAPT_LEFT_HAND_INDEX = 13,
21
+ AAPT_RIGHT_SHOULDER = 14,
22
+ AAPT_RIGHT_ARM = 15,
23
+ AAPT_RIGHT_FOREARM = 16,
11
24
  AAPT_RIGHT_HAND = 3,
12
- AAPT_HEAD = 4,
13
- AAPT_BACK = 5,
14
- AAPT_LEFT_FOOT = 6,
15
- AAPT_RIGHT_FOOT = 7,
16
- AAPT_LEFT_SHOULDER = 8,
17
- AAPT_RIGHT_SHOULDER = 9,
18
- AAPT_HIP = 10,
25
+ AAPT_RIGHT_HAND_INDEX = 17,
26
+ AAPT_LEFT_UP_LEG = 18,
27
+ AAPT_LEFT_LEG = 19,
28
+ AAPT_LEFT_FOOT = 20,
29
+ AAPT_LEFT_TOE_BASE = 21,
30
+ AAPT_RIGHT_UP_LEG = 22,
31
+ AAPT_RIGHT_LEG = 23,
32
+ AAPT_RIGHT_FOOT = 24,
33
+ AAPT_RIGHT_TOE_BASE = 25,
19
34
  UNRECOGNIZED = -1,
20
35
  }
21
36
 
@@ -27,33 +42,78 @@ export function avatarAnchorPointTypeFromJSON(object: any): AvatarAnchorPointTyp
27
42
  case 1:
28
43
  case "AAPT_NAME_TAG":
29
44
  return AvatarAnchorPointType.AAPT_NAME_TAG;
30
- case 2:
31
- case "AAPT_LEFT_HAND":
32
- return AvatarAnchorPointType.AAPT_LEFT_HAND;
33
- case 3:
34
- case "AAPT_RIGHT_HAND":
35
- return AvatarAnchorPointType.AAPT_RIGHT_HAND;
36
45
  case 4:
37
46
  case "AAPT_HEAD":
38
47
  return AvatarAnchorPointType.AAPT_HEAD;
39
48
  case 5:
40
- case "AAPT_BACK":
41
- return AvatarAnchorPointType.AAPT_BACK;
49
+ case "AAPT_NECK":
50
+ return AvatarAnchorPointType.AAPT_NECK;
42
51
  case 6:
43
- case "AAPT_LEFT_FOOT":
44
- return AvatarAnchorPointType.AAPT_LEFT_FOOT;
52
+ case "AAPT_SPINE":
53
+ return AvatarAnchorPointType.AAPT_SPINE;
45
54
  case 7:
46
- case "AAPT_RIGHT_FOOT":
47
- return AvatarAnchorPointType.AAPT_RIGHT_FOOT;
55
+ case "AAPT_SPINE1":
56
+ return AvatarAnchorPointType.AAPT_SPINE1;
48
57
  case 8:
58
+ case "AAPT_SPINE2":
59
+ return AvatarAnchorPointType.AAPT_SPINE2;
60
+ case 9:
61
+ case "AAPT_HIP":
62
+ return AvatarAnchorPointType.AAPT_HIP;
63
+ case 10:
49
64
  case "AAPT_LEFT_SHOULDER":
50
65
  return AvatarAnchorPointType.AAPT_LEFT_SHOULDER;
51
- case 9:
66
+ case 11:
67
+ case "AAPT_LEFT_ARM":
68
+ return AvatarAnchorPointType.AAPT_LEFT_ARM;
69
+ case 12:
70
+ case "AAPT_LEFT_FOREARM":
71
+ return AvatarAnchorPointType.AAPT_LEFT_FOREARM;
72
+ case 2:
73
+ case "AAPT_LEFT_HAND":
74
+ return AvatarAnchorPointType.AAPT_LEFT_HAND;
75
+ case 13:
76
+ case "AAPT_LEFT_HAND_INDEX":
77
+ return AvatarAnchorPointType.AAPT_LEFT_HAND_INDEX;
78
+ case 14:
52
79
  case "AAPT_RIGHT_SHOULDER":
53
80
  return AvatarAnchorPointType.AAPT_RIGHT_SHOULDER;
54
- case 10:
55
- case "AAPT_HIP":
56
- return AvatarAnchorPointType.AAPT_HIP;
81
+ case 15:
82
+ case "AAPT_RIGHT_ARM":
83
+ return AvatarAnchorPointType.AAPT_RIGHT_ARM;
84
+ case 16:
85
+ case "AAPT_RIGHT_FOREARM":
86
+ return AvatarAnchorPointType.AAPT_RIGHT_FOREARM;
87
+ case 3:
88
+ case "AAPT_RIGHT_HAND":
89
+ return AvatarAnchorPointType.AAPT_RIGHT_HAND;
90
+ case 17:
91
+ case "AAPT_RIGHT_HAND_INDEX":
92
+ return AvatarAnchorPointType.AAPT_RIGHT_HAND_INDEX;
93
+ case 18:
94
+ case "AAPT_LEFT_UP_LEG":
95
+ return AvatarAnchorPointType.AAPT_LEFT_UP_LEG;
96
+ case 19:
97
+ case "AAPT_LEFT_LEG":
98
+ return AvatarAnchorPointType.AAPT_LEFT_LEG;
99
+ case 20:
100
+ case "AAPT_LEFT_FOOT":
101
+ return AvatarAnchorPointType.AAPT_LEFT_FOOT;
102
+ case 21:
103
+ case "AAPT_LEFT_TOE_BASE":
104
+ return AvatarAnchorPointType.AAPT_LEFT_TOE_BASE;
105
+ case 22:
106
+ case "AAPT_RIGHT_UP_LEG":
107
+ return AvatarAnchorPointType.AAPT_RIGHT_UP_LEG;
108
+ case 23:
109
+ case "AAPT_RIGHT_LEG":
110
+ return AvatarAnchorPointType.AAPT_RIGHT_LEG;
111
+ case 24:
112
+ case "AAPT_RIGHT_FOOT":
113
+ return AvatarAnchorPointType.AAPT_RIGHT_FOOT;
114
+ case 25:
115
+ case "AAPT_RIGHT_TOE_BASE":
116
+ return AvatarAnchorPointType.AAPT_RIGHT_TOE_BASE;
57
117
  case -1:
58
118
  case "UNRECOGNIZED":
59
119
  default:
@@ -67,24 +127,54 @@ export function avatarAnchorPointTypeToJSON(object: AvatarAnchorPointType): stri
67
127
  return "AAPT_POSITION";
68
128
  case AvatarAnchorPointType.AAPT_NAME_TAG:
69
129
  return "AAPT_NAME_TAG";
130
+ case AvatarAnchorPointType.AAPT_HEAD:
131
+ return "AAPT_HEAD";
132
+ case AvatarAnchorPointType.AAPT_NECK:
133
+ return "AAPT_NECK";
134
+ case AvatarAnchorPointType.AAPT_SPINE:
135
+ return "AAPT_SPINE";
136
+ case AvatarAnchorPointType.AAPT_SPINE1:
137
+ return "AAPT_SPINE1";
138
+ case AvatarAnchorPointType.AAPT_SPINE2:
139
+ return "AAPT_SPINE2";
140
+ case AvatarAnchorPointType.AAPT_HIP:
141
+ return "AAPT_HIP";
142
+ case AvatarAnchorPointType.AAPT_LEFT_SHOULDER:
143
+ return "AAPT_LEFT_SHOULDER";
144
+ case AvatarAnchorPointType.AAPT_LEFT_ARM:
145
+ return "AAPT_LEFT_ARM";
146
+ case AvatarAnchorPointType.AAPT_LEFT_FOREARM:
147
+ return "AAPT_LEFT_FOREARM";
70
148
  case AvatarAnchorPointType.AAPT_LEFT_HAND:
71
149
  return "AAPT_LEFT_HAND";
150
+ case AvatarAnchorPointType.AAPT_LEFT_HAND_INDEX:
151
+ return "AAPT_LEFT_HAND_INDEX";
152
+ case AvatarAnchorPointType.AAPT_RIGHT_SHOULDER:
153
+ return "AAPT_RIGHT_SHOULDER";
154
+ case AvatarAnchorPointType.AAPT_RIGHT_ARM:
155
+ return "AAPT_RIGHT_ARM";
156
+ case AvatarAnchorPointType.AAPT_RIGHT_FOREARM:
157
+ return "AAPT_RIGHT_FOREARM";
72
158
  case AvatarAnchorPointType.AAPT_RIGHT_HAND:
73
159
  return "AAPT_RIGHT_HAND";
74
- case AvatarAnchorPointType.AAPT_HEAD:
75
- return "AAPT_HEAD";
76
- case AvatarAnchorPointType.AAPT_BACK:
77
- return "AAPT_BACK";
160
+ case AvatarAnchorPointType.AAPT_RIGHT_HAND_INDEX:
161
+ return "AAPT_RIGHT_HAND_INDEX";
162
+ case AvatarAnchorPointType.AAPT_LEFT_UP_LEG:
163
+ return "AAPT_LEFT_UP_LEG";
164
+ case AvatarAnchorPointType.AAPT_LEFT_LEG:
165
+ return "AAPT_LEFT_LEG";
78
166
  case AvatarAnchorPointType.AAPT_LEFT_FOOT:
79
167
  return "AAPT_LEFT_FOOT";
168
+ case AvatarAnchorPointType.AAPT_LEFT_TOE_BASE:
169
+ return "AAPT_LEFT_TOE_BASE";
170
+ case AvatarAnchorPointType.AAPT_RIGHT_UP_LEG:
171
+ return "AAPT_RIGHT_UP_LEG";
172
+ case AvatarAnchorPointType.AAPT_RIGHT_LEG:
173
+ return "AAPT_RIGHT_LEG";
80
174
  case AvatarAnchorPointType.AAPT_RIGHT_FOOT:
81
175
  return "AAPT_RIGHT_FOOT";
82
- case AvatarAnchorPointType.AAPT_LEFT_SHOULDER:
83
- return "AAPT_LEFT_SHOULDER";
84
- case AvatarAnchorPointType.AAPT_RIGHT_SHOULDER:
85
- return "AAPT_RIGHT_SHOULDER";
86
- case AvatarAnchorPointType.AAPT_HIP:
87
- return "AAPT_HIP";
176
+ case AvatarAnchorPointType.AAPT_RIGHT_TOE_BASE:
177
+ return "AAPT_RIGHT_TOE_BASE";
88
178
  case AvatarAnchorPointType.UNRECOGNIZED:
89
179
  default:
90
180
  return "UNRECOGNIZED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-9079009942.commit-57ffac6",
3
+ "version": "1.0.0-9115457439.commit-926ebd1",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "57ffac600528a68f09e33d644d450bc270db33d9"
32
+ "commit": "926ebd1c80b68bf1e56242f4b76ef86856ea1bd5"
33
33
  }
@@ -1,6 +1,8 @@
1
1
  syntax = "proto3";
2
2
  package decentraland.kernel.apis;
3
3
 
4
+ import "decentraland/common/vectors.proto";
5
+
4
6
  service TestingService {
5
7
  // sends a test result to the test runner
6
8
  rpc LogTestResult(TestResult) returns (TestResultResponse) {}
@@ -8,9 +10,54 @@ service TestingService {
8
10
  rpc Plan(TestPlan) returns (TestPlanResponse) {}
9
11
  // sets the camera position and rotation in the engine
10
12
  rpc SetCameraTransform (SetCameraTransformTestCommand) returns (SetCameraTransformTestCommandResponse) {}
13
+ // @internal
14
+ // take a screenshot and compare it with a stored one
15
+ // it hides the explorer hud and ui, primary player and players of avatar scenes
16
+ rpc TakeAndCompareScreenshot (TakeAndCompareScreenshotRequest) returns (TakeAndCompareScreenshotResponse) {}
17
+ }
18
+
19
+ // @internal
20
+ message TakeAndCompareScreenshotRequest {
21
+ // the source path in the scene where the screenshot is stored,
22
+ // the snapshot taken is compared with the stored one
23
+ string src_stored_snapshot = 1;
24
+ // the camera position where is set before and while taking the screenshot, relative to base scene
25
+ decentraland.common.Vector3 camera_position = 2;
26
+ // the camera position where is target to before and while taking the screenshot, relative to base scene
27
+ decentraland.common.Vector3 camera_target = 3;
28
+ // width x height screenshot size
29
+ decentraland.common.Vector2 screenshot_size = 4;
30
+ // comparison method choice and parameters values
31
+ oneof comparison_method {
32
+ ComparisonMethodGreyPixelDiff grey_pixel_diff = 5;
33
+ }
34
+
35
+ message ComparisonMethodGreyPixelDiff {}
36
+
37
+ enum SnapshotMode {
38
+ // only visible 3d scene and ui scene
39
+ SM_3D_AND_UI = 0;
40
+ // only visible 3d scene
41
+ SM_3D_ONLY = 1;
42
+ // only visible ui scene
43
+ SM_UI_ONLY = 2;
44
+ };
45
+ SnapshotMode snapshot_mode = 6;
11
46
  }
12
47
 
13
48
 
49
+ // @internal
50
+ message TakeAndCompareScreenshotResponse {
51
+ bool stored_snapshot_found = 1;
52
+ oneof comparison_method_result {
53
+ ComparisonMethodGreyPixelDiffResult grey_pixel_diff = 2;
54
+ }
55
+
56
+ message ComparisonMethodGreyPixelDiffResult {
57
+ float similarity = 1;
58
+ }
59
+ }
60
+
14
61
  message TestResult {
15
62
  string name = 1;
16
63
  bool ok = 2;
@@ -21,15 +21,30 @@ message PBAvatarAttach {
21
21
 
22
22
  // AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity.
23
23
  enum AvatarAnchorPointType {
24
- AAPT_POSITION = 0;
24
+ AAPT_POSITION = 0;
25
25
  AAPT_NAME_TAG = 1;
26
+ AAPT_HEAD = 4;
27
+ AAPT_NECK = 5;
28
+ AAPT_SPINE = 6;
29
+ AAPT_SPINE1 = 7;
30
+ AAPT_SPINE2 = 8;
31
+ AAPT_HIP = 9;
32
+ AAPT_LEFT_SHOULDER = 10;
33
+ AAPT_LEFT_ARM = 11;
34
+ AAPT_LEFT_FOREARM = 12;
26
35
  AAPT_LEFT_HAND = 2;
36
+ AAPT_LEFT_HAND_INDEX = 13;
37
+ AAPT_RIGHT_SHOULDER = 14;
38
+ AAPT_RIGHT_ARM = 15;
39
+ AAPT_RIGHT_FOREARM = 16;
27
40
  AAPT_RIGHT_HAND = 3;
28
- AAPT_HEAD = 4;
29
- AAPT_BACK = 5;
30
- AAPT_LEFT_FOOT = 6;
31
- AAPT_RIGHT_FOOT = 7;
32
- AAPT_LEFT_SHOULDER = 8;
33
- AAPT_RIGHT_SHOULDER = 9;
34
- AAPT_HIP = 10;
41
+ AAPT_RIGHT_HAND_INDEX = 17;
42
+ AAPT_LEFT_UP_LEG = 18;
43
+ AAPT_LEFT_LEG = 19;
44
+ AAPT_LEFT_FOOT = 20;
45
+ AAPT_LEFT_TOE_BASE = 21;
46
+ AAPT_RIGHT_UP_LEG = 22;
47
+ AAPT_RIGHT_LEG = 23;
48
+ AAPT_RIGHT_FOOT = 24;
49
+ AAPT_RIGHT_TOE_BASE = 25;
35
50
  }