@dcl/protocol 1.0.0-10170032882.commit-971bcef → 1.0.0-10251900388.commit-3efaea5

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 (57) hide show
  1. package/out-js/decentraland/realm/about.gen.d.ts +4 -1
  2. package/out-js/decentraland/realm/about.gen.js.map +1 -1
  3. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  4. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  5. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  6. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  7. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  8. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  9. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  10. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  11. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  12. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  13. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  14. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  15. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  16. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  17. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  18. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  19. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  20. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  21. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  22. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  23. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  24. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -35
  25. package/out-js/decentraland/sdk/components/ui_transform.gen.js +2 -188
  26. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  27. package/out-ts/decentraland/realm/about.gen.ts +4 -1
  28. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  29. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  30. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  31. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  32. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  33. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  34. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  35. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1 -212
  36. package/package.json +2 -2
  37. package/proto/decentraland/realm/about.proto +9 -4
  38. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  39. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  40. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  41. package/proto/decentraland/sdk/components/material.proto +0 -11
  42. package/proto/decentraland/sdk/components/mesh_collider.proto +1 -8
  43. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  44. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  45. package/proto/decentraland/sdk/components/ui_transform.proto +0 -21
  46. package/public/sdk-components.proto +0 -2
  47. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  48. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  49. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  50. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  51. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  52. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  53. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  54. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  55. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  56. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  57. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -65,15 +65,7 @@ export interface PBUiText {
65
65
  | number
66
66
  | undefined;
67
67
  /** wrap text when the border is reached (default: TW_WRAP) */
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;
68
+ textWrap?: TextWrap | undefined;
77
69
  }
78
70
 
79
71
  function createBasePBUiText(): PBUiText {
@@ -84,8 +76,6 @@ function createBasePBUiText(): PBUiText {
84
76
  font: undefined,
85
77
  fontSize: undefined,
86
78
  textWrap: undefined,
87
- outlineWidth: undefined,
88
- outlineColor: undefined,
89
79
  };
90
80
  }
91
81
 
@@ -109,12 +99,6 @@ export namespace PBUiText {
109
99
  if (message.textWrap !== undefined) {
110
100
  writer.uint32(48).int32(message.textWrap);
111
101
  }
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
- }
118
102
  return writer;
119
103
  }
120
104
 
@@ -167,20 +151,6 @@ export namespace PBUiText {
167
151
 
168
152
  message.textWrap = reader.int32() as any;
169
153
  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;
184
154
  }
185
155
  if ((tag & 7) === 4 || tag === 0) {
186
156
  break;
@@ -198,8 +168,6 @@ export namespace PBUiText {
198
168
  font: isSet(object.font) ? fontFromJSON(object.font) : undefined,
199
169
  fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
200
170
  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,
203
171
  };
204
172
  }
205
173
 
@@ -213,9 +181,6 @@ export namespace PBUiText {
213
181
  message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
214
182
  message.textWrap !== undefined &&
215
183
  (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);
219
184
  return obj;
220
185
  }
221
186
 
@@ -233,10 +198,6 @@ export namespace PBUiText {
233
198
  message.font = object.font ?? undefined;
234
199
  message.fontSize = object.fontSize ?? undefined;
235
200
  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;
240
201
  return message;
241
202
  }
242
203
  }
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Vector2 } from "../../common/vectors.gen";
4
3
 
5
4
  export const protobufPackage = "decentraland.sdk.components";
6
5
 
@@ -472,55 +471,6 @@ export function pointerFilterModeToJSON(object: PointerFilterMode): string {
472
471
  }
473
472
  }
474
473
 
