@dcl/protocol 1.0.0-22560904528.commit-203bb4a → 1.0.0-22576259823.commit-260e173

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 (130) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +18 -0
  2. package/out-js/decentraland/common/texture.gen.js +104 -4
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +70 -0
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +228 -1
  6. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -46
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +12 -315
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
  11. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
  12. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +45 -0
  14. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +138 -0
  15. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  17. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  18. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +34 -0
  20. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +101 -0
  21. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
  22. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +44 -0
  23. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +178 -0
  24. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
  26. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
  27. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  29. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  30. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -9
  32. package/out-js/decentraland/sdk/components/common/input_action.gen.js +17 -44
  33. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  35. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  36. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  38. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  39. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  40. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  41. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  42. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  43. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +50 -0
  44. package/out-js/decentraland/sdk/components/input_modifier.gen.js +207 -0
  45. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
  46. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  47. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  48. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  50. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  51. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  52. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  53. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  54. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  55. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
  56. package/out-js/decentraland/sdk/components/pointer_events.gen.js +3 -31
  57. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  58. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
  59. package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
  60. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  61. package/out-js/decentraland/sdk/components/tween.gen.d.ts +0 -36
  62. package/out-js/decentraland/sdk/components/tween.gen.js +6 -302
  63. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
  64. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  65. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  66. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  67. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
  68. package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
  69. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  70. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +3 -0
  71. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +40 -2
  72. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  73. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  74. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +242 -0
  75. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -375
  76. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  77. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +183 -0
  78. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  79. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +119 -0
  80. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +210 -0
  81. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
  82. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  83. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +16 -43
  84. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  85. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  86. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  87. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +235 -0
  88. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  89. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  90. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  91. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +3 -44
  92. package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
  93. package/out-ts/decentraland/sdk/components/tween.gen.ts +0 -333
  94. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  95. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
  96. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +44 -2
  97. package/package.json +7 -4
  98. package/proto/decentraland/common/texture.proto +8 -1
  99. package/proto/decentraland/kernel/apis/restricted_actions.proto +22 -0
  100. package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -29
  101. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  102. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  103. package/proto/decentraland/sdk/components/avatar_movement.proto +45 -0
  104. package/proto/decentraland/sdk/components/avatar_movement_info.proto +20 -0
  105. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
  106. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  107. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  108. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  109. package/proto/decentraland/sdk/components/common/input_action.proto +3 -7
  110. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  111. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  112. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  113. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  114. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  115. package/proto/decentraland/sdk/components/material.proto +13 -1
  116. package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
  117. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  118. package/proto/decentraland/sdk/components/pointer_events.proto +0 -2
  119. package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
  120. package/proto/decentraland/sdk/components/raycast.proto +13 -0
  121. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  122. package/proto/decentraland/sdk/components/tween.proto +0 -18
  123. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  124. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  125. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  126. package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
  127. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  128. package/proto/decentraland/social_service/v2/social_service_v2.proto +3 -0
  129. package/public/sdk-components.proto +4 -0
  130. package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
@@ -47,6 +47,41 @@ 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
+
50
85
  /**
51
86
  * The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
52
87
  *
@@ -81,7 +116,15 @@ export interface PBRaycast {
81
116
  | boolean
82
117
  | undefined;
83
118
  /** Collision mask, by default CL_POINTER | CL_PHYSICS */
84
- collisionMask?: number | undefined;
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;
85
128
  }
86
129
 
87
130
  function createBasePBRaycast(): PBRaycast {
@@ -93,6 +136,8 @@ function createBasePBRaycast(): PBRaycast {
93
136
  queryType: 0,
94
137
  continuous: undefined,
95
138
  collisionMask: undefined,
139
+ shape: undefined,
140
+ includeWorld: undefined,
96
141
  };
97
142
  }
98
143
 
@@ -130,6 +175,12 @@ export namespace PBRaycast {
130
175
  if (message.collisionMask !== undefined) {
131
176
  writer.uint32(72).uint32(message.collisionMask);
132
177
  }
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
+ }
133
184
  return writer;
