@dcl/protocol 1.0.0-18103584382.commit-cb75aeb → 1.0.0-18353496499.commit-c68da26
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/comms/rfc4/comms.gen.d.ts +0 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +5 -55
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +47 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +318 -6
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1307
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -6731
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -65
- package/out-ts/decentraland/sdk/components/tween.gen.ts +347 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1016 -8593
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -8
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/tween.proto +19 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -539
- package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
- package/out-js/decentraland/social_service/errors.gen.js +0 -405
- package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
- package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
|
@@ -56,9 +56,6 @@ export interface Movement {
|
|
|
56
56
|
isFalling: boolean;
|
|
57
57
|
isStunned: boolean;
|
|
58
58
|
rotationY: number;
|
|
59
|
-
/** interpolation */
|
|
60
|
-
isInstant: boolean;
|
|
61
|
-
isEmoting: boolean;
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
export interface MovementCompressed {
|
|
@@ -71,7 +68,6 @@ export interface MovementCompressed {
|
|
|
71
68
|
export interface PlayerEmote {
|
|
72
69
|
incrementalId: number;
|
|
73
70
|
urn: string;
|
|
74
|
-
timestamp: number;
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
export interface SceneEmote {
|
|
@@ -96,11 +92,6 @@ export interface ProfileResponse {
|
|
|
96
92
|
export interface Chat {
|
|
97
93
|
message: string;
|
|
98
94
|
timestamp: number;
|
|
99
|
-
/**
|
|
100
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
101
|
-
* messages are forwarded through an SFU
|
|
102
|
-
*/
|
|
103
|
-
forwardedFrom?: string | undefined;
|
|
104
95
|
}
|
|
105
96
|
|
|
106
97
|
export interface Scene {
|
|
@@ -617,8 +608,6 @@ function createBaseMovement(): Movement {
|
|
|
617
608
|
isFalling: false,
|
|
618
609
|
isStunned: false,
|
|
619
610
|
rotationY: 0,
|
|
620
|
-
isInstant: false,
|
|
621
|
-
isEmoting: false,
|
|
622
611
|
};
|
|
623
612
|
}
|
|
624
613
|
|
|
@@ -672,12 +661,6 @@ export namespace Movement {
|
|
|
672
661
|
if (message.rotationY !== 0) {
|
|
673
662
|
writer.uint32(133).float(message.rotationY);
|
|
674
663
|
}
|
|
675
|
-
if (message.isInstant === true) {
|
|
676
|
-
writer.uint32(136).bool(message.isInstant);
|
|
677
|
-
}
|
|
678
|
-
if (message.isEmoting === true) {
|
|
679
|
-
writer.uint32(144).bool(message.isEmoting);
|
|
680
|
-
}
|
|
681
664
|
return writer;
|
|
682
665
|
}
|
|
683
666
|
|
|
@@ -800,20 +783,6 @@ export namespace Movement {
|
|
|
800
783
|
|
|
801
784
|
message.rotationY = reader.float();
|
|
802
785
|
continue;
|
|
803
|
-
case 17:
|
|
804
|
-
if (tag !== 136) {
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
message.isInstant = reader.bool();
|
|
809
|
-
continue;
|
|
810
|
-
case 18:
|
|
811
|
-
if (tag !== 144) {
|
|
812
|
-
break;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
message.isEmoting = reader.bool();
|
|
816
|
-
continue;
|
|
817
786
|
}
|
|
818
787
|
if ((tag & 7) === 4 || tag === 0) {
|
|
819
788
|
break;
|
|
@@ -841,8 +810,6 @@ export namespace Movement {
|
|
|
841
810
|
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
842
811
|
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
843
812
|
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
844
|
-
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
845
|
-
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
846
813
|
};
|
|
847
814
|
}
|
|
848
815
|
|
|
@@ -864,8 +831,6 @@ export namespace Movement {
|
|
|
864
831
|
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
865
832
|
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
866
833
|
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
867
|
-
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
868
|
-
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
869
834
|
return obj;
|
|
870
835
|
}
|
|
871
836
|
|
|
@@ -891,8 +856,6 @@ export namespace Movement {
|
|
|
891
856
|
message.isFalling = object.isFalling ?? false;
|
|
892
857
|
message.isStunned = object.isStunned ?? false;
|
|
893
858
|
message.rotationY = object.rotationY ?? 0;
|
|
894
|
-
message.isInstant = object.isInstant ?? false;
|
|
895
|
-
message.isEmoting = object.isEmoting ?? false;
|
|
896
859
|
return message;
|
|
897
860
|
}
|
|
898
861
|
}
|
|
@@ -969,7 +932,7 @@ export namespace MovementCompressed {
|
|
|
969
932
|
}
|
|
970
933
|
|
|
971
934
|
function createBasePlayerEmote(): PlayerEmote {
|
|
972
|
-
return { incrementalId: 0, urn: ""
|
|
935
|
+
return { incrementalId: 0, urn: "" };
|
|
973
936
|
}
|
|
974
937
|
|
|
975
938
|
export namespace PlayerEmote {
|
|
@@ -980,9 +943,6 @@ export namespace PlayerEmote {
|
|
|
980
943
|
if (message.urn !== "") {
|
|
981
944
|
writer.uint32(18).string(message.urn);
|
|
982
945
|
}
|
|
983
|
-
if (message.timestamp !== 0) {
|
|
984
|
-
writer.uint32(29).float(message.timestamp);
|
|
985
|
-
}
|
|
986
946
|
return writer;
|
|
987
947
|
}
|
|
988
948
|
|
|
@@ -1007,13 +967,6 @@ export namespace PlayerEmote {
|
|
|
1007
967
|
|
|
1008
968
|
message.urn = reader.string();
|
|
1009
969
|
continue;
|
|
1010
|
-
case 3:
|
|
1011
|
-
if (tag !== 29) {
|
|
1012
|
-
break;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
message.timestamp = reader.float();
|
|
1016
|
-
continue;
|
|
1017
970
|
}
|
|
1018
971
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1019
972
|
break;
|
|
@@ -1027,7 +980,6 @@ export namespace PlayerEmote {
|
|
|
1027
980
|
return {
|
|
1028
981
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1029
982
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1030
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1031
983
|
};
|
|
1032
984
|
}
|
|
1033
985
|
|
|
@@ -1035,7 +987,6 @@ export namespace PlayerEmote {
|
|
|
1035
987
|
const obj: any = {};
|
|
1036
988
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1037
989
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1038
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1039
990
|
return obj;
|
|
1040
991
|
}
|
|
1041
992
|
|
|
@@ -1047,7 +998,6 @@ export namespace PlayerEmote {
|
|
|
1047
998
|
const message = createBasePlayerEmote();
|
|
1048
999
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1049
1000
|
message.urn = object.urn ?? "";
|
|
1050
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1051
1001
|
return message;
|
|
1052
1002
|
}
|
|
1053
1003
|
}
|
|
@@ -1324,7 +1274,7 @@ export namespace ProfileResponse {
|
|
|
1324
1274
|
}
|
|
1325
1275
|
|
|
1326
1276
|
function createBaseChat(): Chat {
|
|
1327
|
-
return { message: "", timestamp: 0
|
|
1277
|
+
return { message: "", timestamp: 0 };
|
|
1328
1278
|
}
|
|
1329
1279
|
|
|
1330
1280
|
export namespace Chat {
|
|
@@ -1335,9 +1285,6 @@ export namespace Chat {
|
|
|
1335
1285
|
if (message.timestamp !== 0) {
|
|
1336
1286
|
writer.uint32(17).double(message.timestamp);
|
|
1337
1287
|
}
|
|
1338
|
-
if (message.forwardedFrom !== undefined) {
|
|
1339
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1340
|
-
}
|
|
1341
1288
|
return writer;
|
|
1342
1289
|
}
|
|
1343
1290
|
|
|
@@ -1362,13 +1309,6 @@ export namespace Chat {
|
|
|
1362
1309
|
|
|
1363
1310
|
message.timestamp = reader.double();
|
|
1364
1311
|
continue;
|
|
1365
|
-
case 3:
|
|
1366
|
-
if (tag !== 26) {
|
|
1367
|
-
break;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
message.forwardedFrom = reader.string();
|
|
1371
|
-
continue;
|
|
1372
1312
|
}
|
|
1373
1313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1374
1314
|
break;
|
|
@@ -1382,7 +1322,6 @@ export namespace Chat {
|
|
|
1382
1322
|
return {
|
|
1383
1323
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1384
1324
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1385
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1386
1325
|
};
|
|
1387
1326
|
}
|
|
1388
1327
|
|
|
@@ -1390,7 +1329,6 @@ export namespace Chat {
|
|
|
1390
1329
|
const obj: any = {};
|
|
1391
1330
|
message.message !== undefined && (obj.message = message.message);
|
|
1392
1331
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1393
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1394
1332
|
return obj;
|
|
1395
1333
|
}
|
|
1396
1334
|
|
|
@@ -1402,7 +1340,6 @@ export namespace Chat {
|
|
|
1402
1340
|
const message = createBaseChat();
|
|
1403
1341
|
message.message = object.message ?? "";
|
|
1404
1342
|
message.timestamp = object.timestamp ?? 0;
|
|
1405
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1406
1343
|
return message;
|
|
1407
1344
|
}
|
|
1408
1345
|
}
|
|
@@ -259,6 +259,9 @@ export interface PBTween {
|
|
|
259
259
|
| { $case: "rotate"; rotate: Rotate }
|
|
260
260
|
| { $case: "scale"; scale: Scale }
|
|
261
261
|
| { $case: "textureMove"; textureMove: TextureMove }
|
|
262
|
+
| { $case: "rotateContinuous"; rotateContinuous: RotateContinuous }
|
|
263
|
+
| { $case: "moveContinuous"; moveContinuous: MoveContinuous }
|
|
264
|
+
| { $case: "textureMoveContinuous"; textureMoveContinuous: TextureMoveContinuous }
|
|
262
265
|
| undefined;
|
|
263
266
|
/** default true (pause or running) */
|
|
264
267
|
playing?:
|
|
@@ -297,6 +300,23 @@ export interface TextureMove {
|
|
|
297
300
|
movementType?: TextureMovementType | undefined;
|
|
298
301
|
}
|
|
299
302
|
|
|
303
|
+
export interface RotateContinuous {
|
|
304
|
+
direction: Quaternion | undefined;
|
|
305
|
+
speed: number;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface MoveContinuous {
|
|
309
|
+
direction: Vector3 | undefined;
|
|
310
|
+
speed: number;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface TextureMoveContinuous {
|
|
314
|
+
direction: Vector2 | undefined;
|
|
315
|
+
speed: number;
|
|
316
|
+
/** default = TextureMovementType.TMT_OFFSET */
|
|
317
|
+
movementType?: TextureMovementType | undefined;
|
|
318
|
+
}
|
|
319
|
+
|
|
300
320
|
function createBasePBTween(): PBTween {
|
|
301
321
|
return { duration: 0, easingFunction: 0, mode: undefined, playing: undefined, currentTime: undefined };
|
|
302
322
|
}
|
|
@@ -322,6 +342,15 @@ export namespace PBTween {
|
|
|
322
342
|
case "textureMove":
|
|
323
343
|
TextureMove.encode(message.mode.textureMove, writer.uint32(66).fork()).ldelim();
|
|
324
344
|
break;
|
|
345
|
+
case "rotateContinuous":
|
|
346
|
+
RotateContinuous.encode(message.mode.rotateContinuous, writer.uint32(74).fork()).ldelim();
|
|
347
|
+
break;
|
|
348
|
+
case "moveContinuous":
|
|
349
|
+
MoveContinuous.encode(message.mode.moveContinuous, writer.uint32(82).fork()).ldelim();
|
|
350
|
+
break;
|
|
351
|
+
case "textureMoveContinuous":
|
|
352
|
+
TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
|
|
353
|
+
break;
|
|
325
354
|
}
|
|
326
355
|
if (message.playing !== undefined) {
|
|
327
356
|
writer.uint32(48).bool(message.playing);
|
|
@@ -381,6 +410,33 @@ export namespace PBTween {
|
|
|
381
410
|
|
|
382
411
|
message.mode = { $case: "textureMove", textureMove: TextureMove.decode(reader, reader.uint32()) };
|
|
383
412
|
continue;
|
|
413
|
+
case 9:
|
|
414
|
+
if (tag !== 74) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
message.mode = {
|
|
419
|
+
$case: "rotateContinuous",
|
|
420
|
+
rotateContinuous: RotateContinuous.decode(reader, reader.uint32()),
|
|
421
|
+
};
|
|
422
|
+
continue;
|
|
423
|
+
case 10:
|
|
424
|
+
if (tag !== 82) {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
message.mode = { $case: "moveContinuous", moveContinuous: MoveContinuous.decode(reader, reader.uint32()) };
|
|
429
|
+
continue;
|
|
430
|
+
case 11:
|
|
431
|
+
if (tag !== 90) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
message.mode = {
|
|
436
|
+
$case: "textureMoveContinuous",
|
|
437
|
+
textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
|
|
438
|
+
};
|
|
439
|
+
continue;
|
|
384
440
|
case 6:
|
|
385
441
|
if (tag !== 48) {
|
|
386
442
|
break;
|
|
@@ -416,6 +472,15 @@ export namespace PBTween {
|
|
|
416
472
|
? { $case: "scale", scale: Scale.fromJSON(object.scale) }
|
|
417
473
|
: isSet(object.textureMove)
|
|
418
474
|
? { $case: "textureMove", textureMove: TextureMove.fromJSON(object.textureMove) }
|
|
475
|
+
: isSet(object.rotateContinuous)
|
|
476
|
+
? { $case: "rotateContinuous", rotateContinuous: RotateContinuous.fromJSON(object.rotateContinuous) }
|
|
477
|
+
: isSet(object.moveContinuous)
|
|
478
|
+
? { $case: "moveContinuous", moveContinuous: MoveContinuous.fromJSON(object.moveContinuous) }
|
|
479
|
+
: isSet(object.textureMoveContinuous)
|
|
480
|
+
? {
|
|
481
|
+
$case: "textureMoveContinuous",
|
|
482
|
+
textureMoveContinuous: TextureMoveContinuous.fromJSON(object.textureMoveContinuous),
|
|
483
|
+
}
|
|
419
484
|
: undefined,
|
|
420
485
|
playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
|
|
421
486
|
currentTime: isSet(object.currentTime) ? Number(object.currentTime) : undefined,
|
|
@@ -433,6 +498,18 @@ export namespace PBTween {
|
|
|
433
498
|
(obj.scale = message.mode?.scale ? Scale.toJSON(message.mode?.scale) : undefined);
|
|
434
499
|
message.mode?.$case === "textureMove" &&
|
|
435
500
|
(obj.textureMove = message.mode?.textureMove ? TextureMove.toJSON(message.mode?.textureMove) : undefined);
|
|
501
|
+
message.mode?.$case === "rotateContinuous" &&
|
|
502
|
+
(obj.rotateContinuous = message.mode?.rotateContinuous
|
|
503
|
+
? RotateContinuous.toJSON(message.mode?.rotateContinuous)
|
|
504
|
+
: undefined);
|
|
505
|
+
message.mode?.$case === "moveContinuous" &&
|
|
506
|
+
(obj.moveContinuous = message.mode?.moveContinuous
|
|
507
|
+
? MoveContinuous.toJSON(message.mode?.moveContinuous)
|
|
508
|
+
: undefined);
|
|
509
|
+
message.mode?.$case === "textureMoveContinuous" &&
|
|
510
|
+
(obj.textureMoveContinuous = message.mode?.textureMoveContinuous
|
|
511
|
+
? TextureMoveContinuous.toJSON(message.mode?.textureMoveContinuous)
|
|
512
|
+
: undefined);
|
|
436
513
|
message.playing !== undefined && (obj.playing = message.playing);
|
|
437
514
|
message.currentTime !== undefined && (obj.currentTime = message.currentTime);
|
|
438
515
|
return obj;
|
|
@@ -462,6 +539,36 @@ export namespace PBTween {
|
|
|
462
539
|
) {
|
|
463
540
|
message.mode = { $case: "textureMove", textureMove: TextureMove.fromPartial(object.mode.textureMove) };
|
|
464
541
|
}
|
|
542
|
+
if (
|
|
543
|
+
object.mode?.$case === "rotateContinuous" &&
|
|
544
|
+
object.mode?.rotateContinuous !== undefined &&
|
|
545
|
+
object.mode?.rotateContinuous !== null
|
|
546
|
+
) {
|
|
547
|
+
message.mode = {
|
|
548
|
+
$case: "rotateContinuous",
|
|
549
|
+
rotateContinuous: RotateContinuous.fromPartial(object.mode.rotateContinuous),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
if (
|
|
553
|
+
object.mode?.$case === "moveContinuous" &&
|
|
554
|
+
object.mode?.moveContinuous !== undefined &&
|
|
555
|
+
object.mode?.moveContinuous !== null
|
|
556
|
+
) {
|
|
557
|
+
message.mode = {
|
|
558
|
+
$case: "moveContinuous",
|
|
559
|
+
moveContinuous: MoveContinuous.fromPartial(object.mode.moveContinuous),
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
if (
|
|
563
|
+
object.mode?.$case === "textureMoveContinuous" &&
|
|
564
|
+
object.mode?.textureMoveContinuous !== undefined &&
|
|
565
|
+
object.mode?.textureMoveContinuous !== null
|
|
566
|
+
) {
|
|
567
|
+
message.mode = {
|
|
568
|
+
$case: "textureMoveContinuous",
|
|
569
|
+
textureMoveContinuous: TextureMoveContinuous.fromPartial(object.mode.textureMoveContinuous),
|
|
570
|
+
};
|
|
571
|
+
}
|
|
465
572
|
message.playing = object.playing ?? undefined;
|
|
466
573
|
message.currentTime = object.currentTime ?? undefined;
|
|
467
574
|
return message;
|
|
@@ -789,6 +896,246 @@ export namespace TextureMove {
|
|
|
789
896
|
}
|
|
790
897
|
}
|
|
791
898
|
|
|
899
|
+
function createBaseRotateContinuous(): RotateContinuous {
|
|
900
|
+
return { direction: undefined, speed: 0 };
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
export namespace RotateContinuous {
|
|
904
|
+
export function encode(message: RotateContinuous, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
905
|
+
if (message.direction !== undefined) {
|
|
906
|
+
Quaternion.encode(message.direction, writer.uint32(10).fork()).ldelim();
|
|
907
|
+
}
|
|
908
|
+
if (message.speed !== 0) {
|
|
909
|
+
writer.uint32(21).float(message.speed);
|
|
910
|
+
}
|
|
911
|
+
return writer;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RotateContinuous {
|
|
915
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
916
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
917
|
+
const message = createBaseRotateContinuous();
|
|
918
|
+
while (reader.pos < end) {
|
|
919
|
+
const tag = reader.uint32();
|
|
920
|
+
switch (tag >>> 3) {
|
|
921
|
+
case 1:
|
|
922
|
+
if (tag !== 10) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
message.direction = Quaternion.decode(reader, reader.uint32());
|
|
927
|
+
continue;
|
|
928
|
+
case 2:
|
|
929
|
+
if (tag !== 21) {
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
message.speed = reader.float();
|
|
934
|
+
continue;
|
|
935
|
+
}
|
|
936
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
reader.skipType(tag & 7);
|
|
940
|
+
}
|
|
941
|
+
return message;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export function fromJSON(object: any): RotateContinuous {
|
|
945
|
+
return {
|
|
946
|
+
direction: isSet(object.direction) ? Quaternion.fromJSON(object.direction) : undefined,
|
|
947
|
+
speed: isSet(object.speed) ? Number(object.speed) : 0,
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export function toJSON(message: RotateContinuous): unknown {
|
|
952
|
+
const obj: any = {};
|
|
953
|
+
message.direction !== undefined &&
|
|
954
|
+
(obj.direction = message.direction ? Quaternion.toJSON(message.direction) : undefined);
|
|
955
|
+
message.speed !== undefined && (obj.speed = message.speed);
|
|
956
|
+
return obj;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export function create<I extends Exact<DeepPartial<RotateContinuous>, I>>(base?: I): RotateContinuous {
|
|
960
|
+
return RotateContinuous.fromPartial(base ?? {});
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export function fromPartial<I extends Exact<DeepPartial<RotateContinuous>, I>>(object: I): RotateContinuous {
|
|
964
|
+
const message = createBaseRotateContinuous();
|
|
965
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
966
|
+
? Quaternion.fromPartial(object.direction)
|
|
967
|
+
: undefined;
|
|
968
|
+
message.speed = object.speed ?? 0;
|
|
969
|
+
return message;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
function createBaseMoveContinuous(): MoveContinuous {
|
|
974
|
+
return { direction: undefined, speed: 0 };
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export namespace MoveContinuous {
|
|
978
|
+
export function encode(message: MoveContinuous, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
979
|
+
if (message.direction !== undefined) {
|
|
980
|
+
Vector3.encode(message.direction, writer.uint32(10).fork()).ldelim();
|
|
981
|
+
}
|
|
982
|
+
if (message.speed !== 0) {
|
|
983
|
+
writer.uint32(21).float(message.speed);
|
|
984
|
+
}
|
|
985
|
+
return writer;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveContinuous {
|
|
989
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
990
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
991
|
+
const message = createBaseMoveContinuous();
|
|
992
|
+
while (reader.pos < end) {
|
|
993
|
+
const tag = reader.uint32();
|
|
994
|
+
switch (tag >>> 3) {
|
|
995
|
+
case 1:
|
|
996
|
+
if (tag !== 10) {
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
message.direction = Vector3.decode(reader, reader.uint32());
|
|
1001
|
+
continue;
|
|
1002
|
+
case 2:
|
|
1003
|
+
if (tag !== 21) {
|
|
1004
|
+
break;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
message.speed = reader.float();
|
|
1008
|
+
continue;
|
|
1009
|
+
}
|
|
1010
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1011
|
+
break;
|
|
1012
|
+
}
|
|
1013
|
+
reader.skipType(tag & 7);
|
|
1014
|
+
}
|
|
1015
|
+
return message;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export function fromJSON(object: any): MoveContinuous {
|
|
1019
|
+
return {
|
|
1020
|
+
direction: isSet(object.direction) ? Vector3.fromJSON(object.direction) : undefined,
|
|
1021
|
+
speed: isSet(object.speed) ? Number(object.speed) : 0,
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export function toJSON(message: MoveContinuous): unknown {
|
|
1026
|
+
const obj: any = {};
|
|
1027
|
+
message.direction !== undefined &&
|
|
1028
|
+
(obj.direction = message.direction ? Vector3.toJSON(message.direction) : undefined);
|
|
1029
|
+
message.speed !== undefined && (obj.speed = message.speed);
|
|
1030
|
+
return obj;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export function create<I extends Exact<DeepPartial<MoveContinuous>, I>>(base?: I): MoveContinuous {
|
|
1034
|
+
return MoveContinuous.fromPartial(base ?? {});
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export function fromPartial<I extends Exact<DeepPartial<MoveContinuous>, I>>(object: I): MoveContinuous {
|
|
1038
|
+
const message = createBaseMoveContinuous();
|
|
1039
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
1040
|
+
? Vector3.fromPartial(object.direction)
|
|
1041
|
+
: undefined;
|
|
1042
|
+
message.speed = object.speed ?? 0;
|
|
1043
|
+
return message;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
function createBaseTextureMoveContinuous(): TextureMoveContinuous {
|
|
1048
|
+
return { direction: undefined, speed: 0, movementType: undefined };
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export namespace TextureMoveContinuous {
|
|
1052
|
+
export function encode(message: TextureMoveContinuous, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1053
|
+
if (message.direction !== undefined) {
|
|
1054
|
+
Vector2.encode(message.direction, writer.uint32(10).fork()).ldelim();
|
|
1055
|
+
}
|
|
1056
|
+
if (message.speed !== 0) {
|
|
1057
|
+
writer.uint32(21).float(message.speed);
|
|
1058
|
+
}
|
|
1059
|
+
if (message.movementType !== undefined) {
|
|
1060
|
+
writer.uint32(24).int32(message.movementType);
|
|
1061
|
+
}
|
|
1062
|
+
return writer;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): TextureMoveContinuous {
|
|
1066
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1067
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1068
|
+
const message = createBaseTextureMoveContinuous();
|
|
1069
|
+
while (reader.pos < end) {
|
|
1070
|
+
const tag = reader.uint32();
|
|
1071
|
+
switch (tag >>> 3) {
|
|
1072
|
+
case 1:
|
|
1073
|
+
if (tag !== 10) {
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
message.direction = Vector2.decode(reader, reader.uint32());
|
|
1078
|
+
continue;
|
|
1079
|
+
case 2:
|
|
1080
|
+
if (tag !== 21) {
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
message.speed = reader.float();
|
|
1085
|
+
continue;
|
|
1086
|
+
case 3:
|
|
1087
|
+
if (tag !== 24) {
|
|
1088
|
+
break;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
message.movementType = reader.int32() as any;
|
|
1092
|
+
continue;
|
|
1093
|
+
}
|
|
1094
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1095
|
+
break;
|
|
1096
|
+
}
|
|
1097
|
+
reader.skipType(tag & 7);
|
|
1098
|
+
}
|
|
1099
|
+
return message;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export function fromJSON(object: any): TextureMoveContinuous {
|
|
1103
|
+
return {
|
|
1104
|
+
direction: isSet(object.direction) ? Vector2.fromJSON(object.direction) : undefined,
|
|
1105
|
+
speed: isSet(object.speed) ? Number(object.speed) : 0,
|
|
1106
|
+
movementType: isSet(object.movementType) ? textureMovementTypeFromJSON(object.movementType) : undefined,
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export function toJSON(message: TextureMoveContinuous): unknown {
|
|
1111
|
+
const obj: any = {};
|
|
1112
|
+
message.direction !== undefined &&
|
|
1113
|
+
(obj.direction = message.direction ? Vector2.toJSON(message.direction) : undefined);
|
|
1114
|
+
message.speed !== undefined && (obj.speed = message.speed);
|
|
1115
|
+
message.movementType !== undefined &&
|
|
1116
|
+
(obj.movementType = message.movementType !== undefined
|
|
1117
|
+
? textureMovementTypeToJSON(message.movementType)
|
|
1118
|
+
: undefined);
|
|
1119
|
+
return obj;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export function create<I extends Exact<DeepPartial<TextureMoveContinuous>, I>>(base?: I): TextureMoveContinuous {
|
|
1123
|
+
return TextureMoveContinuous.fromPartial(base ?? {});
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
export function fromPartial<I extends Exact<DeepPartial<TextureMoveContinuous>, I>>(
|
|
1127
|
+
object: I,
|
|
1128
|
+
): TextureMoveContinuous {
|
|
1129
|
+
const message = createBaseTextureMoveContinuous();
|
|
1130
|
+
message.direction = (object.direction !== undefined && object.direction !== null)
|
|
1131
|
+
? Vector2.fromPartial(object.direction)
|
|
1132
|
+
: undefined;
|
|
1133
|
+
message.speed = object.speed ?? 0;
|
|
1134
|
+
message.movementType = object.movementType ?? undefined;
|
|
1135
|
+
return message;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
792
1139
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
793
1140
|
|
|
794
1141
|
export type DeepPartial<T> = T extends Builtin ? T
|