475
- export enum ShowScrollBar {
476
- SSB_BOTH = 0,
477
- SSB_ONLY_VERTICAL = 1,
478
- SSB_ONLY_HORIZONTAL = 2,
479
- SSB_HIDDEN = 3,
480
- UNRECOGNIZED = -1,
481
- }
482
-
483
- export function showScrollBarFromJSON(object: any): ShowScrollBar {
484
- switch (object) {
485
- case 0:
486
- case "SSB_BOTH":
487
- return ShowScrollBar.SSB_BOTH;
488
- case 1:
489
- case "SSB_ONLY_VERTICAL":
490
- return ShowScrollBar.SSB_ONLY_VERTICAL;
491
- case 2:
492
- case "SSB_ONLY_HORIZONTAL":
493
- return ShowScrollBar.SSB_ONLY_HORIZONTAL;
494
- case 3:
495
- case "SSB_HIDDEN":
496
- return ShowScrollBar.SSB_HIDDEN;
497
- case -1:
498
- case "UNRECOGNIZED":
499
- default:
500
- return ShowScrollBar.UNRECOGNIZED;
501
- }
502
- }
503
-
504
- export function showScrollBarToJSON(object: ShowScrollBar): string {
505
- switch (object) {
506
- case ShowScrollBar.SSB_BOTH:
507
- return "SSB_BOTH";
508
- case ShowScrollBar.SSB_ONLY_VERTICAL:
509
- return "SSB_ONLY_VERTICAL";
510
- case ShowScrollBar.SSB_ONLY_HORIZONTAL:
511
- return "SSB_ONLY_HORIZONTAL";
512
- case ShowScrollBar.SSB_HIDDEN:
513
- return "SSB_HIDDEN";
514
- case ShowScrollBar.UNRECOGNIZED:
515
- default:
516
- return "UNRECOGNIZED";
517
- }
518
- }
519
-
520
- export interface ScrollPositionValue {
521
- value?: { $case: "position"; position: Vector2 } | { $case: "reference"; reference: string } | undefined;
522
- }
523
-
524
474
  export interface PBUiTransform {
525
475
  parent: number;
526
476
  rightOf: number;
@@ -611,106 +561,7 @@ export interface PBUiTransform {
611
561
  paddingBottomUnit: YGUnit;
612
562
  paddingBottom: number;
613
563
  /** default: PointerFilterMode.PFM_NONE */
614
- pointerFilter?:
615
- | PointerFilterMode
616
- | undefined;
617
- /** default: 1 */
618
- opacity?:
619
- | number
620
- | undefined;
621
- /** default empty */
622
- elementId?:
623
- | string
624
- | undefined;
625
- /** default position=(0,0) */
626
- scrollPosition?:
627
- | ScrollPositionValue
628
- | undefined;
629
- /** default ShowScrollBar.SSB_BOTH */
630
- scrollVisible?: ShowScrollBar | undefined;
631
- }
632
-
633
- function createBaseScrollPositionValue(): ScrollPositionValue {
634
- return { value: undefined };
635
- }
636
-
637
- export namespace ScrollPositionValue {
638
- export function encode(message: ScrollPositionValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
639
- switch (message.value?.$case) {
640
- case "position":
641
- Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
642
- break;
643
- case "reference":
644
- writer.uint32(18).string(message.value.reference);
645
- break;
646
- }
647
- return writer;
648
- }
649
-
650
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue {
651
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
652
- let end = length === undefined ? reader.len : reader.pos + length;
653
- const message = createBaseScrollPositionValue();
654
- while (reader.pos < end) {
655
- const tag = reader.uint32();
656
- switch (tag >>> 3) {
657
- case 1:
658
- if (tag !== 10) {
659
- break;
660
- }
661
-
662
- message.value = { $case: "position", position: Vector2.decode(reader, reader.uint32()) };
663
- continue;
664
- case 2:
665
- if (tag !== 18) {
666
- break;
667
- }
668
-
669
- message.value = { $case: "reference", reference: reader.string() };
670
- continue;
671
- }
672
- if ((tag & 7) === 4 || tag === 0) {
673
- break;
674
- }
675
- reader.skipType(tag & 7);
676
- }
677
- return message;
678
- }
679
-
680
- export function fromJSON(object: any): ScrollPositionValue {
681
- return {
682
- value: isSet(object.position)
683
- ? { $case: "position", position: Vector2.fromJSON(object.position) }
684
- : isSet(object.reference)
685
- ? { $case: "reference", reference: String(object.reference) }
686
- : undefined,
687
- };
688
- }
689
-
690
- export function toJSON(message: ScrollPositionValue): unknown {
691
- const obj: any = {};
692
- message.value?.$case === "position" &&
693
- (obj.position = message.value?.position ? Vector2.toJSON(message.value?.position) : undefined);
694
- message.value?.$case === "reference" && (obj.reference = message.value?.reference);
695
- return obj;
696
- }
697
-
698
- export function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue {
699
- return ScrollPositionValue.fromPartial(base ?? {});
700
- }
701
-
702
- export function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue {
703
- const message = createBaseScrollPositionValue();
704
- if (object.value?.$case === "position" && object.value?.position !== undefined && object.value?.position !== null) {
705
- message.value = { $case: "position", position: Vector2.fromPartial(object.value.position) };
706
- }
707
- if (
708
- object.value?.$case === "reference" && object.value?.reference !== undefined && object.value?.reference !== null
709
- ) {
710
- message.value = { $case: "reference", reference: object.value.reference };
711
- }
712
- return message;
713
- }
564
+ pointerFilter?: PointerFilterMode | undefined;
714
565
  }
715
566
 
716
567
  function createBasePBUiTransform(): PBUiTransform {
@@ -767,10 +618,6 @@ function createBasePBUiTransform(): PBUiTransform {
767
618
  paddingBottomUnit: 0,
768
619
  paddingBottom: 0,
769
620
  pointerFilter: undefined,
770
- opacity: undefined,
771
- elementId: undefined,
772
- scrollPosition: undefined,
773
- scrollVisible: undefined,
774
621
  };
775
622
  }
776
623
 
@@ -932,18 +779,6 @@ export namespace PBUiTransform {
932
779
  if (message.pointerFilter !== undefined) {
933
780
  writer.uint32(416).int32(message.pointerFilter);
934
781
  }
935
- if (message.opacity !== undefined) {
936
- writer.uint32(429).float(message.opacity);
937
- }
938
- if (message.elementId !== undefined) {
939
- writer.uint32(434).string(message.elementId);
940
- }
941
- if (message.scrollPosition !== undefined) {
942
- ScrollPositionValue.encode(message.scrollPosition, writer.uint32(442).fork()).ldelim();
943
- }
944
- if (message.scrollVisible !== undefined) {
945
- writer.uint32(448).int32(message.scrollVisible);
946
- }
947
782
  return writer;
948
783
  }
949
784
 
@@ -1318,34 +1153,6 @@ export namespace PBUiTransform {
1318
1153
 
1319
1154
  message.pointerFilter = reader.int32() as any;
1320
1155
  continue;
1321
- case 53:
1322
- if (tag !== 429) {
1323
- break;
1324
- }
1325
-
1326
- message.opacity = reader.float();
1327
- continue;
1328
- case 54:
1329
- if (tag !== 434) {
1330
- break;
1331
- }
1332
-
1333
- message.elementId = reader.string();
1334
- continue;
1335
- case 55:
1336
- if (tag !== 442) {
1337
- break;
1338
- }
1339
-
1340
- message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
1341
- continue;
1342
- case 56:
1343
- if (tag !== 448) {
1344
- break;
1345
- }
1346
-
1347
- message.scrollVisible = reader.int32() as any;
1348
- continue;
1349
1156
  }
1350
1157
  if ((tag & 7) === 4 || tag === 0) {
1351
1158
  break;
@@ -1409,10 +1216,6 @@ export namespace PBUiTransform {
1409
1216
  paddingBottomUnit: isSet(object.paddingBottomUnit) ? yGUnitFromJSON(object.paddingBottomUnit) : 0,
1410
1217
  paddingBottom: isSet(object.paddingBottom) ? Number(object.paddingBottom) : 0,
1411
1218
  pointerFilter: isSet(object.pointerFilter) ? pointerFilterModeFromJSON(object.pointerFilter) : undefined,
1412
- opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
1413
- elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
1414
- scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
1415
- scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
1416
1219
  };
1417
1220
  }
1418
1221
 
@@ -1476,14 +1279,6 @@ export namespace PBUiTransform {
1476
1279
  (obj.pointerFilter = message.pointerFilter !== undefined
1477
1280
  ? pointerFilterModeToJSON(message.pointerFilter)
1478
1281
  : undefined);
1479
- message.opacity !== undefined && (obj.opacity = message.opacity);
1480
- message.elementId !== undefined && (obj.elementId = message.elementId);
1481
- message.scrollPosition !== undefined &&
1482
- (obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
1483
- message.scrollVisible !== undefined &&
1484
- (obj.scrollVisible = message.scrollVisible !== undefined
1485
- ? showScrollBarToJSON(message.scrollVisible)
1486
- : undefined);
1487
1282
  return obj;
1488
1283
  }
1489
1284
 
@@ -1545,12 +1340,6 @@ export namespace PBUiTransform {
1545
1340
  message.paddingBottomUnit = object.paddingBottomUnit ?? 0;
1546
1341
  message.paddingBottom = object.paddingBottom ?? 0;
1547
1342
  message.pointerFilter = object.pointerFilter ?? undefined;
1548
- message.opacity = object.opacity ?? undefined;
1549
- message.elementId = object.elementId ?? undefined;
1550
- message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
1551
- ? ScrollPositionValue.fromPartial(object.scrollPosition)
1552
- : undefined;
1553
- message.scrollVisible = object.scrollVisible ?? undefined;
1554
1343
  return message;
1555
1344
  }
1556
1345
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-10170032882.commit-971bcef",
3
+ "version": "1.0.0-10251900388.commit-3efaea5",
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": "971bceff0bbd9d15730119ddec8b8e0f4550b73e"
32
+ "commit": "3efaea5b0220ba6c1f42ff9a3fa365330cd7e68f"
33
33
  }
@@ -14,13 +14,14 @@ message AboutResponse {
14
14
  bool accepting_users = 7;
15
15
 
16
16
  // @deprecated This message was never used but it's still here for compatibility reasons
17
+ // The reserved keyword is not working for all the toolset we have, so in the meanwhile it keeps commented
17
18
  message MinimapConfiguration {
18
19
  reserved 1;
19
- reserved "enabled";
20
+ // reserved "enabled";
20
21
  reserved 2;
21
- reserved "data_image";
22
+ // reserved "data_image";
22
23
  reserved 3;
23
- reserved "estate_image";
24
+ // reserved "estate_image";
24
25
  }
25
26
 
26
27
  message MapConfiguration {
@@ -84,8 +85,12 @@ message AboutResponse {
84
85
  uint32 network_id = 2;
85
86
  repeated string global_scenes_urn = 3;
86
87
  repeated string scenes_urn = 4;
88
+
89
+ // The name "minimap" can't be used in this message
90
+ // The reserved keyword is not working for all the toolset we have, so in the meanwhile it keeps commented
87
91
  reserved 5;
88
- reserved "minimap";
92
+ // reserved "minimap";
93
+
89
94
  optional SkyboxConfiguration skybox = 6;
90
95
 
91
96
  // A content server to be used to load the parcels around the user. Uses the POST /entities/active endpoint
@@ -23,8 +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 AvatarMovementSettings movement_settings = 4;
27
- 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
28
26
  }
29
27
 
30
28
  // AvatarModifierType is an effect that should be applied to avatars inside the region.
@@ -32,22 +30,3 @@ enum AvatarModifierType {
32
30
  AMT_HIDE_AVATARS = 0; // avatars are invisible
33
31
  AMT_DISABLE_PASSPORTS = 1; // selecting (e.g. clicking) an avatar will not bring up their profile.
34
32
  }
35
-
36
- message AvatarMovementSettings {
37
- optional AvatarControlType control_mode = 1;
38
- // if not explicitly set, the following properties default to user's preference settings
39
- optional float run_speed = 2; // speed the player moves at, in m/s
40
- optional float friction = 3; // how fast the player gets up to speed or comes to rest. higher = more responsive
41
- optional float gravity = 4; // how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative
42
- optional float jump_height = 5; // how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible
43
- optional float max_fall_speed = 6; // max fall speed in m/s. should normally be negative
44
- optional float turn_speed = 7; // speed the player turns in tank mode, in radians/s
45
- optional float walk_speed = 8; // speed the player walks at, in m/s
46
- optional bool allow_weighted_movement = 9; // whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true
47
- }
48
-
49
- enum AvatarControlType {
50
- CCT_NONE = 0; // avatar cannot move
51
- CCT_RELATIVE = 1; // avatar moves relative to the camera origin
52
- CCT_TANK = 2; // avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player
53
- }
@@ -9,7 +9,7 @@ import "decentraland/sdk/components/common/id.proto";
9
9
  option (common.ecs_component_id) = 1071;
10
10
 
11
11
  // The CameraModeArea component can be attached to an Entity to define a region of space where
12
- // the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
12
+ // the player's camera mode (1st-person or 3rd-person) is overridden.
13
13
  //
14
14
  // The Entity's Transform position determines the center-point of the region, while its size is
15
15
  // given as a vector in the `area` property below. The Transform rotation is applied, but the scale
@@ -19,26 +19,7 @@ option (common.ecs_component_id) = 1071;
19
19
  //
20
20
  // Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
21
21
  // is actually a 3D volume.
22
- //
23
- // When mode is set to CtCinematic, the cinematic_settings field must also be provided.
24
22
  message PBCameraModeArea {
25
- decentraland.common.Vector3 area = 1; // the 3D size of the region
26
- common.CameraType mode = 2; // the camera mode to enforce
27
- optional CinematicSettings cinematic_settings = 3;
28
- optional bool use_collider_range = 4; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
29
- }
30
-
31
- message CinematicSettings {
32
- uint32 camera_entity = 1; // Entity that defines the cinematic camera transform.
33
- // Position -> camera's position
34
- // Rotation -> camera's direction
35
- // scale.z -> zoom level
36
- // scale.x and scale.y -> unused
37
- optional bool allow_manual_rotation = 2; // whether the user can move the camera's rotation. default false
38
- optional float yaw_range = 3; // how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted
39
- optional float pitch_range = 4; // how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted
40
- // note: cameras can never look up/down further than Vec3::Y
41
- optional float roll_range = 5; // how far the camera can rotate around the z-axis / tilt, in radians. default unrestricted
42
- optional float zoom_min = 6; // minimum zoom level. must be greater than 0. defaults to the input zoom level
43
- optional float zoom_max = 7; // maximum zoom level. must be greater than 0. defaults to the input zoom level
23
+ decentraland.common.Vector3 area = 1; // the 3D size of the region
24
+ common.CameraType mode = 2; // the camera mode to enforce
44
25
  }
@@ -10,17 +10,4 @@ import "decentraland/sdk/components/common/loading_state.proto";
10
10
  // the current state of the GltfContainer of an entity.
11
11
  message PBGltfContainerLoadingState {
12
12
  common.LoadingState current_state = 1;
13
- repeated string node_paths = 2; // all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents
14
- repeated string mesh_names = 3; // all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY`
15
- // where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
16
- // conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
17
- repeated string material_names = 4; // all materials in the gltf. unnamed materials will be auto-assigned a name of the form `MaterialX` where
18
- // X is the material index. note this may conflict with manually named materials - to avoid any issues make
19
- // sure all your materials are explicitly named.
20
- repeated string skin_names = 5; // all mesh skins in the gltf. unnamed skins will be auto-assigned a name of the form `SkinX` where
21
- // X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
22
- // your skins are explicitly named.
23
- repeated string animation_names = 6; // all animations in the gltf. unnamed animations will be auto-assigned a name of the form `AnimationX` where
24
- // X is the animation index. note this may conflict with manually named anims - to avoid any issues make sure all
25
- // your animations are explicitly named.
26
13
  }
@@ -53,16 +53,5 @@ message PBMaterial {
53
53
  UnlitMaterial unlit = 1;
54
54
  PbrMaterial pbr = 2;
55
55
  }
56
-
57
- message GltfMaterial {
58
- string gltf_src = 1;
59
- string name = 2;
60
- }
61
56
 
62
- // A gltf material that may provide additional features not supported by the PbMaterial fields.
63
- // If both gltf and material fields are provided, the gltf will be used only for extended features not
64
- // supported by the PbMaterial.
65
- // If this is provided and the `material` field is not provided, the renderer will update the material
66
- // field with data that reflects the gltf material once it is loaded.
67
- optional GltfMaterial gltf = 3;
68
57
  }
@@ -30,12 +30,6 @@ message PBMeshCollider {
30
30
  // SphereMesh is a sphere shape that contains the Entity.
31
31
  message SphereMesh {}
32
32
 
33
- // A collider constructed from a Gltf Mesh.
34
- message GltfMesh {
35
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
36
- string name = 2; // the name of the mesh asset
37
- }
38
-
39
33
  optional uint32 collision_mask = 1; // enabled ColliderLayers (default CL_POINTER | CL_PHYSICS)
40
34
 
41
35
  oneof mesh {
@@ -43,7 +37,6 @@ message PBMeshCollider {
43
37
  SphereMesh sphere = 3;
44
38
  CylinderMesh cylinder = 4;
45
39
  PlaneMesh plane = 5;
46
- GltfMesh gltf = 6;
47
40
  }
48
41
  }
49
42
 
@@ -66,4 +59,4 @@ enum ColliderLayer {
66
59
  CL_CUSTOM6 = 8192;
67
60
  CL_CUSTOM7 = 16384;
68
61
  CL_CUSTOM8 = 32768;
69
- }
62
+ }
@@ -5,11 +5,13 @@ import "decentraland/sdk/components/common/id.proto";
5
5
  option (common.ecs_component_id) = 1018;
6
6
 
7
7
  // The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
8
- // plane, a sphere, a cylinder, or a Gltf mesh.
8
+ // plane, a sphere or a cylinder.
9
9
  //
10
10
  // The cube and plane variants can include a UV texture mapping, so specific areas of a material
11
11
  // texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
12
12
  // `float` coordinates, one for each corner of each side of each face.
13
+ //
14
+ // More complex shapes require the use of a `GltfContainer` component.
13
15
  message PBMeshRenderer {
14
16
 
15
17
  // BoxMesh renders a prism shape.
@@ -32,17 +34,10 @@ message PBMeshRenderer {
32
34
  message SphereMesh {
33
35
  }
34
36
 
35
- // A mesh from a Gltf.
36
- message GltfMesh {
37
- string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
38
- string name = 2; // the name of the mesh asset
39
- }
40
-
41
37
  oneof mesh {
42
38
  BoxMesh box = 1;
43
39
  SphereMesh sphere = 2;
44
40
  CylinderMesh cylinder = 3;
45
41
  PlaneMesh plane = 4;
46
- GltfMesh gltf = 5;
47
42
  }
48
43
  }
@@ -23,7 +23,4 @@ message PBUiText {
23
23
  optional common.Font font = 4; // font for the text (default: sans-serif)
24
24
  optional int32 font_size = 5; // size of the text (default: 10)
25
25
  optional TextWrap text_wrap = 6; // wrap text when the border is reached (default: TW_WRAP)
26
-
27
- optional float outline_width = 7; // width of the outline (default: 0)
28
- optional decentraland.common.Color4 outline_color = 8; // RGBA color of the outline (default: opaque black)
29
26
  }
@@ -3,7 +3,6 @@ syntax = "proto3";
3
3
  package decentraland.sdk.components;
4
4
 
5
5
  import "decentraland/sdk/components/common/id.proto";
6
- import "decentraland/common/vectors.proto";
7
6
 
8
7
  option (common.ecs_component_id) = 1050;
9
8
 
@@ -80,20 +79,6 @@ enum PointerFilterMode {
80
79
  PFM_BLOCK = 1;
81
80
  }
82
81
 
83
- enum ShowScrollBar {
84
- SSB_BOTH = 0;
85
- SSB_ONLY_VERTICAL = 1;
86
- SSB_ONLY_HORIZONTAL = 2;
87
- SSB_HIDDEN = 3;
88
- }
89
-
90
- message ScrollPositionValue {
91
- oneof value {
92
- decentraland.common.Vector2 position = 1;
93
- string reference = 2;
94
- }
95
- }
96
-
97
82
  message PBUiTransform {
98
83
  int32 parent = 1;
99
84
  int32 right_of = 2;
@@ -160,10 +145,4 @@ message PBUiTransform {
160
145
  float padding_bottom = 51;
161
146
 
162
147
  optional PointerFilterMode pointer_filter = 52; // default: PointerFilterMode.PFM_NONE
163
- optional float opacity = 53; // default: 1
164
-
165
- optional string element_id = 54; // default empty
166
-
167
- optional ScrollPositionValue scroll_position = 55; // default position=(0,0)
168
- optional ShowScrollBar scroll_visible = 56; // default ShowScrollBar.SSB_BOTH
169
148
  }
@@ -16,8 +16,6 @@ import public "decentraland/sdk/components/camera_mode.proto";
16
16
  import public "decentraland/sdk/components/engine_info.proto";
17
17
  import public "decentraland/sdk/components/gltf_container.proto";
18
18
  import public "decentraland/sdk/components/gltf_container_loading_state.proto";
19
- import public "decentraland/sdk/components/gltf_node.proto";
20
- import public "decentraland/sdk/components/gltf_node_state.proto";
21
19
  import public "decentraland/sdk/components/material.proto";
22
20
  import public "decentraland/sdk/components/mesh_collider.proto";
23
21
  import public "decentraland/sdk/components/mesh_renderer.proto";