@dcl/protocol 1.0.0-24513643863.commit-4851fd6 → 1.0.0-24662786301.commit-0f034b7

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 (30) hide show
  1. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +101 -0
  2. package/out-js/decentraland/kernel/apis/comms_api.gen.js +428 -1
  3. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -21
  5. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +6 -85
  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 -21
  8. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
  9. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -8
  11. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -35
  12. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
  14. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
  15. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  16. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +466 -0
  17. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +3 -89
  18. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
  19. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -34
  20. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
  21. package/package.json +3 -3
  22. package/proto/decentraland/kernel/apis/comms_api.proto +29 -0
  23. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -7
  24. package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
  25. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -5
  26. package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
  27. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  28. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  29. package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
  30. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -21
@@ -137,36 +137,6 @@ export interface PlayerEmote {
137
137
  incrementalId: number;
138
138
  urn: string;
139
139
  timestamp: number;
140
- /** true means the emote has been stopped in the sender's client */
141
- isStopping?:
142
- | boolean
143
- | undefined;
144
- /** true when it is not the first time the looping animation plays */
145
- isRepeating?:
146
- | boolean
147
- | undefined;
148
- /** identifies an interaction univocaly, established when the start animation is triggered */
149
- interactionId?:
150
- | number
151
- | undefined;
152
- /** -1 means it does not use an outcome animation */
153
- socialEmoteOutcome?:
154
- | number
155
- | undefined;
156
- /** to a social emote started by other user */
157
- isReacting?:
158
- | boolean
159
- | undefined;
160
- /** wallet address of the user that initiated social emote */
161
- socialEmoteInitiator?:
162
- | string
163
- | undefined;
164
- /** wallet address of the user whose avatar is the target of a directed emote */
165
- targetAvatar?:
166
- | string
167
- | undefined;
168
- /** mask for which bones an animation applies to. */
169
- mask?: number | undefined;
170
140
  }
171
141
 
