@dcl/protocol 1.0.0-9085309459.commit-26cae18 → 1.0.0-9127033568.commit-26c5ae7

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 (26) hide show
  1. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +22 -7
  2. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +123 -33
  3. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
  4. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  5. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  6. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  8. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  9. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  11. package/out-js/decentraland/sdk/components/ui_text.gen.js +37 -2
  12. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +2 -0
  14. package/out-js/decentraland/sdk/components/ui_transform.gen.js +14 -1
  15. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  16. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +123 -33
  17. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  18. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  19. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +47 -2
  20. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +19 -1
  21. package/package.json +2 -2
  22. package/proto/decentraland/sdk/components/avatar_attach.proto +23 -8
  23. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  24. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  25. package/proto/decentraland/sdk/components/ui_text.proto +2 -0
  26. package/proto/decentraland/sdk/components/ui_transform.proto +1 -0
@@ -561,7 +561,11 @@ export interface PBUiTransform {
561
561
  paddingBottomUnit: YGUnit;
562
562
  paddingBottom: number;
563
563
  /** default: PointerFilterMode.PFM_NONE */
564
- pointerFilter?: PointerFilterMode | undefined;
564
+ pointerFilter?:
565
+ | PointerFilterMode
566
+ | undefined;
567
+ /** default: 1 */
568
+ opacity?: number | undefined;
565
569
  }
566
570
 
567
571
  function createBasePBUiTransform(): PBUiTransform {
@@ -618,6 +622,7 @@ function createBasePBUiTransform(): PBUiTransform {
618
622
  paddingBottomUnit: 0,
619
623
  paddingBottom: 0,
620
624
  pointerFilter: undefined,
625
+ opacity: undefined,
621
626
  };
622
627
  }
623
628
 
@@ -779,6 +784,9 @@ export namespace PBUiTransform {
779
784
  if (message.pointerFilter !== undefined) {
780
785
  writer.uint32(416).int32(message.pointerFilter);
781
786
  }
787
+ if (message.opacity !== undefined) {
788
+ writer.uint32(429).float(message.opacity);
789
+ }
782
790
  return writer;
783
791
  }
784
792
 
@@ -1153,6 +1161,13 @@ export namespace PBUiTransform {
1153
1161
 
1154
1162
  message.pointerFilter = reader.int32() as any;
1155
1163
  continue;
1164
+ case 53:
1165
+ if (tag !== 429) {
1166
+ break;
1167
+ }
1168
+
1169
+ message.opacity = reader.float();
1170
+ continue;
1156
1171
  }
1157
1172
  if ((tag & 7) === 4 || tag === 0) {
1158
1173
  break;
@@ -1216,6 +1231,7 @@ export namespace PBUiTransform {
1216
1231
  paddingBottomUnit: isSet(object.paddingBottomUnit) ? yGUnitFromJSON(object.paddingBottomUnit) : 0,
1217
1232
  paddingBottom: isSet(object.paddingBottom) ? Number(object.paddingBottom) : 0,
1218
1233
  pointerFilter: isSet(object.pointerFilter) ? pointerFilterModeFromJSON(object.pointerFilter) : undefined,
1234
+ opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
1219
1235
  };
1220
1236
  }
1221
1237
 
@@ -1279,6 +1295,7 @@ export namespace PBUiTransform {
1279
1295
  (obj.pointerFilter = message.pointerFilter !== undefined
1280
1296
  ? pointerFilterModeToJSON(message.pointerFilter)
1281
1297
  : undefined);
1298
+ message.opacity !== undefined && (obj.opacity = message.opacity);
1282
1299
  return obj;
1283
1300
  }
1284
1301
 
@@ -1340,6 +1357,7 @@ export namespace PBUiTransform {
1340
1357
  message.paddingBottomUnit = object.paddingBottomUnit ?? 0;
1341
1358
  message.paddingBottom = object.paddingBottom ?? 0;
1342
1359
  message.pointerFilter = object.pointerFilter ?? undefined;
1360
+ message.opacity = object.opacity ?? undefined;
1343
1361
  return message;
1344
1362
  }
