@dcl/protocol 1.0.0-33676972450.commit-882d4ee → 1.0.0-33861349213.commit-76445a6

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.
Files changed (142) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +4 -125
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +6 -408
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  8. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  9. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +2 -14
  12. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
  14. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
  15. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
  17. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  18. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +0 -2
  20. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +2 -14
  21. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
  23. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  24. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  26. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  27. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  29. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +16 -11
  38. package/out-js/decentraland/sdk/components/pointer_events.gen.js +14 -1
  39. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  41. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  42. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -4
  44. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -27
  45. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  47. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  48. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  49. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  50. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +6 -445
  51. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  52. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -16
  53. package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
  54. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
  55. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +1 -16
  56. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  57. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  58. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  59. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  60. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  61. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +33 -12
  62. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  63. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -37
  64. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  65. package/package.json +2 -2
  66. package/proto/decentraland/common/texture.proto +1 -8
  67. package/proto/decentraland/kernel/apis/restricted_actions.proto +1 -45
  68. package/proto/decentraland/pulse/pulse_client.proto +27 -8
  69. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  70. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -1
  71. package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
  72. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  73. package/proto/decentraland/sdk/components/camera_mode_area.proto +0 -1
  74. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  75. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  76. package/proto/decentraland/sdk/components/material.proto +1 -13
  77. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  78. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  79. package/proto/decentraland/sdk/components/pointer_events.proto +15 -11
  80. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  81. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  82. package/proto/decentraland/sdk/components/ui_input.proto +0 -2
  83. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  84. package/public/sdk-components.proto +1 -10
  85. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -51
  86. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -177
  87. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  88. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -71
  89. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -303
  90. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  91. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -79
  92. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -357
  93. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  94. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +0 -46
  95. package/out-js/decentraland/sdk/components/camera_layer.gen.js +0 -162
  96. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +0 -1
  97. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +0 -30
  98. package/out-js/decentraland/sdk/components/camera_layers.gen.js +0 -80
  99. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +0 -1
  100. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +0 -50
  101. package/out-js/decentraland/sdk/components/global_light.gen.js +0 -103
  102. package/out-js/decentraland/sdk/components/global_light.gen.js.map +0 -1
  103. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  104. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  105. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  106. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  107. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  108. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  109. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  110. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  111. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  112. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +0 -86
  113. package/out-js/decentraland/sdk/components/texture_camera.gen.js +0 -296
  114. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +0 -1
  115. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +0 -35
  116. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +0 -98
  117. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +0 -1
  118. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +0 -31
  119. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +0 -71
  120. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +0 -1
  121. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -237
  122. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -372
  123. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -432
  124. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +0 -202
  125. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +0 -92
  126. package/out-ts/decentraland/sdk/components/global_light.gen.ts +0 -138
  127. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  128. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  129. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  130. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +0 -362
  131. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +0 -115
  132. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +0 -83
  133. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -62
  134. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -36
  135. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  136. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  137. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  138. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  139. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  140. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  141. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  142. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -47,41 +47,6 @@ export function raycastQueryTypeToJSON(object: RaycastQueryType): string {
47
47
  }
48
48
  }
49
49
 
50
- export enum RaycastShape {
51
- /** RS_RAY - cast a point, get collisions along a ray */
52
- RS_RAY = 0,
53
- /** RS_AVATAR - cast the avatar collider shape, get collisions from sweeping the shape */
54
- RS_AVATAR = 1,
55
- UNRECOGNIZED = -1,
56
- }
57
-
58
- export function raycastShapeFromJSON(object: any): RaycastShape {
59
- switch (object) {
60
- case 0:
61
- case "RS_RAY":
62
- return RaycastShape.RS_RAY;
63
- case 1:
64
- case "RS_AVATAR":
65
- return RaycastShape.RS_AVATAR;
66
- case -1:
67
- case "UNRECOGNIZED":
68
- default:
69
- return RaycastShape.UNRECOGNIZED;
70
- }
71
- }
72
-
73
- export function raycastShapeToJSON(object: RaycastShape): string {
74
- switch (object) {
75
- case RaycastShape.RS_RAY:
76
- return "RS_RAY";
77
- case RaycastShape.RS_AVATAR:
78
- return "RS_AVATAR";
79
- case RaycastShape.UNRECOGNIZED:
80
- default:
81
- return "UNRECOGNIZED";
82
- }
83
- }
84
-
85
50
  /**
86
51
  * The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
87
52
  *
@@ -116,15 +81,7 @@ export interface PBRaycast {
116
81
  | boolean
117
82
  | undefined;
118
83
  /** Collision mask, by default CL_POINTER | CL_PHYSICS */
