@dcl/protocol 1.0.0-25002956535.commit-14be2da → 1.0.0-25007946712.commit-f0cdbab
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/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/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/restricted_actions.gen.ts +410 -0
- 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/restricted_actions.proto +39 -1
- 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/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
|
@@ -120,11 +120,23 @@ export interface VideoTexture {
|
|
|
120
120
|
filterMode?: TextureFilterMode | undefined;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
export interface UiCanvasTexture {
|
|
124
|
+
uiCanvasEntity: number;
|
|
125
|
+
/** default = TextureWrapMode.Clamp */
|
|
126
|
+
wrapMode?:
|
|
127
|
+
| TextureWrapMode
|
|
128
|
+
| undefined;
|
|
129
|
+
/** default = FilterMode.Bilinear */
|
|
130
|
+
filterMode?: TextureFilterMode | undefined;
|
|
131
|
+
}
|
|
132
|
+
|
|
123
133
|
export interface TextureUnion {
|
|
124
|
-
tex?:
|
|
125
|
-
$case: "
|
|
126
|
-
|
|
127
|
-
|
|
134
|
+
tex?:
|
|
135
|
+
| { $case: "texture"; texture: Texture }
|
|
136
|
+
| { $case: "avatarTexture"; avatarTexture: AvatarTexture }
|
|
137
|
+
| { $case: "videoTexture"; videoTexture: VideoTexture }
|
|
138
|
+
| { $case: "uiTexture"; uiTexture: UiCanvasTexture }
|
|
139
|
+
| undefined;
|
|
128
140
|
}
|
|
129
141
|
|
|
130
142
|
function createBaseTexture(): Texture {
|
|
@@ -415,6 +427,92 @@ export namespace VideoTexture {
|
|
|
415
427
|
}
|
|
416
428
|
}
|
|
417
429
|
|
|
430
|
+
function createBaseUiCanvasTexture(): UiCanvasTexture {
|
|
431
|
+
return { uiCanvasEntity: 0, wrapMode: undefined, filterMode: undefined };
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export namespace UiCanvasTexture {
|
|
435
|
+
export function encode(message: UiCanvasTexture, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
436
|
+
if (message.uiCanvasEntity !== 0) {
|
|
437
|
+
writer.uint32(8).uint32(message.uiCanvasEntity);
|
|
438
|
+
}
|
|
439
|
+
if (message.wrapMode !== undefined) {
|
|
440
|
+
writer.uint32(16).int32(message.wrapMode);
|
|
441
|
+
}
|
|
442
|
+
if (message.filterMode !== undefined) {
|
|
443
|
+
writer.uint32(24).int32(message.filterMode);
|
|
444
|
+
}
|
|
445
|
+
return writer;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiCanvasTexture {
|
|
449
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
450
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
451
|
+
const message = createBaseUiCanvasTexture();
|
|
452
|
+
while (reader.pos < end) {
|
|
453
|
+
const tag = reader.uint32();
|
|
454
|
+
switch (tag >>> 3) {
|
|
455
|
+
case 1:
|
|
456
|
+
if (tag !== 8) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
message.uiCanvasEntity = reader.uint32();
|
|
461
|
+
continue;
|
|
462
|
+
case 2:
|
|
463
|
+
if (tag !== 16) {
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
message.wrapMode = reader.int32() as any;
|
|
468
|
+
continue;
|
|
469
|
+
case 3:
|
|
470
|
+
if (tag !== 24) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
message.filterMode = reader.int32() as any;
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
reader.skipType(tag & 7);
|
|
481
|
+
}
|
|
482
|
+
return message;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export function fromJSON(object: any): UiCanvasTexture {
|
|
486
|
+
return {
|
|
487
|
+
uiCanvasEntity: isSet(object.uiCanvasEntity) ? Number(object.uiCanvasEntity) : 0,
|
|
488
|
+
wrapMode: isSet(object.wrapMode) ? textureWrapModeFromJSON(object.wrapMode) : undefined,
|
|
489
|
+
filterMode: isSet(object.filterMode) ? textureFilterModeFromJSON(object.filterMode) : undefined,
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export function toJSON(message: UiCanvasTexture): unknown {
|
|
494
|
+
const obj: any = {};
|
|
495
|
+
message.uiCanvasEntity !== undefined && (obj.uiCanvasEntity = Math.round(message.uiCanvasEntity));
|
|
496
|
+
message.wrapMode !== undefined &&
|
|
497
|
+
(obj.wrapMode = message.wrapMode !== undefined ? textureWrapModeToJSON(message.wrapMode) : undefined);
|
|
498
|
+
message.filterMode !== undefined &&
|
|
499
|
+
(obj.filterMode = message.filterMode !== undefined ? textureFilterModeToJSON(message.filterMode) : undefined);
|
|
500
|
+
return obj;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export function create<I extends Exact<DeepPartial<UiCanvasTexture>, I>>(base?: I): UiCanvasTexture {
|
|
504
|
+
return UiCanvasTexture.fromPartial(base ?? {});
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export function fromPartial<I extends Exact<DeepPartial<UiCanvasTexture>, I>>(object: I): UiCanvasTexture {
|
|
508
|
+
const message = createBaseUiCanvasTexture();
|
|
509
|
+
message.uiCanvasEntity = object.uiCanvasEntity ?? 0;
|
|
510
|
+
message.wrapMode = object.wrapMode ?? undefined;
|
|
511
|
+
message.filterMode = object.filterMode ?? undefined;
|
|
512
|
+
return message;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
418
516
|
function createBaseTextureUnion(): TextureUnion {
|
|
419
517
|
return { tex: undefined };
|
|
420
518
|
}
|
|
@@ -431,6 +529,9 @@ export namespace TextureUnion {
|
|
|
431
529
|
case "videoTexture":
|
|
432
530
|
VideoTexture.encode(message.tex.videoTexture, writer.uint32(26).fork()).ldelim();
|
|
433
531
|
break;
|
|
532
|
+
case "uiTexture":
|
|
533
|
+
UiCanvasTexture.encode(message.tex.uiTexture, writer.uint32(34).fork()).ldelim();
|
|
534
|
+
break;
|
|
434
535
|
}
|
|
435
536
|
return writer;
|
|
436
537
|
}
|
|
@@ -463,6 +564,13 @@ export namespace TextureUnion {
|
|
|
463
564
|
|
|
464
565
|
message.tex = { $case: "videoTexture", videoTexture: VideoTexture.decode(reader, reader.uint32()) };
|
|
465
566
|
continue;
|
|
567
|
+
case 4:
|
|
568
|
+
if (tag !== 34) {
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
message.tex = { $case: "uiTexture", uiTexture: UiCanvasTexture.decode(reader, reader.uint32()) };
|
|
573
|
+
continue;
|
|
466
574
|
}
|
|
467
575
|
if ((tag & 7) === 4 || tag === 0) {
|
|
468
576
|
break;
|
|
@@ -480,6 +588,8 @@ export namespace TextureUnion {
|
|
|
480
588
|
? { $case: "avatarTexture", avatarTexture: AvatarTexture.fromJSON(object.avatarTexture) }
|
|
481
589
|
: isSet(object.videoTexture)
|
|
482
590
|
? { $case: "videoTexture", videoTexture: VideoTexture.fromJSON(object.videoTexture) }
|
|
591
|
+
: isSet(object.uiTexture)
|
|
592
|
+
? { $case: "uiTexture", uiTexture: UiCanvasTexture.fromJSON(object.uiTexture) }
|
|
483
593
|
: undefined,
|
|
484
594
|
};
|
|
485
595
|
}
|
|
@@ -492,6 +602,8 @@ export namespace TextureUnion {
|
|
|
492
602
|
(obj.avatarTexture = message.tex?.avatarTexture ? AvatarTexture.toJSON(message.tex?.avatarTexture) : undefined);
|
|
493
603
|
message.tex?.$case === "videoTexture" &&
|
|
494
604
|
(obj.videoTexture = message.tex?.videoTexture ? VideoTexture.toJSON(message.tex?.videoTexture) : undefined);
|
|
605
|
+
message.tex?.$case === "uiTexture" &&
|
|
606
|
+
(obj.uiTexture = message.tex?.uiTexture ? UiCanvasTexture.toJSON(message.tex?.uiTexture) : undefined);
|
|
495
607
|
return obj;
|
|
496
608
|
}
|
|
497
609
|
|
|
@@ -518,6 +630,9 @@ export namespace TextureUnion {
|
|
|
518
630
|
) {
|
|
519
631
|
message.tex = { $case: "videoTexture", videoTexture: VideoTexture.fromPartial(object.tex.videoTexture) };
|
|
520
632
|
}
|
|
633
|
+
if (object.tex?.$case === "uiTexture" && object.tex?.uiTexture !== undefined && object.tex?.uiTexture !== null) {
|
|
634
|
+
message.tex = { $case: "uiTexture", uiTexture: UiCanvasTexture.fromPartial(object.tex.uiTexture) };
|
|
635
|
+
}
|
|
521
636
|
return message;
|
|
522
637
|
}
|
|
523
638
|
}
|
|
@@ -58,9 +58,35 @@ export interface MovePlayerToResponse {
|
|
|
58
58
|
success: boolean;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export interface WalkPlayerToRequest {
|
|
62
|
+
newRelativePosition: Vector3 | undefined;
|
|
63
|
+
stopThreshold: number;
|
|
64
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
65
|
+
timeout?: number | undefined;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface WalkPlayerToResponse {
|
|
69
|
+
success: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
export interface TeleportToResponse {
|
|
62
73
|
}
|
|
63
74
|
|
|
75
|
+
export interface SetUiFocusRequest {
|
|
76
|
+
elementId: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ClearUiFocusRequest {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface GetUiFocusRequest {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface UiFocusResponse {
|
|
86
|
+
/** the element that is/was focussed */
|
|
87
|
+
elementId?: string | undefined;
|
|
88
|
+
}
|
|
89
|
+
|
|
64
90
|
export interface CopyToClipboardRequest {
|
|
65
91
|
text: string;
|
|
66
92
|
}
|
|
@@ -805,6 +831,149 @@ export namespace MovePlayerToResponse {
|
|
|
805
831
|
}
|
|
806
832
|
}
|
|
807
833
|
|
|
834
|
+
function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
|
|
835
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export namespace WalkPlayerToRequest {
|
|
839
|
+
export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
840
|
+
if (message.newRelativePosition !== undefined) {
|
|
841
|
+
Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
842
|
+
}
|
|
843
|
+
if (message.stopThreshold !== 0) {
|
|
844
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
845
|
+
}
|
|
846
|
+
if (message.timeout !== undefined) {
|
|
847
|
+
writer.uint32(29).float(message.timeout);
|
|
848
|
+
}
|
|
849
|
+
return writer;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
|
|
853
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
854
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
855
|
+
const message = createBaseWalkPlayerToRequest();
|
|
856
|
+
while (reader.pos < end) {
|
|
857
|
+
const tag = reader.uint32();
|
|
858
|
+
switch (tag >>> 3) {
|
|
859
|
+
case 1:
|
|
860
|
+
if (tag !== 10) {
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
message.newRelativePosition = Vector3.decode(reader, reader.uint32());
|
|
865
|
+
continue;
|
|
866
|
+
case 2:
|
|
867
|
+
if (tag !== 21) {
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
message.stopThreshold = reader.float();
|
|
872
|
+
continue;
|
|
873
|
+
case 3:
|
|
874
|
+
if (tag !== 29) {
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
message.timeout = reader.float();
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
882
|
+
break;
|
|
883
|
+
}
|
|
884
|
+
reader.skipType(tag & 7);
|
|
885
|
+
}
|
|
886
|
+
return message;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export function fromJSON(object: any): WalkPlayerToRequest {
|
|
890
|
+
return {
|
|
891
|
+
newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
892
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
893
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export function toJSON(message: WalkPlayerToRequest): unknown {
|
|
898
|
+
const obj: any = {};
|
|
899
|
+
message.newRelativePosition !== undefined &&
|
|
900
|
+
(obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
901
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
902
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
903
|
+
return obj;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
|
|
907
|
+
return WalkPlayerToRequest.fromPartial(base ?? {});
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
|
|
911
|
+
const message = createBaseWalkPlayerToRequest();
|
|
912
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
913
|
+
? Vector3.fromPartial(object.newRelativePosition)
|
|
914
|
+
: undefined;
|
|
915
|
+
message.stopThreshold = object.stopThreshold ?? 0;
|
|
916
|
+
message.timeout = object.timeout ?? undefined;
|
|
917
|
+
return message;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
|
|
922
|
+
return { success: false };
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export namespace WalkPlayerToResponse {
|
|
926
|
+
export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
927
|
+
if (message.success === true) {
|
|
928
|
+
writer.uint32(8).bool(message.success);
|
|
929
|
+
}
|
|
930
|
+
return writer;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
|
|
934
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
935
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
936
|
+
const message = createBaseWalkPlayerToResponse();
|
|
937
|
+
while (reader.pos < end) {
|
|
938
|
+
const tag = reader.uint32();
|
|
939
|
+
switch (tag >>> 3) {
|
|
940
|
+
case 1:
|
|
941
|
+
if (tag !== 8) {
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
message.success = reader.bool();
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
reader.skipType(tag & 7);
|
|
952
|
+
}
|
|
953
|
+
return message;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
export function fromJSON(object: any): WalkPlayerToResponse {
|
|
957
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export function toJSON(message: WalkPlayerToResponse): unknown {
|
|
961
|
+
const obj: any = {};
|
|
962
|
+
message.success !== undefined && (obj.success = message.success);
|
|
963
|
+
return obj;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
|
|
967
|
+
return WalkPlayerToResponse.fromPartial(base ?? {});
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
|
|
971
|
+
const message = createBaseWalkPlayerToResponse();
|
|
972
|
+
message.success = object.success ?? false;
|
|
973
|
+
return message;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
808
977
|
function createBaseTeleportToResponse(): TeleportToResponse {
|
|
809
978
|
return {};
|
|
810
979
|
}
|
|
@@ -849,6 +1018,206 @@ export namespace TeleportToResponse {
|
|
|
849
1018
|
}
|
|
850
1019
|
}
|
|
851
1020
|
|
|
1021
|
+
function createBaseSetUiFocusRequest(): SetUiFocusRequest {
|
|
1022
|
+
return { elementId: "" };
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export namespace SetUiFocusRequest {
|
|
1026
|
+
export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1027
|
+
if (message.elementId !== "") {
|
|
1028
|
+
writer.uint32(10).string(message.elementId);
|
|
1029
|
+
}
|
|
1030
|
+
return writer;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
|
|
1034
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1035
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1036
|
+
const message = createBaseSetUiFocusRequest();
|
|
1037
|
+
while (reader.pos < end) {
|
|
1038
|
+
const tag = reader.uint32();
|
|
1039
|
+
switch (tag >>> 3) {
|
|
1040
|
+
case 1:
|
|
1041
|
+
if (tag !== 10) {
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
message.elementId = reader.string();
|
|
1046
|
+
continue;
|
|
1047
|
+
}
|
|
1048
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1049
|
+
break;
|
|
1050
|
+
}
|
|
1051
|
+
reader.skipType(tag & 7);
|
|
1052
|
+
}
|
|
1053
|
+
return message;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
export function fromJSON(object: any): SetUiFocusRequest {
|
|
1057
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
export function toJSON(message: SetUiFocusRequest): unknown {
|
|
1061
|
+
const obj: any = {};
|
|
1062
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1063
|
+
return obj;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
|
|
1067
|
+
return SetUiFocusRequest.fromPartial(base ?? {});
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
|
|
1071
|
+
const message = createBaseSetUiFocusRequest();
|
|
1072
|
+
message.elementId = object.elementId ?? "";
|
|
1073
|
+
return message;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
|
|
1078
|
+
return {};
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export namespace ClearUiFocusRequest {
|
|
1082
|
+
export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1083
|
+
return writer;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
|
|
1087
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1088
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1089
|
+
const message = createBaseClearUiFocusRequest();
|
|
1090
|
+
while (reader.pos < end) {
|
|
1091
|
+
const tag = reader.uint32();
|
|
1092
|
+
switch (tag >>> 3) {
|
|
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(_: any): ClearUiFocusRequest {
|
|
1103
|
+
return {};
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export function toJSON(_: ClearUiFocusRequest): unknown {
|
|
1107
|
+
const obj: any = {};
|
|
1108
|
+
return obj;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
|
|
1112
|
+
return ClearUiFocusRequest.fromPartial(base ?? {});
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
|
|
1116
|
+
const message = createBaseClearUiFocusRequest();
|
|
1117
|
+
return message;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
function createBaseGetUiFocusRequest(): GetUiFocusRequest {
|
|
1122
|
+
return {};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export namespace GetUiFocusRequest {
|
|
1126
|
+
export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1127
|
+
return writer;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
|
|
1131
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1133
|
+
const message = createBaseGetUiFocusRequest();
|
|
1134
|
+
while (reader.pos < end) {
|
|
1135
|
+
const tag = reader.uint32();
|
|
1136
|
+
switch (tag >>> 3) {
|
|
1137
|
+
}
|
|
1138
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
reader.skipType(tag & 7);
|
|
1142
|
+
}
|
|
1143
|
+
return message;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export function fromJSON(_: any): GetUiFocusRequest {
|
|
1147
|
+
return {};
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
export function toJSON(_: GetUiFocusRequest): unknown {
|
|
1151
|
+
const obj: any = {};
|
|
1152
|
+
return obj;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
|
|
1156
|
+
return GetUiFocusRequest.fromPartial(base ?? {});
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
|
|
1160
|
+
const message = createBaseGetUiFocusRequest();
|
|
1161
|
+
return message;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
function createBaseUiFocusResponse(): UiFocusResponse {
|
|
1166
|
+
return { elementId: undefined };
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
export namespace UiFocusResponse {
|
|
1170
|
+
export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1171
|
+
if (message.elementId !== undefined) {
|
|
1172
|
+
writer.uint32(10).string(message.elementId);
|
|
1173
|
+
}
|
|
1174
|
+
return writer;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
|
|
1178
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1179
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1180
|
+
const message = createBaseUiFocusResponse();
|
|
1181
|
+
while (reader.pos < end) {
|
|
1182
|
+
const tag = reader.uint32();
|
|
1183
|
+
switch (tag >>> 3) {
|
|
1184
|
+
case 1:
|
|
1185
|
+
if (tag !== 10) {
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
message.elementId = reader.string();
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
reader.skipType(tag & 7);
|
|
1196
|
+
}
|
|
1197
|
+
return message;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export function fromJSON(object: any): UiFocusResponse {
|
|
1201
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
export function toJSON(message: UiFocusResponse): unknown {
|
|
1205
|
+
const obj: any = {};
|
|
1206
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1207
|
+
return obj;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
|
|
1211
|
+
return UiFocusResponse.fromPartial(base ?? {});
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
|
|
1215
|
+
const message = createBaseUiFocusResponse();
|
|
1216
|
+
message.elementId = object.elementId ?? undefined;
|
|
1217
|
+
return message;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
|
|
852
1221
|
function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
|
|
853
1222
|
return { text: "" };
|
|
854
1223
|
}
|
|
@@ -969,6 +1338,20 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
969
1338
|
responseStream: false,
|
|
970
1339
|
options: {},
|
|
971
1340
|
},
|
|
1341
|
+
/**
|
|
1342
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1343
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1344
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1345
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1346
|
+
*/
|
|
1347
|
+
walkPlayerTo: {
|
|
1348
|
+
name: "WalkPlayerTo",
|
|
1349
|
+
requestType: WalkPlayerToRequest,
|
|
1350
|
+
requestStream: false,
|
|
1351
|
+
responseType: WalkPlayerToResponse,
|
|
1352
|
+
responseStream: false,
|
|
1353
|
+
options: {},
|
|
1354
|
+
},
|
|
972
1355
|
/** TeleportTo will move the user to the specified world LAND parcel coordinates */
|
|
973
1356
|
teleportTo: {
|
|
974
1357
|
name: "TeleportTo",
|
|
@@ -1035,6 +1418,33 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1035
1418
|
responseStream: false,
|
|
1036
1419
|
options: {},
|
|
1037
1420
|
},
|
|
1421
|
+
/** Sets the focus to a specific UI element */
|
|
1422
|
+
setUiFocus: {
|
|
1423
|
+
name: "SetUiFocus",
|
|
1424
|
+
requestType: SetUiFocusRequest,
|
|
1425
|
+
requestStream: false,
|
|
1426
|
+
responseType: UiFocusResponse,
|
|
1427
|
+
responseStream: false,
|
|
1428
|
+
options: {},
|
|
1429
|
+
},
|
|
1430
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1431
|
+
clearUiFocus: {
|
|
1432
|
+
name: "ClearUiFocus",
|
|
1433
|
+
requestType: SetUiFocusRequest,
|
|
1434
|
+
requestStream: false,
|
|
1435
|
+
responseType: UiFocusResponse,
|
|
1436
|
+
responseStream: false,
|
|
1437
|
+
options: {},
|
|
1438
|
+
},
|
|
1439
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1440
|
+
getUiFocus: {
|
|
1441
|
+
name: "GetUiFocus",
|
|
1442
|
+
requestType: GetUiFocusRequest,
|
|
1443
|
+
requestStream: false,
|
|
1444
|
+
responseType: UiFocusResponse,
|
|
1445
|
+
responseStream: false,
|
|
1446
|
+
options: {},
|
|
1447
|
+
},
|
|
1038
1448
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
1039
1449
|
copyToClipboard: {
|
|
1040
1450
|
name: "CopyToClipboard",
|
|
@@ -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
|
}
|