1345
1363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-9085309459.commit-26cae18",
3
+ "version": "1.0.0-9127033568.commit-26c5ae7",
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": "26cae184e51f903626d8aaffbc0ff793f583a64b"
32
+ "commit": "26c5ae7313298e0623b2474d9625a359493728c1"
33
33
  }
@@ -21,15 +21,30 @@ message PBAvatarAttach {
21
21
 
22
22
  // AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity.
23
23
  enum AvatarAnchorPointType {
24
- AAPT_POSITION = 0;
24
+ AAPT_POSITION = 0;
25
25
  AAPT_NAME_TAG = 1;
26
+ AAPT_HEAD = 4;
27
+ AAPT_NECK = 5;
28
+ AAPT_SPINE = 6;
29
+ AAPT_SPINE1 = 7;
30
+ AAPT_SPINE2 = 8;
31
+ AAPT_HIP = 9;
32
+ AAPT_LEFT_SHOULDER = 10;
33
+ AAPT_LEFT_ARM = 11;
34
+ AAPT_LEFT_FOREARM = 12;
26
35
  AAPT_LEFT_HAND = 2;
36
+ AAPT_LEFT_HAND_INDEX = 13;
37
+ AAPT_RIGHT_SHOULDER = 14;
38
+ AAPT_RIGHT_ARM = 15;
39
+ AAPT_RIGHT_FOREARM = 16;
27
40
  AAPT_RIGHT_HAND = 3;
28
- AAPT_HEAD = 4;
29
- AAPT_BACK = 5;
30
- AAPT_LEFT_FOOT = 6;
31
- AAPT_RIGHT_FOOT = 7;
32
- AAPT_LEFT_SHOULDER = 8;
33
- AAPT_RIGHT_SHOULDER = 9;
34
- AAPT_HIP = 10;
41
+ AAPT_RIGHT_HAND_INDEX = 17;
42
+ AAPT_LEFT_UP_LEG = 18;
43
+ AAPT_LEFT_LEG = 19;
44
+ AAPT_LEFT_FOOT = 20;
45
+ AAPT_LEFT_TOE_BASE = 21;
46
+ AAPT_RIGHT_UP_LEG = 22;
47
+ AAPT_RIGHT_LEG = 23;
48
+ AAPT_RIGHT_FOOT = 24;
49
+ AAPT_RIGHT_TOE_BASE = 25;
35
50
  }
@@ -23,6 +23,8 @@ 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
26
28
  }
27
29
 
28
30
  // AvatarModifierType is an effect that should be applied to avatars inside the region.
@@ -30,3 +32,22 @@ enum AvatarModifierType {
30
32
  AMT_HIDE_AVATARS = 0; // avatars are invisible
31
33
  AMT_DISABLE_PASSPORTS = 1; // selecting (e.g. clicking) an avatar will not bring up their profile.
32
34
  }
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 or 3rd-person) is overridden.
12
+ // the player's camera mode (1st-person, 3rd-person or cinematic) 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,7 +19,26 @@ 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.
22
24
  message PBCameraModeArea {
23
- decentraland.common.Vector3 area = 1; // the 3D size of the region
24
- common.CameraType mode = 2; // the camera mode to enforce
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
25
44
  }
@@ -17,4 +17,6 @@ message PBUiText {
17
17
  optional common.TextAlignMode text_align = 3; // alignment within the bounds (default: center)
18
18
  optional common.Font font = 4; // font for the text (default: sans-serif)
19
19
  optional int32 font_size = 5; // size of the text (default: 10)
20
+ optional float outline_width = 6; // width of the outline (default: 0)
21
+ optional decentraland.common.Color4 outline_color = 7; // RGBA color of the outline (default: opaque black)
20
22
  }
@@ -145,4 +145,5 @@ message PBUiTransform {
145
145
  float padding_bottom = 51;
146
146
 
147
147
  optional PointerFilterMode pointer_filter = 52; // default: PointerFilterMode.PFM_NONE
148
+ optional float opacity = 53; // default: 1
148
149
  }