119
- collisionMask?:
120
- | number
121
- | undefined;
122
- /** shape to cast, default ray */
123
- shape?:
124
- | RaycastShape
125
- | undefined;
126
- /** include hits with entities from other scenes */
127
- includeWorld?: boolean | undefined;
84
+ collisionMask?: number | undefined;
128
85
  }
129
86
 
130
87
  function createBasePBRaycast(): PBRaycast {
@@ -136,8 +93,6 @@ function createBasePBRaycast(): PBRaycast {
136
93
  queryType: 0,
137
94
  continuous: undefined,
138
95
  collisionMask: undefined,
139
- shape: undefined,
140
- includeWorld: undefined,
141
96
  };
142
97
  }
143
98
 
@@ -175,12 +130,6 @@ export namespace PBRaycast {
175
130
  if (message.collisionMask !== undefined) {
176
131
  writer.uint32(72).uint32(message.collisionMask);
177
132
  }
178
- if (message.shape !== undefined) {
179
- writer.uint32(88).int32(message.shape);
180
- }
181
- if (message.includeWorld !== undefined) {
182
- writer.uint32(96).bool(message.includeWorld);
183
- }
184
133
  return writer;
185
134
  }
186
135
 
@@ -261,20 +210,6 @@ export namespace PBRaycast {
261
210
 
262
211
  message.collisionMask = reader.uint32();
263
212
  continue;
264
- case 11:
265
- if (tag !== 88) {
266
- break;
267
- }
268
-
269
- message.shape = reader.int32() as any;
270
- continue;
271
- case 12:
272
- if (tag !== 96) {
273
- break;
274
- }
275
-
276
- message.includeWorld = reader.bool();
277
- continue;
278
213
  }
279
214
  if ((tag & 7) === 4 || tag === 0) {
280
215
  break;
@@ -301,8 +236,6 @@ export namespace PBRaycast {
301
236
  queryType: isSet(object.queryType) ? raycastQueryTypeFromJSON(object.queryType) : 0,
302
237
  continuous: isSet(object.continuous) ? Boolean(object.continuous) : undefined,
303
238
  collisionMask: isSet(object.collisionMask) ? Number(object.collisionMask) : undefined,
304
- shape: isSet(object.shape) ? raycastShapeFromJSON(object.shape) : undefined,
305
- includeWorld: isSet(object.includeWorld) ? Boolean(object.includeWorld) : undefined,
306
239
  };
307
240
  }
308
241
 
@@ -328,9 +261,6 @@ export namespace PBRaycast {
328
261
  message.queryType !== undefined && (obj.queryType = raycastQueryTypeToJSON(message.queryType));
329
262
  message.continuous !== undefined && (obj.continuous = message.continuous);
330
263
  message.collisionMask !== undefined && (obj.collisionMask = Math.round(message.collisionMask));
331
- message.shape !== undefined &&
332
- (obj.shape = message.shape !== undefined ? raycastShapeToJSON(message.shape) : undefined);
333
- message.includeWorld !== undefined && (obj.includeWorld = message.includeWorld);
334
264
  return obj;
335
265
  }
336
266
 
@@ -382,8 +312,6 @@ export namespace PBRaycast {
382
312
  message.queryType = object.queryType ?? 0;
383
313
  message.continuous = object.continuous ?? undefined;
384
314
  message.collisionMask = object.collisionMask ?? undefined;
385
- message.shape = object.shape ?? undefined;
386
- message.includeWorld = object.includeWorld ?? undefined;
387
315
  return message;
388
316
  }
