@dcl/protocol 1.0.0-33861349213.commit-76445a6 → 1.0.0-34100371654.commit-2ed0bdc
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 +125 -4
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +408 -6
- 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 +51 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -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 +2 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +14 -2
- 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 +71 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +303 -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 +79 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -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_layer.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +80 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +14 -2
- 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 +3 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
- 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/texture_camera.gen.d.ts +86 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +296 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +27 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
- 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 +445 -6
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +432 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -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/texture_camera.gen.ts +362 -0
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +37 -1
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +2 -2
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +45 -1
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +1 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +62 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +36 -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 +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +3 -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 +2 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +10 -0
|
@@ -79,7 +79,16 @@ export interface MovePlayerToRequest {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export interface TeleportToRequest {
|
|
82
|
-
|
|
82
|
+
/** The parcel to land on. Omitted: the realm's default spawn (only meaningful with `realm`). */
|
|
83
|
+
worldCoordinates?:
|
|
84
|
+
| Vector2
|
|
85
|
+
| undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The realm the parcel belongs to: a world name (`foo.dcl.eth`) or a realm url. When set, the
|
|
88
|
+
* client changes realm (a full reconnect, even to the realm the player is in) and lands on the
|
|
89
|
+
* parcel there. Omitted: the parcel is in the player's current realm.
|
|
90
|
+
*/
|
|
91
|
+
realm?: string | undefined;
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
export interface TriggerEmoteRequest {
|
|
@@ -124,9 +133,35 @@ export interface MovePlayerToResponse {
|
|
|
124
133
|
success: boolean;
|
|
125
134
|
}
|
|
126
135
|
|
|
136
|
+
export interface WalkPlayerToRequest {
|
|
137
|
+
newRelativePosition: Vector3 | undefined;
|
|
138
|
+
stopThreshold: number;
|
|
139
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
140
|
+
timeout?: number | undefined;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface WalkPlayerToResponse {
|
|
144
|
+
success: boolean;
|
|
145
|
+
}
|
|
146
|
+
|
|
127
147
|
export interface TeleportToResponse {
|
|
128
148
|
}
|
|
129
149
|
|
|
150
|
+
export interface SetUiFocusRequest {
|
|
151
|
+
elementId: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface ClearUiFocusRequest {
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface GetUiFocusRequest {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface UiFocusResponse {
|
|
161
|
+
/** the element that is/was focussed */
|
|
162
|
+
elementId?: string | undefined;
|
|
163
|
+
}
|
|
164
|
+
|
|
130
165
|
export interface CopyToClipboardRequest {
|
|
131
166
|
text: string;
|
|
132
167
|
}
|
|
@@ -253,7 +288,7 @@ export namespace MovePlayerToRequest {
|
|
|
253
288
|
}
|
|
254
289
|
|
|
255
290
|
function createBaseTeleportToRequest(): TeleportToRequest {
|
|
256
|
-
return { worldCoordinates: undefined };
|
|
291
|
+
return { worldCoordinates: undefined, realm: undefined };
|
|
257
292
|
}
|
|
258
293
|
|
|
259
294
|
export namespace TeleportToRequest {
|
|
@@ -261,6 +296,9 @@ export namespace TeleportToRequest {
|
|
|
261
296
|
if (message.worldCoordinates !== undefined) {
|
|
262
297
|
Vector2.encode(message.worldCoordinates, writer.uint32(10).fork()).ldelim();
|
|
263
298
|
}
|
|
299
|
+
if (message.realm !== undefined) {
|
|
300
|
+
writer.uint32(18).string(message.realm);
|
|
301
|
+
}
|
|
264
302
|
return writer;
|
|
265
303
|
}
|
|
266
304
|
|
|
@@ -278,6 +316,13 @@ export namespace TeleportToRequest {
|
|
|
278
316
|
|
|
279
317
|
message.worldCoordinates = Vector2.decode(reader, reader.uint32());
|
|
280
318
|
continue;
|
|
319
|
+
case 2:
|
|
320
|
+
if (tag !== 18) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
message.realm = reader.string();
|
|
325
|
+
continue;
|
|
281
326
|
}
|
|
282
327
|
if ((tag & 7) === 4 || tag === 0) {
|
|
283
328
|
break;
|
|
@@ -288,13 +333,17 @@ export namespace TeleportToRequest {
|
|
|
288
333
|
}
|
|
289
334
|
|
|
290
335
|
export function fromJSON(object: any): TeleportToRequest {
|
|
291
|
-
return {
|
|
336
|
+
return {
|
|
337
|
+
worldCoordinates: isSet(object.worldCoordinates) ? Vector2.fromJSON(object.worldCoordinates) : undefined,
|
|
338
|
+
realm: isSet(object.realm) ? String(object.realm) : undefined,
|
|
339
|
+
};
|
|
292
340
|
}
|
|
293
341
|
|
|
294
342
|
export function toJSON(message: TeleportToRequest): unknown {
|
|
295
343
|
const obj: any = {};
|
|
296
344
|
message.worldCoordinates !== undefined &&
|
|
297
345
|
(obj.worldCoordinates = message.worldCoordinates ? Vector2.toJSON(message.worldCoordinates) : undefined);
|
|
346
|
+
message.realm !== undefined && (obj.realm = message.realm);
|
|
298
347
|
return obj;
|
|
299
348
|
}
|
|
300
349
|
|
|
@@ -307,6 +356,7 @@ export namespace TeleportToRequest {
|
|
|
307
356
|
message.worldCoordinates = (object.worldCoordinates !== undefined && object.worldCoordinates !== null)
|
|
308
357
|
? Vector2.fromPartial(object.worldCoordinates)
|
|
309
358
|
: undefined;
|
|
359
|
+
message.realm = object.realm ?? undefined;
|
|
310
360
|
return message;
|
|
311
361
|
}
|
|
312
362
|
}
|
|
@@ -911,6 +961,149 @@ export namespace MovePlayerToResponse {
|
|
|
911
961
|
}
|
|
912
962
|
}
|
|
913
963
|
|
|
964
|
+
function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
|
|
965
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export namespace WalkPlayerToRequest {
|
|
969
|
+
export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
970
|
+
if (message.newRelativePosition !== undefined) {
|
|
971
|
+
Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
972
|
+
}
|
|
973
|
+
if (message.stopThreshold !== 0) {
|
|
974
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
975
|
+
}
|
|
976
|
+
if (message.timeout !== undefined) {
|
|
977
|
+
writer.uint32(29).float(message.timeout);
|
|
978
|
+
}
|
|
979
|
+
return writer;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
|
|
983
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
984
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
985
|
+
const message = createBaseWalkPlayerToRequest();
|
|
986
|
+
while (reader.pos < end) {
|
|
987
|
+
const tag = reader.uint32();
|
|
988
|
+
switch (tag >>> 3) {
|
|
989
|
+
case 1:
|
|
990
|
+
if (tag !== 10) {
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
message.newRelativePosition = Vector3.decode(reader, reader.uint32());
|
|
995
|
+
continue;
|
|
996
|
+
case 2:
|
|
997
|
+
if (tag !== 21) {
|
|
998
|
+
break;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
message.stopThreshold = reader.float();
|
|
1002
|
+
continue;
|
|
1003
|
+
case 3:
|
|
1004
|
+
if (tag !== 29) {
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
message.timeout = reader.float();
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1012
|
+
break;
|
|
1013
|
+
}
|
|
1014
|
+
reader.skipType(tag & 7);
|
|
1015
|
+
}
|
|
1016
|
+
return message;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export function fromJSON(object: any): WalkPlayerToRequest {
|
|
1020
|
+
return {
|
|
1021
|
+
newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
1022
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
1023
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export function toJSON(message: WalkPlayerToRequest): unknown {
|
|
1028
|
+
const obj: any = {};
|
|
1029
|
+
message.newRelativePosition !== undefined &&
|
|
1030
|
+
(obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
1031
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
1032
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
1033
|
+
return obj;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
|
|
1037
|
+
return WalkPlayerToRequest.fromPartial(base ?? {});
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
|
|
1041
|
+
const message = createBaseWalkPlayerToRequest();
|
|
1042
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
1043
|
+
? Vector3.fromPartial(object.newRelativePosition)
|
|
1044
|
+
: undefined;
|
|
1045
|
+
message.stopThreshold = object.stopThreshold ?? 0;
|
|
1046
|
+
message.timeout = object.timeout ?? undefined;
|
|
1047
|
+
return message;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
|
|
1052
|
+
return { success: false };
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export namespace WalkPlayerToResponse {
|
|
1056
|
+
export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1057
|
+
if (message.success === true) {
|
|
1058
|
+
writer.uint32(8).bool(message.success);
|
|
1059
|
+
}
|
|
1060
|
+
return writer;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
|
|
1064
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1065
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1066
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1067
|
+
while (reader.pos < end) {
|
|
1068
|
+
const tag = reader.uint32();
|
|
1069
|
+
switch (tag >>> 3) {
|
|
1070
|
+
case 1:
|
|
1071
|
+
if (tag !== 8) {
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
message.success = reader.bool();
|
|
1076
|
+
continue;
|
|
1077
|
+
}
|
|
1078
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
reader.skipType(tag & 7);
|
|
1082
|
+
}
|
|
1083
|
+
return message;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export function fromJSON(object: any): WalkPlayerToResponse {
|
|
1087
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
export function toJSON(message: WalkPlayerToResponse): unknown {
|
|
1091
|
+
const obj: any = {};
|
|
1092
|
+
message.success !== undefined && (obj.success = message.success);
|
|
1093
|
+
return obj;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
|
|
1097
|
+
return WalkPlayerToResponse.fromPartial(base ?? {});
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
|
|
1101
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1102
|
+
message.success = object.success ?? false;
|
|
1103
|
+
return message;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
914
1107
|
function createBaseTeleportToResponse(): TeleportToResponse {
|
|
915
1108
|
return {};
|
|
916
1109
|
}
|
|
@@ -955,6 +1148,206 @@ export namespace TeleportToResponse {
|
|
|
955
1148
|
}
|
|
956
1149
|
}
|
|
957
1150
|
|
|
1151
|
+
function createBaseSetUiFocusRequest(): SetUiFocusRequest {
|
|
1152
|
+
return { elementId: "" };
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export namespace SetUiFocusRequest {
|
|
1156
|
+
export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1157
|
+
if (message.elementId !== "") {
|
|
1158
|
+
writer.uint32(10).string(message.elementId);
|
|
1159
|
+
}
|
|
1160
|
+
return writer;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
|
|
1164
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1165
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1166
|
+
const message = createBaseSetUiFocusRequest();
|
|
1167
|
+
while (reader.pos < end) {
|
|
1168
|
+
const tag = reader.uint32();
|
|
1169
|
+
switch (tag >>> 3) {
|
|
1170
|
+
case 1:
|
|
1171
|
+
if (tag !== 10) {
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
message.elementId = reader.string();
|
|
1176
|
+
continue;
|
|
1177
|
+
}
|
|
1178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1179
|
+
break;
|
|
1180
|
+
}
|
|
1181
|
+
reader.skipType(tag & 7);
|
|
1182
|
+
}
|
|
1183
|
+
return message;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export function fromJSON(object: any): SetUiFocusRequest {
|
|
1187
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
export function toJSON(message: SetUiFocusRequest): unknown {
|
|
1191
|
+
const obj: any = {};
|
|
1192
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1193
|
+
return obj;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
|
|
1197
|
+
return SetUiFocusRequest.fromPartial(base ?? {});
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
|
|
1201
|
+
const message = createBaseSetUiFocusRequest();
|
|
1202
|
+
message.elementId = object.elementId ?? "";
|
|
1203
|
+
return message;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
|
|
1208
|
+
return {};
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export namespace ClearUiFocusRequest {
|
|
1212
|
+
export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1213
|
+
return writer;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
|
|
1217
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1218
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1219
|
+
const message = createBaseClearUiFocusRequest();
|
|
1220
|
+
while (reader.pos < end) {
|
|
1221
|
+
const tag = reader.uint32();
|
|
1222
|
+
switch (tag >>> 3) {
|
|
1223
|
+
}
|
|
1224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1225
|
+
break;
|
|
1226
|
+
}
|
|
1227
|
+
reader.skipType(tag & 7);
|
|
1228
|
+
}
|
|
1229
|
+
return message;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
export function fromJSON(_: any): ClearUiFocusRequest {
|
|
1233
|
+
return {};
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export function toJSON(_: ClearUiFocusRequest): unknown {
|
|
1237
|
+
const obj: any = {};
|
|
1238
|
+
return obj;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
|
|
1242
|
+
return ClearUiFocusRequest.fromPartial(base ?? {});
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
|
|
1246
|
+
const message = createBaseClearUiFocusRequest();
|
|
1247
|
+
return message;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
function createBaseGetUiFocusRequest(): GetUiFocusRequest {
|
|
1252
|
+
return {};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export namespace GetUiFocusRequest {
|
|
1256
|
+
export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1257
|
+
return writer;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
|
|
1261
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1263
|
+
const message = createBaseGetUiFocusRequest();
|
|
1264
|
+
while (reader.pos < end) {
|
|
1265
|
+
const tag = reader.uint32();
|
|
1266
|
+
switch (tag >>> 3) {
|
|
1267
|
+
}
|
|
1268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
reader.skipType(tag & 7);
|
|
1272
|
+
}
|
|
1273
|
+
return message;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
export function fromJSON(_: any): GetUiFocusRequest {
|
|
1277
|
+
return {};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
export function toJSON(_: GetUiFocusRequest): unknown {
|
|
1281
|
+
const obj: any = {};
|
|
1282
|
+
return obj;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
|
|
1286
|
+
return GetUiFocusRequest.fromPartial(base ?? {});
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
|
|
1290
|
+
const message = createBaseGetUiFocusRequest();
|
|
1291
|
+
return message;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
function createBaseUiFocusResponse(): UiFocusResponse {
|
|
1296
|
+
return { elementId: undefined };
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export namespace UiFocusResponse {
|
|
1300
|
+
export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1301
|
+
if (message.elementId !== undefined) {
|
|
1302
|
+
writer.uint32(10).string(message.elementId);
|
|
1303
|
+
}
|
|
1304
|
+
return writer;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
|
|
1308
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1309
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1310
|
+
const message = createBaseUiFocusResponse();
|
|
1311
|
+
while (reader.pos < end) {
|
|
1312
|
+
const tag = reader.uint32();
|
|
1313
|
+
switch (tag >>> 3) {
|
|
1314
|
+
case 1:
|
|
1315
|
+
if (tag !== 10) {
|
|
1316
|
+
break;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
message.elementId = reader.string();
|
|
1320
|
+
continue;
|
|
1321
|
+
}
|
|
1322
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1323
|
+
break;
|
|
1324
|
+
}
|
|
1325
|
+
reader.skipType(tag & 7);
|
|
1326
|
+
}
|
|
1327
|
+
return message;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
export function fromJSON(object: any): UiFocusResponse {
|
|
1331
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
export function toJSON(message: UiFocusResponse): unknown {
|
|
1335
|
+
const obj: any = {};
|
|
1336
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1337
|
+
return obj;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
|
|
1341
|
+
return UiFocusResponse.fromPartial(base ?? {});
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
|
|
1345
|
+
const message = createBaseUiFocusResponse();
|
|
1346
|
+
message.elementId = object.elementId ?? undefined;
|
|
1347
|
+
return message;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
958
1351
|
function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
|
|
959
1352
|
return { text: "" };
|
|
960
1353
|
}
|
|
@@ -1235,7 +1628,21 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1235
1628
|
responseStream: false,
|
|
1236
1629
|
options: {},
|
|
1237
1630
|
},
|
|
1238
|
-
/**
|
|
1631
|
+
/**
|
|
1632
|
+
* TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
1633
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1634
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1635
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1636
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1637
|
+
*/
|
|
1638
|
+
walkPlayerTo: {
|
|
1639
|
+
name: "WalkPlayerTo",
|
|
1640
|
+
requestType: WalkPlayerToRequest,
|
|
1641
|
+
requestStream: false,
|
|
1642
|
+
responseType: WalkPlayerToResponse,
|
|
1643
|
+
responseStream: false,
|
|
1644
|
+
options: {},
|
|
1645
|
+
},
|
|
1239
1646
|
teleportTo: {
|
|
1240
1647
|
name: "TeleportTo",
|
|
1241
1648
|
requestType: TeleportToRequest,
|
|
@@ -1253,7 +1660,10 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1253
1660
|
responseStream: false,
|
|
1254
1661
|
options: {},
|
|
1255
1662
|
},
|
|
1256
|
-
/**
|
|
1663
|
+
/**
|
|
1664
|
+
* @deprecated, use TeleportTo with `realm` (and no `world_coordinates` for the realm's default spawn)
|
|
1665
|
+
* ChangeRealm prompts the user to change to a specific realm
|
|
1666
|
+
*/
|
|
1257
1667
|
changeRealm: {
|
|
1258
1668
|
name: "ChangeRealm",
|
|
1259
1669
|
requestType: ChangeRealmRequest,
|
|
@@ -1301,7 +1711,36 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1301
1711
|
responseStream: false,
|
|
1302
1712
|
options: {},
|
|
1303
1713
|
},
|
|
1304
|
-
/**
|
|
1714
|
+
/**
|
|
1715
|
+
* CopyToClipboard copies the provided text into the clipboard
|
|
1716
|
+
* Sets the focus to a specific UI element
|
|
1717
|
+
*/
|
|
1718
|
+
setUiFocus: {
|
|
1719
|
+
name: "SetUiFocus",
|
|
1720
|
+
requestType: SetUiFocusRequest,
|
|
1721
|
+
requestStream: false,
|
|
1722
|
+
responseType: UiFocusResponse,
|
|
1723
|
+
responseStream: false,
|
|
1724
|
+
options: {},
|
|
1725
|
+
},
|
|
1726
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1727
|
+
clearUiFocus: {
|
|
1728
|
+
name: "ClearUiFocus",
|
|
1729
|
+
requestType: ClearUiFocusRequest,
|
|
1730
|
+
requestStream: false,
|
|
1731
|
+
responseType: UiFocusResponse,
|
|
1732
|
+
responseStream: false,
|
|
1733
|
+
options: {},
|
|
1734
|
+
},
|
|
1735
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1736
|
+
getUiFocus: {
|
|
1737
|
+
name: "GetUiFocus",
|
|
1738
|
+
requestType: GetUiFocusRequest,
|
|
1739
|
+
requestStream: false,
|
|
1740
|
+
responseType: UiFocusResponse,
|
|
1741
|
+
responseStream: false,
|
|
1742
|
+
options: {},
|
|
1743
|
+
},
|
|
1305
1744
|
copyToClipboard: {
|
|
1306
1745
|
name: "CopyToClipboard",
|
|
1307
1746
|
requestType: CopyToClipboardRequest,
|
|
@@ -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
|
}
|