@dcl/protocol 1.0.0-25002956535.commit-14be2da → 1.0.0-25007945013.commit-ba53eb0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/common/texture.gen.d.ts +18 -0
- package/out-js/decentraland/common/texture.gen.js +104 -4
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +0 -130
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +1 -536
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +109 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +383 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -52
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +5 -339
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +138 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +113 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +207 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +24 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/material.gen.js +86 -2
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +14 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +119 -4
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +0 -589
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +410 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +0 -376
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +249 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +24 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +19 -1
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +6 -3
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/comms_api.proto +1 -37
- package/proto/decentraland/kernel/apis/restricted_actions.proto +39 -1
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -25
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +18 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +46 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
- package/proto/decentraland/sdk/components/common/input_action.proto +4 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/material.proto +13 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- package/proto/decentraland/sdk/components/particle_system.proto +1 -5
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_input.proto +1 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +3 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +4 -0
|
@@ -41,8 +41,28 @@ export interface TriggerEmoteResponse {
|
|
|
41
41
|
export interface MovePlayerToResponse {
|
|
42
42
|
success: boolean;
|
|
43
43
|
}
|
|
44
|
+
export interface WalkPlayerToRequest {
|
|
45
|
+
newRelativePosition: Vector3 | undefined;
|
|
46
|
+
stopThreshold: number;
|
|
47
|
+
/** max seconds before the request is failed; not passed to the movement scene */
|
|
48
|
+
timeout?: number | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface WalkPlayerToResponse {
|
|
51
|
+
success: boolean;
|
|
52
|
+
}
|
|
44
53
|
export interface TeleportToResponse {
|
|
45
54
|
}
|
|
55
|
+
export interface SetUiFocusRequest {
|
|
56
|
+
elementId: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ClearUiFocusRequest {
|
|
59
|
+
}
|
|
60
|
+
export interface GetUiFocusRequest {
|
|
61
|
+
}
|
|
62
|
+
export interface UiFocusResponse {
|
|
63
|
+
/** the element that is/was focussed */
|
|
64
|
+
elementId?: string | undefined;
|
|
65
|
+
}
|
|
46
66
|
export interface CopyToClipboardRequest {
|
|
47
67
|
text: string;
|
|
48
68
|
}
|
|
@@ -144,6 +164,22 @@ export declare namespace MovePlayerToResponse {
|
|
|
144
164
|
function create<I extends Exact<DeepPartial<MovePlayerToResponse>, I>>(base?: I): MovePlayerToResponse;
|
|
145
165
|
function fromPartial<I extends Exact<DeepPartial<MovePlayerToResponse>, I>>(object: I): MovePlayerToResponse;
|
|
146
166
|
}
|
|
167
|
+
export declare namespace WalkPlayerToRequest {
|
|
168
|
+
function encode(message: WalkPlayerToRequest, writer?: _m0.Writer): _m0.Writer;
|
|
169
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToRequest;
|
|
170
|
+
function fromJSON(object: any): WalkPlayerToRequest;
|
|
171
|
+
function toJSON(message: WalkPlayerToRequest): unknown;
|
|
172
|
+
function create<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(base?: I): WalkPlayerToRequest;
|
|
173
|
+
function fromPartial<I extends Exact<DeepPartial<WalkPlayerToRequest>, I>>(object: I): WalkPlayerToRequest;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace WalkPlayerToResponse {
|
|
176
|
+
function encode(message: WalkPlayerToResponse, writer?: _m0.Writer): _m0.Writer;
|
|
177
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): WalkPlayerToResponse;
|
|
178
|
+
function fromJSON(object: any): WalkPlayerToResponse;
|
|
179
|
+
function toJSON(message: WalkPlayerToResponse): unknown;
|
|
180
|
+
function create<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(base?: I): WalkPlayerToResponse;
|
|
181
|
+
function fromPartial<I extends Exact<DeepPartial<WalkPlayerToResponse>, I>>(object: I): WalkPlayerToResponse;
|
|
182
|
+
}
|
|
147
183
|
export declare namespace TeleportToResponse {
|
|
148
184
|
function encode(_: TeleportToResponse, writer?: _m0.Writer): _m0.Writer;
|
|
149
185
|
function decode(input: _m0.Reader | Uint8Array, length?: number): TeleportToResponse;
|
|
@@ -152,6 +188,38 @@ export declare namespace TeleportToResponse {
|
|
|
152
188
|
function create<I extends Exact<DeepPartial<TeleportToResponse>, I>>(base?: I): TeleportToResponse;
|
|
153
189
|
function fromPartial<I extends Exact<DeepPartial<TeleportToResponse>, I>>(_: I): TeleportToResponse;
|
|
154
190
|
}
|
|
191
|
+
export declare namespace SetUiFocusRequest {
|
|
192
|
+
function encode(message: SetUiFocusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
193
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): SetUiFocusRequest;
|
|
194
|
+
function fromJSON(object: any): SetUiFocusRequest;
|
|
195
|
+
function toJSON(message: SetUiFocusRequest): unknown;
|
|
196
|
+
function create<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(base?: I): SetUiFocusRequest;
|
|
197
|
+
function fromPartial<I extends Exact<DeepPartial<SetUiFocusRequest>, I>>(object: I): SetUiFocusRequest;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace ClearUiFocusRequest {
|
|
200
|
+
function encode(_: ClearUiFocusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
201
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): ClearUiFocusRequest;
|
|
202
|
+
function fromJSON(_: any): ClearUiFocusRequest;
|
|
203
|
+
function toJSON(_: ClearUiFocusRequest): unknown;
|
|
204
|
+
function create<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(base?: I): ClearUiFocusRequest;
|
|
205
|
+
function fromPartial<I extends Exact<DeepPartial<ClearUiFocusRequest>, I>>(_: I): ClearUiFocusRequest;
|
|
206
|
+
}
|
|
207
|
+
export declare namespace GetUiFocusRequest {
|
|
208
|
+
function encode(_: GetUiFocusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
209
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetUiFocusRequest;
|
|
210
|
+
function fromJSON(_: any): GetUiFocusRequest;
|
|
211
|
+
function toJSON(_: GetUiFocusRequest): unknown;
|
|
212
|
+
function create<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(base?: I): GetUiFocusRequest;
|
|
213
|
+
function fromPartial<I extends Exact<DeepPartial<GetUiFocusRequest>, I>>(_: I): GetUiFocusRequest;
|
|
214
|
+
}
|
|
215
|
+
export declare namespace UiFocusResponse {
|
|
216
|
+
function encode(message: UiFocusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
217
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): UiFocusResponse;
|
|
218
|
+
function fromJSON(object: any): UiFocusResponse;
|
|
219
|
+
function toJSON(message: UiFocusResponse): unknown;
|
|
220
|
+
function create<I extends Exact<DeepPartial<UiFocusResponse>, I>>(base?: I): UiFocusResponse;
|
|
221
|
+
function fromPartial<I extends Exact<DeepPartial<UiFocusResponse>, I>>(object: I): UiFocusResponse;
|
|
222
|
+
}
|
|
155
223
|
export declare namespace CopyToClipboardRequest {
|
|
156
224
|
function encode(message: CopyToClipboardRequest, writer?: _m0.Writer): _m0.Writer;
|
|
157
225
|
function decode(input: _m0.Reader | Uint8Array, length?: number): CopyToClipboardRequest;
|
|
@@ -186,6 +254,20 @@ export declare const RestrictedActionsServiceDefinition: {
|
|
|
186
254
|
readonly responseStream: false;
|
|
187
255
|
readonly options: {};
|
|
188
256
|
};
|
|
257
|
+
/**
|
|
258
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
259
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
260
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
261
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
262
|
+
*/
|
|
263
|
+
readonly walkPlayerTo: {
|
|
264
|
+
readonly name: "WalkPlayerTo";
|
|
265
|
+
readonly requestType: typeof WalkPlayerToRequest;
|
|
266
|
+
readonly requestStream: false;
|
|
267
|
+
readonly responseType: typeof WalkPlayerToResponse;
|
|
268
|
+
readonly responseStream: false;
|
|
269
|
+
readonly options: {};
|
|
270
|
+
};
|
|
189
271
|
/** TeleportTo will move the user to the specified world LAND parcel coordinates */
|
|
190
272
|
readonly teleportTo: {
|
|
191
273
|
readonly name: "TeleportTo";
|
|
@@ -252,6 +334,33 @@ export declare const RestrictedActionsServiceDefinition: {
|
|
|
252
334
|
readonly responseStream: false;
|
|
253
335
|
readonly options: {};
|
|
254
336
|
};
|
|
337
|
+
/** Sets the focus to a specific UI element */
|
|
338
|
+
readonly setUiFocus: {
|
|
339
|
+
readonly name: "SetUiFocus";
|
|
340
|
+
readonly requestType: typeof SetUiFocusRequest;
|
|
341
|
+
readonly requestStream: false;
|
|
342
|
+
readonly responseType: typeof UiFocusResponse;
|
|
343
|
+
readonly responseStream: false;
|
|
344
|
+
readonly options: {};
|
|
345
|
+
};
|
|
346
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
347
|
+
readonly clearUiFocus: {
|
|
348
|
+
readonly name: "ClearUiFocus";
|
|
349
|
+
readonly requestType: typeof SetUiFocusRequest;
|
|
350
|
+
readonly requestStream: false;
|
|
351
|
+
readonly responseType: typeof UiFocusResponse;
|
|
352
|
+
readonly responseStream: false;
|
|
353
|
+
readonly options: {};
|
|
354
|
+
};
|
|
355
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
356
|
+
readonly getUiFocus: {
|
|
357
|
+
readonly name: "GetUiFocus";
|
|
358
|
+
readonly requestType: typeof GetUiFocusRequest;
|
|
359
|
+
readonly requestStream: false;
|
|
360
|
+
readonly responseType: typeof UiFocusResponse;
|
|
361
|
+
readonly responseStream: false;
|
|
362
|
+
readonly options: {};
|
|
363
|
+
};
|
|
255
364
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
256
365
|
readonly copyToClipboard: {
|
|
257
366
|
readonly name: "CopyToClipboard";
|
|
@@ -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.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.protobufPackage = void 0;
|
|
6
|
+
exports.RestrictedActionsServiceDefinition = 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.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
9
|
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
@@ -733,6 +733,147 @@ var MovePlayerToResponse;
|
|
|
733
733
|
}
|
|
734
734
|
MovePlayerToResponse.fromPartial = fromPartial;
|
|
735
735
|
})(MovePlayerToResponse || (exports.MovePlayerToResponse = MovePlayerToResponse = {}));
|
|
736
|
+
function createBaseWalkPlayerToRequest() {
|
|
737
|
+
return { newRelativePosition: undefined, stopThreshold: 0, timeout: undefined };
|
|
738
|
+
}
|
|
739
|
+
var WalkPlayerToRequest;
|
|
740
|
+
(function (WalkPlayerToRequest) {
|
|
741
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
742
|
+
if (message.newRelativePosition !== undefined) {
|
|
743
|
+
vectors_gen_1.Vector3.encode(message.newRelativePosition, writer.uint32(10).fork()).ldelim();
|
|
744
|
+
}
|
|
745
|
+
if (message.stopThreshold !== 0) {
|
|
746
|
+
writer.uint32(21).float(message.stopThreshold);
|
|
747
|
+
}
|
|
748
|
+
if (message.timeout !== undefined) {
|
|
749
|
+
writer.uint32(29).float(message.timeout);
|
|
750
|
+
}
|
|
751
|
+
return writer;
|
|
752
|
+
}
|
|
753
|
+
WalkPlayerToRequest.encode = encode;
|
|
754
|
+
function decode(input, length) {
|
|
755
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
756
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
757
|
+
const message = createBaseWalkPlayerToRequest();
|
|
758
|
+
while (reader.pos < end) {
|
|
759
|
+
const tag = reader.uint32();
|
|
760
|
+
switch (tag >>> 3) {
|
|
761
|
+
case 1:
|
|
762
|
+
if (tag !== 10) {
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
message.newRelativePosition = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
766
|
+
continue;
|
|
767
|
+
case 2:
|
|
768
|
+
if (tag !== 21) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
message.stopThreshold = reader.float();
|
|
772
|
+
continue;
|
|
773
|
+
case 3:
|
|
774
|
+
if (tag !== 29) {
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
message.timeout = reader.float();
|
|
778
|
+
continue;
|
|
779
|
+
}
|
|
780
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
reader.skipType(tag & 7);
|
|
784
|
+
}
|
|
785
|
+
return message;
|
|
786
|
+
}
|
|
787
|
+
WalkPlayerToRequest.decode = decode;
|
|
788
|
+
function fromJSON(object) {
|
|
789
|
+
return {
|
|
790
|
+
newRelativePosition: isSet(object.newRelativePosition) ? vectors_gen_1.Vector3.fromJSON(object.newRelativePosition) : undefined,
|
|
791
|
+
stopThreshold: isSet(object.stopThreshold) ? Number(object.stopThreshold) : 0,
|
|
792
|
+
timeout: isSet(object.timeout) ? Number(object.timeout) : undefined,
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
WalkPlayerToRequest.fromJSON = fromJSON;
|
|
796
|
+
function toJSON(message) {
|
|
797
|
+
const obj = {};
|
|
798
|
+
message.newRelativePosition !== undefined &&
|
|
799
|
+
(obj.newRelativePosition = message.newRelativePosition ? vectors_gen_1.Vector3.toJSON(message.newRelativePosition) : undefined);
|
|
800
|
+
message.stopThreshold !== undefined && (obj.stopThreshold = message.stopThreshold);
|
|
801
|
+
message.timeout !== undefined && (obj.timeout = message.timeout);
|
|
802
|
+
return obj;
|
|
803
|
+
}
|
|
804
|
+
WalkPlayerToRequest.toJSON = toJSON;
|
|
805
|
+
function create(base) {
|
|
806
|
+
return WalkPlayerToRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
807
|
+
}
|
|
808
|
+
WalkPlayerToRequest.create = create;
|
|
809
|
+
function fromPartial(object) {
|
|
810
|
+
var _a, _b;
|
|
811
|
+
const message = createBaseWalkPlayerToRequest();
|
|
812
|
+
message.newRelativePosition = (object.newRelativePosition !== undefined && object.newRelativePosition !== null)
|
|
813
|
+
? vectors_gen_1.Vector3.fromPartial(object.newRelativePosition)
|
|
814
|
+
: undefined;
|
|
815
|
+
message.stopThreshold = (_a = object.stopThreshold) !== null && _a !== void 0 ? _a : 0;
|
|
816
|
+
message.timeout = (_b = object.timeout) !== null && _b !== void 0 ? _b : undefined;
|
|
817
|
+
return message;
|
|
818
|
+
}
|
|
819
|
+
WalkPlayerToRequest.fromPartial = fromPartial;
|
|
820
|
+
})(WalkPlayerToRequest || (exports.WalkPlayerToRequest = WalkPlayerToRequest = {}));
|
|
821
|
+
function createBaseWalkPlayerToResponse() {
|
|
822
|
+
return { success: false };
|
|
823
|
+
}
|
|
824
|
+
var WalkPlayerToResponse;
|
|
825
|
+
(function (WalkPlayerToResponse) {
|
|
826
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
827
|
+
if (message.success === true) {
|
|
828
|
+
writer.uint32(8).bool(message.success);
|
|
829
|
+
}
|
|
830
|
+
return writer;
|
|
831
|
+
}
|
|
832
|
+
WalkPlayerToResponse.encode = encode;
|
|
833
|
+
function decode(input, length) {
|
|
834
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
835
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
836
|
+
const message = createBaseWalkPlayerToResponse();
|
|
837
|
+
while (reader.pos < end) {
|
|
838
|
+
const tag = reader.uint32();
|
|
839
|
+
switch (tag >>> 3) {
|
|
840
|
+
case 1:
|
|
841
|
+
if (tag !== 8) {
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
message.success = reader.bool();
|
|
845
|
+
continue;
|
|
846
|
+
}
|
|
847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
848
|
+
break;
|
|
849
|
+
}
|
|
850
|
+
reader.skipType(tag & 7);
|
|
851
|
+
}
|
|
852
|
+
return message;
|
|
853
|
+
}
|
|
854
|
+
WalkPlayerToResponse.decode = decode;
|
|
855
|
+
function fromJSON(object) {
|
|
856
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
857
|
+
}
|
|
858
|
+
WalkPlayerToResponse.fromJSON = fromJSON;
|
|
859
|
+
function toJSON(message) {
|
|
860
|
+
const obj = {};
|
|
861
|
+
message.success !== undefined && (obj.success = message.success);
|
|
862
|
+
return obj;
|
|
863
|
+
}
|
|
864
|
+
WalkPlayerToResponse.toJSON = toJSON;
|
|
865
|
+
function create(base) {
|
|
866
|
+
return WalkPlayerToResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
867
|
+
}
|
|
868
|
+
WalkPlayerToResponse.create = create;
|
|
869
|
+
function fromPartial(object) {
|
|
870
|
+
var _a;
|
|
871
|
+
const message = createBaseWalkPlayerToResponse();
|
|
872
|
+
message.success = (_a = object.success) !== null && _a !== void 0 ? _a : false;
|
|
873
|
+
return message;
|
|
874
|
+
}
|
|
875
|
+
WalkPlayerToResponse.fromPartial = fromPartial;
|
|
876
|
+
})(WalkPlayerToResponse || (exports.WalkPlayerToResponse = WalkPlayerToResponse = {}));
|
|
736
877
|
function createBaseTeleportToResponse() {
|
|
737
878
|
return {};
|
|
738
879
|
}
|
|
@@ -777,6 +918,206 @@ var TeleportToResponse;
|
|
|
777
918
|
}
|
|
778
919
|
TeleportToResponse.fromPartial = fromPartial;
|
|
779
920
|
})(TeleportToResponse || (exports.TeleportToResponse = TeleportToResponse = {}));
|
|
921
|
+
function createBaseSetUiFocusRequest() {
|
|
922
|
+
return { elementId: "" };
|
|
923
|
+
}
|
|
924
|
+
var SetUiFocusRequest;
|
|
925
|
+
(function (SetUiFocusRequest) {
|
|
926
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
927
|
+
if (message.elementId !== "") {
|
|
928
|
+
writer.uint32(10).string(message.elementId);
|
|
929
|
+
}
|
|
930
|
+
return writer;
|
|
931
|
+
}
|
|
932
|
+
SetUiFocusRequest.encode = encode;
|
|
933
|
+
function decode(input, length) {
|
|
934
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
935
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
936
|
+
const message = createBaseSetUiFocusRequest();
|
|
937
|
+
while (reader.pos < end) {
|
|
938
|
+
const tag = reader.uint32();
|
|
939
|
+
switch (tag >>> 3) {
|
|
940
|
+
case 1:
|
|
941
|
+
if (tag !== 10) {
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
message.elementId = reader.string();
|
|
945
|
+
continue;
|
|
946
|
+
}
|
|
947
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
reader.skipType(tag & 7);
|
|
951
|
+
}
|
|
952
|
+
return message;
|
|
953
|
+
}
|
|
954
|
+
SetUiFocusRequest.decode = decode;
|
|
955
|
+
function fromJSON(object) {
|
|
956
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : "" };
|
|
957
|
+
}
|
|
958
|
+
SetUiFocusRequest.fromJSON = fromJSON;
|
|
959
|
+
function toJSON(message) {
|
|
960
|
+
const obj = {};
|
|
961
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
962
|
+
return obj;
|
|
963
|
+
}
|
|
964
|
+
SetUiFocusRequest.toJSON = toJSON;
|
|
965
|
+
function create(base) {
|
|
966
|
+
return SetUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
967
|
+
}
|
|
968
|
+
SetUiFocusRequest.create = create;
|
|
969
|
+
function fromPartial(object) {
|
|
970
|
+
var _a;
|
|
971
|
+
const message = createBaseSetUiFocusRequest();
|
|
972
|
+
message.elementId = (_a = object.elementId) !== null && _a !== void 0 ? _a : "";
|
|
973
|
+
return message;
|
|
974
|
+
}
|
|
975
|
+
SetUiFocusRequest.fromPartial = fromPartial;
|
|
976
|
+
})(SetUiFocusRequest || (exports.SetUiFocusRequest = SetUiFocusRequest = {}));
|
|
977
|
+
function createBaseClearUiFocusRequest() {
|
|
978
|
+
return {};
|
|
979
|
+
}
|
|
980
|
+
var ClearUiFocusRequest;
|
|
981
|
+
(function (ClearUiFocusRequest) {
|
|
982
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
983
|
+
return writer;
|
|
984
|
+
}
|
|
985
|
+
ClearUiFocusRequest.encode = encode;
|
|
986
|
+
function decode(input, length) {
|
|
987
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
988
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
989
|
+
const message = createBaseClearUiFocusRequest();
|
|
990
|
+
while (reader.pos < end) {
|
|
991
|
+
const tag = reader.uint32();
|
|
992
|
+
switch (tag >>> 3) {
|
|
993
|
+
}
|
|
994
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
reader.skipType(tag & 7);
|
|
998
|
+
}
|
|
999
|
+
return message;
|
|
1000
|
+
}
|
|
1001
|
+
ClearUiFocusRequest.decode = decode;
|
|
1002
|
+
function fromJSON(_) {
|
|
1003
|
+
return {};
|
|
1004
|
+
}
|
|
1005
|
+
ClearUiFocusRequest.fromJSON = fromJSON;
|
|
1006
|
+
function toJSON(_) {
|
|
1007
|
+
const obj = {};
|
|
1008
|
+
return obj;
|
|
1009
|
+
}
|
|
1010
|
+
ClearUiFocusRequest.toJSON = toJSON;
|
|
1011
|
+
function create(base) {
|
|
1012
|
+
return ClearUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1013
|
+
}
|
|
1014
|
+
ClearUiFocusRequest.create = create;
|
|
1015
|
+
function fromPartial(_) {
|
|
1016
|
+
const message = createBaseClearUiFocusRequest();
|
|
1017
|
+
return message;
|
|
1018
|
+
}
|
|
1019
|
+
ClearUiFocusRequest.fromPartial = fromPartial;
|
|
1020
|
+
})(ClearUiFocusRequest || (exports.ClearUiFocusRequest = ClearUiFocusRequest = {}));
|
|
1021
|
+
function createBaseGetUiFocusRequest() {
|
|
1022
|
+
return {};
|
|
1023
|
+
}
|
|
1024
|
+
var GetUiFocusRequest;
|
|
1025
|
+
(function (GetUiFocusRequest) {
|
|
1026
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
1027
|
+
return writer;
|
|
1028
|
+
}
|
|
1029
|
+
GetUiFocusRequest.encode = encode;
|
|
1030
|
+
function decode(input, length) {
|
|
1031
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1032
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1033
|
+
const message = createBaseGetUiFocusRequest();
|
|
1034
|
+
while (reader.pos < end) {
|
|
1035
|
+
const tag = reader.uint32();
|
|
1036
|
+
switch (tag >>> 3) {
|
|
1037
|
+
}
|
|
1038
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
reader.skipType(tag & 7);
|
|
1042
|
+
}
|
|
1043
|
+
return message;
|
|
1044
|
+
}
|
|
1045
|
+
GetUiFocusRequest.decode = decode;
|
|
1046
|
+
function fromJSON(_) {
|
|
1047
|
+
return {};
|
|
1048
|
+
}
|
|
1049
|
+
GetUiFocusRequest.fromJSON = fromJSON;
|
|
1050
|
+
function toJSON(_) {
|
|
1051
|
+
const obj = {};
|
|
1052
|
+
return obj;
|
|
1053
|
+
}
|
|
1054
|
+
GetUiFocusRequest.toJSON = toJSON;
|
|
1055
|
+
function create(base) {
|
|
1056
|
+
return GetUiFocusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1057
|
+
}
|
|
1058
|
+
GetUiFocusRequest.create = create;
|
|
1059
|
+
function fromPartial(_) {
|
|
1060
|
+
const message = createBaseGetUiFocusRequest();
|
|
1061
|
+
return message;
|
|
1062
|
+
}
|
|
1063
|
+
GetUiFocusRequest.fromPartial = fromPartial;
|
|
1064
|
+
})(GetUiFocusRequest || (exports.GetUiFocusRequest = GetUiFocusRequest = {}));
|
|
1065
|
+
function createBaseUiFocusResponse() {
|
|
1066
|
+
return { elementId: undefined };
|
|
1067
|
+
}
|
|
1068
|
+
var UiFocusResponse;
|
|
1069
|
+
(function (UiFocusResponse) {
|
|
1070
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1071
|
+
if (message.elementId !== undefined) {
|
|
1072
|
+
writer.uint32(10).string(message.elementId);
|
|
1073
|
+
}
|
|
1074
|
+
return writer;
|
|
1075
|
+
}
|
|
1076
|
+
UiFocusResponse.encode = encode;
|
|
1077
|
+
function decode(input, length) {
|
|
1078
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1079
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1080
|
+
const message = createBaseUiFocusResponse();
|
|
1081
|
+
while (reader.pos < end) {
|
|
1082
|
+
const tag = reader.uint32();
|
|
1083
|
+
switch (tag >>> 3) {
|
|
1084
|
+
case 1:
|
|
1085
|
+
if (tag !== 10) {
|
|
1086
|
+
break;
|
|
1087
|
+
}
|
|
1088
|
+
message.elementId = reader.string();
|
|
1089
|
+
continue;
|
|
1090
|
+
}
|
|
1091
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1092
|
+
break;
|
|
1093
|
+
}
|
|
1094
|
+
reader.skipType(tag & 7);
|
|
1095
|
+
}
|
|
1096
|
+
return message;
|
|
1097
|
+
}
|
|
1098
|
+
UiFocusResponse.decode = decode;
|
|
1099
|
+
function fromJSON(object) {
|
|
1100
|
+
return { elementId: isSet(object.elementId) ? String(object.elementId) : undefined };
|
|
1101
|
+
}
|
|
1102
|
+
UiFocusResponse.fromJSON = fromJSON;
|
|
1103
|
+
function toJSON(message) {
|
|
1104
|
+
const obj = {};
|
|
1105
|
+
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1106
|
+
return obj;
|
|
1107
|
+
}
|
|
1108
|
+
UiFocusResponse.toJSON = toJSON;
|
|
1109
|
+
function create(base) {
|
|
1110
|
+
return UiFocusResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1111
|
+
}
|
|
1112
|
+
UiFocusResponse.create = create;
|
|
1113
|
+
function fromPartial(object) {
|
|
1114
|
+
var _a;
|
|
1115
|
+
const message = createBaseUiFocusResponse();
|
|
1116
|
+
message.elementId = (_a = object.elementId) !== null && _a !== void 0 ? _a : undefined;
|
|
1117
|
+
return message;
|
|
1118
|
+
}
|
|
1119
|
+
UiFocusResponse.fromPartial = fromPartial;
|
|
1120
|
+
})(UiFocusResponse || (exports.UiFocusResponse = UiFocusResponse = {}));
|
|
780
1121
|
function createBaseCopyToClipboardRequest() {
|
|
781
1122
|
return { text: "" };
|
|
782
1123
|
}
|
|
@@ -894,6 +1235,20 @@ exports.RestrictedActionsServiceDefinition = {
|
|
|
894
1235
|
responseStream: false,
|
|
895
1236
|
options: {},
|
|
896
1237
|
},
|
|
1238
|
+
/**
|
|
1239
|
+
* WalkPlayerTo will walk the player to a position relative to the current scene,
|
|
1240
|
+
* managed by the movement controller scene. Returns success when the player reaches
|
|
1241
|
+
* within stop_threshold distance, or false if the path is blocked, the player gets
|
|
1242
|
+
* stuck, the player interrupts the walk with manual input, or the optional timeout expires.
|
|
1243
|
+
*/
|
|
1244
|
+
walkPlayerTo: {
|
|
1245
|
+
name: "WalkPlayerTo",
|
|
1246
|
+
requestType: WalkPlayerToRequest,
|
|
1247
|
+
requestStream: false,
|
|
1248
|
+
responseType: WalkPlayerToResponse,
|
|
1249
|
+
responseStream: false,
|
|
1250
|
+
options: {},
|
|
1251
|
+
},
|
|
897
1252
|
/** TeleportTo will move the user to the specified world LAND parcel coordinates */
|
|
898
1253
|
teleportTo: {
|
|
899
1254
|
name: "TeleportTo",
|
|
@@ -960,6 +1315,33 @@ exports.RestrictedActionsServiceDefinition = {
|
|
|
960
1315
|
responseStream: false,
|
|
961
1316
|
options: {},
|
|
962
1317
|
},
|
|
1318
|
+
/** Sets the focus to a specific UI element */
|
|
1319
|
+
setUiFocus: {
|
|
1320
|
+
name: "SetUiFocus",
|
|
1321
|
+
requestType: SetUiFocusRequest,
|
|
1322
|
+
requestStream: false,
|
|
1323
|
+
responseType: UiFocusResponse,
|
|
1324
|
+
responseStream: false,
|
|
1325
|
+
options: {},
|
|
1326
|
+
},
|
|
1327
|
+
/** Clears the focus from any currently focused textentry or dropdown */
|
|
1328
|
+
clearUiFocus: {
|
|
1329
|
+
name: "ClearUiFocus",
|
|
1330
|
+
requestType: SetUiFocusRequest,
|
|
1331
|
+
requestStream: false,
|
|
1332
|
+
responseType: UiFocusResponse,
|
|
1333
|
+
responseStream: false,
|
|
1334
|
+
options: {},
|
|
1335
|
+
},
|
|
1336
|
+
/** Returns the element_id of any currently focused textentry or dropdown */
|
|
1337
|
+
getUiFocus: {
|
|
1338
|
+
name: "GetUiFocus",
|
|
1339
|
+
requestType: GetUiFocusRequest,
|
|
1340
|
+
requestStream: false,
|
|
1341
|
+
responseType: UiFocusResponse,
|
|
1342
|
+
responseStream: false,
|
|
1343
|
+
options: {},
|
|
1344
|
+
},
|
|
963
1345
|
/** CopyToClipboard copies the provided text into the clipboard */
|
|
964
1346
|
copyToClipboard: {
|
|
965
1347
|
name: "CopyToClipboard",
|