@dcl/protocol 1.0.0-33630043685.commit-f096a09 → 1.0.0-33668585153.commit-4a844e9
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 +119 -2
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +404 -5
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -21
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +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 -8
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +20 -36
- 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/pointer_events.gen.d.ts +11 -16
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +1 -14
- package/out-js/decentraland/sdk/components/pointer_events.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 +440 -5
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
- 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 -35
- 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/pointer_events.gen.ts +12 -33
- 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 +3 -3
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +42 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
- package/proto/decentraland/pulse/pulse_client.proto +8 -27
- 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 -5
- 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/light_source.proto +1 -1
- 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/pointer_events.proto +11 -15
- 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
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RestrictedActionsServiceDefinition = exports.OpenExplorerUiResponse = exports.OpenExplorerUiRequest = exports.StopEmoteRequest = exports.EmptyResponse = exports.CopyToClipboardRequest = exports.TeleportToResponse = exports.MovePlayerToResponse = exports.TriggerEmoteResponse = exports.SuccessResponse = exports.TriggerSceneEmoteRequest = exports.CommsAdapterRequest = exports.UnblockPointerRequest = exports.OpenNftDialogRequest = exports.OpenExternalUrlRequest = exports.ChangeRealmRequest = exports.TriggerEmoteRequest = exports.TeleportToRequest = exports.MovePlayerToRequest = exports.OpenExplorerUiResult = exports.protobufPackage = void 0;
|
|
6
|
+
exports.RestrictedActionsServiceDefinition = exports.OpenExplorerUiResponse = exports.OpenExplorerUiRequest = exports.StopEmoteRequest = exports.EmptyResponse = exports.CopyToClipboardRequest = exports.UiFocusResponse = exports.GetUiFocusRequest = exports.ClearUiFocusRequest = exports.SetUiFocusRequest = exports.TeleportToResponse = exports.WalkPlayerToResponse = exports.WalkPlayerToRequest = exports.MovePlayerToResponse = exports.TriggerEmoteResponse = exports.SuccessResponse = exports.TriggerSceneEmoteRequest = exports.CommsAdapterRequest = exports.UnblockPointerRequest = exports.OpenNftDialogRequest = exports.OpenExternalUrlRequest = exports.ChangeRealmRequest = exports.TriggerEmoteRequest = exports.TeleportToRequest = exports.MovePlayerToRequest = exports.OpenExplorerUiResult = exports.protobufPackage = void 0;
|
|
7
7
|
exports.openExplorerUiResultFromJSON = openExplorerUiResultFromJSON;
|
|
8
8
|
exports.openExplorerUiResultToJSON = openExplorerUiResultToJSON;
|
|
9
9
|
/* eslint-disable */
|
|
@@ -176,7 +176,7 @@ var MovePlayerToRequest;
|
|
|
176
176
|
MovePlayerToRequest.fromPartial = fromPartial;
|
|
177
177
|
})(MovePlayerToRequest || (exports.MovePlayerToRequest = MovePlayerToRequest = {}));
|
|
178
178
|
function createBaseTeleportToRequest() {
|
|
179
|
-
return { worldCoordinates: undefined };
|
|
179
|
+
return { worldCoordinates: undefined, realm: undefined };
|
|
180
180
|
}
|
|
181
181
|
var TeleportToRequest;
|
|
182
182
|
(function (TeleportToRequest) {
|
|
@@ -184,6 +184,9 @@ var TeleportToRequest;
|
|
|
184
184
|
if (message.worldCoordinates !== undefined) {
|
|
185
185
|
vectors_gen_1.Vector2.encode(message.worldCoordinates, writer.uint32(10).fork()).ldelim();
|
|
186
186
|
}
|
|
187
|
+
if (message.realm !== undefined) {
|
|
188
|
+
writer.uint32(18).string(message.realm);
|
|
189
|
+
}
|
|
187
190
|
return writer;
|
|
188
191
|
}
|
|
189
192
|
TeleportToRequest.encode = encode;
|
|
@@ -200,6 +203,12 @@ var TeleportToRequest;
|
|
|
200
203
|
}
|
|
201
204
|
message.worldCoordinates = vectors_gen_1.Vector2.decode(reader, reader.uint32());
|
|
202
205
|
continue;
|
|
206
|
+
case 2:
|
|
207
|
+
if (tag !== 18) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.realm = reader.string();
|
|
211
|
+
continue;
|
|
203
212
|
}
|
|
204
213
|
if ((tag & 7) === 4 || tag === 0) {
|
|
205
214
|
break;
|
|
@@ -210,13 +219,17 @@ var TeleportToRequest;
|
|
|
210
219
|
}
|
|
211
220
|
TeleportToRequest.decode = decode;
|
|
212
221
|
function fromJSON(object) {
|
|
213
|
-
return {
|
|
222
|
+
return {
|
|
223
|
+
worldCoordinates: isSet(object.worldCoordinates) ? vectors_gen_1.Vector2.fromJSON(object.worldCoordinates) : undefined,
|
|
224
|
+
realm: isSet(object.realm) ? String(object.realm) : undefined,
|
|
225
|
+
};
|
|
214
226
|
}
|
|
215
227
|
TeleportToRequest.fromJSON = fromJSON;
|
|
216
228
|
function toJSON(message) {
|
|
217
229
|
const obj = {};
|
|
218
230
|
message.worldCoordinates !== undefined &&
|
|
219
231
|
(obj.worldCoordinates = message.worldCoordinates ? vectors_gen_1.Vector2.toJSON(message.worldCoordinates) : undefined);
|
|
232
|
+
message.realm !== undefined && (obj.realm = message.realm);
|
|
220
233
|
return obj;
|
|
221
234
|
}
|
|
222
235
|
TeleportToRequest.toJSON = toJSON;
|
|
@@ -225,10 +238,12 @@ var TeleportToRequest;
|
|
|
225
238
|
}
|
|
226
239
|
TeleportToRequest.create = create;
|
|
227
240
|
function fromPartial(object) {
|
|
241
|
+
var _a;
|
|
228
242
|
const message = createBaseTeleportToRequest();
|
|
229
243
|
message.worldCoordinates = (object.worldCoordinates !== undefined && object.worldCoordinates !== null)
|
|
230
244
|
? vectors_gen_1.Vector2.fromPartial(object.worldCoordinates)
|
|
231
245
|
: undefined;
|
|
246
|
+
message.realm = (_a = object.realm) !== null && _a !== void 0 ? _a : undefined;
|
|
232
247
|
return message;
|
|
233
248
|
}
|
|
234
249
|
TeleportToRequest.fromPartial = fromPartial;
|
|
@@ -823,6 +838,147 @@ var MovePlayerToResponse;
|
|
|
823
838
|
}
|
|
824
839
|
MovePlayerToResponse.fromPartial = fromPartial;
|
|
825
840
|
})(MovePlayerToResponse || (exports.MovePlayerToResponse = MovePlayerToResponse = {}));
|
|
841
|
+
function createBaseWalkPlayerToRequest() {
|
|
842
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
843
|
+
}
|
|
844
|
+
var WalkPlayerToRequest;
|
|
845
|
+
(function (WalkPlayerToRequest) {
|
|
846
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
847
|
+
if (message.newRelativePosition !== undefined) {
|
|
848
|
+
vectors_gen_1.Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
849
|
+
}
|
|
850
|
+
if (message.stopThreshold !== 0) {
|
|
851
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
852
|
+
}
|
|
853
|
+
if (message.timeout !== undefined) {
|
|
854
|
+
writer.uint32(29).float(message.timeout);
|
|
855
|
+
}
|
|
856
|
+
return writer;
|
|
857
|
+
}
|
|
858
|
+
WalkPlayerToRequest.encode = encode;
|
|
859
|
+
function decode(input, length) {
|
|
860
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
861
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
862
|
+
const message = createBaseWalkPlayerToRequest();
|
|
863
|
+
while (reader.pos < end) {
|
|
864
|
+
const tag = reader.uint32();
|
|
865
|
+
switch (tag >>> 3) {
|
|
866
|
+
case 1:
|
|
867
|
+
if (tag !== 10) {
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
message.newRelativePosition = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
871
|
+
continue;
|
|
872
|
+
case 2:
|
|
873
|
+
if (tag !== 21) {
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
message.stopThreshold = reader.float();
|
|
877
|
+
continue;
|
|
878
|
+
case 3:
|
|
879
|
+
if (tag !== 29) {
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
message.timeout = reader.float();
|
|
883
|
+
continue;
|
|
884
|
+
}
|
|
885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
reader.skipType(tag & 7);
|
|
889
|
+
}
|
|
890
|
+
return message;
|
|
891
|
+
}
|
|
892
|
+
WalkPlayerToRequest.decode = decode;
|
|
893
|
+
function fromJSON(object) {
|
|
894
|
+
return {
|
|
895
|
+
newRelativePosition: isSet(object.newRelativePosition) ? vectors_gen_1.Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
896
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
897
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
WalkPlayerToRequest.fromJSON = fromJSON;
|
|
901
|
+
function toJSON(message) {
|
|
902
|
+
const obj = {};
|
|
903
|
+
message.newRelativePosition !== undefined &&
|
|
904
|
+
(obj.newRelativePosition = message.newRelativePosition ? vectors_gen_1.Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
905
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
906
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
907
|
+
return obj;
|
|
908
|
+
}
|
|
909
|
+
WalkPlayerToRequest.toJSON = toJSON;
|
|
910
|
+
function create(base) {
|
|
911
|
+
return WalkPlayerToRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
912
|
+
}
|
|
913
|
+
WalkPlayerToRequest.create = create;
|
|
914
|
+
function fromPartial(object) {
|
|
915
|
+
var _a, _b;
|
|
916
|
+
const message = createBaseWalkPlayerToRequest();
|
|
917
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
918
|
+
? vectors_gen_1.Vector3.fromPartial(object.newRelativePosition)
|
|
919
|
+
: undefined;
|
|
920
|
+
message.stopThreshold = (_a = object.stopThreshold) !== null && _a !== void 0 ? _a : 0;
|
|
921
|
+
message.timeout = (_b = object.timeout) !== null && _b !== void 0 ? _b : undefined;
|
|
922
|
+
return message;
|
|
923
|
+
}
|
|
924
|
+
WalkPlayerToRequest.fromPartial = fromPartial;
|
|
925
|
+
})(WalkPlayerToRequest || (exports.WalkPlayerToRequest = WalkPlayerToRequest = {}));
|
|
926
|
+
function createBaseWalkPlayerToResponse() {
|
|
927
|
+
return { success: false };
|
|
928
|
+
}
|
|
929
|
+
var WalkPlayerToResponse;
|
|
930
|
+
(function (WalkPlayerToResponse) {
|
|
931
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
932
|
+
if (message.success === true) {
|
|
933
|
+
writer.uint32(8).bool(message.success);
|
|
934
|
+
}
|
|
935
|
+
return writer;
|
|
936
|
+
}
|
|
937
|
+
WalkPlayerToResponse.encode = encode;
|
|
938
|
+
function decode(input, length) {
|
|
939
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
940
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
941
|
+
const message = createBaseWalkPlayerToResponse();
|
|
942
|
+
while (reader.pos < end) {
|
|
943
|
+
const tag = reader.uint32();
|
|
944
|
+
switch (tag >>> 3) {
|
|
945
|
+
case 1:
|
|
946
|
+
if (tag !== 8) {
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
message.success = reader.bool();
|
|
950
|
+
continue;
|
|
951
|
+
}
|
|
952
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
reader.skipType(tag & 7);
|
|
956
|
+
}
|
|
957
|
+
return message;
|
|
958
|
+
}
|
|
959
|
+
WalkPlayerToResponse.decode = decode;
|
|
960
|
+
function fromJSON(object) {
|
|
961
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
962
|
+
}
|
|
963
|
+
WalkPlayerToResponse.fromJSON = fromJSON;
|
|
964
|
+
function toJSON(message) {
|
|
965
|
+
const obj = {};
|
|
966
|
+
message.success !== undefined && (obj.success = message.success);
|
|
967
|
+
return obj;
|
|
968
|
+
}
|
|
969
|
+
WalkPlayerToResponse.toJSON = toJSON;
|
|
970
|
+
function create(base) {
|
|
971
|
+
return WalkPlayerToResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
972
|
+
}
|
|
973
|
+
WalkPlayerToResponse.create = create;
|
|
974
|
+
function fromPartial(object) {
|
|
975
|
+
var _a;
|
|
976
|
+
const message = createBaseWalkPlayerToResponse();
|
|
977
|
+
message.success = (_a = object.success) !== null && _a !== void 0 ? _a : false;
|
|
978
|
+
return message;
|
|
979
|
+
}
|
|
980
|
+
WalkPlayerToResponse.fromPartial = fromPartial;
|
|
981
|
+
})(WalkPlayerToResponse || (exports.WalkPlayerToResponse = WalkPlayerToResponse = {}));
|
|
826
982
|
function createBaseTeleportToResponse() {
|
|
827
983
|
return {};
|
|
828
984
|
}
|
|
@@ -867,6 +1023,206 @@ var TeleportToResponse;
|
|
|
867
1023
|
}
|
|
868
1024
|
TeleportToResponse.fromPartial = fromPartial;
|
|
869
1025
|
})(TeleportToResponse || (exports.TeleportToResponse = TeleportToResponse = {}));
|
|
1026
|
+
function createBaseSetUiFocusRequest() {
|
|
1027
|
+
return { elementId: "" };
|
|
1028
|
+
}
|
|
1029
|
+
var SetUiFocusRequest;
|
|
1030
|
+
(function (SetUiFocusRequest) {
|
|
1031
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1032
|
+
if (message.elementId !== "") {
|
|
1033
|
+
writer.uint32(10).string(message.elementId);
|
|
1034
|
+
}
|
|
1035
|
+
return writer;
|
|
1036
|
+
}
|
|
1037
|
+
SetUiFocusRequest.encode = encode;
|
|
1038
|
+
function decode(input, length) {
|
|
1039
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1040
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1041
|
+
const message = createBaseSetUiFocusRequest();
|
|
1042
|
+
while (reader.pos < end) {
|
|
1043
|
+
const tag = reader.uint32();
|
|
1044
|
+
switch (tag >>> 3) {
|
|
1045
|
+
case 1:
|
|
1046
|
+
if (tag !== 10) {
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
message.elementId = reader.string();
|
|
1050
|
+
continue;
|
|
1051
|
+
}
|
|
1052
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1053
|
+
break;
|
|
1054
|
+
}
|
|
1055
|
+
reader.skipType(tag & 7);
|
|
1056
|
+
}
|
|
1057
|
+
return message;
|
|
1058
|
+
}
|
|
1059
|
+
SetUiFocusRequest.decode = decode;
|
|
1060
|
+
function fromJSON(object) {
|
|
1061
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
1062
|
+
}
|
|
1063
|
+
SetUiFocusRequest.fromJSON = fromJSON;
|
|
1064
|
+
function toJSON(message) {
|
|
1065
|
+
const obj = {};
|
|
1066
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1067
|
+
return obj;
|
|
1068
|
+
}
|
|
1069
|
+
SetUiFocusRequest.toJSON = toJSON;
|
|
1070
|
+
function create(base) {
|
|
1071
|
+
return SetUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1072
|
+
}
|
|
1073
|
+
SetUiFocusRequest.create = create;
|
|
1074
|
+
function fromPartial(object) {
|
|
1075
|
+
var _a;
|
|
1076
|
+
const message = createBaseSetUiFocusRequest();
|
|
1077
|
+
message.elementId = (_a = object.elementId) !== null && _a !== void 0 ? _a : "";
|
|
1078
|
+
return message;
|
|
1079
|
+
}
|
|
1080
|
+
SetUiFocusRequest.fromPartial = fromPartial;
|
|
1081
|
+
})(SetUiFocusRequest || (exports.SetUiFocusRequest = SetUiFocusRequest = {}));
|
|
1082
|
+
function createBaseClearUiFocusRequest() {
|
|
1083
|
+
return {};
|
|
1084
|
+
}
|
|
1085
|
+
var ClearUiFocusRequest;
|
|
1086
|
+
(function (ClearUiFocusRequest) {
|
|
1087
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1088
|
+
return writer;
|
|
1089
|
+
}
|
|
1090
|
+
ClearUiFocusRequest.encode = encode;
|
|
1091
|
+
function decode(input, length) {
|
|
1092
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1093
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1094
|
+
const message = createBaseClearUiFocusRequest();
|
|
1095
|
+
while (reader.pos < end) {
|
|
1096
|
+
const tag = reader.uint32();
|
|
1097
|
+
switch (tag >>> 3) {
|
|
1098
|
+
}
|
|
1099
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
reader.skipType(tag & 7);
|
|
1103
|
+
}
|
|
1104
|
+
return message;
|
|
1105
|
+
}
|
|
1106
|
+
ClearUiFocusRequest.decode = decode;
|
|
1107
|
+
function fromJSON(_) {
|
|
1108
|
+
return {};
|
|
1109
|
+
}
|
|
1110
|
+
ClearUiFocusRequest.fromJSON = fromJSON;
|
|
1111
|
+
function toJSON(_) {
|
|
1112
|
+
const obj = {};
|
|
1113
|
+
return obj;
|
|
1114
|
+
}
|
|
1115
|
+
ClearUiFocusRequest.toJSON = toJSON;
|
|
1116
|
+
function create(base) {
|
|
1117
|
+
return ClearUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1118
|
+
}
|
|
1119
|
+
ClearUiFocusRequest.create = create;
|
|
1120
|
+
function fromPartial(_) {
|
|
1121
|
+
const message = createBaseClearUiFocusRequest();
|
|
1122
|
+
return message;
|
|
1123
|
+
}
|
|
1124
|
+
ClearUiFocusRequest.fromPartial = fromPartial;
|
|
1125
|
+
})(ClearUiFocusRequest || (exports.ClearUiFocusRequest = ClearUiFocusRequest = {}));
|
|
1126
|
+
function createBaseGetUiFocusRequest() {
|
|
1127
|
+
return {};
|
|
1128
|
+
}
|
|
1129
|
+
var GetUiFocusRequest;
|
|
1130
|
+
(function (GetUiFocusRequest) {
|
|
1131
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1132
|
+
return writer;
|
|
1133
|
+
}
|
|
1134
|
+
GetUiFocusRequest.encode = encode;
|
|
1135
|
+
function decode(input, length) {
|
|
1136
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1138
|
+
const message = createBaseGetUiFocusRequest();
|
|
1139
|
+
while (reader.pos < end) {
|
|
1140
|
+
const tag = reader.uint32();
|
|
1141
|
+
switch (tag >>> 3) {
|
|
1142
|
+
}
|
|
1143
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1144
|
+
break;
|
|
1145
|
+
}
|
|
1146
|
+
reader.skipType(tag & 7);
|
|
1147
|
+
}
|
|
1148
|
+
return message;
|
|
1149
|
+
}
|
|
1150
|
+
GetUiFocusRequest.decode = decode;
|
|
1151
|
+
function fromJSON(_) {
|
|
1152
|
+
return {};
|
|
1153
|
+
}
|
|
1154
|
+
GetUiFocusRequest.fromJSON = fromJSON;
|
|
1155
|
+
function toJSON(_) {
|
|
1156
|
+
const obj = {};
|
|
1157
|
+
return obj;
|
|
1158
|
+
}
|
|
1159
|
+
GetUiFocusRequest.toJSON = toJSON;
|
|
1160
|
+
function create(base) {
|
|
1161
|
+
return GetUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1162
|
+
}
|
|
1163
|
+
GetUiFocusRequest.create = create;
|
|
1164
|
+
function fromPartial(_) {
|
|
1165
|
+
const message = createBaseGetUiFocusRequest();
|
|
1166
|
+
return message;
|
|
1167
|
+
}
|
|
1168
|
+
GetUiFocusRequest.fromPartial = fromPartial;
|
|
1169
|
+
})(GetUiFocusRequest || (exports.GetUiFocusRequest = GetUiFocusRequest = {}));
|
|
1170
|
+
function createBaseUiFocusResponse() {
|
|
1171
|
+
return { elementId: undefined };
|
|
1172
|
+
}
|
|
1173
|
+
var UiFocusResponse;
|
|
1174
|
+
(function (UiFocusResponse) {
|
|
1175
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1176
|
+
if (message.elementId !== undefined) {
|
|
1177
|
+
writer.uint32(10).string(message.elementId);
|
|
1178
|
+
}
|
|
1179
|
+
return writer;
|
|
1180
|
+
}
|
|
1181
|
+
UiFocusResponse.encode = encode;
|
|
1182
|
+
function decode(input, length) {
|
|
1183
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1184
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1185
|
+
const message = createBaseUiFocusResponse();
|
|
1186
|
+
while (reader.pos < end) {
|
|
1187
|
+
const tag = reader.uint32();
|
|
1188
|
+
switch (tag >>> 3) {
|
|
1189
|
+
case 1:
|
|
1190
|
+
if (tag !== 10) {
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
message.elementId = reader.string();
|
|
1194
|
+
continue;
|
|
1195
|
+
}
|
|
1196
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
reader.skipType(tag & 7);
|
|
1200
|
+
}
|
|
1201
|
+
return message;
|
|
1202
|
+
}
|
|
1203
|
+
UiFocusResponse.decode = decode;
|
|
1204
|
+
function fromJSON(object) {
|
|
1205
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1206
|
+
}
|
|
1207
|
+
UiFocusResponse.fromJSON = fromJSON;
|
|
1208
|
+
function toJSON(message) {
|
|
1209
|
+
const obj = {};
|
|
1210
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1211
|
+
return obj;
|
|
1212
|
+
}
|
|
1213
|
+
UiFocusResponse.toJSON = toJSON;
|
|
1214
|
+
function create(base) {
|
|
1215
|
+
return UiFocusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1216
|
+
}
|
|
1217
|
+
UiFocusResponse.create = create;
|
|
1218
|
+
function fromPartial(object) {
|
|
1219
|
+
var _a;
|
|
1220
|
+
const message = createBaseUiFocusResponse();
|
|
1221
|
+
message.elementId = (_a = object.elementId) !== null && _a !== void 0 ? _a : undefined;
|
|
1222
|
+
return message;
|
|
1223
|
+
}
|
|
1224
|
+
UiFocusResponse.fromPartial = fromPartial;
|
|
1225
|
+
})(UiFocusResponse || (exports.UiFocusResponse = UiFocusResponse = {}));
|
|
870
1226
|
function createBaseCopyToClipboardRequest() {
|
|
871
1227
|
return { text: "" };
|
|
872
1228
|
}
|
|
@@ -1140,7 +1496,21 @@ exports.RestrictedActionsServiceDefinition = {
|
|
|
1140
1496
|
responseStream: false,
|
|
1141
1497
|
options: {},
|
|
1142
1498
|
},
|
|
1143
|
-
/**
|
|
1499
|
+
/**
|
|
1500
|
+
* TeleportTo will move the user to the specified world LAND parcel coordinates
|
|
1501
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1502
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1503
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1504
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1505
|
+
*/
|
|
1506
|
+
walkPlayerTo: {
|
|
1507
|
+
name: "WalkPlayerTo",
|
|
1508
|
+
requestType: WalkPlayerToRequest,
|
|
1509
|
+
requestStream: false,
|
|
1510
|
+
responseType: WalkPlayerToResponse,
|
|
1511
|
+
responseStream: false,
|
|
1512
|
+
options: {},
|
|
1513
|
+
},
|
|
1144
1514
|
teleportTo: {
|
|
1145
1515
|
name: "TeleportTo",
|
|
1146
1516
|
requestType: TeleportToRequest,
|
|
@@ -1206,7 +1576,36 @@ exports.RestrictedActionsServiceDefinition = {
|
|
|
1206
1576
|
responseStream: false,
|
|
1207
1577
|
options: {},
|
|
1208
1578
|
},
|
|
1209
|
-
/**
|
|
1579
|
+
/**
|
|
1580
|
+
* CopyToClipboard copies the provided text into the clipboard
|
|
1581
|
+
* Sets the focus to a specific UI element
|
|
1582
|
+
*/
|
|
1583
|
+
setUiFocus: {
|
|
1584
|
+
name: "SetUiFocus",
|
|
1585
|
+
requestType: SetUiFocusRequest,
|
|
1586
|
+
requestStream: false,
|
|
1587
|
+
responseType: UiFocusResponse,
|
|
1588
|
+
responseStream: false,
|
|
1589
|
+
options: {},
|
|
1590
|
+
},
|
|
1591
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1592
|
+
clearUiFocus: {
|
|
1593
|
+
name: "ClearUiFocus",
|
|
1594
|
+
requestType: ClearUiFocusRequest,
|
|
1595
|
+
requestStream: false,
|
|
1596
|
+
responseType: UiFocusResponse,
|
|
1597
|
+
responseStream: false,
|
|
1598
|
+
options: {},
|
|
1599
|
+
},
|
|
1600
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1601
|
+
getUiFocus: {
|
|
1602
|
+
name: "GetUiFocus",
|
|
1603
|
+
requestType: GetUiFocusRequest,
|
|
1604
|
+
requestStream: false,
|
|
1605
|
+
responseType: UiFocusResponse,
|
|
1606
|
+
responseStream: false,
|
|
1607
|
+
options: {},
|
|
1608
|
+
},
|
|
1210
1609
|
copyToClipboard: {
|
|
1211
1610
|
name: "CopyToClipboard",
|
|
1212
1611
|
requestType: CopyToClipboardRequest,
|