389
317
  }
@@ -31,15 +31,7 @@ export interface PBUiInput {
31
31
  | undefined;
32
32
  /** default=10 */
33
33
  fontSize?: number | undefined;
34
- value?:
35
- | string
36
- | undefined;
37
- /** default=false; when true, the input accepts newlines and behaves as a textarea */
38
- multiLine?:
39
- | boolean
40
- | undefined;
41
- /** default=true; when false, the input value is preserved after pressing Enter */
42
- clearOnSubmit?: boolean | undefined;
34
+ value?: string | undefined;
43
35
  }
44
36
 
45
37
  function createBasePBUiInput(): PBUiInput {
@@ -52,8 +44,6 @@ function createBasePBUiInput(): PBUiInput {
52
44
  font: undefined,
53
45
  fontSize: undefined,
54
46
  value: undefined,
55
- multiLine: undefined,
56
- clearOnSubmit: undefined,
57
47
  };
58
48
  }
59
49
 
@@ -83,12 +73,6 @@ export namespace PBUiInput {
83
73
  if (message.value !== undefined) {
84
74
  writer.uint32(106).string(message.value);
85
75
  }
86
- if (message.multiLine !== undefined) {
87
- writer.uint32(112).bool(message.multiLine);
88
- }
89
- if (message.clearOnSubmit !== undefined) {
90
- writer.uint32(120).bool(message.clearOnSubmit);
91
- }
92
76
  return writer;
93
77
  }
94
78
 
@@ -155,20 +139,6 @@ export namespace PBUiInput {
155
139
 
156
140
  message.value = reader.string();
157
141
  continue;
158
- case 14:
159
- if (tag !== 112) {
160
- break;
161
- }
162
-
163
- message.multiLine = reader.bool();
164
- continue;
165
- case 15:
166
- if (tag !== 120) {
167
- break;
168
- }
169
-
170
- message.clearOnSubmit = reader.bool();
171
- continue;
172
142
  }
173
143
  if ((tag & 7) === 4 || tag === 0) {
174
144
  break;
@@ -188,8 +158,6 @@ export namespace PBUiInput {
188
158
  font: isSet(object.font) ? fontFromJSON(object.font) : undefined,
189
159
  fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
190
160
  value: isSet(object.value) ? String(object.value) : undefined,
191
- multiLine: isSet(object.multiLine) ? Boolean(object.multiLine) : undefined,
192
- clearOnSubmit: isSet(object.clearOnSubmit) ? Boolean(object.clearOnSubmit) : undefined,
193
161
  };
194
162
  }
195
163
 
@@ -205,8 +173,6 @@ export namespace PBUiInput {
205
173
  message.font !== undefined && (obj.font = message.font !== undefined ? fontToJSON(message.font) : undefined);
206
174
  message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
207
175
  message.value !== undefined && (obj.value = message.value);
208
- message.multiLine !== undefined && (obj.multiLine = message.multiLine);
209
- message.clearOnSubmit !== undefined && (obj.clearOnSubmit = message.clearOnSubmit);
210
176
  return obj;
211
177
  }
212
178
 
@@ -228,8 +194,6 @@ export namespace PBUiInput {
228
194
  message.font = object.font ?? undefined;
229
195
  message.fontSize = object.fontSize ?? undefined;
230
196
  message.value = object.value ?? undefined;
231
- message.multiLine = object.multiLine ?? undefined;
232
- message.clearOnSubmit = object.clearOnSubmit ?? undefined;
233
197
  return message;
234
198
  }
235
199
  }
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Color4 } from "../../common/colors.gen";
4
- import { Vector2 } from "../../common/vectors.gen";
5
4
 
6
5
  export const protobufPackage = "decentraland.sdk.components";
7
6
 
@@ -473,55 +472,6 @@ export function pointerFilterModeToJSON(object: PointerFilterMode): string {
473
472
  }
