@dcl/protocol 1.0.0-25002956535.commit-14be2da → 1.0.0-25007945013.commit-ba53eb0
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/common/texture.gen.d.ts +18 -0
- package/out-js/decentraland/common/texture.gen.js +104 -4
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +0 -130
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +1 -536
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +109 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +383 -1
- 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 -52
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +5 -339
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +138 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +113 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +207 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +24 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/material.gen.js +86 -2
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +14 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +119 -4
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +0 -589
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +410 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +0 -376
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +249 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +24 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +19 -1
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +6 -3
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/comms_api.proto +1 -37
- package/proto/decentraland/kernel/apis/restricted_actions.proto +39 -1
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -25
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +18 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +46 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
- package/proto/decentraland/sdk/components/common/input_action.proto +4 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/material.proto +13 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- package/proto/decentraland/sdk/components/particle_system.proto +1 -5
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_input.proto +1 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +3 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +4 -0
|
@@ -17,9 +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
|
-
| { $case: "reaction"; reaction: Reaction }
|
|
22
|
-
| { $case: "chatReaction"; chatReaction: ChatReaction }
|
|
23
20
|
| undefined;
|
|
24
21
|
protocolVersion: number;
|
|
25
22
|
}
|
|
@@ -201,28 +198,6 @@ export function voice_VoiceCodecToJSON(object: Voice_VoiceCodec): string {
|
|
|
201
198
|
}
|
|
202
199
|
}
|
|
203
200
|
|
|
204
|
-
/** Message sent to force an avatar to look at a position */
|
|
205
|
-
export interface LookAtPosition {
|
|
206
|
-
timestamp: number;
|
|
207
|
-
/** world position */
|
|
208
|
-
positionX: number;
|
|
209
|
-
positionY: number;
|
|
210
|
-
positionZ: number;
|
|
211
|
-
targetAvatarWalletAddress: string;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export interface Reaction {
|
|
215
|
-
emojiIndex: number;
|
|
216
|
-
timestamp: number;
|
|
217
|
-
count: number;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface ChatReaction {
|
|
221
|
-
emojiIndex: number;
|
|
222
|
-
messageId: string;
|
|
223
|
-
address: string;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
201
|
function createBasePacket(): Packet {
|
|
227
202
|
return { message: undefined, protocolVersion: 0 };
|
|
228
203
|
}
|
|
@@ -263,15 +238,6 @@ export namespace Packet {
|
|
|
263
238
|
case "movementCompressed":
|
|
264
239
|
MovementCompressed.encode(message.message.movementCompressed, writer.uint32(98).fork()).ldelim();
|
|
265
240
|
break;
|
|
266
|
-
case "lookAtPosition":
|
|
267
|
-
LookAtPosition.encode(message.message.lookAtPosition, writer.uint32(106).fork()).ldelim();
|
|
268
|
-
break;
|
|
269
|
-
case "reaction":
|
|
270
|
-
Reaction.encode(message.message.reaction, writer.uint32(114).fork()).ldelim();
|
|
271
|
-
break;
|
|
272
|
-
case "chatReaction":
|
|
273
|
-
ChatReaction.encode(message.message.chatReaction, writer.uint32(122).fork()).ldelim();
|
|
274
|
-
break;
|
|
275
241
|
}
|
|
276
242
|
if (message.protocolVersion !== 0) {
|
|
277
243
|
writer.uint32(88).uint32(message.protocolVersion);
|
|
@@ -372,27 +338,6 @@ export namespace Packet {
|
|
|
372
338
|
movementCompressed: MovementCompressed.decode(reader, reader.uint32()),
|
|
373
339
|
};
|
|
374
340
|
continue;
|
|
375
|
-
case 13:
|
|
376
|
-
if (tag !== 106) {
|
|
377
|
-
break;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
message.message = { $case: "lookAtPosition", lookAtPosition: LookAtPosition.decode(reader, reader.uint32()) };
|
|
381
|
-
continue;
|
|
382
|
-
case 14:
|
|
383
|
-
if (tag !== 114) {
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
message.message = { $case: "reaction", reaction: Reaction.decode(reader, reader.uint32()) };
|
|
388
|
-
continue;
|
|
389
|
-
case 15:
|
|
390
|
-
if (tag !== 122) {
|
|
391
|
-
break;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
message.message = { $case: "chatReaction", chatReaction: ChatReaction.decode(reader, reader.uint32()) };
|
|
395
|
-
continue;
|
|
396
341
|
case 11:
|
|
397
342
|
if (tag !== 88) {
|
|
398
343
|
break;
|
|
@@ -433,12 +378,6 @@ export namespace Packet {
|
|
|
433
378
|
? { $case: "sceneEmote", sceneEmote: SceneEmote.fromJSON(object.sceneEmote) }
|
|
434
379
|
: isSet(object.movementCompressed)
|
|
435
380
|
? { $case: "movementCompressed", movementCompressed: MovementCompressed.fromJSON(object.movementCompressed) }
|
|
436
|
-
: isSet(object.lookAtPosition)
|
|
437
|
-
? { $case: "lookAtPosition", lookAtPosition: LookAtPosition.fromJSON(object.lookAtPosition) }
|
|
438
|
-
: isSet(object.reaction)
|
|
439
|
-
? { $case: "reaction", reaction: Reaction.fromJSON(object.reaction) }
|
|
440
|
-
: isSet(object.chatReaction)
|
|
441
|
-
? { $case: "chatReaction", chatReaction: ChatReaction.fromJSON(object.chatReaction) }
|
|
442
381
|
: undefined,
|
|
443
382
|
protocolVersion: isSet(object.protocolVersion) ? Number(object.protocolVersion) : 0,
|
|
444
383
|
};
|
|
@@ -476,16 +415,6 @@ export namespace Packet {
|
|
|
476
415
|
(obj.movementCompressed = message.message?.movementCompressed
|
|
477
416
|
? MovementCompressed.toJSON(message.message?.movementCompressed)
|
|
478
417
|
: undefined);
|
|
479
|
-
message.message?.$case === "lookAtPosition" &&
|
|
480
|
-
(obj.lookAtPosition = message.message?.lookAtPosition
|
|
481
|
-
? LookAtPosition.toJSON(message.message?.lookAtPosition)
|
|
482
|
-
: undefined);
|
|
483
|
-
message.message?.$case === "reaction" &&
|
|
484
|
-
(obj.reaction = message.message?.reaction ? Reaction.toJSON(message.message?.reaction) : undefined);
|
|
485
|
-
message.message?.$case === "chatReaction" &&
|
|
486
|
-
(obj.chatReaction = message.message?.chatReaction
|
|
487
|
-
? ChatReaction.toJSON(message.message?.chatReaction)
|
|
488
|
-
: undefined);
|
|
489
418
|
message.protocolVersion !== undefined && (obj.protocolVersion = Math.round(message.protocolVersion));
|
|
490
419
|
return obj;
|
|
491
420
|
}
|
|
@@ -573,30 +502,6 @@ export namespace Packet {
|
|
|
573
502
|
movementCompressed: MovementCompressed.fromPartial(object.message.movementCompressed),
|
|
574
503
|
};
|
|
575
504
|
}
|
|
576
|
-
if (
|
|
577
|
-
object.message?.$case === "lookAtPosition" &&
|
|
578
|
-
object.message?.lookAtPosition !== undefined &&
|
|
579
|
-
object.message?.lookAtPosition !== null
|
|
580
|
-
) {
|
|
581
|
-
message.message = {
|
|
582
|
-
$case: "lookAtPosition",
|
|
583
|
-
lookAtPosition: LookAtPosition.fromPartial(object.message.lookAtPosition),
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
if (
|
|
587
|
-
object.message?.$case === "reaction" &&
|
|
588
|
-
object.message?.reaction !== undefined &&
|
|
589
|
-
object.message?.reaction !== null
|
|
590
|
-
) {
|
|
591
|
-
message.message = { $case: "reaction", reaction: Reaction.fromPartial(object.message.reaction) };
|
|
592
|
-
}
|
|
593
|
-
if (
|
|
594
|
-
object.message?.$case === "chatReaction" &&
|
|
595
|
-
object.message?.chatReaction !== undefined &&
|
|
596
|
-
object.message?.chatReaction !== null
|
|
597
|
-
) {
|
|
598
|
-
message.message = { $case: "chatReaction", chatReaction: ChatReaction.fromPartial(object.message.chatReaction) };
|
|
599
|
-
}
|
|
600
505
|
message.protocolVersion = object.protocolVersion ?? 0;
|
|
601
506
|
return message;
|
|
602
507
|
}
|
|
@@ -1871,287 +1776,6 @@ export namespace Voice {
|
|
|
1871
1776
|
}
|
|
1872
1777
|
}
|
|
1873
1778
|
|
|
1874
|
-
function createBaseLookAtPosition(): LookAtPosition {
|
|
1875
|
-
return { timestamp: 0, positionX: 0, positionY: 0, positionZ: 0, targetAvatarWalletAddress: "" };
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
export namespace LookAtPosition {
|
|
1879
|
-
export function encode(message: LookAtPosition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1880
|
-
if (message.timestamp !== 0) {
|
|
1881
|
-
writer.uint32(13).float(message.timestamp);
|
|
1882
|
-
}
|
|
1883
|
-
if (message.positionX !== 0) {
|
|
1884
|
-
writer.uint32(21).float(message.positionX);
|
|
1885
|
-
}
|
|
1886
|
-
if (message.positionY !== 0) {
|
|
1887
|
-
writer.uint32(29).float(message.positionY);
|
|
1888
|
-
}
|
|
1889
|
-
if (message.positionZ !== 0) {
|
|
1890
|
-
writer.uint32(37).float(message.positionZ);
|
|
1891
|
-
}
|
|
1892
|
-
if (message.targetAvatarWalletAddress !== "") {
|
|
1893
|
-
writer.uint32(42).string(message.targetAvatarWalletAddress);
|
|
1894
|
-
}
|
|
1895
|
-
return writer;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): LookAtPosition {
|
|
1899
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1900
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1901
|
-
const message = createBaseLookAtPosition();
|
|
1902
|
-
while (reader.pos < end) {
|
|
1903
|
-
const tag = reader.uint32();
|
|
1904
|
-
switch (tag >>> 3) {
|
|
1905
|
-
case 1:
|
|
1906
|
-
if (tag !== 13) {
|
|
1907
|
-
break;
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
message.timestamp = reader.float();
|
|
1911
|
-
continue;
|
|
1912
|
-
case 2:
|
|
1913
|
-
if (tag !== 21) {
|
|
1914
|
-
break;
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
message.positionX = reader.float();
|
|
1918
|
-
continue;
|
|
1919
|
-
case 3:
|
|
1920
|
-
if (tag !== 29) {
|
|
1921
|
-
break;
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
message.positionY = reader.float();
|
|
1925
|
-
continue;
|
|
1926
|
-
case 4:
|
|
1927
|
-
if (tag !== 37) {
|
|
1928
|
-
break;
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
message.positionZ = reader.float();
|
|
1932
|
-
continue;
|
|
1933
|
-
case 5:
|
|
1934
|
-
if (tag !== 42) {
|
|
1935
|
-
break;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
message.targetAvatarWalletAddress = reader.string();
|
|
1939
|
-
continue;
|
|
1940
|
-
}
|
|
1941
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1942
|
-
break;
|
|
1943
|
-
}
|
|
1944
|
-
reader.skipType(tag & 7);
|
|
1945
|
-
}
|
|
1946
|
-
return message;
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
export function fromJSON(object: any): LookAtPosition {
|
|
1950
|
-
return {
|
|
1951
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
1952
|
-
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
1953
|
-
positionY: isSet(object.positionY) ? Number(object.positionY) : 0,
|
|
1954
|
-
positionZ: isSet(object.positionZ) ? Number(object.positionZ) : 0,
|
|
1955
|
-
targetAvatarWalletAddress: isSet(object.targetAvatarWalletAddress)
|
|
1956
|
-
? String(object.targetAvatarWalletAddress)
|
|
1957
|
-
: "",
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
export function toJSON(message: LookAtPosition): unknown {
|
|
1962
|
-
const obj: any = {};
|
|
1963
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
1964
|
-
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
1965
|
-
message.positionY !== undefined && (obj.positionY = message.positionY);
|
|
1966
|
-
message.positionZ !== undefined && (obj.positionZ = message.positionZ);
|
|
1967
|
-
message.targetAvatarWalletAddress !== undefined &&
|
|
1968
|
-
(obj.targetAvatarWalletAddress = message.targetAvatarWalletAddress);
|
|
1969
|
-
return obj;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
export function create<I extends Exact<DeepPartial<LookAtPosition>, I>>(base?: I): LookAtPosition {
|
|
1973
|
-
return LookAtPosition.fromPartial(base ?? {});
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
export function fromPartial<I extends Exact<DeepPartial<LookAtPosition>, I>>(object: I): LookAtPosition {
|
|
1977
|
-
const message = createBaseLookAtPosition();
|
|
1978
|
-
message.timestamp = object.timestamp ?? 0;
|
|
1979
|
-
message.positionX = object.positionX ?? 0;
|
|
1980
|
-
message.positionY = object.positionY ?? 0;
|
|
1981
|
-
message.positionZ = object.positionZ ?? 0;
|
|
1982
|
-
message.targetAvatarWalletAddress = object.targetAvatarWalletAddress ?? "";
|
|
1983
|
-
return message;
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
function createBaseReaction(): Reaction {
|
|
1988
|
-
return { emojiIndex: 0, timestamp: 0, count: 0 };
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
export namespace Reaction {
|
|
1992
|
-
export function encode(message: Reaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1993
|
-
if (message.emojiIndex !== 0) {
|
|
1994
|
-
writer.uint32(8).int32(message.emojiIndex);
|
|
1995
|
-
}
|
|
1996
|
-
if (message.timestamp !== 0) {
|
|
1997
|
-
writer.uint32(21).float(message.timestamp);
|
|
1998
|
-
}
|
|
1999
|
-
if (message.count !== 0) {
|
|
2000
|
-
writer.uint32(24).int32(message.count);
|
|
2001
|
-
}
|
|
2002
|
-
return writer;
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): Reaction {
|
|
2006
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2007
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2008
|
-
const message = createBaseReaction();
|
|
2009
|
-
while (reader.pos < end) {
|
|
2010
|
-
const tag = reader.uint32();
|
|
2011
|
-
switch (tag >>> 3) {
|
|
2012
|
-
case 1:
|
|
2013
|
-
if (tag !== 8) {
|
|
2014
|
-
break;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
message.emojiIndex = reader.int32();
|
|
2018
|
-
continue;
|
|
2019
|
-
case 2:
|
|
2020
|
-
if (tag !== 21) {
|
|
2021
|
-
break;
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
message.timestamp = reader.float();
|
|
2025
|
-
continue;
|
|
2026
|
-
case 3:
|
|
2027
|
-
if (tag !== 24) {
|
|
2028
|
-
break;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
message.count = reader.int32();
|
|
2032
|
-
continue;
|
|
2033
|
-
}
|
|
2034
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2035
|
-
break;
|
|
2036
|
-
}
|
|
2037
|
-
reader.skipType(tag & 7);
|
|
2038
|
-
}
|
|
2039
|
-
return message;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
export function fromJSON(object: any): Reaction {
|
|
2043
|
-
return {
|
|
2044
|
-
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2045
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2046
|
-
count: isSet(object.count) ? Number(object.count) : 0,
|
|
2047
|
-
};
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
export function toJSON(message: Reaction): unknown {
|
|
2051
|
-
const obj: any = {};
|
|
2052
|
-
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2053
|
-
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
2054
|
-
message.count !== undefined && (obj.count = Math.round(message.count));
|
|
2055
|
-
return obj;
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
export function create<I extends Exact<DeepPartial<Reaction>, I>>(base?: I): Reaction {
|
|
2059
|
-
return Reaction.fromPartial(base ?? {});
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
export function fromPartial<I extends Exact<DeepPartial<Reaction>, I>>(object: I): Reaction {
|
|
2063
|
-
const message = createBaseReaction();
|
|
2064
|
-
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2065
|
-
message.timestamp = object.timestamp ?? 0;
|
|
2066
|
-
message.count = object.count ?? 0;
|
|
2067
|
-
return message;
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
function createBaseChatReaction(): ChatReaction {
|
|
2072
|
-
return { emojiIndex: 0, messageId: "", address: "" };
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
export namespace ChatReaction {
|
|
2076
|
-
export function encode(message: ChatReaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2077
|
-
if (message.emojiIndex !== 0) {
|
|
2078
|
-
writer.uint32(8).int32(message.emojiIndex);
|
|
2079
|
-
}
|
|
2080
|
-
if (message.messageId !== "") {
|
|
2081
|
-
writer.uint32(18).string(message.messageId);
|
|
2082
|
-
}
|
|
2083
|
-
if (message.address !== "") {
|
|
2084
|
-
writer.uint32(26).string(message.address);
|
|
2085
|
-
}
|
|
2086
|
-
return writer;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChatReaction {
|
|
2090
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2091
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2092
|
-
const message = createBaseChatReaction();
|
|
2093
|
-
while (reader.pos < end) {
|
|
2094
|
-
const tag = reader.uint32();
|
|
2095
|
-
switch (tag >>> 3) {
|
|
2096
|
-
case 1:
|
|
2097
|
-
if (tag !== 8) {
|
|
2098
|
-
break;
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
message.emojiIndex = reader.int32();
|
|
2102
|
-
continue;
|
|
2103
|
-
case 2:
|
|
2104
|
-
if (tag !== 18) {
|
|
2105
|
-
break;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
message.messageId = reader.string();
|
|
2109
|
-
continue;
|
|
2110
|
-
case 3:
|
|
2111
|
-
if (tag !== 26) {
|
|
2112
|
-
break;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
message.address = reader.string();
|
|
2116
|
-
continue;
|
|
2117
|
-
}
|
|
2118
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2119
|
-
break;
|
|
2120
|
-
}
|
|
2121
|
-
reader.skipType(tag & 7);
|
|
2122
|
-
}
|
|
2123
|
-
return message;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
export function fromJSON(object: any): ChatReaction {
|
|
2127
|
-
return {
|
|
2128
|
-
emojiIndex: isSet(object.emojiIndex) ? Number(object.emojiIndex) : 0,
|
|
2129
|
-
messageId: isSet(object.messageId) ? String(object.messageId) : "",
|
|
2130
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
2131
|
-
};
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
export function toJSON(message: ChatReaction): unknown {
|
|
2135
|
-
const obj: any = {};
|
|
2136
|
-
message.emojiIndex !== undefined && (obj.emojiIndex = Math.round(message.emojiIndex));
|
|
2137
|
-
message.messageId !== undefined && (obj.messageId = message.messageId);
|
|
2138
|
-
message.address !== undefined && (obj.address = message.address);
|
|
2139
|
-
return obj;
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
export function create<I extends Exact<DeepPartial<ChatReaction>, I>>(base?: I): ChatReaction {
|
|
2143
|
-
return ChatReaction.fromPartial(base ?? {});
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
export function fromPartial<I extends Exact<DeepPartial<ChatReaction>, I>>(object: I): ChatReaction {
|
|
2147
|
-
const message = createBaseChatReaction();
|
|
2148
|
-
message.emojiIndex = object.emojiIndex ?? 0;
|
|
2149
|
-
message.messageId = object.messageId ?? "";
|
|
2150
|
-
message.address = object.address ?? "";
|
|
2151
|
-
return message;
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
1779
|
declare const self: any | undefined;
|
|
2156
1780
|
declare const window: any | undefined;
|
|
2157
1781
|
declare const global: any | undefined;
|
|
@@ -11,10 +11,12 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
11
11
|
export interface PBAvatarEquippedData {
|
|
12
12
|
wearableUrns: string[];
|
|
13
13
|
emoteUrns: string[];
|
|
14
|
+
/** slots that will render even if hidden */
|
|
15
|
+
forceRender: string[];
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
function createBasePBAvatarEquippedData(): PBAvatarEquippedData {
|
|
17
|
-
return { wearableUrns: [], emoteUrns: [] };
|
|
19
|
+
return { wearableUrns: [], emoteUrns: [], forceRender: [] };
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export namespace PBAvatarEquippedData {
|
|
@@ -25,6 +27,9 @@ export namespace PBAvatarEquippedData {
|
|
|
25
27
|
for (const v of message.emoteUrns) {
|
|
26
28
|
writer.uint32(18).string(v!);
|
|
27
29
|
}
|
|
30
|
+
for (const v of message.forceRender) {
|
|
31
|
+
writer.uint32(26).string(v!);
|
|
32
|
+
}
|
|
28
33
|
return writer;
|
|
29
34
|
}
|
|
30
35
|
|
|
@@ -49,6 +54,13 @@ export namespace PBAvatarEquippedData {
|
|
|
49
54
|
|
|
50
55
|
message.emoteUrns.push(reader.string());
|
|
51
56
|
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message.forceRender.push(reader.string());
|
|
63
|
+
continue;
|
|
52
64
|
}
|
|
53
65
|
if ((tag & 7) === 4 || tag === 0) {
|
|
54
66
|
break;
|
|
@@ -62,6 +74,7 @@ export namespace PBAvatarEquippedData {
|
|
|
62
74
|
return {
|
|
63
75
|
wearableUrns: Array.isArray(object?.wearableUrns) ? object.wearableUrns.map((e: any) => String(e)) : [],
|
|
64
76
|
emoteUrns: Array.isArray(object?.emoteUrns) ? object.emoteUrns.map((e: any) => String(e)) : [],
|
|
77
|
+
forceRender: Array.isArray(object?.forceRender) ? object.forceRender.map((e: any) => String(e)) : [],
|
|
65
78
|
};
|
|
66
79
|
}
|
|
67
80
|
|
|
@@ -77,6 +90,11 @@ export namespace PBAvatarEquippedData {
|
|
|
77
90
|
} else {
|
|
78
91
|
obj.emoteUrns = [];
|
|
79
92
|
}
|
|
93
|
+
if (message.forceRender) {
|
|
94
|
+
obj.forceRender = message.forceRender.map((e) => e);
|
|
95
|
+
} else {
|
|
96
|
+
obj.forceRender = [];
|
|
97
|
+
}
|
|
80
98
|
return obj;
|
|
81
99
|
}
|
|
82
100
|
|
|
@@ -88,6 +106,7 @@ export namespace PBAvatarEquippedData {
|
|
|
88
106
|
const message = createBasePBAvatarEquippedData();
|
|
89
107
|
message.wearableUrns = object.wearableUrns?.map((e) => e) || [];
|
|
90
108
|
message.emoteUrns = object.emoteUrns?.map((e) => e) || [];
|
|
109
|
+
message.forceRender = object.forceRender?.map((e) => e) || [];
|
|
91
110
|
return message;
|
|
92
111
|
}
|
|
93
112
|
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "decentraland.sdk.components";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
8
|
+
* as the avatar movement speed, jump height etc.
|
|
9
|
+
*/
|
|
10
|
+
export interface PBAvatarLocomotionSettings {
|
|
11
|
+
/** Maximum speed when walking (in meters per second) */
|
|
12
|
+
walkSpeed?:
|
|
13
|
+
| number
|
|
14
|
+
| undefined;
|
|
15
|
+
/** Maximum speed when jogging (in meters per second) */
|
|
16
|
+
jogSpeed?:
|
|
17
|
+
| number
|
|
18
|
+
| undefined;
|
|
19
|
+
/** Maximum speed when running (in meters per second) */
|
|
20
|
+
runSpeed?:
|
|
21
|
+
| number
|
|
22
|
+
| undefined;
|
|
23
|
+
/** Height of a regular jump (in meters) */
|
|
24
|
+
jumpHeight?:
|
|
25
|
+
| number
|
|
26
|
+
| undefined;
|
|
27
|
+
/** Height of a jump while running (in meters) */
|
|
28
|
+
runJumpHeight?:
|
|
29
|
+
| number
|
|
30
|
+
| undefined;
|
|
31
|
+
/** Cooldown time after a hard landing before the avatar can move again (in seconds) */
|
|
32
|
+
hardLandingCooldown?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function createBasePBAvatarLocomotionSettings(): PBAvatarLocomotionSettings {
|
|
36
|
+
return {
|
|
37
|
+
walkSpeed: undefined,
|
|
38
|
+
jogSpeed: undefined,
|
|
39
|
+
runSpeed: undefined,
|
|
40
|
+
jumpHeight: undefined,
|
|
41
|
+
runJumpHeight: undefined,
|
|
42
|
+
hardLandingCooldown: undefined,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export namespace PBAvatarLocomotionSettings {
|
|
47
|
+
export function encode(message: PBAvatarLocomotionSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
48
|
+
if (message.walkSpeed !== undefined) {
|
|
49
|
+
writer.uint32(13).float(message.walkSpeed);
|
|
50
|
+
}
|
|
51
|
+
if (message.jogSpeed !== undefined) {
|
|
52
|
+
writer.uint32(21).float(message.jogSpeed);
|
|
53
|
+
}
|
|
54
|
+
if (message.runSpeed !== undefined) {
|
|
55
|
+
writer.uint32(29).float(message.runSpeed);
|
|
56
|
+
}
|
|
57
|
+
if (message.jumpHeight !== undefined) {
|
|
58
|
+
writer.uint32(37).float(message.jumpHeight);
|
|
59
|
+
}
|
|
60
|
+
if (message.runJumpHeight !== undefined) {
|
|
61
|
+
writer.uint32(45).float(message.runJumpHeight);
|
|
62
|
+
}
|
|
63
|
+
if (message.hardLandingCooldown !== undefined) {
|
|
64
|
+
writer.uint32(53).float(message.hardLandingCooldown);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings {
|
|
70
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
71
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
72
|
+
const message = createBasePBAvatarLocomotionSettings();
|
|
73
|
+
while (reader.pos < end) {
|
|
74
|
+
const tag = reader.uint32();
|
|
75
|
+
switch (tag >>> 3) {
|
|
76
|
+
case 1:
|
|
77
|
+
if (tag !== 13) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message.walkSpeed = reader.float();
|
|
82
|
+
continue;
|
|
83
|
+
case 2:
|
|
84
|
+
if (tag !== 21) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.jogSpeed = reader.float();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 29) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message.runSpeed = reader.float();
|
|
96
|
+
continue;
|
|
97
|
+
case 4:
|
|
98
|
+
if (tag !== 37) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message.jumpHeight = reader.float();
|
|
103
|
+
continue;
|
|
104
|
+
case 5:
|
|
105
|
+
if (tag !== 45) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message.runJumpHeight = reader.float();
|
|
110
|
+
continue;
|
|
111
|
+
case 6:
|
|
112
|
+
if (tag !== 53) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message.hardLandingCooldown = reader.float();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function fromJSON(object: any): PBAvatarLocomotionSettings {
|
|
128
|
+
return {
|
|
129
|
+
walkSpeed: isSet(object.walkSpeed) ? Number(object.walkSpeed) : undefined,
|
|
130
|
+
jogSpeed: isSet(object.jogSpeed) ? Number(object.jogSpeed) : undefined,
|
|
131
|
+
runSpeed: isSet(object.runSpeed) ? Number(object.runSpeed) : undefined,
|
|
132
|
+
jumpHeight: isSet(object.jumpHeight) ? Number(object.jumpHeight) : undefined,
|
|
133
|
+
runJumpHeight: isSet(object.runJumpHeight) ? Number(object.runJumpHeight) : undefined,
|
|
134
|
+
hardLandingCooldown: isSet(object.hardLandingCooldown) ? Number(object.hardLandingCooldown) : undefined,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function toJSON(message: PBAvatarLocomotionSettings): unknown {
|
|
139
|
+
const obj: any = {};
|
|
140
|
+
message.walkSpeed !== undefined && (obj.walkSpeed = message.walkSpeed);
|
|
141
|
+
message.jogSpeed !== undefined && (obj.jogSpeed = message.jogSpeed);
|
|
142
|
+
message.runSpeed !== undefined && (obj.runSpeed = message.runSpeed);
|
|
143
|
+
message.jumpHeight !== undefined && (obj.jumpHeight = message.jumpHeight);
|
|
144
|
+
message.runJumpHeight !== undefined && (obj.runJumpHeight = message.runJumpHeight);
|
|
145
|
+
message.hardLandingCooldown !== undefined && (obj.hardLandingCooldown = message.hardLandingCooldown);
|
|
146
|
+
return obj;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function create<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
|
|
150
|
+
base?: I,
|
|
151
|
+
): PBAvatarLocomotionSettings {
|
|
152
|
+
return PBAvatarLocomotionSettings.fromPartial(base ?? {});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function fromPartial<I extends Exact<DeepPartial<PBAvatarLocomotionSettings>, I>>(
|
|
156
|
+
object: I,
|
|
157
|
+
): PBAvatarLocomotionSettings {
|
|
158
|
+
const message = createBasePBAvatarLocomotionSettings();
|
|
159
|
+
message.walkSpeed = object.walkSpeed ?? undefined;
|
|
160
|
+
message.jogSpeed = object.jogSpeed ?? undefined;
|
|
161
|
+
message.runSpeed = object.runSpeed ?? undefined;
|
|
162
|
+
message.jumpHeight = object.jumpHeight ?? undefined;
|
|
163
|
+
message.runJumpHeight = object.runJumpHeight ?? undefined;
|
|
164
|
+
message.hardLandingCooldown = object.hardLandingCooldown ?? undefined;
|
|
165
|
+
return message;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
170
|
+
|
|
171
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
172
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
173
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
174
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
175
|
+
: Partial<T>;
|
|
176
|
+
|
|
177
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
178
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
179
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
180
|
+
|
|
181
|
+
function isSet(value: any): boolean {
|
|
182
|
+
return value !== null && value !== undefined;
|
|
183
|
+
}
|