@dcl/protocol 1.0.0-40563911091.commit-694568d → 1.0.0-40603192045.commit-e7bab56
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 +113 -2
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +387 -3
- 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/{sun.gen.js → global_light.gen.js} +37 -48
- 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 +28 -2
- 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 +414 -2
- 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 +36 -0
- 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 +38 -0
- 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 -3
- package/out-js/decentraland/common/gradient.gen.d.ts +0 -50
- package/out-js/decentraland/common/gradient.gen.js +0 -147
- package/out-js/decentraland/common/gradient.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +0 -44
- package/out-js/decentraland/sdk/components/environment_fog.gen.js +0 -86
- package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/skybox.gen.d.ts +0 -103
- package/out-js/decentraland/sdk/components/skybox.gen.js +0 -355
- package/out-js/decentraland/sdk/components/skybox.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/sun.gen.d.ts +0 -53
- package/out-js/decentraland/sdk/components/sun.gen.js.map +0 -1
- package/out-ts/decentraland/common/gradient.gen.ts +0 -170
- package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +0 -113
- package/out-ts/decentraland/sdk/components/skybox.gen.ts +0 -440
- package/out-ts/decentraland/sdk/components/sun.gen.ts +0 -155
- package/proto/decentraland/common/gradient.proto +0 -16
- package/proto/decentraland/sdk/components/environment_fog.proto +0 -21
- package/proto/decentraland/sdk/components/skybox.proto +0 -51
- package/proto/decentraland/sdk/components/sun.proto +0 -26
|
@@ -133,9 +133,35 @@ export interface MovePlayerToResponse {
|
|
|
133
133
|
success: boolean;
|
|
134
134
|
}
|
|
135
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
|
+
|
|
136
147
|
export interface TeleportToResponse {
|
|
137
148
|
}
|
|
138
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
|
+
|
|
139
165
|
export interface CopyToClipboardRequest {
|
|
140
166
|
text: string;
|
|
141
167
|
}
|
|
@@ -945,6 +971,149 @@ export namespace MovePlayerToResponse {
|
|
|
945
971
|
}
|
|
946
972
|
}
|
|
947
973
|
|
|
974
|
+
function createBaseWalkPlayerToRequest(): WalkPlayerToRequest {
|
|
975
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export namespace WalkPlayerToRequest {
|
|
979
|
+
export function encode(message: WalkPlayerToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
980
|
+
if (message.newRelativePosition !== undefined) {
|
|
981
|
+
Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
982
|
+
}
|
|
983
|
+
if (message.stopThreshold !== 0) {
|
|
984
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
985
|
+
}
|
|
986
|
+
if (message.timeout !== undefined) {
|
|
987
|
+
writer.uint32(29).float(message.timeout);
|
|
988
|
+
}
|
|
989
|
+
return writer;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest {
|
|
993
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
994
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
995
|
+
const message = createBaseWalkPlayerToRequest();
|
|
996
|
+
while (reader.pos < end) {
|
|
997
|
+
const tag = reader.uint32();
|
|
998
|
+
switch (tag >>> 3) {
|
|
999
|
+
case 1:
|
|
1000
|
+
if (tag !== 10) {
|
|
1001
|
+
break;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
message.newRelativePosition = Vector3.decode(reader, reader.uint32());
|
|
1005
|
+
continue;
|
|
1006
|
+
case 2:
|
|
1007
|
+
if (tag !== 21) {
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
message.stopThreshold = reader.float();
|
|
1012
|
+
continue;
|
|
1013
|
+
case 3:
|
|
1014
|
+
if (tag !== 29) {
|
|
1015
|
+
break;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
message.timeout = reader.float();
|
|
1019
|
+
continue;
|
|
1020
|
+
}
|
|
1021
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
reader.skipType(tag & 7);
|
|
1025
|
+
}
|
|
1026
|
+
return message;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export function fromJSON(object: any): WalkPlayerToRequest {
|
|
1030
|
+
return {
|
|
1031
|
+
newRelativePosition: isSet(object.newRelativePosition) ? Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
1032
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
1033
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export function toJSON(message: WalkPlayerToRequest): unknown {
|
|
1038
|
+
const obj: any = {};
|
|
1039
|
+
message.newRelativePosition !== undefined &&
|
|
1040
|
+
(obj.newRelativePosition = message.newRelativePosition ? Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
1041
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
1042
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
1043
|
+
return obj;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest {
|
|
1047
|
+
return WalkPlayerToRequest.fromPartial(base ?? {});
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest {
|
|
1051
|
+
const message = createBaseWalkPlayerToRequest();
|
|
1052
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
1053
|
+
? Vector3.fromPartial(object.newRelativePosition)
|
|
1054
|
+
: undefined;
|
|
1055
|
+
message.stopThreshold = object.stopThreshold ?? 0;
|
|
1056
|
+
message.timeout = object.timeout ?? undefined;
|
|
1057
|
+
return message;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
function createBaseWalkPlayerToResponse(): WalkPlayerToResponse {
|
|
1062
|
+
return { success: false };
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export namespace WalkPlayerToResponse {
|
|
1066
|
+
export function encode(message: WalkPlayerToResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1067
|
+
if (message.success === true) {
|
|
1068
|
+
writer.uint32(8).bool(message.success);
|
|
1069
|
+
}
|
|
1070
|
+
return writer;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse {
|
|
1074
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1075
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1076
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1077
|
+
while (reader.pos < end) {
|
|
1078
|
+
const tag = reader.uint32();
|
|
1079
|
+
switch (tag >>> 3) {
|
|
1080
|
+
case 1:
|
|
1081
|
+
if (tag !== 8) {
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
message.success = reader.bool();
|
|
1086
|
+
continue;
|
|
1087
|
+
}
|
|
1088
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
reader.skipType(tag & 7);
|
|
1092
|
+
}
|
|
1093
|
+
return message;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
export function fromJSON(object: any): WalkPlayerToResponse {
|
|
1097
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
export function toJSON(message: WalkPlayerToResponse): unknown {
|
|
1101
|
+
const obj: any = {};
|
|
1102
|
+
message.success !== undefined && (obj.success = message.success);
|
|
1103
|
+
return obj;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse {
|
|
1107
|
+
return WalkPlayerToResponse.fromPartial(base ?? {});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse {
|
|
1111
|
+
const message = createBaseWalkPlayerToResponse();
|
|
1112
|
+
message.success = object.success ?? false;
|
|
1113
|
+
return message;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
|
|
948
1117
|
function createBaseTeleportToResponse(): TeleportToResponse {
|
|
949
1118
|
return {};
|
|
950
1119
|
}
|
|
@@ -989,6 +1158,206 @@ export namespace TeleportToResponse {
|
|
|
989
1158
|
}
|
|
990
1159
|
}
|
|
991
1160
|
|
|
1161
|
+
function createBaseSetUiFocusRequest(): SetUiFocusRequest {
|
|
1162
|
+
return { elementId: "" };
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
export namespace SetUiFocusRequest {
|
|
1166
|
+
export function encode(message: SetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1167
|
+
if (message.elementId !== "") {
|
|
1168
|
+
writer.uint32(10).string(message.elementId);
|
|
1169
|
+
}
|
|
1170
|
+
return writer;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest {
|
|
1174
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1175
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1176
|
+
const message = createBaseSetUiFocusRequest();
|
|
1177
|
+
while (reader.pos < end) {
|
|
1178
|
+
const tag = reader.uint32();
|
|
1179
|
+
switch (tag >>> 3) {
|
|
1180
|
+
case 1:
|
|
1181
|
+
if (tag !== 10) {
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
message.elementId = reader.string();
|
|
1186
|
+
continue;
|
|
1187
|
+
}
|
|
1188
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1189
|
+
break;
|
|
1190
|
+
}
|
|
1191
|
+
reader.skipType(tag & 7);
|
|
1192
|
+
}
|
|
1193
|
+
return message;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export function fromJSON(object: any): SetUiFocusRequest {
|
|
1197
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export function toJSON(message: SetUiFocusRequest): unknown {
|
|
1201
|
+
const obj: any = {};
|
|
1202
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1203
|
+
return obj;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
export function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest {
|
|
1207
|
+
return SetUiFocusRequest.fromPartial(base ?? {});
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
export function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest {
|
|
1211
|
+
const message = createBaseSetUiFocusRequest();
|
|
1212
|
+
message.elementId = object.elementId ?? "";
|
|
1213
|
+
return message;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
function createBaseClearUiFocusRequest(): ClearUiFocusRequest {
|
|
1218
|
+
return {};
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export namespace ClearUiFocusRequest {
|
|
1222
|
+
export function encode(_: ClearUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1223
|
+
return writer;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest {
|
|
1227
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1228
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1229
|
+
const message = createBaseClearUiFocusRequest();
|
|
1230
|
+
while (reader.pos < end) {
|
|
1231
|
+
const tag = reader.uint32();
|
|
1232
|
+
switch (tag >>> 3) {
|
|
1233
|
+
}
|
|
1234
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
reader.skipType(tag & 7);
|
|
1238
|
+
}
|
|
1239
|
+
return message;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
export function fromJSON(_: any): ClearUiFocusRequest {
|
|
1243
|
+
return {};
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
export function toJSON(_: ClearUiFocusRequest): unknown {
|
|
1247
|
+
const obj: any = {};
|
|
1248
|
+
return obj;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest {
|
|
1252
|
+
return ClearUiFocusRequest.fromPartial(base ?? {});
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest {
|
|
1256
|
+
const message = createBaseClearUiFocusRequest();
|
|
1257
|
+
return message;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
function createBaseGetUiFocusRequest(): GetUiFocusRequest {
|
|
1262
|
+
return {};
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
export namespace GetUiFocusRequest {
|
|
1266
|
+
export function encode(_: GetUiFocusRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1267
|
+
return writer;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest {
|
|
1271
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1272
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1273
|
+
const message = createBaseGetUiFocusRequest();
|
|
1274
|
+
while (reader.pos < end) {
|
|
1275
|
+
const tag = reader.uint32();
|
|
1276
|
+
switch (tag >>> 3) {
|
|
1277
|
+
}
|
|
1278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1279
|
+
break;
|
|
1280
|
+
}
|
|
1281
|
+
reader.skipType(tag & 7);
|
|
1282
|
+
}
|
|
1283
|
+
return message;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
export function fromJSON(_: any): GetUiFocusRequest {
|
|
1287
|
+
return {};
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
export function toJSON(_: GetUiFocusRequest): unknown {
|
|
1291
|
+
const obj: any = {};
|
|
1292
|
+
return obj;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest {
|
|
1296
|
+
return GetUiFocusRequest.fromPartial(base ?? {});
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest {
|
|
1300
|
+
const message = createBaseGetUiFocusRequest();
|
|
1301
|
+
return message;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
function createBaseUiFocusResponse(): UiFocusResponse {
|
|
1306
|
+
return { elementId: undefined };
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export namespace UiFocusResponse {
|
|
1310
|
+
export function encode(message: UiFocusResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1311
|
+
if (message.elementId !== undefined) {
|
|
1312
|
+
writer.uint32(10).string(message.elementId);
|
|
1313
|
+
}
|
|
1314
|
+
return writer;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse {
|
|
1318
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1319
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1320
|
+
const message = createBaseUiFocusResponse();
|
|
1321
|
+
while (reader.pos < end) {
|
|
1322
|
+
const tag = reader.uint32();
|
|
1323
|
+
switch (tag >>> 3) {
|
|
1324
|
+
case 1:
|
|
1325
|
+
if (tag !== 10) {
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
message.elementId = reader.string();
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
reader.skipType(tag & 7);
|
|
1336
|
+
}
|
|
1337
|
+
return message;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export function fromJSON(object: any): UiFocusResponse {
|
|
1341
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export function toJSON(message: UiFocusResponse): unknown {
|
|
1345
|
+
const obj: any = {};
|
|
1346
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1347
|
+
return obj;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
export function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse {
|
|
1351
|
+
return UiFocusResponse.fromPartial(base ?? {});
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
export function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse {
|
|
1355
|
+
const message = createBaseUiFocusResponse();
|
|
1356
|
+
message.elementId = object.elementId ?? undefined;
|
|
1357
|
+
return message;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
992
1361
|
function createBaseCopyToClipboardRequest(): CopyToClipboardRequest {
|
|
993
1362
|
return { text: "" };
|
|
994
1363
|
}
|
|
@@ -1382,7 +1751,21 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1382
1751
|
responseStream: false,
|
|
1383
1752
|
options: {},
|
|
1384
1753
|
},
|
|
1385
|
-
/**
|
|
1754
|
+
/**
|
|
1755
|
+
* TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
1756
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1757
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1758
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1759
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1760
|
+
*/
|
|
1761
|
+
walkPlayerTo: {
|
|
1762
|
+
name: "WalkPlayerTo",
|
|
1763
|
+
requestType: WalkPlayerToRequest,
|
|
1764
|
+
requestStream: false,
|
|
1765
|
+
responseType: WalkPlayerToResponse,
|
|
1766
|
+
responseStream: false,
|
|
1767
|
+
options: {},
|
|
1768
|
+
},
|
|
1386
1769
|
teleportTo: {
|
|
1387
1770
|
name: "TeleportTo",
|
|
1388
1771
|
requestType: TeleportToRequest,
|
|
@@ -1451,7 +1834,36 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
1451
1834
|
responseStream: false,
|
|
1452
1835
|
options: {},
|
|
1453
1836
|
},
|
|
1454
|
-
/**
|
|
1837
|
+
/**
|
|
1838
|
+
* CopyToClipboard copies the provided text into the clipboard
|
|
1839
|
+
* Sets the focus to a specific UI element
|
|
1840
|
+
*/
|
|
1841
|
+
setUiFocus: {
|
|
1842
|
+
name: "SetUiFocus",
|
|
1843
|
+
requestType: SetUiFocusRequest,
|
|
1844
|
+
requestStream: false,
|
|
1845
|
+
responseType: UiFocusResponse,
|
|
1846
|
+
responseStream: false,
|
|
1847
|
+
options: {},
|
|
1848
|
+
},
|
|
1849
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1850
|
+
clearUiFocus: {
|
|
1851
|
+
name: "ClearUiFocus",
|
|
1852
|
+
requestType: ClearUiFocusRequest,
|
|
1853
|
+
requestStream: false,
|
|
1854
|
+
responseType: UiFocusResponse,
|
|
1855
|
+
responseStream: false,
|
|
1856
|
+
options: {},
|
|
1857
|
+
},
|
|
1858
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1859
|
+
getUiFocus: {
|
|
1860
|
+
name: "GetUiFocus",
|
|
1861
|
+
requestType: GetUiFocusRequest,
|
|
1862
|
+
requestStream: false,
|
|
1863
|
+
responseType: UiFocusResponse,
|
|
1864
|
+
responseStream: false,
|
|
1865
|
+
options: {},
|
|
1866
|
+
},
|
|
1455
1867
|
copyToClipboard: {
|
|
1456
1868
|
name: "CopyToClipboard",
|
|
1457
1869
|
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
|
}
|