134
185
  }
135
186
 
@@ -210,6 +261,20 @@ export namespace PBRaycast {
210
261
 
211
262
  message.collisionMask = reader.uint32();
212
263
  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;
213
278
  }
214
279
  if ((tag & 7) === 4 || tag === 0) {
215
280
  break;
@@ -236,6 +301,8 @@ export namespace PBRaycast {
236
301
  queryType: isSet(object.queryType) ? raycastQueryTypeFromJSON(object.queryType) : 0,
237
302
  continuous: isSet(object.continuous) ? Boolean(object.continuous) : undefined,
238
303
  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,
239
306
  };
240
307
  }
241
308
 
@@ -261,6 +328,9 @@ export namespace PBRaycast {
261
328
  message.queryType !== undefined && (obj.queryType = raycastQueryTypeToJSON(message.queryType));
262
329
  message.continuous !== undefined && (obj.continuous = message.continuous);
263
330
  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);
264
334
  return obj;
265
335
  }
266
336
 
@@ -312,6 +382,8 @@ export namespace PBRaycast {
312
382
  message.queryType = object.queryType ?? 0;
313
383
  message.continuous = object.continuous ?? undefined;
314
384
  message.collisionMask = object.collisionMask ?? undefined;
385
+ message.shape = object.shape ?? undefined;
386
+ message.includeWorld = object.includeWorld ?? undefined;
315
387
  return message;
316
388
  }
317
389
  }