474
473
  }
475
474
 
476
- export enum ShowScrollBar {
477
- SSB_BOTH = 0,
478
- SSB_ONLY_VERTICAL = 1,
479
- SSB_ONLY_HORIZONTAL = 2,
480
- SSB_HIDDEN = 3,
481
- UNRECOGNIZED = -1,
482
- }
483
-
484
- export function showScrollBarFromJSON(object: any): ShowScrollBar {
485
- switch (object) {
486
- case 0:
487
- case "SSB_BOTH":
488
- return ShowScrollBar.SSB_BOTH;
489
- case 1:
490
- case "SSB_ONLY_VERTICAL":
491
- return ShowScrollBar.SSB_ONLY_VERTICAL;
492
- case 2:
493
- case "SSB_ONLY_HORIZONTAL":
494
- return ShowScrollBar.SSB_ONLY_HORIZONTAL;
495
- case 3:
496
- case "SSB_HIDDEN":
497
- return ShowScrollBar.SSB_HIDDEN;
498
- case -1:
499
- case "UNRECOGNIZED":
500
- default:
501
- return ShowScrollBar.UNRECOGNIZED;
502
- }
503
- }
504
-
505
- export function showScrollBarToJSON(object: ShowScrollBar): string {
506
- switch (object) {
507
- case ShowScrollBar.SSB_BOTH:
508
- return "SSB_BOTH";
509
- case ShowScrollBar.SSB_ONLY_VERTICAL:
510
- return "SSB_ONLY_VERTICAL";
511
- case ShowScrollBar.SSB_ONLY_HORIZONTAL:
512
- return "SSB_ONLY_HORIZONTAL";
513
- case ShowScrollBar.SSB_HIDDEN:
514
- return "SSB_HIDDEN";
515
- case ShowScrollBar.UNRECOGNIZED:
516
- default:
517
- return "UNRECOGNIZED";
518
- }
519
- }
520
-
521
- export interface ScrollPositionValue {
522
- value?: { $case: "position"; position: Vector2 } | { $case: "reference"; reference: string } | undefined;
523
- }
524
-
525
475
  export interface PBUiTransform {
526
476
  parent: number;
527
477
  rightOf: number;
@@ -666,105 +616,10 @@ export interface PBUiTransform {
666
616
  opacity?:
667
617
  | number
668
618
  | undefined;
669
- /** reference for scroll_position. default empty */
670
- elementId?:
671
- | string
672
- | undefined;
673
- /** default position=(0,0) */
674
- scrollPosition?:
675
- | ScrollPositionValue
676
- | undefined;
677
- /** default ShowScrollBar.SSB_BOTH */
678
- scrollVisible?:
679
- | ShowScrollBar
680
- | undefined;
681
619
  /** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
682
620
  zIndex?: number | undefined;
683
621
  }
684
622
 
685
- function createBaseScrollPositionValue(): ScrollPositionValue {
686
- return { value: undefined };
687
- }
688
-
689
- export namespace ScrollPositionValue {
690
- export function encode(message: ScrollPositionValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
691
- switch (message.value?.$case) {
692
- case "position":
693
- Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
694
- break;
695
- case "reference":
696
- writer.uint32(18).string(message.value.reference);
697
- break;
698
- }
699
- return writer;
700
- }
701
-
702
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue {
703
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
704
- let end = length === undefined ? reader.len : reader.pos + length;
705
- const message = createBaseScrollPositionValue();
706
- while (reader.pos < end) {
707
- const tag = reader.uint32();
708
- switch (tag >>> 3) {
709
- case 1:
710
- if (tag !== 10) {
711
- break;
712
- }
713
-
714
- message.value = { $case: "position", position: Vector2.decode(reader, reader.uint32()) };
715
- continue;
716
- case 2:
717
- if (tag !== 18) {
718
- break;
719
- }
720
-
721
- message.value = { $case: "reference", reference: reader.string() };
722
- continue;
723
- }
724
- if ((tag & 7) === 4 || tag === 0) {
725
- break;
726
- }
727
- reader.skipType(tag & 7);
728
- }
729
- return message;
730
- }
731
-
732
- export function fromJSON(object: any): ScrollPositionValue {
733
- return {
734
- value: isSet(object.position)
735
- ? { $case: "position", position: Vector2.fromJSON(object.position) }
736
- : isSet(object.reference)
737
- ? { $case: "reference", reference: String(object.reference) }
738
- : undefined,
739
- };
740
- }
741
-
742
- export function toJSON(message: ScrollPositionValue): unknown {
743
- const obj: any = {};
744
- message.value?.$case === "position" &&
745
- (obj.position = message.value?.position ? Vector2.toJSON(message.value?.position) : undefined);
746
- message.value?.$case === "reference" && (obj.reference = message.value?.reference);
747
- return obj;
748
- }
749
-
750
- export function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue {
751
- return ScrollPositionValue.fromPartial(base ?? {});
752
- }
753
-
754
- export function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue {
755
- const message = createBaseScrollPositionValue();
756
- if (object.value?.$case === "position" && object.value?.position !== undefined && object.value?.position !== null) {
757
- message.value = { $case: "position", position: Vector2.fromPartial(object.value.position) };
758
- }
759
- if (
760
- object.value?.$case === "reference" && object.value?.reference !== undefined && object.value?.reference !== null
761
- ) {
762
- message.value = { $case: "reference", reference: object.value.reference };
763
- }
764
- return message;
765
- }
766
- }
767
-
768
623
  function createBasePBUiTransform(): PBUiTransform {
769
624
  return {
770
625
  parent: 0,
@@ -840,9 +695,6 @@ function createBasePBUiTransform(): PBUiTransform {
840
695
  borderLeftColor: undefined,
841
696
  borderRightColor: undefined,
842
697
  opacity: undefined,
843
- elementId: undefined,
844
- scrollPosition: undefined,
845
- scrollVisible: undefined,
846
698
  zIndex: undefined,
847
699
  };
848
700
  }
@@ -1068,15 +920,6 @@ export namespace PBUiTransform {
1068
920
  if (message.opacity !== undefined) {
1069
921
  writer.uint32(589).float(message.opacity);
1070
922
  }
1071
- if (message.elementId !== undefined) {
1072
- writer.uint32(594).string(message.elementId);
1073
- }
1074
- if (message.scrollPosition !== undefined) {
1075
- ScrollPositionValue.encode(message.scrollPosition, writer.uint32(602).fork()).ldelim();
1076
- }
1077
- if (message.scrollVisible !== undefined) {
1078
- writer.uint32(608).int32(message.scrollVisible);
1079
- }
1080
923
  if (message.zIndex !== undefined) {
1081
924
  writer.uint32(616).int32(message.zIndex);
1082
925
  }
@@ -1601,27 +1444,6 @@ export namespace PBUiTransform {
1601
1444
 
1602
1445
  message.opacity = reader.float();
1603
1446
  continue;
1604
- case 74:
1605
- if (tag !== 594) {
1606
- break;
1607
- }
1608
-
1609
- message.elementId = reader.string();
1610
- continue;
1611
- case 75:
1612
- if (tag !== 602) {
1613
- break;
1614
- }
1615
-
1616
- message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
1617
- continue;
1618
- case 76:
1619
- if (tag !== 608) {
1620
- break;
1621
- }
1622
-
1623
- message.scrollVisible = reader.int32() as any;
1624
- continue;
1625
1447
  case 77:
1626
1448
  if (tag !== 616) {
1627
1449
  break;
@@ -1727,9 +1549,6 @@ export namespace PBUiTransform {
1727
1549
  borderLeftColor: isSet(object.borderLeftColor) ? Color4.fromJSON(object.borderLeftColor) : undefined,
1728
1550
  borderRightColor: isSet(object.borderRightColor) ? Color4.fromJSON(object.borderRightColor) : undefined,
1729
1551
  opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
1730
- elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
1731
- scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
1732
- scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
1733
1552
  zIndex: isSet(object.zIndex) ? Number(object.zIndex) : undefined,
1734
1553
  };
1735
1554
  }
@@ -1843,13 +1662,6 @@ export namespace PBUiTransform {
1843
1662
  message.borderRightColor !== undefined &&
1844
1663
  (obj.borderRightColor = message.borderRightColor ? Color4.toJSON(message.borderRightColor) : undefined);
1845
1664
  message.opacity !== undefined && (obj.opacity = message.opacity);
1846
- message.elementId !== undefined && (obj.elementId = message.elementId);
1847
- message.scrollPosition !== undefined &&
1848
- (obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
1849
- message.scrollVisible !== undefined &&
1850
- (obj.scrollVisible = message.scrollVisible !== undefined
1851
- ? showScrollBarToJSON(message.scrollVisible)
1852
- : undefined);
1853
1665
  message.zIndex !== undefined && (obj.zIndex = Math.round(message.zIndex));
1854
1666
  return obj;
1855
1667
  }
@@ -1941,11 +1753,6 @@ export namespace PBUiTransform {
1941
1753
  ? Color4.fromPartial(object.borderRightColor)
1942
1754
  : undefined;
1943
1755
  message.opacity = object.opacity ?? undefined;
1944
- message.elementId = object.elementId ?? undefined;
1945
- message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
1946
- ? ScrollPositionValue.fromPartial(object.scrollPosition)
1947
- : undefined;
1948
- message.scrollVisible = object.scrollVisible ?? undefined;
1949
1756
  message.zIndex = object.zIndex ?? undefined;
1950
1757
  return message;
1951
1758
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-33676972450.commit-882d4ee",
3
+ "version": "1.0.0-33861349213.commit-76445a6",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,5 +36,5 @@
36
36
  "protoc-gen-bitwise/*.js",
37
37
  "protoc-gen-bitwise/runtime"
38
38
  ],
39
- "commit": "882d4eeece064ee71b16f49457c610d48f1c3ffb"
39
+ "commit": "76445a6d018cf88fd4931b48177cf6b18e1f3cef"
40
40
  }
@@ -36,17 +36,10 @@ message VideoTexture {
36
36
  optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
37
37
  }
38
38
 
39
- message UiCanvasTexture {
40
- uint32 ui_canvas_entity = 1;
41
- optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
42
- optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
43
- }
44
-
45
39
  message TextureUnion {
46
40
  oneof tex {
47
41
  Texture texture = 1; // default = null
48
42
  AvatarTexture avatar_texture = 2; // default = null
49
43
  VideoTexture video_texture = 3; // default = null
50
- UiCanvasTexture ui_texture = 4;
51
44
  }
52
- }
45
+ }
@@ -13,12 +13,7 @@ message MovePlayerToRequest {
13
13
  }
14
14
 
15
15
  message TeleportToRequest {
16
- // The parcel to land on. Omitted: the realm's default spawn (only meaningful with `realm`).
17
- optional decentraland.common.Vector2 world_coordinates = 1;
18
- // The realm the parcel belongs to: a world name (`foo.dcl.eth`) or a realm url. When set, the
19
- // client changes realm (a full reconnect, even to the realm the player is in) and lands on the
20
- // parcel there. Omitted: the parcel is in the player's current realm.
21
- optional string realm = 2;
16
+ decentraland.common.Vector2 world_coordinates = 1;
22
17
  }
23
18
 
24
19
  message TriggerEmoteRequest {
@@ -61,31 +56,8 @@ message MovePlayerToResponse {
61
56
  bool success = 1;
62
57
  }
63
58
 
64
- message WalkPlayerToRequest {
65
- decentraland.common.Vector3 new_relative_position = 1;
66
- float stop_threshold = 2;
67
- optional float timeout = 3; // max seconds before the request is failed; not passed to the movement scene
68
- }
69
-
70
- message WalkPlayerToResponse {
71
- bool success = 1;
72
- }
73
-
74
59
  message TeleportToResponse { }
75
60
 
76
- message SetUiFocusRequest {
77
- string element_id = 1;
78
- }
79
-
80
- message ClearUiFocusRequest { }
81
-
82
- message GetUiFocusRequest { }
83
-
84
- message UiFocusResponse {
85
- // the element that is/was focussed
86
- optional string element_id = 1;
87
- }
88
-
89
61
  message CopyToClipboardRequest {
90
62
  string text = 1;
91
63
  }
@@ -125,18 +97,11 @@ service RestrictedActionsService {
125
97
  rpc MovePlayerTo(MovePlayerToRequest) returns (MovePlayerToResponse) {}
126
98
 
127
99
  // TeleportTo will move the user to the specified world LAND parcel coordinates
128
- // WalkPlayerTo will walk the player to a position relative to the current scene,
129
- // managed by the movement controller scene. Returns success when the player reaches
130
- // within stop_threshold distance, or false if the path is blocked, the player gets
131
- // stuck, the player interrupts the walk with manual input, or the optional timeout expires.
132
- rpc WalkPlayerTo(WalkPlayerToRequest) returns (WalkPlayerToResponse) {}
133
-
134
100
  rpc TeleportTo(TeleportToRequest) returns (TeleportToResponse) {}
135
101
 
136
102
  // TriggerEmote will trigger an emote in this current user
137
103
  rpc TriggerEmote(TriggerEmoteRequest) returns (TriggerEmoteResponse) {}
138
104
 
139
- // @deprecated, use TeleportTo with `realm` (and no `world_coordinates` for the realm's default spawn)
140
105
  // ChangeRealm prompts the user to change to a specific realm
141
106
  rpc ChangeRealm(ChangeRealmRequest) returns (SuccessResponse) {}
142
107
 
@@ -154,15 +119,6 @@ service RestrictedActionsService {
154
119
  rpc TriggerSceneEmote(TriggerSceneEmoteRequest) returns (SuccessResponse) {}
155
120
 
156
121
  // CopyToClipboard copies the provided text into the clipboard
157
- // Sets the focus to a specific UI element
158
- rpc SetUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
159
-
160
- // Clears the focus from any currently focused textentry or dropdown
161
- rpc ClearUiFocus(ClearUiFocusRequest) returns (UiFocusResponse) {}
162
-
163
- // Returns the element_id of any currently focused textentry or dropdown
164
- rpc GetUiFocus(GetUiFocusRequest) returns (UiFocusResponse) {}
165
-
166
122
  rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
167
123
 
168
124
  // StopEmote will stop the current emote
@@ -74,17 +74,35 @@ message ParcelRect {
74
74
  sint32 max_z = 4;
75
75
  }
76
76
 
77
- // Scene-listener connect: same signed-fetch auth chain as HandshakeRequest, plus an
78
- // immutable parcel-set area of interest. No initial state — a listener is never a subject.
77
+ // One realm's slice of a scene listener's area of interest. Parcels only mean anything
78
+ // within a realm — every world numbers its own parcels from 0,0 — so a listener that
79
+ // observes several realms, as an authoritative server cohosting scenes from several worlds
80
+ // does, announces one of these per realm rather than one realm for the whole connection.
81
+ message SceneListenerAoi {
82
+ // Non-empty realm identifier — same rules as TeleportRequest.realm.
83
+ string realm = 1;
84
+ // This realm's parcels as inclusive rects. The sum of rect areas across every announced
85
+ // realm is capped server-side (SceneListener:MaxParcels) — overlaps count per rect, so
86
+ // announce disjoint rects.
87
+ repeated ParcelRect parcel_rects = 2;
88
+ }
89
+
90
+ // Scene-listener connect: same signed-fetch auth chain as HandshakeRequest, plus a
91
+ // parcel-set area of interest per realm. No initial state — a listener is never a subject.
79
92
  message SceneListenerHandshakeRequest {
80
93
  // Signed-fetch headers JSON — identical shape to HandshakeRequest.auth_chain.
81
94
  bytes auth_chain = 1;
82
- // AoI realm partition — same rules as TeleportRequest.realm.
83
- string realm = 2;
84
- // Announced AoI as inclusive parcel-coordinate rects; fixed for the connection
85
- // lifetime. The sum of rect areas is capped server-side (SceneListener:MaxParcels) —
86
- // overlaps count per rect, so announce disjoint rects.
87
- repeated ParcelRect parcel_rects = 3;
95
+ // Announced AoI, one entry per realm; replaceable afterwards with SceneListenerUpdate.
96
+ repeated SceneListenerAoi aoi = 2;
97
+ }
98
+
99
+ // Scene-listener AoI reassignment: replaces the area of interest announced at connect, in
100
+ // place, on an authenticated scene-listener connection. Only valid from a peer that
101
+ // authenticated with SceneListenerHandshakeRequest.
102
+ message SceneListenerUpdate {
103
+ // The new AoI, replacing (not extending) the current one — realms absent from it are no
104
+ // longer observed. Same rules and SceneListener:MaxParcels budget as the handshake's.
105
+ repeated SceneListenerAoi aoi = 1;
88
106
  }
89
107
 
90
108
  message ClientMessage {
@@ -97,5 +115,6 @@ message ClientMessage {
97
115
  EmoteStop emote_stop = 6;
98
116
  TeleportRequest teleport = 7;
99
117
  SceneListenerHandshakeRequest scene_listener_handshake = 8;
118
+ SceneListenerUpdate scene_listener_update = 9;
100
119
  }
101
120
  }
@@ -10,5 +10,4 @@ option (common.ecs_component_id) = 1091;
10
10
  message PBAvatarEquippedData {
11
11
  repeated string wearable_urns = 1;
12
12
  repeated string emote_urns = 2;
13
- repeated string force_render = 3; // slots that will render even if hidden
14
- }
13
+ }
@@ -23,7 +23,6 @@ message PBAvatarModifierArea {
23
23
  decentraland.common.Vector3 area = 1; // the 3D size of the region
24
24
  repeated string exclude_ids = 2; // user IDs that can enter and remain unaffected
25
25
  repeated AvatarModifierType modifiers = 3; // list of modifiers to apply
26
- optional bool use_collider_range = 5; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
27
26
  }
28
27
 
29
28
  // AvatarModifierType is an effect that should be applied to avatars inside the region.
@@ -0,0 +1,33 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/common/colors.proto";
6
+ import "decentraland/sdk/components/common/id.proto";
7
+
8
+ option (common.ecs_component_id) = 1221;
9
+
10
+ // The AvatarNametag component adds a plate with scene-provided text above an avatar's nametag,
11
+ // for example to show a rank or a role that the scene assigns to that player.
12
+ //
13
+ // Valid only on an avatar-bearing entity:
14
+ // - the local player: `engine.PlayerEntity`
15
+ // - another player in the scene: that player's entity
16
+ // - an NPC: any entity with an AvatarShape
17
+ // Writes to any other entity are ignored.
18
+ //
19
+ // Player entity ids are not stable across disconnects: a write to a stale entity lands on
20
+ // whoever holds that id next. Resolve the entity from the user id on every write, and remove
21
+ // the component when the player leaves the scene.
22
+ //
23
+ // The plate is local to the client that renders it; it is never relayed to other players.
24
+ message PBAvatarNametag {
25
+ // The plate text: a single line, for example "Club Owner". Empty draws the plate without text,
26
+ // and spaces are preserved: a label of spaces widens a text-less plate. For a plate sized
27
+ // exactly to a word without showing it, set label_color equal to background_color instead.
28
+ string label = 1;
29
+
30
+ optional decentraland.common.Color3 label_color = 2; // (default: the client's native nametag text color)
31
+ optional decentraland.common.Color3 background_color = 3; // (default: the client's native nametag background color)
32
+ optional decentraland.common.Color3 border_color = 4; // (default: background_color, so the plate carries no visible border)
33
+ }