@dcl/protocol 1.0.0-19994059551.commit-1d2c132 → 1.0.0-20440300149.commit-417c1dc
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 -43
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +10 -287
- package/out-js/decentraland/kernel/comms/rfc4/comms.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-js/decentraland/sdk/components/visibility_component.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +17 -3
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1368
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -7057
- 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 -343
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +28 -3
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +984 -8945
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -27
- 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/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -563
- 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/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
|
@@ -17,7 +17,6 @@ export interface Packet {
|
|
|
17
17
|
| { $case: "playerEmote"; playerEmote: PlayerEmote }
|
|
18
18
|
| { $case: "sceneEmote"; sceneEmote: SceneEmote }
|
|
19
19
|
| { $case: "movementCompressed"; movementCompressed: MovementCompressed }
|
|
20
|
-
| { $case: "lookAtPosition"; lookAtPosition: LookAtPosition }
|
|
21
20
|
| undefined;
|
|
22
21
|
protocolVersion: number;
|
|
23
22
|
}
|
|
@@ -57,9 +56,6 @@ export interface Movement {
|
|
|
57
56
|
isFalling: boolean;
|
|
58
57
|
isStunned: boolean;
|
|
59
58
|
rotationY: number;
|
|
60
|
-
/** interpolation */
|
|
61
|
-
isInstant: boolean;
|
|
62
|
-
isEmoting: boolean;
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
export interface MovementCompressed {
|
|
@@ -72,43 +68,6 @@ export interface MovementCompressed {
|
|
|
72
68
|
export interface PlayerEmote {
|
|
73
69
|
incrementalId: number;
|
|
74
70
|
urn: string;
|
|
75
|
-
timestamp: number;
|
|
76
|
-
/** true means the emote has been stopped in the sender's client */
|
|
77
|
-
isStopping?:
|
|
78
|
-
| boolean
|
|
79
|
-
| undefined;
|
|
80
|
-
/** true when it is not the first time the looping animation plays */
|
|
81
|
-
isRepeating?:
|
|
82
|
-
| boolean
|
|
83
|
-
| undefined;
|
|
84
|
-
/** identifies an interaction univocaly, established when the start animation is triggered */
|
|
85
|
-
interactionId?:
|
|
86
|
-
| number
|
|
87
|
-
| undefined;
|
|
88
|
-
/** -1 means it does not use an outcome animation */
|
|
89
|
-
socialEmoteOutcome?:
|
|
90
|
-
| number
|
|
91
|
-
| undefined;
|
|
92
|
-
/** to a social emote started by other user */
|
|
93
|
-
isReacting?:
|
|
94
|
-
| boolean
|
|
95
|
-
| undefined;
|
|
96
|
-
/** wallet address of the user that initiated social emote */
|
|
97
|
-
socialEmoteInitiator?:
|
|
98
|
-
| string
|
|
99
|
-
| undefined;
|
|
100
|
-
/** wallet address of the user whose avatar is the target of a directed emote */
|
|
101
|
-
targetAvatar?: string | undefined;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** Message sent to force an avatar to look at a position */
|
|
105
|
-
export interface LookAtPosition {
|
|
106
|
-
timestamp: number;
|
|
107
|
-
/** world position */
|
|
108
|
-
positionX: number;
|
|
109
|
-
positionY: number;
|
|
110
|
-
positionZ: number;
|
|
111
|
-
targetAvatarWalletAddress: string;
|
|
112
71
|
}
|
|
113
72
|
|
|
114
73
|
export interface SceneEmote {
|
|
@@ -133,11 +92,6 @@ export interface ProfileResponse {
|
|
|
133
92
|
export interface Chat {
|
|
134
93
|
message: string;
|
|
135
94
|
timestamp: number;
|
|
136
|
-
/**
|
|
137
|
-
* Extension: optional forwarded_from to identify the original sender when
|
|
138
|
-
* messages are forwarded through an SFU
|
|
139
|
-
*/
|
|
140
|
-
forwardedFrom?: string | undefined;
|
|
141
95
|
}
|
|
142
96
|
|
|
143
97
|
export interface Scene {
|
|
@@ -218,9 +172,6 @@ export namespace Packet {
|
|
|
218
172
|
case "movementCompressed":
|
|
219
173
|
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
220
174
|
break;
|
|
221
|
-
case "lookAtPosition":
|
|
222
|
-
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
223
|
-
break;
|
|
224
175
|
}
|
|
225
176
|
if (message.protocolVersion !== 0) {
|
|
226
177
|
writer.uint32(88).uint32(message.protocolVersion);
|
|
@@ -321,13 +272,6 @@ export namespace Packet {
|
|
|
321
272
|
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
322
273
|
};
|
|
323
274
|
continue;
|
|
324
|
-
case 13:
|
|
325
|
-
if (tag !== 106) {
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
330
|
-
continue;
|
|
331
275
|
case 11:
|
|
332
276
|
if (tag !== 88) {
|
|
333
277
|
break;
|
|
@@ -368,8 +312,6 @@ export namespace Packet {
|
|
|
368
312
|
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
369
313
|
: isSet(object.movementCompressed)
|
|
370
314
|
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
371
|
-
: isSet(object.lookAtPosition)
|
|
372
|
-
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
373
315
|
: undefined,
|
|
374
316
|
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
375
317
|
};
|
|
@@ -407,10 +349,6 @@ export namespace Packet {
|
|
|
407
349
|
(obj.movementCompressed = message.message?.movementCompressed
|
|
408
350
|
? MovementCompressed.toJSON(message.message?.movementCompressed)
|
|
409
351
|
: undefined);
|
|
410
|
-
message.message?.$case === "lookAtPosition" &&
|
|
411
|
-
(obj.lookAtPosition = message.message?.lookAtPosition
|
|
412
|
-
? LookAtPosition.toJSON(message.message?.lookAtPosition)
|
|
413
|
-
: undefined);
|
|
414
352
|
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
415
353
|
return obj;
|
|
416
354
|
}
|
|
@@ -498,16 +436,6 @@ export namespace Packet {
|
|
|
498
436
|
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
499
437
|
};
|
|
500
438
|
}
|
|
501
|
-
if (
|
|
502
|
-
object.message?.$case === "lookAtPosition" &&
|
|
503
|
-
object.message?.lookAtPosition !== undefined &&
|
|
504
|
-
object.message?.lookAtPosition !== null
|
|
505
|
-
) {
|
|
506
|
-
message.message = {
|
|
507
|
-
$case: "lookAtPosition",
|
|
508
|
-
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
439
|
message.protocolVersion = object.protocolVersion ?? 0;
|
|
512
440
|
return message;
|
|
513
441
|
}
|
|
@@ -680,8 +608,6 @@ function createBaseMovement(): Movement {
|
|
|
680
608
|
isFalling: false,
|
|
681
609
|
isStunned: false,
|
|
682
610
|
rotationY: 0,
|
|
683
|
-
isInstant: false,
|
|
684
|
-
isEmoting: false,
|
|
685
611
|
};
|
|
686
612
|
}
|
|
687
613
|
|
|
@@ -735,12 +661,6 @@ export namespace Movement {
|
|
|
735
661
|
if (message.rotationY !== 0) {
|
|
736
662
|
writer.uint32(133).float(message.rotationY);
|
|
737
663
|
}
|
|
738
|
-
if (message.isInstant === true) {
|
|
739
|
-
writer.uint32(136).bool(message.isInstant);
|
|
740
|
-
}
|
|
741
|
-
if (message.isEmoting === true) {
|
|
742
|
-
writer.uint32(144).bool(message.isEmoting);
|
|
743
|
-
}
|
|
744
664
|
return writer;
|
|
745
665
|
}
|
|
746
666
|
|
|
@@ -863,20 +783,6 @@ export namespace Movement {
|
|
|
863
783
|
|
|
864
784
|
message.rotationY = reader.float();
|
|
865
785
|
continue;
|
|
866
|
-
case 17:
|
|
867
|
-
if (tag !== 136) {
|
|
868
|
-
break;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
message.isInstant = reader.bool();
|
|
872
|
-
continue;
|
|
873
|
-
case 18:
|
|
874
|
-
if (tag !== 144) {
|
|
875
|
-
break;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
message.isEmoting = reader.bool();
|
|
879
|
-
continue;
|
|
880
786
|
}
|
|
881
787
|
if ((tag & 7) === 4 || tag === 0) {
|
|
882
788
|
break;
|
|
@@ -904,8 +810,6 @@ export namespace Movement {
|
|
|
904
810
|
isFalling: isSet(object.isFalling) ? Boolean(object.isFalling) : false,
|
|
905
811
|
isStunned: isSet(object.isStunned) ? Boolean(object.isStunned) : false,
|
|
906
812
|
rotationY: isSet(object.rotationY) ? Number(object.rotationY) : 0,
|
|
907
|
-
isInstant: isSet(object.isInstant) ? Boolean(object.isInstant) : false,
|
|
908
|
-
isEmoting: isSet(object.isEmoting) ? Boolean(object.isEmoting) : false,
|
|
909
813
|
};
|
|
910
814
|
}
|
|
911
815
|
|
|
@@ -927,8 +831,6 @@ export namespace Movement {
|
|
|
927
831
|
message.isFalling !== undefined && (obj.isFalling = message.isFalling);
|
|
928
832
|
message.isStunned !== undefined && (obj.isStunned = message.isStunned);
|
|
929
833
|
message.rotationY !== undefined && (obj.rotationY = message.rotationY);
|
|
930
|
-
message.isInstant !== undefined && (obj.isInstant = message.isInstant);
|
|
931
|
-
message.isEmoting !== undefined && (obj.isEmoting = message.isEmoting);
|
|
932
834
|
return obj;
|
|
933
835
|
}
|
|
934
836
|
|
|
@@ -954,8 +856,6 @@ export namespace Movement {
|
|
|
954
856
|
message.isFalling = object.isFalling ?? false;
|
|
955
857
|
message.isStunned = object.isStunned ?? false;
|
|
956
858
|
message.rotationY = object.rotationY ?? 0;
|
|
957
|
-
message.isInstant = object.isInstant ?? false;
|
|
958
|
-
message.isEmoting = object.isEmoting ?? false;
|
|
959
859
|
return message;
|
|
960
860
|
}
|
|
961
861
|
}
|
|
@@ -1032,18 +932,7 @@ export namespace MovementCompressed {
|
|
|
1032
932
|
}
|
|
1033
933
|
|
|
1034
934
|
function createBasePlayerEmote(): PlayerEmote {
|
|
1035
|
-
return {
|
|
1036
|
-
incrementalId: 0,
|
|
1037
|
-
urn: "",
|
|
1038
|
-
timestamp: 0,
|
|
1039
|
-
isStopping: undefined,
|
|
1040
|
-
isRepeating: undefined,
|
|
1041
|
-
interactionId: undefined,
|
|
1042
|
-
socialEmoteOutcome: undefined,
|
|
1043
|
-
isReacting: undefined,
|
|
1044
|
-
socialEmoteInitiator: undefined,
|
|
1045
|
-
targetAvatar: undefined,
|
|
1046
|
-
};
|
|
935
|
+
return { incrementalId: 0, urn: "" };
|
|
1047
936
|
}
|
|
1048
937
|
|
|
1049
938
|
export namespace PlayerEmote {
|
|
@@ -1054,30 +943,6 @@ export namespace PlayerEmote {
|
|
|
1054
943
|
if (message.urn !== "") {
|
|
1055
944
|
writer.uint32(18).string(message.urn);
|
|
1056
945
|
}
|
|
1057
|
-
if (message.timestamp !== 0) {
|
|
1058
|
-
writer.uint32(29).float(message.timestamp);
|
|
1059
|
-
}
|
|
1060
|
-
if (message.isStopping !== undefined) {
|
|
1061
|
-
writer.uint32(32).bool(message.isStopping);
|
|
1062
|
-
}
|
|
1063
|
-
if (message.isRepeating !== undefined) {
|
|
1064
|
-
writer.uint32(40).bool(message.isRepeating);
|
|
1065
|
-
}
|
|
1066
|
-
if (message.interactionId !== undefined) {
|
|
1067
|
-
writer.uint32(48).int32(message.interactionId);
|
|
1068
|
-
}
|
|
1069
|
-
if (message.socialEmoteOutcome !== undefined) {
|
|
1070
|
-
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1071
|
-
}
|
|
1072
|
-
if (message.isReacting !== undefined) {
|
|
1073
|
-
writer.uint32(64).bool(message.isReacting);
|
|
1074
|
-
}
|
|
1075
|
-
if (message.socialEmoteInitiator !== undefined) {
|
|
1076
|
-
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1077
|
-
}
|
|
1078
|
-
if (message.targetAvatar !== undefined) {
|
|
1079
|
-
writer.uint32(82).string(message.targetAvatar);
|
|
1080
|
-
}
|
|
1081
946
|
return writer;
|
|
1082
947
|
}
|
|
1083
948
|
|
|
@@ -1102,62 +967,6 @@ export namespace PlayerEmote {
|
|
|
1102
967
|
|
|
1103
968
|
message.urn = reader.string();
|
|
1104
969
|
continue;
|
|
1105
|
-
case 3:
|
|
1106
|
-
if (tag !== 29) {
|
|
1107
|
-
break;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
message.timestamp = reader.float();
|
|
1111
|
-
continue;
|
|
1112
|
-
case 4:
|
|
1113
|
-
if (tag !== 32) {
|
|
1114
|
-
break;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
message.isStopping = reader.bool();
|
|
1118
|
-
continue;
|
|
1119
|
-
case 5:
|
|
1120
|
-
if (tag !== 40) {
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
message.isRepeating = reader.bool();
|
|
1125
|
-
continue;
|
|
1126
|
-
case 6:
|
|
1127
|
-
if (tag !== 48) {
|
|
1128
|
-
break;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
message.interactionId = reader.int32();
|
|
1132
|
-
continue;
|
|
1133
|
-
case 7:
|
|
1134
|
-
if (tag !== 56) {
|
|
1135
|
-
break;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
message.socialEmoteOutcome = reader.int32();
|
|
1139
|
-
continue;
|
|
1140
|
-
case 8:
|
|
1141
|
-
if (tag !== 64) {
|
|
1142
|
-
break;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
message.isReacting = reader.bool();
|
|
1146
|
-
continue;
|
|
1147
|
-
case 9:
|
|
1148
|
-
if (tag !== 74) {
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
message.socialEmoteInitiator = reader.string();
|
|
1153
|
-
continue;
|
|
1154
|
-
case 10:
|
|
1155
|
-
if (tag !== 82) {
|
|
1156
|
-
break;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
message.targetAvatar = reader.string();
|
|
1160
|
-
continue;
|
|
1161
970
|
}
|
|
1162
971
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1163
972
|
break;
|
|
@@ -1171,14 +980,6 @@ export namespace PlayerEmote {
|
|
|
1171
980
|
return {
|
|
1172
981
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1173
982
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1174
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1175
|
-
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1176
|
-
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1177
|
-
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1178
|
-
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1179
|
-
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1180
|
-
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1181
|
-
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1182
983
|
};
|
|
1183
984
|
}
|
|
1184
985
|
|
|
@@ -1186,14 +987,6 @@ export namespace PlayerEmote {
|
|
|
1186
987
|
const obj: any = {};
|
|
1187
988
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1188
989
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1189
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1190
|
-
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1191
|
-
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1192
|
-
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1193
|
-
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1194
|
-
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1195
|
-
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1196
|
-
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1197
990
|
return obj;
|
|
1198
991
|
}
|
|
1199
992
|
|
|
@@ -1205,127 +998,6 @@ export namespace PlayerEmote {
|
|
|
1205
998
|
const message = createBasePlayerEmote();
|
|
1206
999
|
message.incrementalId = object.incrementalId ?? 0;
|
|
1207
1000
|
message.urn = object.urn ?? "";
|
|
1208
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1209
|
-
message.isStopping = object.isStopping ?? undefined;
|
|
1210
|
-
message.isRepeating = object.isRepeating ?? undefined;
|
|
1211
|
-
message.interactionId = object.interactionId ?? undefined;
|
|
1212
|
-
message.socialEmoteOutcome = object.socialEmoteOutcome ?? undefined;
|
|
1213
|
-
message.isReacting = object.isReacting ?? undefined;
|
|
1214
|
-
message.socialEmoteInitiator = object.socialEmoteInitiator ?? undefined;
|
|
1215
|
-
message.targetAvatar = object.targetAvatar ?? undefined;
|
|
1216
|
-
return message;
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
function createBaseLookAtPosition(): LookAtPosition {
|
|
1221
|
-
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
export namespace LookAtPosition {
|
|
1225
|
-
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1226
|
-
if (message.timestamp !== 0) {
|
|
1227
|
-
writer.uint32(13).float(message.timestamp);
|
|
1228
|
-
}
|
|
1229
|
-
if (message.positionX !== 0) {
|
|
1230
|
-
writer.uint32(21).float(message.positionX);
|
|
1231
|
-
}
|
|
1232
|
-
if (message.positionY !== 0) {
|
|
1233
|
-
writer.uint32(29).float(message.positionY);
|
|
1234
|
-
}
|
|
1235
|
-
if (message.positionZ !== 0) {
|
|
1236
|
-
writer.uint32(37).float(message.positionZ);
|
|
1237
|
-
}
|
|
1238
|
-
if (message.targetAvatarWalletAddress !== "") {
|
|
1239
|
-
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1240
|
-
}
|
|
1241
|
-
return writer;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
1245
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1246
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1247
|
-
const message = createBaseLookAtPosition();
|
|
1248
|
-
while (reader.pos < end) {
|
|
1249
|
-
const tag = reader.uint32();
|
|
1250
|
-
switch (tag >>> 3) {
|
|
1251
|
-
case 1:
|
|
1252
|
-
if (tag !== 13) {
|
|
1253
|
-
break;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
message.timestamp = reader.float();
|
|
1257
|
-
continue;
|
|
1258
|
-
case 2:
|
|
1259
|
-
if (tag !== 21) {
|
|
1260
|
-
break;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
message.positionX = reader.float();
|
|
1264
|
-
continue;
|
|
1265
|
-
case 3:
|
|
1266
|
-
if (tag !== 29) {
|
|
1267
|
-
break;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
message.positionY = reader.float();
|
|
1271
|
-
continue;
|
|
1272
|
-
case 4:
|
|
1273
|
-
if (tag !== 37) {
|
|
1274
|
-
break;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
message.positionZ = reader.float();
|
|
1278
|
-
continue;
|
|
1279
|
-
case 5:
|
|
1280
|
-
if (tag !== 42) {
|
|
1281
|
-
break;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
message.targetAvatarWalletAddress = reader.string();
|
|
1285
|
-
continue;
|
|
1286
|
-
}
|
|
1287
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1288
|
-
break;
|
|
1289
|
-
}
|
|
1290
|
-
reader.skipType(tag & 7);
|
|
1291
|
-
}
|
|
1292
|
-
return message;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
export function fromJSON(object: any): LookAtPosition {
|
|
1296
|
-
return {
|
|
1297
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1298
|
-
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1299
|
-
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1300
|
-
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1301
|
-
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1302
|
-
? String(object.targetAvatarWalletAddress)
|
|
1303
|
-
: "",
|
|
1304
|
-
};
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
export function toJSON(message: LookAtPosition): unknown {
|
|
1308
|
-
const obj: any = {};
|
|
1309
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1310
|
-
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1311
|
-
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1312
|
-
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1313
|
-
message.targetAvatarWalletAddress !== undefined &&
|
|
1314
|
-
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1315
|
-
return obj;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
1319
|
-
return LookAtPosition.fromPartial(base ?? {});
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
1323
|
-
const message = createBaseLookAtPosition();
|
|
1324
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1325
|
-
message.positionX = object.positionX ?? 0;
|
|
1326
|
-
message.positionY = object.positionY ?? 0;
|
|
1327
|
-
message.positionZ = object.positionZ ?? 0;
|
|
1328
|
-
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
1329
1001
|
return message;
|
|
1330
1002
|
}
|
|
1331
1003
|
}
|
|
@@ -1602,7 +1274,7 @@ export namespace ProfileResponse {
|
|
|
1602
1274
|
}
|
|
1603
1275
|
|
|
1604
1276
|
function createBaseChat(): Chat {
|
|
1605
|
-
return { message: "", timestamp: 0
|
|
1277
|
+
return { message: "", timestamp: 0 };
|
|
1606
1278
|
}
|
|
1607
1279
|
|
|
1608
1280
|
export namespace Chat {
|
|
@@ -1613,9 +1285,6 @@ export namespace Chat {
|
|
|
1613
1285
|
if (message.timestamp !== 0) {
|
|
1614
1286
|
writer.uint32(17).double(message.timestamp);
|
|
1615
1287
|
}
|
|
1616
|
-
if (message.forwardedFrom !== undefined) {
|
|
1617
|
-
writer.uint32(26).string(message.forwardedFrom);
|
|
1618
|
-
}
|
|
1619
1288
|
return writer;
|
|
1620
1289
|
}
|
|
1621
1290
|
|
|
@@ -1640,13 +1309,6 @@ export namespace Chat {
|
|
|
1640
1309
|
|
|
1641
1310
|
message.timestamp = reader.double();
|
|
1642
1311
|
continue;
|
|
1643
|
-
case 3:
|
|
1644
|
-
if (tag !== 26) {
|
|
1645
|
-
break;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
message.forwardedFrom = reader.string();
|
|
1649
|
-
continue;
|
|
1650
1312
|
}
|
|
1651
1313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1652
1314
|
break;
|
|
@@ -1660,7 +1322,6 @@ export namespace Chat {
|
|
|
1660
1322
|
return {
|
|
1661
1323
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1662
1324
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1663
|
-
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1664
1325
|
};
|
|
1665
1326
|
}
|
|
1666
1327
|
|
|
@@ -1668,7 +1329,6 @@ export namespace Chat {
|
|
|
1668
1329
|
const obj: any = {};
|
|
1669
1330
|
message.message !== undefined && (obj.message = message.message);
|
|
1670
1331
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1671
|
-
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1672
1332
|
return obj;
|
|
1673
1333
|
}
|
|
1674
1334
|
|
|
@@ -1680,7 +1340,6 @@ export namespace Chat {
|
|
|
1680
1340
|
const message = createBaseChat();
|
|
1681
1341
|
message.message = object.message ?? "";
|
|
1682
1342
|
message.timestamp = object.timestamp ?? 0;
|
|
1683
|
-
message.forwardedFrom = object.forwardedFrom ?? undefined;
|
|
1684
1343
|
return message;
|
|
1685
1344
|
}
|
|
1686
1345
|
}
|
|
@@ -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";
|
|
@@ -5,11 +5,21 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
5
5
|
|
|
6
6
|
export interface PBVisibilityComponent {
|
|
7
7
|
/** default=true */
|
|
8
|
-
visible?:
|
|
8
|
+
visible?:
|
|
9
|
+
| boolean
|
|
10
|
+
| undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Propagation follows certain rules:
|
|
13
|
+
* - Any own visibility component takes priority
|
|
14
|
+
* - If no own visibility component, visibility is determined by visibility of the nearest parent with propagate = true
|
|
15
|
+
* - If no own component and no parent with propagate = true, visibility is "visible"
|
|
16
|
+
* - Visibility is always updated, whenever hierarchy, parent component or own component changes
|
|
17
|
+
*/
|
|
18
|
+
propagateToChildren?: boolean | undefined;
|
|
9
19
|
}
|
|
10
20
|
|
|
11
21
|
function createBasePBVisibilityComponent(): PBVisibilityComponent {
|
|
12
|
-
return { visible: undefined };
|
|
22
|
+
return { visible: undefined, propagateToChildren: undefined };
|
|
13
23
|
}
|
|
14
24
|
|
|
15
25
|
export namespace PBVisibilityComponent {
|
|
@@ -17,6 +27,9 @@ export namespace PBVisibilityComponent {
|
|
|
17
27
|
if (message.visible !== undefined) {
|
|
18
28
|
writer.uint32(8).bool(message.visible);
|
|
19
29
|
}
|
|
30
|
+
if (message.propagateToChildren !== undefined) {
|
|
31
|
+
writer.uint32(16).bool(message.propagateToChildren);
|
|
32
|
+
}
|
|
20
33
|
return writer;
|
|
21
34
|
}
|
|
22
35
|
|
|
@@ -34,6 +47,13 @@ export namespace PBVisibilityComponent {
|
|
|
34
47
|
|
|
35
48
|
message.visible = reader.bool();
|
|
36
49
|
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 16) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message.propagateToChildren = reader.bool();
|
|
56
|
+
continue;
|
|
37
57
|
}
|
|
38
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
39
59
|
break;
|
|
@@ -44,12 +64,16 @@ export namespace PBVisibilityComponent {
|
|
|
44
64
|
}
|
|
45
65
|
|
|
46
66
|
export function fromJSON(object: any): PBVisibilityComponent {
|
|
47
|
-
return {
|
|
67
|
+
return {
|
|
68
|
+
visible: isSet(object.visible) ? Boolean(object.visible) : undefined,
|
|
69
|
+
propagateToChildren: isSet(object.propagateToChildren) ? Boolean(object.propagateToChildren) : undefined,
|
|
70
|
+
};
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
export function toJSON(message: PBVisibilityComponent): unknown {
|
|
51
74
|
const obj: any = {};
|
|
52
75
|
message.visible !== undefined && (obj.visible = message.visible);
|
|
76
|
+
message.propagateToChildren !== undefined && (obj.propagateToChildren = message.propagateToChildren);
|
|
53
77
|
return obj;
|
|
54
78
|
}
|
|
55
79
|
|
|
@@ -62,6 +86,7 @@ export namespace PBVisibilityComponent {
|
|
|
62
86
|
): PBVisibilityComponent {
|
|
63
87
|
const message = createBasePBVisibilityComponent();
|
|
64
88
|
message.visible = object.visible ?? undefined;
|
|
89
|
+
message.propagateToChildren = object.propagateToChildren ?? undefined;
|
|
65
90
|
return message;
|
|
66
91
|
}
|
|
67
92
|
}
|