@@ -262,8 +262,6 @@ export interface PBTween {
262
262
  | { $case: "rotateContinuous"; rotateContinuous: RotateContinuous }
263
263
  | { $case: "moveContinuous"; moveContinuous: MoveContinuous }
264
264
  | { $case: "textureMoveContinuous"; textureMoveContinuous: TextureMoveContinuous }
265
- | { $case: "moveRotateScale"; moveRotateScale: MoveRotateScale }
266
- | { $case: "moveRotateScaleContinuous"; moveRotateScaleContinuous: MoveRotateScaleContinuous }
267
265
  | undefined;
268
266
  /** default true (pause or running) */
269
267
  playing?:
@@ -289,15 +287,6 @@ export interface Scale {
289
287
  end: Vector3 | undefined;
290
288
  }
291
289
 
292
- export interface MoveRotateScale {
293
- positionStart: Vector3 | undefined;
294
- positionEnd: Vector3 | undefined;
295
- rotationStart: Quaternion | undefined;
296
- rotationEnd: Quaternion | undefined;
297
- scaleStart: Vector3 | undefined;
298
- scaleEnd: Vector3 | undefined;
299
- }
300
-
301
290
  /**
302
291
  * This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
303
292
  * You can also specify the movement type (offset or tiling)
@@ -321,13 +310,6 @@ export interface MoveContinuous {
321
310
  speed: number;
322
311
  }
323
312
 
324
- export interface MoveRotateScaleContinuous {
325
- positionDirection: Vector3 | undefined;
326
- rotationDirection: Quaternion | undefined;
327
- scaleDirection: Vector3 | undefined;
328
- speed: number;
329
- }
330
-
331
313
  export interface TextureMoveContinuous {
332
314
  direction: Vector2 | undefined;
333
315
  speed: number;
@@ -369,12 +351,6 @@ export namespace PBTween {
369
351
  case "textureMoveContinuous":
370
352
  TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
371
353
  break;
372
- case "moveRotateScale":
373
- MoveRotateScale.encode(message.mode.moveRotateScale, writer.uint32(98).fork()).ldelim();
374
- break;
375
- case "moveRotateScaleContinuous":
376
- MoveRotateScaleContinuous.encode(message.mode.moveRotateScaleContinuous, writer.uint32(106).fork()).ldelim();
377
- break;
378
354
  }
379
355
  if (message.playing !== undefined) {
380
356
  writer.uint32(48).bool(message.playing);
@@ -461,23 +437,6 @@ export namespace PBTween {
461
437
  textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
462
438
  };
463
439
  continue;
464
- case 12:
465
- if (tag !== 98) {
466
- break;
467
- }
468
-
469
- message.mode = { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.decode(reader, reader.uint32()) };
470
- continue;
471
- case 13:
472
- if (tag !== 106) {
473
- break;
474
- }
475
-
476
- message.mode = {
477
- $case: "moveRotateScaleContinuous",
478
- moveRotateScaleContinuous: MoveRotateScaleContinuous.decode(reader, reader.uint32()),
479
- };
480
- continue;
481
440
  case 6:
482
441
  if (tag !== 48) {
483
442
  break;
@@ -522,13 +481,6 @@ export namespace PBTween {
522
481
  $case: "textureMoveContinuous",
523
482
  textureMoveContinuous: TextureMoveContinuous.fromJSON(object.textureMoveContinuous),
524
483
  }
525
- : isSet(object.moveRotateScale)
526
- ? { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.fromJSON(object.moveRotateScale) }
527
- : isSet(object.moveRotateScaleContinuous)
528
- ? {
529
- $case: "moveRotateScaleContinuous",
530
- moveRotateScaleContinuous: MoveRotateScaleContinuous.fromJSON(object.moveRotateScaleContinuous),
531
- }
532
484
  : undefined,
533
485
  playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
534
486
  currentTime: isSet(object.currentTime) ? Number(object.currentTime) : undefined,
@@ -558,14 +510,6 @@ export namespace PBTween {
558
510
  (obj.textureMoveContinuous = message.mode?.textureMoveContinuous
559
511
  ? TextureMoveContinuous.toJSON(message.mode?.textureMoveContinuous)
560
512
  : undefined);
561
- message.mode?.$case === "moveRotateScale" &&
562
- (obj.moveRotateScale = message.mode?.moveRotateScale
563
- ? MoveRotateScale.toJSON(message.mode?.moveRotateScale)
564
- : undefined);
565
- message.mode?.$case === "moveRotateScaleContinuous" &&
566
- (obj.moveRotateScaleContinuous = message.mode?.moveRotateScaleContinuous
567
- ? MoveRotateScaleContinuous.toJSON(message.mode?.moveRotateScaleContinuous)
568
- : undefined);
569
513
  message.playing !== undefined && (obj.playing = message.playing);
570
514
  message.currentTime !== undefined && (obj.currentTime = message.currentTime);
571
515
  return obj;
@@ -625,26 +569,6 @@ export namespace PBTween {
625
569
  textureMoveContinuous: TextureMoveContinuous.fromPartial(object.mode.textureMoveContinuous),
626
570
  };
627
571
  }
628
- if (
629
- object.mode?.$case === "moveRotateScale" &&
630
- object.mode?.moveRotateScale !== undefined &&
631
- object.mode?.moveRotateScale !== null
632
- ) {
633
- message.mode = {
634
- $case: "moveRotateScale",
635
- moveRotateScale: MoveRotateScale.fromPartial(object.mode.moveRotateScale),
636
- };
637
- }
638
- if (
639
- object.mode?.$case === "moveRotateScaleContinuous" &&
640
- object.mode?.moveRotateScaleContinuous !== undefined &&
641
- object.mode?.moveRotateScaleContinuous !== null
642
- ) {
643
- message.mode = {
644
- $case: "moveRotateScaleContinuous",
645
- moveRotateScaleContinuous: MoveRotateScaleContinuous.fromPartial(object.mode.moveRotateScaleContinuous),
646
- };
647
- }
648
572
  message.playing = object.playing ?? undefined;
649
573
  message.currentTime = object.currentTime ?? undefined;
650
574
  return message;
@@ -883,153 +807,6 @@ export namespace Scale {
883
807
  }
884
808
  }
885
809
 
886
- function createBaseMoveRotateScale(): MoveRotateScale {
887
- return {
888
- positionStart: undefined,
889
- positionEnd: undefined,
890
- rotationStart: undefined,
891
- rotationEnd: undefined,
892
- scaleStart: undefined,
893
- scaleEnd: undefined,
894
- };
895
- }
896
-
897
- export namespace MoveRotateScale {
898
- export function encode(message: MoveRotateScale, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
899
- if (message.positionStart !== undefined) {
900
- Vector3.encode(message.positionStart, writer.uint32(10).fork()).ldelim();
901
- }
902
- if (message.positionEnd !== undefined) {
903
- Vector3.encode(message.positionEnd, writer.uint32(18).fork()).ldelim();
904
- }
905
- if (message.rotationStart !== undefined) {
906
- Quaternion.encode(message.rotationStart, writer.uint32(26).fork()).ldelim();
907
- }
908
- if (message.rotationEnd !== undefined) {
909
- Quaternion.encode(message.rotationEnd, writer.uint32(34).fork()).ldelim();
910
- }
911
- if (message.scaleStart !== undefined) {
912
- Vector3.encode(message.scaleStart, writer.uint32(42).fork()).ldelim();
913
- }
914
- if (message.scaleEnd !== undefined) {
915
- Vector3.encode(message.scaleEnd, writer.uint32(50).fork()).ldelim();
916
- }
917
- return writer;
918
- }
919
-
920
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale {
921
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
922
- let end = length === undefined ? reader.len : reader.pos + length;
923
- const message = createBaseMoveRotateScale();
924
- while (reader.pos < end) {
925
- const tag = reader.uint32();
926
- switch (tag >>> 3) {
927
- case 1:
928
- if (tag !== 10) {
929
- break;
930
- }
931
-
932
- message.positionStart = Vector3.decode(reader, reader.uint32());
933
- continue;
934
- case 2:
935
- if (tag !== 18) {
936
- break;
937
- }
938
-
939
- message.positionEnd = Vector3.decode(reader, reader.uint32());
940
- continue;
941
- case 3:
942
- if (tag !== 26) {
943
- break;
944
- }
945
-
946
- message.rotationStart = Quaternion.decode(reader, reader.uint32());
947
- continue;
948
- case 4:
949
- if (tag !== 34) {
950
- break;
951
- }
952
-
953
- message.rotationEnd = Quaternion.decode(reader, reader.uint32());
954
- continue;
955
- case 5:
956
- if (tag !== 42) {
957
- break;
958
- }
959
-
960
- message.scaleStart = Vector3.decode(reader, reader.uint32());
961
- continue;
962
- case 6:
963
- if (tag !== 50) {
964
- break;
965
- }
966
-
967
- message.scaleEnd = Vector3.decode(reader, reader.uint32());
968
- continue;
969
- }
970
- if ((tag & 7) === 4 || tag === 0) {
971
- break;
972
- }
973
- reader.skipType(tag & 7);
974
- }
975
- return message;
976
- }
977
-
978
- export function fromJSON(object: any): MoveRotateScale {
979
- return {
980
- positionStart: isSet(object.positionStart) ? Vector3.fromJSON(object.positionStart) : undefined,
981
- positionEnd: isSet(object.positionEnd) ? Vector3.fromJSON(object.positionEnd) : undefined,
982
- rotationStart: isSet(object.rotationStart) ? Quaternion.fromJSON(object.rotationStart) : undefined,
983
- rotationEnd: isSet(object.rotationEnd) ? Quaternion.fromJSON(object.rotationEnd) : undefined,
984
- scaleStart: isSet(object.scaleStart) ? Vector3.fromJSON(object.scaleStart) : undefined,
985
- scaleEnd: isSet(object.scaleEnd) ? Vector3.fromJSON(object.scaleEnd) : undefined,
986
- };
987
- }
988
-
989
- export function toJSON(message: MoveRotateScale): unknown {
990
- const obj: any = {};
991
- message.positionStart !== undefined &&
992
- (obj.positionStart = message.positionStart ? Vector3.toJSON(message.positionStart) : undefined);
993
- message.positionEnd !== undefined &&
994
- (obj.positionEnd = message.positionEnd ? Vector3.toJSON(message.positionEnd) : undefined);
995
- message.rotationStart !== undefined &&
996
- (obj.rotationStart = message.rotationStart ? Quaternion.toJSON(message.rotationStart) : undefined);
997
- message.rotationEnd !== undefined &&
998
- (obj.rotationEnd = message.rotationEnd ? Quaternion.toJSON(message.rotationEnd) : undefined);
999
- message.scaleStart !== undefined &&
1000
- (obj.scaleStart = message.scaleStart ? Vector3.toJSON(message.scaleStart) : undefined);
1001
- message.scaleEnd !== undefined && (obj.scaleEnd = message.scaleEnd ? Vector3.toJSON(message.scaleEnd) : undefined);
1002
- return obj;
1003
- }
1004
-
1005
- export function create<I extends Exact<DeepPartial<MoveRotateScale>, I>>(base?: I): MoveRotateScale {
1006
- return MoveRotateScale.fromPartial(base ?? {});
1007
- }
1008
-
1009
- export function fromPartial<I extends Exact<DeepPartial<MoveRotateScale>, I>>(object: I): MoveRotateScale {
1010
- const message = createBaseMoveRotateScale();
1011
- message.positionStart = (object.positionStart !== undefined && object.positionStart !== null)
1012
- ? Vector3.fromPartial(object.positionStart)
1013
- : undefined;
1014
- message.positionEnd = (object.positionEnd !== undefined && object.positionEnd !== null)
1015
- ? Vector3.fromPartial(object.positionEnd)
1016
- : undefined;
1017
- message.rotationStart = (object.rotationStart !== undefined && object.rotationStart !== null)
1018
- ? Quaternion.fromPartial(object.rotationStart)
1019
- : undefined;
1020
- message.rotationEnd = (object.rotationEnd !== undefined && object.rotationEnd !== null)
1021
- ? Quaternion.fromPartial(object.rotationEnd)
1022
- : undefined;
1023
- message.scaleStart = (object.scaleStart !== undefined && object.scaleStart !== null)
1024
- ? Vector3.fromPartial(object.scaleStart)
1025
- : undefined;
1026
- message.scaleEnd = (object.scaleEnd !== undefined && object.scaleEnd !== null)
1027
- ? Vector3.fromPartial(object.scaleEnd)
1028
- : undefined;
1029
- return message;
1030
- }
1031
- }
1032
-
1033
810
  function createBaseTextureMove(): TextureMove {
1034
811
  return { start: undefined, end: undefined, movementType: undefined };
1035
812
  }
@@ -1267,116 +1044,6 @@ export namespace MoveContinuous {
1267
1044
  }
1268
1045
  }
1269
1046
 
1270
- function createBaseMoveRotateScaleContinuous(): MoveRotateScaleContinuous {
1271
- return { positionDirection: undefined, rotationDirection: undefined, scaleDirection: undefined, speed: 0 };
1272
- }
1273
-
1274
- export namespace MoveRotateScaleContinuous {
1275
- export function encode(message: MoveRotateScaleContinuous, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1276
- if (message.positionDirection !== undefined) {
1277
- Vector3.encode(message.positionDirection, writer.uint32(10).fork()).ldelim();
1278
- }
1279
- if (message.rotationDirection !== undefined) {
1280
- Quaternion.encode(message.rotationDirection, writer.uint32(18).fork()).ldelim();
1281
- }
1282
- if (message.scaleDirection !== undefined) {
1283
- Vector3.encode(message.scaleDirection, writer.uint32(26).fork()).ldelim();
1284
- }
1285
- if (message.speed !== 0) {
1286
- writer.uint32(37).float(message.speed);
1287
- }
1288
- return writer;
1289
- }
1290
-
1291
- export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous {
1292
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1293
- let end = length === undefined ? reader.len : reader.pos + length;
1294
- const message = createBaseMoveRotateScaleContinuous();
1295
- while (reader.pos < end) {
1296
- const tag = reader.uint32();
1297
- switch (tag >>> 3) {
1298
- case 1:
1299
- if (tag !== 10) {
1300
- break;
1301
- }
1302
-
1303
- message.positionDirection = Vector3.decode(reader, reader.uint32());
1304
- continue;
1305
- case 2:
1306
- if (tag !== 18) {
1307
- break;
1308
- }
1309
-
1310
- message.rotationDirection = Quaternion.decode(reader, reader.uint32());
1311
- continue;
1312
- case 3:
1313
- if (tag !== 26) {
1314
- break;
1315
- }
1316
-
1317
- message.scaleDirection = Vector3.decode(reader, reader.uint32());
1318
- continue;
1319
- case 4:
1320
- if (tag !== 37) {
1321
- break;
1322
- }
1323
-
1324
- message.speed = reader.float();
1325
- continue;
1326
- }
1327
- if ((tag & 7) === 4 || tag === 0) {
1328
- break;
1329
- }
1330
- reader.skipType(tag & 7);
1331
- }
1332
- return message;
1333
- }
1334
-
1335
- export function fromJSON(object: any): MoveRotateScaleContinuous {
1336
- return {
1337
- positionDirection: isSet(object.positionDirection) ? Vector3.fromJSON(object.positionDirection) : undefined,
1338
- rotationDirection: isSet(object.rotationDirection) ? Quaternion.fromJSON(object.rotationDirection) : undefined,
1339
- scaleDirection: isSet(object.scaleDirection) ? Vector3.fromJSON(object.scaleDirection) : undefined,
1340
- speed: isSet(object.speed) ? Number(object.speed) : 0,
1341
- };
1342
- }
1343
-
1344
- export function toJSON(message: MoveRotateScaleContinuous): unknown {
1345
- const obj: any = {};
1346
- message.positionDirection !== undefined &&
1347
- (obj.positionDirection = message.positionDirection ? Vector3.toJSON(message.positionDirection) : undefined);
1348
- message.rotationDirection !== undefined &&
1349
- (obj.rotationDirection = message.rotationDirection ? Quaternion.toJSON(message.rotationDirection) : undefined);
1350
- message.scaleDirection !== undefined &&
1351
- (obj.scaleDirection = message.scaleDirection ? Vector3.toJSON(message.scaleDirection) : undefined);
1352
- message.speed !== undefined && (obj.speed = message.speed);
1353
- return obj;
1354
- }
1355
-
1356
- export function create<I extends Exact<DeepPartial<MoveRotateScaleContinuous>, I>>(
1357
- base?: I,
1358
- ): MoveRotateScaleContinuous {
1359
- return MoveRotateScaleContinuous.fromPartial(base ?? {});
1360
- }
1361
-
1362
- export function fromPartial<I extends Exact<DeepPartial<MoveRotateScaleContinuous>, I>>(
1363
- object: I,
1364
- ): MoveRotateScaleContinuous {
1365
- const message = createBaseMoveRotateScaleContinuous();
1366
- message.positionDirection = (object.positionDirection !== undefined && object.positionDirection !== null)
1367
- ? Vector3.fromPartial(object.positionDirection)
1368
- : undefined;
1369
- message.rotationDirection = (object.rotationDirection !== undefined && object.rotationDirection !== null)
1370
- ? Quaternion.fromPartial(object.rotationDirection)
1371
- : undefined;
1372
- message.scaleDirection = (object.scaleDirection !== undefined && object.scaleDirection !== null)
1373
- ? Vector3.fromPartial(object.scaleDirection)
1374
- : undefined;
1375
- message.speed = object.speed ?? 0;
1376
- return message;
1377
- }
1378
- }
1379
-
1380
1047
  function createBaseTextureMoveContinuous(): TextureMoveContinuous {
1381
1048
  return { direction: undefined, speed: 0, movementType: undefined };
1382
1049
  }
@@ -65,7 +65,15 @@ export interface PBUiText {
65
65
  | number
66
66
  | undefined;
67
67
  /** wrap text when the border is reached (default: TW_WRAP) */
68
- textWrap?: TextWrap | undefined;
68
+ textWrap?:
69
+ | TextWrap
70
+ | undefined;
71
+ /** width of the outline (default: 0) */
72
+ outlineWidth?:
73
+ | number
74
+ | undefined;
75
+ /** RGBA color of the outline (default: opaque black) */
76
+ outlineColor?: Color4 | undefined;
69
77
  }
