@dcl/protocol 1.0.0-24504493688.commit-6a96fbb → 1.0.0-24513367586.commit-0ed6dc3
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.
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -21
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +6 -85
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -21
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -8
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -35
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +3 -89
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -34
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- package/package.json +3 -3
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -7
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -5
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/particle_system.proto +5 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -21
|
@@ -20,7 +20,6 @@ export interface TeleportToRequest {
|
|
|
20
20
|
|
|
21
21
|
export interface TriggerEmoteRequest {
|
|
22
22
|
predefinedEmote: string;
|
|
23
|
-
mask?: number | undefined;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
export interface ChangeRealmRequest {
|
|
@@ -46,7 +45,6 @@ export interface CommsAdapterRequest {
|
|
|
46
45
|
export interface TriggerSceneEmoteRequest {
|
|
47
46
|
src: string;
|
|
48
47
|
loop?: boolean | undefined;
|
|
49
|
-
mask?: number | undefined;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export interface SuccessResponse {
|
|
@@ -70,9 +68,6 @@ export interface CopyToClipboardRequest {
|
|
|
70
68
|
export interface EmptyResponse {
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
export interface StopEmoteRequest {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
71
|
function createBaseMovePlayerToRequest(): MovePlayerToRequest {
|
|
77
72
|
return { newRelativePosition: undefined, cameraTarget: undefined, avatarTarget: undefined, duration: undefined };
|
|
78
73
|
}
|
|
@@ -239,7 +234,7 @@ export namespace TeleportToRequest {
|
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
function createBaseTriggerEmoteRequest(): TriggerEmoteRequest {
|
|
242
|
-
return { predefinedEmote: ""
|
|
237
|
+
return { predefinedEmote: "" };
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
export namespace TriggerEmoteRequest {
|
|
@@ -247,9 +242,6 @@ export namespace TriggerEmoteRequest {
|
|
|
247
242
|
if (message.predefinedEmote !== "") {
|
|
248
243
|
writer.uint32(10).string(message.predefinedEmote);
|
|
249
244
|
}
|
|
250
|
-
if (message.mask !== undefined) {
|
|
251
|
-
writer.uint32(16).uint32(message.mask);
|
|
252
|
-
}
|
|
253
245
|
return writer;
|
|
254
246
|
}
|
|
255
247
|
|
|
@@ -267,13 +259,6 @@ export namespace TriggerEmoteRequest {
|
|
|
267
259
|
|
|
268
260
|
message.predefinedEmote = reader.string();
|
|
269
261
|
continue;
|
|
270
|
-
case 2:
|
|
271
|
-
if (tag !== 16) {
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
message.mask = reader.uint32();
|
|
276
|
-
continue;
|
|
277
262
|
}
|
|
278
263
|
if ((tag & 7) === 4 || tag === 0) {
|
|
279
264
|
break;
|
|
@@ -284,16 +269,12 @@ export namespace TriggerEmoteRequest {
|
|
|
284
269
|
}
|
|
285
270
|
|
|
286
271
|
export function fromJSON(object: any): TriggerEmoteRequest {
|
|
287
|
-
return {
|
|
288
|
-
predefinedEmote: isSet(object.predefinedEmote) ? String(object.predefinedEmote) : "",
|
|
289
|
-
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
290
|
-
};
|
|
272
|
+
return { predefinedEmote: isSet(object.predefinedEmote) ? String(object.predefinedEmote) : "" };
|
|
291
273
|
}
|
|
292
274
|
|
|
293
275
|
export function toJSON(message: TriggerEmoteRequest): unknown {
|
|
294
276
|
const obj: any = {};
|
|
295
277
|
message.predefinedEmote !== undefined && (obj.predefinedEmote = message.predefinedEmote);
|
|
296
|
-
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
297
278
|
return obj;
|
|
298
279
|
}
|
|
299
280
|
|
|
@@ -304,7 +285,6 @@ export namespace TriggerEmoteRequest {
|
|
|
304
285
|
export function fromPartial<I extends Exact<DeepPartial<TriggerEmoteRequest>, I>>(object: I): TriggerEmoteRequest {
|
|
305
286
|
const message = createBaseTriggerEmoteRequest();
|
|
306
287
|
message.predefinedEmote = object.predefinedEmote ?? "";
|
|
307
|
-
message.mask = object.mask ?? undefined;
|
|
308
288
|
return message;
|
|
309
289
|
}
|
|
310
290
|
}
|
|
@@ -595,7 +575,7 @@ export namespace CommsAdapterRequest {
|
|
|
595
575
|
}
|
|
596
576
|
|
|
597
577
|
function createBaseTriggerSceneEmoteRequest(): TriggerSceneEmoteRequest {
|
|
598
|
-
return { src: "", loop: undefined
|
|
578
|
+
return { src: "", loop: undefined };
|
|
599
579
|
}
|
|
600
580
|
|
|
601
581
|
export namespace TriggerSceneEmoteRequest {
|
|
@@ -606,9 +586,6 @@ export namespace TriggerSceneEmoteRequest {
|
|
|
606
586
|
if (message.loop !== undefined) {
|
|
607
587
|
writer.uint32(16).bool(message.loop);
|
|
608
588
|
}
|
|
609
|
-
if (message.mask !== undefined) {
|
|
610
|
-
writer.uint32(24).uint32(message.mask);
|
|
611
|
-
}
|
|
612
589
|
return writer;
|
|
613
590
|
}
|
|
614
591
|
|
|
@@ -633,13 +610,6 @@ export namespace TriggerSceneEmoteRequest {
|
|
|
633
610
|
|
|
634
611
|
message.loop = reader.bool();
|
|
635
612
|
continue;
|
|
636
|
-
case 3:
|
|
637
|
-
if (tag !== 24) {
|
|
638
|
-
break;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
message.mask = reader.uint32();
|
|
642
|
-
continue;
|
|
643
613
|
}
|
|
644
614
|
if ((tag & 7) === 4 || tag === 0) {
|
|
645
615
|
break;
|
|
@@ -653,7 +623,6 @@ export namespace TriggerSceneEmoteRequest {
|
|
|
653
623
|
return {
|
|
654
624
|
src: isSet(object.src) ? String(object.src) : "",
|
|
655
625
|
loop: isSet(object.loop) ? Boolean(object.loop) : undefined,
|
|
656
|
-
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
657
626
|
};
|
|
658
627
|
}
|
|
659
628
|
|
|
@@ -661,7 +630,6 @@ export namespace TriggerSceneEmoteRequest {
|
|
|
661
630
|
const obj: any = {};
|
|
662
631
|
message.src !== undefined && (obj.src = message.src);
|
|
663
632
|
message.loop !== undefined && (obj.loop = message.loop);
|
|
664
|
-
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
665
633
|
return obj;
|
|
666
634
|
}
|
|
667
635
|
|
|
@@ -677,7 +645,6 @@ export namespace TriggerSceneEmoteRequest {
|
|
|
677
645
|
const message = createBaseTriggerSceneEmoteRequest();
|
|
678
646
|
message.src = object.src ?? "";
|
|
679
647
|
message.loop = object.loop ?? undefined;
|
|
680
|
-
message.mask = object.mask ?? undefined;
|
|
681
648
|
return message;
|
|
682
649
|
}
|
|
683
650
|
}
|
|
@@ -984,50 +951,6 @@ export namespace EmptyResponse {
|
|
|
984
951
|
}
|
|
985
952
|
}
|
|
986
953
|
|
|
987
|
-
function createBaseStopEmoteRequest(): StopEmoteRequest {
|
|
988
|
-
return {};
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
export namespace StopEmoteRequest {
|
|
992
|
-
export function encode(_: StopEmoteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
993
|
-
return writer;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): StopEmoteRequest {
|
|
997
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
998
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
999
|
-
const message = createBaseStopEmoteRequest();
|
|
1000
|
-
while (reader.pos < end) {
|
|
1001
|
-
const tag = reader.uint32();
|
|
1002
|
-
switch (tag >>> 3) {
|
|
1003
|
-
}
|
|
1004
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1005
|
-
break;
|
|
1006
|
-
}
|
|
1007
|
-
reader.skipType(tag & 7);
|
|
1008
|
-
}
|
|
1009
|
-
return message;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
export function fromJSON(_: any): StopEmoteRequest {
|
|
1013
|
-
return {};
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
export function toJSON(_: StopEmoteRequest): unknown {
|
|
1017
|
-
const obj: any = {};
|
|
1018
|
-
return obj;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
export function create<I extends Exact<DeepPartial<StopEmoteRequest>, I>>(base?: I): StopEmoteRequest {
|
|
1022
|
-
return StopEmoteRequest.fromPartial(base ?? {});
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
export function fromPartial<I extends Exact<DeepPartial<StopEmoteRequest>, I>>(_: I): StopEmoteRequest {
|
|
1026
|
-
const message = createBaseStopEmoteRequest();
|
|
1027
|
-
return message;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
954
|
export type RestrictedActionsServiceDefinition = typeof RestrictedActionsServiceDefinition;
|
|
1032
955
|
export const RestrictedActionsServiceDefinition = {
|
|
1033
956
|
name: "RestrictedActionsService",
|
|
@@ -1121,15 +1044,6 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1121
1044
|
responseStream: false,
|
|
1122
1045
|
options: {},
|
|
1123
1046
|
},
|
|
1124
|
-
/** StopEmote will stop the current emote */
|
|
1125
|
-
stopEmote: {
|
|
1126
|
-
name: "StopEmote",
|
|
1127
|
-
requestType: StopEmoteRequest,
|
|
1128
|
-
requestStream: false,
|
|
1129
|
-
responseType: SuccessResponse,
|
|
1130
|
-
responseStream: false,
|
|
1131
|
-
options: {},
|
|
1132
|
-
},
|
|
1133
1047
|
},
|
|
1134
1048
|
} as const;
|
|
1135
1049
|
|
|
@@ -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
|
|
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-
|
|
3
|
+
"version": "1.0.0-24513367586.commit-0ed6dc3",
|
|
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.
|
|
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": "
|
|
33
|
+
"commit": "0ed6dc30842b75db984ca2b0f35c58551df358af"
|
|
34
34
|
}
|
|
@@ -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 {
|
|
@@ -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
|
+
}
|
|
@@ -65,7 +65,7 @@ message PBParticleSystem {
|
|
|
65
65
|
optional PlaybackState playback_state = 22; // default = PS_PLAYING
|
|
66
66
|
|
|
67
67
|
// --- Emission Bursts ---
|
|
68
|
-
|
|
68
|
+
optional BurstConfiguration bursts = 29;
|
|
69
69
|
|
|
70
70
|
// ---- Nested types ----
|
|
71
71
|
|
|
@@ -102,6 +102,10 @@ message PBParticleSystem {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// Emission burst configuration.
|
|
105
|
+
message BurstConfiguration {
|
|
106
|
+
repeated Burst values = 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
105
109
|
message Burst {
|
|
106
110
|
float time = 1; // Seconds from start of cycle.
|
|
107
111
|
uint32 count = 2; // Particles to emit.
|
|
@@ -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
|
}
|