172
142
  export interface SceneEmote {
@@ -191,11 +161,6 @@ export interface ProfileResponse {
191
161
  export interface Chat {
192
162
  message: string;
193
163
  timestamp: number;
194
- /**
195
- * Extension: optional forwarded_from to identify the original sender when
196
- * messages are forwarded through an SFU
197
- */
198
- forwardedFrom?: string | undefined;
199
164
  }
200
165
 
201
166
  export interface Scene {
@@ -1322,19 +1287,7 @@ export namespace MovementCompressed {
1322
1287
  }
1323
1288
 
1324
1289
  function createBasePlayerEmote(): PlayerEmote {
1325
- return {
1326
- incrementalId: 0,
1327
- urn: "",
1328
- timestamp: 0,
1329
- isStopping: undefined,
1330
- isRepeating: undefined,
1331
- interactionId: undefined,
1332
- socialEmoteOutcome: undefined,
1333
- isReacting: undefined,
1334
- socialEmoteInitiator: undefined,
1335
- targetAvatar: undefined,
1336
- mask: undefined,
1337
- };
1290
+ return { incrementalId: 0, urn: "", timestamp: 0 };
1338
1291
  }
1339
1292
 
1340
1293
  export namespace PlayerEmote {
@@ -1348,30 +1301,6 @@ export namespace PlayerEmote {
1348
1301
  if (message.timestamp !== 0) {
1349
1302
  writer.uint32(29).float(message.timestamp);
1350
1303
  }
1351
- if (message.isStopping !== undefined) {
1352
- writer.uint32(32).bool(message.isStopping);
1353
- }
1354
- if (message.isRepeating !== undefined) {
1355
- writer.uint32(40).bool(message.isRepeating);
1356
- }
1357
- if (message.interactionId !== undefined) {
1358
- writer.uint32(48).int32(message.interactionId);
1359
- }
1360
- if (message.socialEmoteOutcome !== undefined) {
1361
- writer.uint32(56).int32(message.socialEmoteOutcome);
1362
- }
1363
- if (message.isReacting !== undefined) {
1364
- writer.uint32(64).bool(message.isReacting);
1365
- }
1366
- if (message.socialEmoteInitiator !== undefined) {
1367
- writer.uint32(74).string(message.socialEmoteInitiator);
1368
- }
1369
- if (message.targetAvatar !== undefined) {
1370
- writer.uint32(82).string(message.targetAvatar);
1371
- }
1372
- if (message.mask !== undefined) {
1373
- writer.uint32(88).uint32(message.mask);
1374
- }
1375
1304
  return writer;
1376
1305
  }
1377
1306
 
@@ -1403,62 +1332,6 @@ export namespace PlayerEmote {
1403
1332
 
1404
1333
  message.timestamp = reader.float();
1405
1334
  continue;
1406
- case 4:
1407
- if (tag !== 32) {
1408
- break;
1409
- }
1410
-
1411
- message.isStopping = reader.bool();
1412
- continue;
1413
- case 5:
1414
- if (tag !== 40) {
1415
- break;
1416
- }
1417
-
1418
- message.isRepeating = reader.bool();
1419
- continue;
1420
- case 6:
1421
- if (tag !== 48) {
1422
- break;
1423
- }
1424
-
1425
- message.interactionId = reader.int32();
1426
- continue;
1427
- case 7:
1428
- if (tag !== 56) {
1429
- break;
1430
- }
1431
-
1432
- message.socialEmoteOutcome = reader.int32();
1433
- continue;
1434
- case 8:
1435
- if (tag !== 64) {
1436
- break;
1437
- }
1438
-
1439
- message.isReacting = reader.bool();
1440
- continue;
1441
- case 9:
1442
- if (tag !== 74) {
1443
- break;
1444
- }
1445
-
1446
- message.socialEmoteInitiator = reader.string();
1447
- continue;
1448
- case 10:
1449
- if (tag !== 82) {
1450
- break;
1451
- }
1452
-
1453
- message.targetAvatar = reader.string();
1454
- continue;
1455
- case 11:
1456
- if (tag !== 88) {
1457
- break;
1458
- }
1459
-
1460
- message.mask = reader.uint32();
1461
- continue;
1462
1335
  }
1463
1336
  if ((tag & 7) === 4 || tag === 0) {
1464
1337
  break;
@@ -1473,14 +1346,6 @@ export namespace PlayerEmote {
1473
1346
  incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
1474
1347
  urn: isSet(object.urn) ? String(object.urn) : "",
1475
1348
  timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1476
- isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
1477
- isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
1478
- interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
1479
- socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
1480
- isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
1481
- socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
1482
- targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
1483
- mask: isSet(object.mask) ? Number(object.mask) : undefined,
1484
1349
  };
1485
1350
  }
1486
1351
 
@@ -1489,14 +1354,6 @@ export namespace PlayerEmote {
1489
1354
  message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
1490
1355
  message.urn !== undefined && (obj.urn = message.urn);
1491
1356
  message.timestamp !== undefined && (obj.timestamp = message.timestamp);
1492
- message.isStopping !== undefined && (obj.isStopping = message.isStopping);
1493
- message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
1494
- message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
1495
- message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
1496
- message.isReacting !== undefined && (obj.isReacting = message.isReacting);
1497
- message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
1498
- message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
1499
- message.mask !== undefined && (obj.mask = Math.round(message.mask));
1500
1357
  return obj;
1501
1358
  }
1502
1359
 
@@ -1509,14 +1366,6 @@ export namespace PlayerEmote {
1509
1366
  message.incrementalId = object.incrementalId ?? 0;
1510
1367
  message.urn = object.urn ?? "";
1511
1368
  message.timestamp = object.timestamp ?? 0;
1512
- message.isStopping = object.isStopping ?? undefined;
1513
- message.isRepeating = object.isRepeating ?? undefined;
1514
- message.interactionId = object.interactionId ?? undefined;
1515
- message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
1516
- message.isReacting = object.isReacting ?? undefined;
1517
- message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
1518
- message.targetAvatar = object.targetAvatar ?? undefined;
1519
- message.mask = object.mask ?? undefined;
1520
1369
  return message;
1521
1370
  }
1522
1371
  }
@@ -1793,7 +1642,7 @@ export namespace ProfileResponse {
1793
1642
  }
1794
1643
 
1795
1644
  function createBaseChat(): Chat {
1796
- return { message: "", timestamp: 0, forwardedFrom: undefined };
1645
+ return { message: "", timestamp: 0 };
1797
1646
  }
1798
1647
 
1799
1648
  export namespace Chat {
@@ -1804,9 +1653,6 @@ export namespace Chat {
1804
1653
  if (message.timestamp !== 0) {
1805
1654
  writer.uint32(17).double(message.timestamp);
1806
1655
  }
1807
- if (message.forwardedFrom !== undefined) {
1808
- writer.uint32(26).string(message.forwardedFrom);
1809
- }
1810
1656
  return writer;
1811
1657
  }
1812
1658
 
@@ -1831,13 +1677,6 @@ export namespace Chat {
1831
1677
 
1832
1678
  message.timestamp = reader.double();
1833
1679
  continue;
1834
- case 3:
1835
- if (tag !== 26) {
1836
- break;
1837
- }
1838
-
1839
- message.forwardedFrom = reader.string();
1840
- continue;
1841
1680
  }
1842
1681
  if ((tag & 7) === 4 || tag === 0) {
1843
1682
  break;
@@ -1851,7 +1690,6 @@ export namespace Chat {
1851
1690
  return {
1852
1691
  message: isSet(object.message) ? String(object.message) : "",
1853
1692
  timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
1854
- forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
1855
1693
  };
1856
1694
  }
1857
1695
 
@@ -1859,7 +1697,6 @@ export namespace Chat {
1859
1697
  const obj: any = {};
1860
1698
  message.message !== undefined && (obj.message = message.message);
1861
1699
  message.timestamp !== undefined && (obj.timestamp = message.timestamp);
1862
- message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
1863
1700
  return obj;
1864
1701
  }
1865
1702
 
@@ -1871,7 +1708,6 @@ export namespace Chat {
1871
1708
  const message = createBaseChat();
1872
1709
  message.message = object.message ?? "";
1873
1710
  message.timestamp = object.timestamp ?? 0;
1874
- message.forwardedFrom = object.forwardedFrom ?? undefined;
1875
1711
  return message;
1876
1712
  }
1877
1713
  }
@@ -5,40 +5,6 @@ import { Color3 } from "../../common/colors.gen";
5
5
 
6
6
  export const protobufPackage = "decentraland.sdk.components";
7
7
 
8
- /** Mask for which bones an animation applies to. */
9
- export enum AvatarEmoteMask {
10
- AEM_FULL_BODY = 0,
11
- AEM_UPPER_BODY = 1,
12
- UNRECOGNIZED = -1,
13
- }
14
-
15
- export function avatarEmoteMaskFromJSON(object: any): AvatarEmoteMask {
16
- switch (object) {
17
- case 0:
18
- case "AEM_FULL_BODY":
19
- return AvatarEmoteMask.AEM_FULL_BODY;
20
- case 1:
21
- case "AEM_UPPER_BODY":
22
- return AvatarEmoteMask.AEM_UPPER_BODY;
23
- case -1:
24
- case "UNRECOGNIZED":
25
- default:
26
- return AvatarEmoteMask.UNRECOGNIZED;
27
- }
28
- }
29
-
30
- export function avatarEmoteMaskToJSON(object: AvatarEmoteMask): string {
31
- switch (object) {
32
- case AvatarEmoteMask.AEM_FULL_BODY:
33
- return "AEM_FULL_BODY";
34
- case AvatarEmoteMask.AEM_UPPER_BODY:
35
- return "AEM_UPPER_BODY";
36
- case AvatarEmoteMask.UNRECOGNIZED:
37
- default:
38
- return "UNRECOGNIZED";
39
- }
40
- }
41
-
42
8
  /**
43
9
  * The AvatarShape component contains the information required to draw and animate avatar, acting as
44
10
  * a simplified GLTF container for this specific case.
@@ -17,7 +17,6 @@ export enum InputAction {
17
17
  IA_ACTION_4 = 11,
18
18
  IA_ACTION_5 = 12,
19
19
  IA_ACTION_6 = 13,
20
- IA_MODIFIER = 14,
21
20
  UNRECOGNIZED = -1,
22
21
  }
23
22
 
@@ -65,9 +64,6 @@ export function inputActionFromJSON(object: any): InputAction {
65
64
  case 13:
66
65
  case "IA_ACTION_6":
67
66
  return InputAction.IA_ACTION_6;
68
- case 14:
69
- case "IA_MODIFIER":
70
- return InputAction.IA_MODIFIER;
71
67
  case -1:
72
68
  case "UNRECOGNIZED":
73
69
  default:
@@ -105,8 +101,6 @@ export function inputActionToJSON(object: InputAction): string {
105
101
  return "IA_ACTION_5";
106
102
  case InputAction.IA_ACTION_6:
107
103
  return "IA_ACTION_6";
108
- case InputAction.IA_MODIFIER:
109
- return "IA_MODIFIER";
110
104
  case InputAction.UNRECOGNIZED:
111
105
  default:
112
106
  return "UNRECOGNIZED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-24513643863.commit-4851fd6",
3
+ "version": "1.0.0-24662786301.commit-0f034b7",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -13,7 +13,7 @@
13
13
  "test": "./scripts/check-proto-compabitility.sh"
14
14
  },
15
15
  "devDependencies": {
16
- "@protobuf-ts/protoc": "^2.11.0",
16
+ "@protobuf-ts/protoc": "^2.8.1",
17
17
  "proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
18
18
  "typescript": "^5.0.4"
19
19
  },
@@ -30,5 +30,5 @@
30
30
  "out-js",
31
31
  "public"
32
32
  ],
33
- "commit": "4851fd6bac60df3272133f81489a5f71c8de525c"
33
+ "commit": "0f034b73c85ff1e98454841c0562cab46239403e"
34
34
  }
@@ -20,6 +20,35 @@ message VideoTracksActiveStreamsData {
20
20
  VideoTrackSourceType source_type = 3;
21
21
  }
22
22
 
23
+ message SubscribeToTopicRequest {
24
+ string topic = 1;
25
+ }
26
+
27
+ message SubscribeToTopicResponse {}
28
+
29
+ message PublishDataRequest {
30
+ string topic = 1;
31
+ string data = 2;
32
+ }
33
+
34
+ message PublishDataResponse {}
35
+
36
+ message ConsumeMessagesRequest {
37
+ string topic = 1;
38
+ }
39
+
40
+ message ConsumeMessages {
41
+ string sender = 1;
42
+ string data = 2;
43
+ }
44
+
45
+ message ConsumeMessagesResponse {
46
+ repeated ConsumeMessages messages = 1;
47
+ }
48
+
23
49
  service CommsApiService {
24
50
  rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
51
+ rpc SubscribeToTopic(SubscribeToTopicRequest) returns (SubscribeToTopicResponse) {}
52
+ rpc PublishData(PublishDataRequest) returns (PublishDataResponse) {}
53
+ rpc ConsumeMessages(ConsumeMessagesRequest) returns (ConsumeMessagesResponse) {}
25
54
  }
@@ -16,7 +16,6 @@ message TeleportToRequest {
16
16
 
17
17
  message TriggerEmoteRequest {
18
18
  string predefined_emote = 1;
19
- optional uint32 mask = 2;
20
19
  }
21
20
 
22
21
  message ChangeRealmRequest {
@@ -41,7 +40,6 @@ message CommsAdapterRequest {
41
40
  message TriggerSceneEmoteRequest {
42
41
  string src = 1;
43
42
  optional bool loop = 2;
44
- optional uint32 mask = 3;
45
43
  }
46
44
 
47
45
  message SuccessResponse {
@@ -62,8 +60,6 @@ message CopyToClipboardRequest {
62
60
 
63
61
  message EmptyResponse { }
64
62
 
65
- message StopEmoteRequest { }
66
-
67
63
  service RestrictedActionsService {
68
64
  // MovePlayerTo will move the player to a position relative to the current scene.
69
65
  // If 'duration' field is used in the request, the success response depends on the
@@ -94,7 +90,4 @@ service RestrictedActionsService {
94
90
 
95
91
  // CopyToClipboard copies the provided text into the clipboard
96
92
  rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
97
-
98
- // StopEmote will stop the current emote
99
- rpc StopEmote(StopEmoteRequest) returns (SuccessResponse) {}
100
93
  }
@@ -94,14 +94,6 @@ message PlayerEmote {
94
94
  uint32 incremental_id = 1;
95
95
  string urn = 2;
96
96
  float timestamp = 3;
97
- optional bool is_stopping = 4; // true means the emote has been stopped in the sender's client
98
- optional bool is_repeating = 5; // true when it is not the first time the looping animation plays
99
- optional int32 interaction_id = 6; // identifies an interaction univocaly, established when the start animation is triggered
100
- optional int32 social_emote_outcome = 7; // -1 means it does not use an outcome animation
101
- optional bool is_reacting = 8; // to a social emote started by other user
102
- optional string social_emote_initiator = 9; // wallet address of the user that initiated social emote
103
- optional string target_avatar = 10; // wallet address of the user whose avatar is the target of a directed emote
104
- optional uint32 mask = 11; // mask for which bones an animation applies to.
105
97
  }
106
98
 
107
99
  message SceneEmote {
@@ -134,9 +126,6 @@ message ProfileResponse {
134
126
  message Chat {
135
127
  string message = 1;
136
128
  double timestamp = 2;
137
- // Extension: optional forwarded_from to identify the original sender when
138
- // messages are forwarded through an SFU
139
- optional string forwarded_from = 3;
140
129
  }
141
130
 
142
131
  message Scene {
@@ -42,8 +42,3 @@ message PBAvatarShape {
42
42
  optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
43
43
  }
44
44
 
45
- // Mask for which bones an animation applies to.
46
- enum AvatarEmoteMask {
47
- AEM_FULL_BODY = 0;
48
- AEM_UPPER_BODY = 1;
49
- }
@@ -17,7 +17,6 @@ enum InputAction {
17
17
  IA_ACTION_4 = 11;
18
18
  IA_ACTION_5 = 12;
19
19
  IA_ACTION_6 = 13;
20
- IA_MODIFIER = 14;
21
20
  }
22
21
 
23
22
  // PointerEventType is a kind of interaction that can be detected.
@@ -25,4 +25,4 @@ message PBLightSource {
25
25
  optional float inner_angle = 9; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
26
26
  optional float outer_angle = 10; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
27
27
  }
28
- }
28
+ }
@@ -10,9 +10,7 @@ option (common.ecs_component_id) = 1076;
10
10
  // an 'instant' transition (like using speed/time = 0)
11
11
  // * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
12
12
  // the holding entity transform).
13
- // * The fov defines the Field of View of the virtual camera
14
13
  message PBVirtualCamera {
15
14
  optional common.CameraTransition default_transition = 1;
16
15
  optional uint32 look_at_entity = 2;
17
- optional float fov = 3; // default: 60
18
16
  }
@@ -1,44 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1212;
6
-
7
- enum PBAudioAnalysisMode {
8
- MODE_RAW = 0;
9
- MODE_LOGARITHMIC = 1;
10
- }
11
-
12
- message PBAudioAnalysis {
13
-
14
- // Parameters section
15
- PBAudioAnalysisMode mode = 1;
16
-
17
- // Used only when mode == MODE_LOGARITHMIC
18
- optional float amplitude_gain = 100;
19
- optional float bands_gain = 101;
20
- // End when mode == MODE_LOGARITHMIC
21
-
22
- // End Parameters section
23
-
24
- // Result section
25
- float amplitude = 200;
26
-
27
- // Protobuf doesn't support fixed arrays -> 8 band fields
28
- float band_0 = 201;
29
- float band_1 = 202;
30
- float band_2 = 203;
31
- float band_3 = 204;
32
- float band_4 = 205;
33
- float band_5 = 206;
34
- float band_6 = 207;
35
- float band_7 = 208;
36
-
37
- // End Result section
38
-
39
- // Future fields
40
- // float spectral_centroid = 13;
41
- // float spectral_flux = 14;
42
- // bool onset = 15;
43
- // float bpm = 16;
44
- }
@@ -1,21 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components;
4
-
5
- import "decentraland/sdk/components/common/id.proto";
6
-
7
- option (common.ecs_component_id) = 1211;
8
-
9
- // The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
10
- // as the avatar movement speed, jump height etc.
11
- message PBAvatarLocomotionSettings {
12
- optional float walk_speed = 1; // Maximum speed when walking (in meters per second)
13
- optional float jog_speed = 2; // Maximum speed when jogging (in meters per second)
14
- optional float run_speed = 3; // Maximum speed when running (in meters per second)
15
- optional float jump_height = 4; // Height of a regular jump (in meters)
16
- optional float run_jump_height = 5; // Height of a jump while running (in meters)
17
- optional float hard_landing_cooldown = 6; // Cooldown time after a hard landing before the avatar can move again (in seconds)
18
- optional float double_jump_height = 7; // Height of the double jump (in meters)
19
- optional float gliding_speed = 8; // Maximum speed when gliding (in meters per second)
20
- optional float gliding_falling_speed = 9; // Maximum falling speed when gliding (in meters per second)
21
- }