70
78
 
71
79
  function createBasePBUiText(): PBUiText {
@@ -76,6 +84,8 @@ function createBasePBUiText(): PBUiText {
76
84
  font: undefined,
77
85
  fontSize: undefined,
78
86
  textWrap: undefined,
87
+ outlineWidth: undefined,
88
+ outlineColor: undefined,
79
89
  };
80
90
  }
81
91
 
@@ -99,6 +109,12 @@ export namespace PBUiText {
99
109
  if (message.textWrap !== undefined) {
100
110
  writer.uint32(48).int32(message.textWrap);
101
111
  }
112
+ if (message.outlineWidth !== undefined) {
113
+ writer.uint32(61).float(message.outlineWidth);
114
+ }
115
+ if (message.outlineColor !== undefined) {
116
+ Color4.encode(message.outlineColor, writer.uint32(66).fork()).ldelim();
117
+ }
102
118
  return writer;
103
119
  }
104
120
 
@@ -151,6 +167,20 @@ export namespace PBUiText {
151
167
 
152
168
  message.textWrap = reader.int32() as any;
153
169
  continue;
170
+ case 7:
171
+ if (tag !== 61) {
172
+ break;
173
+ }
174
+
175
+ message.outlineWidth = reader.float();
176
+ continue;
177
+ case 8:
178
+ if (tag !== 66) {
179
+ break;
180
+ }
181
+
182
+ message.outlineColor = Color4.decode(reader, reader.uint32());
183
+ continue;
154
184
  }
