@dcl/protocol 1.0.0-24444876160.commit-bea92dd → 1.0.0-24496228560.commit-6915bc8
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 +21 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +85 -6
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +38 -17
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +234 -114
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +35 -1
- 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 +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +89 -3
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +289 -125
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +34 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +6 -0
- package/package.json +3 -3
- package/proto/decentraland/kernel/apis/restricted_actions.proto +7 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +24 -11
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +5 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +1 -0
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ChatReaction = exports.Reaction = exports.
|
|
6
|
+
exports.ChatReaction = exports.Reaction = exports.Voice = exports.Scene = exports.Chat = exports.ProfileResponse = exports.ProfileRequest = exports.AnnounceProfileVersion = exports.SceneEmote = exports.LookAtPosition = exports.PlayerEmote = exports.MovementCompressed = exports.Movement = exports.Position = exports.Packet = exports.Voice_VoiceCodec = exports.Movement_GlideState = exports.protobufPackage = void 0;
|
|
7
7
|
exports.movement_GlideStateFromJSON = movement_GlideStateFromJSON;
|
|
8
8
|
exports.movement_GlideStateToJSON = movement_GlideStateToJSON;
|
|
9
9
|
exports.voice_VoiceCodecFromJSON = voice_VoiceCodecFromJSON;
|
|
@@ -1073,7 +1073,19 @@ var MovementCompressed;
|
|
|
1073
1073
|
MovementCompressed.fromPartial = fromPartial;
|
|
1074
1074
|
})(MovementCompressed || (exports.MovementCompressed = MovementCompressed = {}));
|
|
1075
1075
|
function createBasePlayerEmote() {
|
|
1076
|
-
return {
|
|
1076
|
+
return {
|
|
1077
|
+
incrementalId: 0,
|
|
1078
|
+
urn: "",
|
|
1079
|
+
timestamp: 0,
|
|
1080
|
+
isStopping: undefined,
|
|
1081
|
+
isRepeating: undefined,
|
|
1082
|
+
interactionId: undefined,
|
|
1083
|
+
socialEmoteOutcome: undefined,
|
|
1084
|
+
isReacting: undefined,
|
|
1085
|
+
socialEmoteInitiator: undefined,
|
|
1086
|
+
targetAvatar: undefined,
|
|
1087
|
+
mask: undefined,
|
|
1088
|
+
};
|
|
1077
1089
|
}
|
|
1078
1090
|
var PlayerEmote;
|
|
1079
1091
|
(function (PlayerEmote) {
|
|
@@ -1087,6 +1099,30 @@ var PlayerEmote;
|
|
|
1087
1099
|
if (message.timestamp !== 0) {
|
|
1088
1100
|
writer.uint32(29).float(message.timestamp);
|
|
1089
1101
|
}
|
|
1102
|
+
if (message.isStopping !== undefined) {
|
|
1103
|
+
writer.uint32(32).bool(message.isStopping);
|
|
1104
|
+
}
|
|
1105
|
+
if (message.isRepeating !== undefined) {
|
|
1106
|
+
writer.uint32(40).bool(message.isRepeating);
|
|
1107
|
+
}
|
|
1108
|
+
if (message.interactionId !== undefined) {
|
|
1109
|
+
writer.uint32(48).int32(message.interactionId);
|
|
1110
|
+
}
|
|
1111
|
+
if (message.socialEmoteOutcome !== undefined) {
|
|
1112
|
+
writer.uint32(56).int32(message.socialEmoteOutcome);
|
|
1113
|
+
}
|
|
1114
|
+
if (message.isReacting !== undefined) {
|
|
1115
|
+
writer.uint32(64).bool(message.isReacting);
|
|
1116
|
+
}
|
|
1117
|
+
if (message.socialEmoteInitiator !== undefined) {
|
|
1118
|
+
writer.uint32(74).string(message.socialEmoteInitiator);
|
|
1119
|
+
}
|
|
1120
|
+
if (message.targetAvatar !== undefined) {
|
|
1121
|
+
writer.uint32(82).string(message.targetAvatar);
|
|
1122
|
+
}
|
|
1123
|
+
if (message.mask !== undefined) {
|
|
1124
|
+
writer.uint32(88).uint32(message.mask);
|
|
1125
|
+
}
|
|
1090
1126
|
return writer;
|
|
1091
1127
|
}
|
|
1092
1128
|
PlayerEmote.encode = encode;
|
|
@@ -1115,6 +1151,54 @@ var PlayerEmote;
|
|
|
1115
1151
|
}
|
|
1116
1152
|
message.timestamp = reader.float();
|
|
1117
1153
|
continue;
|
|
1154
|
+
case 4:
|
|
1155
|
+
if (tag !== 32) {
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
message.isStopping = reader.bool();
|
|
1159
|
+
continue;
|
|
1160
|
+
case 5:
|
|
1161
|
+
if (tag !== 40) {
|
|
1162
|
+
break;
|
|
1163
|
+
}
|
|
1164
|
+
message.isRepeating = reader.bool();
|
|
1165
|
+
continue;
|
|
1166
|
+
case 6:
|
|
1167
|
+
if (tag !== 48) {
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
message.interactionId = reader.int32();
|
|
1171
|
+
continue;
|
|
1172
|
+
case 7:
|
|
1173
|
+
if (tag !== 56) {
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
message.socialEmoteOutcome = reader.int32();
|
|
1177
|
+
continue;
|
|
1178
|
+
case 8:
|
|
1179
|
+
if (tag !== 64) {
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
message.isReacting = reader.bool();
|
|
1183
|
+
continue;
|
|
1184
|
+
case 9:
|
|
1185
|
+
if (tag !== 74) {
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
message.socialEmoteInitiator = reader.string();
|
|
1189
|
+
continue;
|
|
1190
|
+
case 10:
|
|
1191
|
+
if (tag !== 82) {
|
|
1192
|
+
break;
|
|
1193
|
+
}
|
|
1194
|
+
message.targetAvatar = reader.string();
|
|
1195
|
+
continue;
|
|
1196
|
+
case 11:
|
|
1197
|
+
if (tag !== 88) {
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
message.mask = reader.uint32();
|
|
1201
|
+
continue;
|
|
1118
1202
|
}
|
|
1119
1203
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1120
1204
|
break;
|
|
@@ -1129,6 +1213,14 @@ var PlayerEmote;
|
|
|
1129
1213
|
incrementalId: isSet(object.incrementalId) ? Number(object.incrementalId) : 0,
|
|
1130
1214
|
urn: isSet(object.urn) ? String(object.urn) : "",
|
|
1131
1215
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1216
|
+
isStopping: isSet(object.isStopping) ? Boolean(object.isStopping) : undefined,
|
|
1217
|
+
isRepeating: isSet(object.isRepeating) ? Boolean(object.isRepeating) : undefined,
|
|
1218
|
+
interactionId: isSet(object.interactionId) ? Number(object.interactionId) : undefined,
|
|
1219
|
+
socialEmoteOutcome: isSet(object.socialEmoteOutcome) ? Number(object.socialEmoteOutcome) : undefined,
|
|
1220
|
+
isReacting: isSet(object.isReacting) ? Boolean(object.isReacting) : undefined,
|
|
1221
|
+
socialEmoteInitiator: isSet(object.socialEmoteInitiator) ? String(object.socialEmoteInitiator) : undefined,
|
|
1222
|
+
targetAvatar: isSet(object.targetAvatar) ? String(object.targetAvatar) : undefined,
|
|
1223
|
+
mask: isSet(object.mask) ? Number(object.mask) : undefined,
|
|
1132
1224
|
};
|
|
1133
1225
|
}
|
|
1134
1226
|
PlayerEmote.fromJSON = fromJSON;
|
|
@@ -1137,6 +1229,14 @@ var PlayerEmote;
|
|
|
1137
1229
|
message.incrementalId !== undefined && (obj.incrementalId = Math.round(message.incrementalId));
|
|
1138
1230
|
message.urn !== undefined && (obj.urn = message.urn);
|
|
1139
1231
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1232
|
+
message.isStopping !== undefined && (obj.isStopping = message.isStopping);
|
|
1233
|
+
message.isRepeating !== undefined && (obj.isRepeating = message.isRepeating);
|
|
1234
|
+
message.interactionId !== undefined && (obj.interactionId = Math.round(message.interactionId));
|
|
1235
|
+
message.socialEmoteOutcome !== undefined && (obj.socialEmoteOutcome = Math.round(message.socialEmoteOutcome));
|
|
1236
|
+
message.isReacting !== undefined && (obj.isReacting = message.isReacting);
|
|
1237
|
+
message.socialEmoteInitiator !== undefined && (obj.socialEmoteInitiator = message.socialEmoteInitiator);
|
|
1238
|
+
message.targetAvatar !== undefined && (obj.targetAvatar = message.targetAvatar);
|
|
1239
|
+
message.mask !== undefined && (obj.mask = Math.round(message.mask));
|
|
1140
1240
|
return obj;
|
|
1141
1241
|
}
|
|
1142
1242
|
PlayerEmote.toJSON = toJSON;
|
|
@@ -1145,15 +1245,132 @@ var PlayerEmote;
|
|
|
1145
1245
|
}
|
|
1146
1246
|
PlayerEmote.create = create;
|
|
1147
1247
|
function fromPartial(object) {
|
|
1148
|
-
var _a, _b, _c;
|
|
1248
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1149
1249
|
const message = createBasePlayerEmote();
|
|
1150
1250
|
message.incrementalId = (_a = object.incrementalId) !== null && _a !== void 0 ? _a : 0;
|
|
1151
1251
|
message.urn = (_b = object.urn) !== null && _b !== void 0 ? _b : "";
|
|
1152
1252
|
message.timestamp = (_c = object.timestamp) !== null && _c !== void 0 ? _c : 0;
|
|
1253
|
+
message.isStopping = (_d = object.isStopping) !== null && _d !== void 0 ? _d : undefined;
|
|
1254
|
+
message.isRepeating = (_e = object.isRepeating) !== null && _e !== void 0 ? _e : undefined;
|
|
1255
|
+
message.interactionId = (_f = object.interactionId) !== null && _f !== void 0 ? _f : undefined;
|
|
1256
|
+
message.socialEmoteOutcome = (_g = object.socialEmoteOutcome) !== null && _g !== void 0 ? _g : undefined;
|
|
1257
|
+
message.isReacting = (_h = object.isReacting) !== null && _h !== void 0 ? _h : undefined;
|
|
1258
|
+
message.socialEmoteInitiator = (_j = object.socialEmoteInitiator) !== null && _j !== void 0 ? _j : undefined;
|
|
1259
|
+
message.targetAvatar = (_k = object.targetAvatar) !== null && _k !== void 0 ? _k : undefined;
|
|
1260
|
+
message.mask = (_l = object.mask) !== null && _l !== void 0 ? _l : undefined;
|
|
1153
1261
|
return message;
|
|
1154
1262
|
}
|
|
1155
1263
|
PlayerEmote.fromPartial = fromPartial;
|
|
1156
1264
|
})(PlayerEmote || (exports.PlayerEmote = PlayerEmote = {}));
|
|
1265
|
+
function createBaseLookAtPosition() {
|
|
1266
|
+
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1267
|
+
}
|
|
1268
|
+
var LookAtPosition;
|
|
1269
|
+
(function (LookAtPosition) {
|
|
1270
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1271
|
+
if (message.timestamp !== 0) {
|
|
1272
|
+
writer.uint32(13).float(message.timestamp);
|
|
1273
|
+
}
|
|
1274
|
+
if (message.positionX !== 0) {
|
|
1275
|
+
writer.uint32(21).float(message.positionX);
|
|
1276
|
+
}
|
|
1277
|
+
if (message.positionY !== 0) {
|
|
1278
|
+
writer.uint32(29).float(message.positionY);
|
|
1279
|
+
}
|
|
1280
|
+
if (message.positionZ !== 0) {
|
|
1281
|
+
writer.uint32(37).float(message.positionZ);
|
|
1282
|
+
}
|
|
1283
|
+
if (message.targetAvatarWalletAddress !== "") {
|
|
1284
|
+
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1285
|
+
}
|
|
1286
|
+
return writer;
|
|
1287
|
+
}
|
|
1288
|
+
LookAtPosition.encode = encode;
|
|
1289
|
+
function decode(input, length) {
|
|
1290
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1291
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1292
|
+
const message = createBaseLookAtPosition();
|
|
1293
|
+
while (reader.pos < end) {
|
|
1294
|
+
const tag = reader.uint32();
|
|
1295
|
+
switch (tag >>> 3) {
|
|
1296
|
+
case 1:
|
|
1297
|
+
if (tag !== 13) {
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
message.timestamp = reader.float();
|
|
1301
|
+
continue;
|
|
1302
|
+
case 2:
|
|
1303
|
+
if (tag !== 21) {
|
|
1304
|
+
break;
|
|
1305
|
+
}
|
|
1306
|
+
message.positionX = reader.float();
|
|
1307
|
+
continue;
|
|
1308
|
+
case 3:
|
|
1309
|
+
if (tag !== 29) {
|
|
1310
|
+
break;
|
|
1311
|
+
}
|
|
1312
|
+
message.positionY = reader.float();
|
|
1313
|
+
continue;
|
|
1314
|
+
case 4:
|
|
1315
|
+
if (tag !== 37) {
|
|
1316
|
+
break;
|
|
1317
|
+
}
|
|
1318
|
+
message.positionZ = reader.float();
|
|
1319
|
+
continue;
|
|
1320
|
+
case 5:
|
|
1321
|
+
if (tag !== 42) {
|
|
1322
|
+
break;
|
|
1323
|
+
}
|
|
1324
|
+
message.targetAvatarWalletAddress = reader.string();
|
|
1325
|
+
continue;
|
|
1326
|
+
}
|
|
1327
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1328
|
+
break;
|
|
1329
|
+
}
|
|
1330
|
+
reader.skipType(tag & 7);
|
|
1331
|
+
}
|
|
1332
|
+
return message;
|
|
1333
|
+
}
|
|
1334
|
+
LookAtPosition.decode = decode;
|
|
1335
|
+
function fromJSON(object) {
|
|
1336
|
+
return {
|
|
1337
|
+
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1338
|
+
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1339
|
+
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1340
|
+
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1341
|
+
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1342
|
+
? String(object.targetAvatarWalletAddress)
|
|
1343
|
+
: "",
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
LookAtPosition.fromJSON = fromJSON;
|
|
1347
|
+
function toJSON(message) {
|
|
1348
|
+
const obj = {};
|
|
1349
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1350
|
+
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1351
|
+
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1352
|
+
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1353
|
+
message.targetAvatarWalletAddress !== undefined &&
|
|
1354
|
+
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1355
|
+
return obj;
|
|
1356
|
+
}
|
|
1357
|
+
LookAtPosition.toJSON = toJSON;
|
|
1358
|
+
function create(base) {
|
|
1359
|
+
return LookAtPosition.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1360
|
+
}
|
|
1361
|
+
LookAtPosition.create = create;
|
|
1362
|
+
function fromPartial(object) {
|
|
1363
|
+
var _a, _b, _c, _d, _e;
|
|
1364
|
+
const message = createBaseLookAtPosition();
|
|
1365
|
+
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0;
|
|
1366
|
+
message.positionX = (_b = object.positionX) !== null && _b !== void 0 ? _b : 0;
|
|
1367
|
+
message.positionY = (_c = object.positionY) !== null && _c !== void 0 ? _c : 0;
|
|
1368
|
+
message.positionZ = (_d = object.positionZ) !== null && _d !== void 0 ? _d : 0;
|
|
1369
|
+
message.targetAvatarWalletAddress = (_e = object.targetAvatarWalletAddress) !== null && _e !== void 0 ? _e : "";
|
|
1370
|
+
return message;
|
|
1371
|
+
}
|
|
1372
|
+
LookAtPosition.fromPartial = fromPartial;
|
|
1373
|
+
})(LookAtPosition || (exports.LookAtPosition = LookAtPosition = {}));
|
|
1157
1374
|
function createBaseSceneEmote() {
|
|
1158
1375
|
return { sceneEntityId: "", source: "" };
|
|
1159
1376
|
}
|
|
@@ -1421,7 +1638,7 @@ var ProfileResponse;
|
|
|
1421
1638
|
ProfileResponse.fromPartial = fromPartial;
|
|
1422
1639
|
})(ProfileResponse || (exports.ProfileResponse = ProfileResponse = {}));
|
|
1423
1640
|
function createBaseChat() {
|
|
1424
|
-
return { message: "", timestamp: 0 };
|
|
1641
|
+
return { message: "", timestamp: 0, forwardedFrom: undefined };
|
|
1425
1642
|
}
|
|
1426
1643
|
var Chat;
|
|
1427
1644
|
(function (Chat) {
|
|
@@ -1432,6 +1649,9 @@ var Chat;
|
|
|
1432
1649
|
if (message.timestamp !== 0) {
|
|
1433
1650
|
writer.uint32(17).double(message.timestamp);
|
|
1434
1651
|
}
|
|
1652
|
+
if (message.forwardedFrom !== undefined) {
|
|
1653
|
+
writer.uint32(26).string(message.forwardedFrom);
|
|
1654
|
+
}
|
|
1435
1655
|
return writer;
|
|
1436
1656
|
}
|
|
1437
1657
|
Chat.encode = encode;
|
|
@@ -1454,6 +1674,12 @@ var Chat;
|
|
|
1454
1674
|
}
|
|
1455
1675
|
message.timestamp = reader.double();
|
|
1456
1676
|
continue;
|
|
1677
|
+
case 3:
|
|
1678
|
+
if (tag !== 26) {
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
message.forwardedFrom = reader.string();
|
|
1682
|
+
continue;
|
|
1457
1683
|
}
|
|
1458
1684
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1459
1685
|
break;
|
|
@@ -1467,6 +1693,7 @@ var Chat;
|
|
|
1467
1693
|
return {
|
|
1468
1694
|
message: isSet(object.message) ? String(object.message) : "",
|
|
1469
1695
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1696
|
+
forwardedFrom: isSet(object.forwardedFrom) ? String(object.forwardedFrom) : undefined,
|
|
1470
1697
|
};
|
|
1471
1698
|
}
|
|
1472
1699
|
Chat.fromJSON = fromJSON;
|
|
@@ -1474,6 +1701,7 @@ var Chat;
|
|
|
1474
1701
|
const obj = {};
|
|
1475
1702
|
message.message !== undefined && (obj.message = message.message);
|
|
1476
1703
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1704
|
+
message.forwardedFrom !== undefined && (obj.forwardedFrom = message.forwardedFrom);
|
|
1477
1705
|
return obj;
|
|
1478
1706
|
}
|
|
1479
1707
|
Chat.toJSON = toJSON;
|
|
@@ -1482,10 +1710,11 @@ var Chat;
|
|
|
1482
1710
|
}
|
|
1483
1711
|
Chat.create = create;
|
|
1484
1712
|
function fromPartial(object) {
|
|
1485
|
-
var _a, _b;
|
|
1713
|
+
var _a, _b, _c;
|
|
1486
1714
|
const message = createBaseChat();
|
|
1487
1715
|
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
|
|
1488
1716
|
message.timestamp = (_b = object.timestamp) !== null && _b !== void 0 ? _b : 0;
|
|
1717
|
+
message.forwardedFrom = (_c = object.forwardedFrom) !== null && _c !== void 0 ? _c : undefined;
|
|
1489
1718
|
return message;
|
|
1490
1719
|
}
|
|
1491
1720
|
Chat.fromPartial = fromPartial;
|
|
@@ -1644,115 +1873,6 @@ var Voice;
|
|
|
1644
1873
|
}
|
|
1645
1874
|
Voice.fromPartial = fromPartial;
|
|
1646
1875
|
})(Voice || (exports.Voice = Voice = {}));
|
|
1647
|
-
function createBaseLookAtPosition() {
|
|
1648
|
-
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1649
|
-
}
|
|
1650
|
-
var LookAtPosition;
|
|
1651
|
-
(function (LookAtPosition) {
|
|
1652
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1653
|
-
if (message.timestamp !== 0) {
|
|
1654
|
-
writer.uint32(13).float(message.timestamp);
|
|
1655
|
-
}
|
|
1656
|
-
if (message.positionX !== 0) {
|
|
1657
|
-
writer.uint32(21).float(message.positionX);
|
|
1658
|
-
}
|
|
1659
|
-
if (message.positionY !== 0) {
|
|
1660
|
-
writer.uint32(29).float(message.positionY);
|
|
1661
|
-
}
|
|
1662
|
-
if (message.positionZ !== 0) {
|
|
1663
|
-
writer.uint32(37).float(message.positionZ);
|
|
1664
|
-
}
|
|
1665
|
-
if (message.targetAvatarWalletAddress !== "") {
|
|
1666
|
-
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1667
|
-
}
|
|
1668
|
-
return writer;
|
|
1669
|
-
}
|
|
1670
|
-
LookAtPosition.encode = encode;
|
|
1671
|
-
function decode(input, length) {
|
|
1672
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1673
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1674
|
-
const message = createBaseLookAtPosition();
|
|
1675
|
-
while (reader.pos < end) {
|
|
1676
|
-
const tag = reader.uint32();
|
|
1677
|
-
switch (tag >>> 3) {
|
|
1678
|
-
case 1:
|
|
1679
|
-
if (tag !== 13) {
|
|
1680
|
-
break;
|
|
1681
|
-
}
|
|
1682
|
-
message.timestamp = reader.float();
|
|
1683
|
-
continue;
|
|
1684
|
-
case 2:
|
|
1685
|
-
if (tag !== 21) {
|
|
1686
|
-
break;
|
|
1687
|
-
}
|
|
1688
|
-
message.positionX = reader.float();
|
|
1689
|
-
continue;
|
|
1690
|
-
case 3:
|
|
1691
|
-
if (tag !== 29) {
|
|
1692
|
-
break;
|
|
1693
|
-
}
|
|
1694
|
-
message.positionY = reader.float();
|
|
1695
|
-
continue;
|
|
1696
|
-
case 4:
|
|
1697
|
-
if (tag !== 37) {
|
|
1698
|
-
break;
|
|
1699
|
-
}
|
|
1700
|
-
message.positionZ = reader.float();
|
|
1701
|
-
continue;
|
|
1702
|
-
case 5:
|
|
1703
|
-
if (tag !== 42) {
|
|
1704
|
-
break;
|
|
1705
|
-
}
|
|
1706
|
-
message.targetAvatarWalletAddress = reader.string();
|
|
1707
|
-
continue;
|
|
1708
|
-
}
|
|
1709
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1710
|
-
break;
|
|
1711
|
-
}
|
|
1712
|
-
reader.skipType(tag & 7);
|
|
1713
|
-
}
|
|
1714
|
-
return message;
|
|
1715
|
-
}
|
|
1716
|
-
LookAtPosition.decode = decode;
|
|
1717
|
-
function fromJSON(object) {
|
|
1718
|
-
return {
|
|
1719
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1720
|
-
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1721
|
-
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1722
|
-
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1723
|
-
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1724
|
-
? String(object.targetAvatarWalletAddress)
|
|
1725
|
-
: "",
|
|
1726
|
-
};
|
|
1727
|
-
}
|
|
1728
|
-
LookAtPosition.fromJSON = fromJSON;
|
|
1729
|
-
function toJSON(message) {
|
|
1730
|
-
const obj = {};
|
|
1731
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1732
|
-
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1733
|
-
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1734
|
-
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1735
|
-
message.targetAvatarWalletAddress !== undefined &&
|
|
1736
|
-
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1737
|
-
return obj;
|
|
1738
|
-
}
|
|
1739
|
-
LookAtPosition.toJSON = toJSON;
|
|
1740
|
-
function create(base) {
|
|
1741
|
-
return LookAtPosition.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1742
|
-
}
|
|
1743
|
-
LookAtPosition.create = create;
|
|
1744
|
-
function fromPartial(object) {
|
|
1745
|
-
var _a, _b, _c, _d, _e;
|
|
1746
|
-
const message = createBaseLookAtPosition();
|
|
1747
|
-
message.timestamp = (_a = object.timestamp) !== null && _a !== void 0 ? _a : 0;
|
|
1748
|
-
message.positionX = (_b = object.positionX) !== null && _b !== void 0 ? _b : 0;
|
|
1749
|
-
message.positionY = (_c = object.positionY) !== null && _c !== void 0 ? _c : 0;
|
|
1750
|
-
message.positionZ = (_d = object.positionZ) !== null && _d !== void 0 ? _d : 0;
|
|
1751
|
-
message.targetAvatarWalletAddress = (_e = object.targetAvatarWalletAddress) !== null && _e !== void 0 ? _e : "";
|
|
1752
|
-
return message;
|
|
1753
|
-
}
|
|
1754
|
-
LookAtPosition.fromPartial = fromPartial;
|
|
1755
|
-
})(LookAtPosition || (exports.LookAtPosition = LookAtPosition = {}));
|
|
1756
1876
|
function createBaseReaction() {
|
|
1757
1877
|
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
1758
1878
|
}
|