155
185
  if ((tag & 7) === 4 || tag === 0) {
156
186
  break;
@@ -168,6 +198,8 @@ export namespace PBUiText {
168
198
  font: isSet(object.font) ? fontFromJSON(object.font) : undefined,
169
199
  fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
170
200
  textWrap: isSet(object.textWrap) ? textWrapFromJSON(object.textWrap) : undefined,
201
+ outlineWidth: isSet(object.outlineWidth) ? Number(object.outlineWidth) : undefined,
202
+ outlineColor: isSet(object.outlineColor) ? Color4.fromJSON(object.outlineColor) : undefined,
171
203
  };
172
204
  }
173
205
 
@@ -181,6 +213,9 @@ export namespace PBUiText {
181
213
  message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
182
214
  message.textWrap !== undefined &&
183
215
  (obj.textWrap = message.textWrap !== undefined ? textWrapToJSON(message.textWrap) : undefined);
216
+ message.outlineWidth !== undefined && (obj.outlineWidth = message.outlineWidth);
217
+ message.outlineColor !== undefined &&
218
+ (obj.outlineColor = message.outlineColor ? Color4.toJSON(message.outlineColor) : undefined);
184
219
  return obj;
185
220
  }
186
221
 
@@ -198,6 +233,10 @@ export namespace PBUiText {
198
233
  message.font = object.font ?? undefined;
199
234
  message.fontSize = object.fontSize ?? undefined;
200
235
  message.textWrap = object.textWrap ?? undefined;
236
+ message.outlineWidth = object.outlineWidth ?? undefined;
237
+ message.outlineColor = (object.outlineColor !== undefined && object.outlineColor !== null)
238
+ ? Color4.fromPartial(object.outlineColor)
239
+ : undefined;
201
240
  return message;
202
241
  }
203
242
  }