@dcl/protocol 1.0.0-10043247792.commit-428d1eb → 1.0.0-10170032882.commit-971bcef
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/realm/about.gen.d.ts +84 -8
- package/out-js/decentraland/realm/about.gen.js +317 -46
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- 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/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/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/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/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 +35 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +188 -2
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/realm/about.gen.ts +401 -51
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
- 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/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/ui_text.gen.ts +40 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +212 -1
- package/package.json +2 -2
- package/proto/decentraland/realm/about.proto +64 -4
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
- 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 +11 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +8 -1
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- 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 +21 -0
- package/public/sdk-components.proto +2 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { BorderRect } from "../common/border_rect.gen";
|
|
3
|
+
import { Vector2 } from "../common/vectors.gen";
|
|
2
4
|
export declare const protobufPackage = "decentraland.realm";
|
|
3
5
|
export interface AboutResponse {
|
|
4
6
|
healthy: boolean;
|
|
@@ -9,10 +11,60 @@ export interface AboutResponse {
|
|
|
9
11
|
bff?: AboutResponse_BffInfo | undefined;
|
|
10
12
|
acceptingUsers: boolean;
|
|
11
13
|
}
|
|
14
|
+
/** @deprecated This message was never used but it's still here for compatibility reasons */
|
|
12
15
|
export interface AboutResponse_MinimapConfiguration {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
}
|
|
17
|
+
export interface AboutResponse_MapConfiguration {
|
|
18
|
+
/** whether the minimap should be rendered */
|
|
19
|
+
minimapEnabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* the union of all rects here represents the places where that MAY have scenes
|
|
22
|
+
* - all the other parcels are considered as empty, up to the explorer to decide if they're walkable or not
|
|
23
|
+
* - the contained square is determined by points:
|
|
24
|
+
* - top-left with minX, maxY
|
|
25
|
+
* - bottom-left with minX, minY
|
|
26
|
+
* - top-right with maxX, maxY
|
|
27
|
+
* - bottom-right with maxX, maxY
|
|
28
|
+
* Note: the coordinate system used is the Cartesian coordinate system, where the y-axis increases upwards,
|
|
29
|
+
* not the screen coordinate system, where the origin is at the top-left corner and the y-axis increases downwards.
|
|
30
|
+
*/
|
|
31
|
+
sizes: BorderRect[];
|
|
32
|
+
satelliteView?: AboutResponse_MapConfiguration_ImageViewWithZoomLevel | undefined;
|
|
33
|
+
parcelView?: AboutResponse_MapConfiguration_ParcelView | undefined;
|
|
34
|
+
thumbnailView?: AboutResponse_MapConfiguration_ImageViewWithZoomLevel | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* ImageViewWithZoomLevel uses a description to render the minimap
|
|
38
|
+
* using different images with different zoom levels.
|
|
39
|
+
* When `version='v1'`:
|
|
40
|
+
* - The description allows the explorer to form the URL:
|
|
41
|
+
* url(x,y,zoom_level) = `{base_url}/{zoom_level}/{x},{y}{suffix_url}`
|
|
42
|
+
* - The given URL is for an image where the pixel `0,0` for the image `0,0` always
|
|
43
|
+
* points to the top-left contained square.
|
|
44
|
+
* - The `zoom_level=1` is to a ratio of 3.2 pixel per parcel, this means in a 32x32 pixel square
|
|
45
|
+
* you get 10x10 parcels.
|
|
46
|
+
* - Each increase of zoom level, double the ratio pixel per parcels.
|
|
47
|
+
*/
|
|
48
|
+
export interface AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
|
|
49
|
+
/** options: ['v1'] */
|
|
50
|
+
version: string;
|
|
51
|
+
baseUrl?: string | undefined;
|
|
52
|
+
suffixUrl?: string | undefined;
|
|
53
|
+
topLeftOffset?: Vector2 | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* ParcelView uses a description to render the minimap
|
|
57
|
+
* using a image where each pixel is a parcel and each pixel
|
|
58
|
+
* has the metadata to make a representation (using a shader or image-generation client-side)
|
|
59
|
+
* When `version='v1'`:
|
|
60
|
+
* - The pixel `0,0` is the top-left contained square
|
|
61
|
+
* - The image has to be at least of contained square pixels size
|
|
62
|
+
* - The metadata inside each pixel follows the generated with the atlas server https://github.com/decentraland/atlas-server/blob/af371f2a59745a1f50b0b0b2382984288c4ae891/src/adapters/mini-map-renderer.ts#L27
|
|
63
|
+
*/
|
|
64
|
+
export interface AboutResponse_MapConfiguration_ParcelView {
|
|
65
|
+
/** options: `v1` */
|
|
66
|
+
version: string;
|
|
67
|
+
imageUrl?: string | undefined;
|
|
16
68
|
}
|
|
17
69
|
export interface AboutResponse_SkyboxConfiguration {
|
|
18
70
|
/** only one value at a time */
|
|
@@ -23,7 +75,6 @@ export interface AboutResponse_AboutConfiguration {
|
|
|
23
75
|
networkId: number;
|
|
24
76
|
globalScenesUrn: string[];
|
|
25
77
|
scenesUrn: string[];
|
|
26
|
-
minimap?: AboutResponse_MinimapConfiguration | undefined;
|
|
27
78
|
skybox?: AboutResponse_SkyboxConfiguration | undefined;
|
|
28
79
|
/**
|
|
29
80
|
* A content server to be used to load the parcels around the user. Uses the POST /entities/active endpoint
|
|
@@ -31,6 +82,7 @@ export interface AboutResponse_AboutConfiguration {
|
|
|
31
82
|
* if == "" then the city_loader will be disabled and the scenes_urn will be used to load the world
|
|
32
83
|
*/
|
|
33
84
|
cityLoaderContentServer?: string | undefined;
|
|
85
|
+
map?: AboutResponse_MapConfiguration | undefined;
|
|
34
86
|
}
|
|
35
87
|
export interface AboutResponse_ContentInfo {
|
|
36
88
|
/** common properties */
|
|
@@ -76,12 +128,36 @@ export declare namespace AboutResponse {
|
|
|
76
128
|
function fromPartial<I extends Exact<DeepPartial<AboutResponse>, I>>(object: I): AboutResponse;
|
|
77
129
|
}
|
|
78
130
|
export declare namespace AboutResponse_MinimapConfiguration {
|
|
79
|
-
function encode(
|
|
131
|
+
function encode(_: AboutResponse_MinimapConfiguration, writer?: _m0.Writer): _m0.Writer;
|
|
80
132
|
function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MinimapConfiguration;
|
|
81
|
-
function fromJSON(
|
|
82
|
-
function toJSON(
|
|
133
|
+
function fromJSON(_: any): AboutResponse_MinimapConfiguration;
|
|
134
|
+
function toJSON(_: AboutResponse_MinimapConfiguration): unknown;
|
|
83
135
|
function create<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(base?: I): AboutResponse_MinimapConfiguration;
|
|
84
|
-
function fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
|
|
136
|
+
function fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(_: I): AboutResponse_MinimapConfiguration;
|
|
137
|
+
}
|
|
138
|
+
export declare namespace AboutResponse_MapConfiguration {
|
|
139
|
+
function encode(message: AboutResponse_MapConfiguration, writer?: _m0.Writer): _m0.Writer;
|
|
140
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MapConfiguration;
|
|
141
|
+
function fromJSON(object: any): AboutResponse_MapConfiguration;
|
|
142
|
+
function toJSON(message: AboutResponse_MapConfiguration): unknown;
|
|
143
|
+
function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration>, I>>(base?: I): AboutResponse_MapConfiguration;
|
|
144
|
+
function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration>, I>>(object: I): AboutResponse_MapConfiguration;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
|
|
147
|
+
function encode(message: AboutResponse_MapConfiguration_ImageViewWithZoomLevel, writer?: _m0.Writer): _m0.Writer;
|
|
148
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
|
|
149
|
+
function fromJSON(object: any): AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
|
|
150
|
+
function toJSON(message: AboutResponse_MapConfiguration_ImageViewWithZoomLevel): unknown;
|
|
151
|
+
function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ImageViewWithZoomLevel>, I>>(base?: I): AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
|
|
152
|
+
function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ImageViewWithZoomLevel>, I>>(object: I): AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
|
|
153
|
+
}
|
|
154
|
+
export declare namespace AboutResponse_MapConfiguration_ParcelView {
|
|
155
|
+
function encode(message: AboutResponse_MapConfiguration_ParcelView, writer?: _m0.Writer): _m0.Writer;
|
|
156
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MapConfiguration_ParcelView;
|
|
157
|
+
function fromJSON(object: any): AboutResponse_MapConfiguration_ParcelView;
|
|
158
|
+
function toJSON(message: AboutResponse_MapConfiguration_ParcelView): unknown;
|
|
159
|
+
function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ParcelView>, I>>(base?: I): AboutResponse_MapConfiguration_ParcelView;
|
|
160
|
+
function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ParcelView>, I>>(object: I): AboutResponse_MapConfiguration_ParcelView;
|
|
85
161
|
}
|
|
86
162
|
export declare namespace AboutResponse_SkyboxConfiguration {
|
|
87
163
|
function encode(message: AboutResponse_SkyboxConfiguration, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -3,9 +3,11 @@ 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.AboutResponse_BffInfo = exports.AboutResponse_CommsInfo = exports.AboutResponse_LambdasInfo = exports.AboutResponse_ContentInfo = exports.AboutResponse_AboutConfiguration = exports.AboutResponse_SkyboxConfiguration = exports.AboutResponse_MinimapConfiguration = exports.AboutResponse = exports.protobufPackage = void 0;
|
|
6
|
+
exports.AboutResponse_BffInfo = exports.AboutResponse_CommsInfo = exports.AboutResponse_LambdasInfo = exports.AboutResponse_ContentInfo = exports.AboutResponse_AboutConfiguration = exports.AboutResponse_SkyboxConfiguration = exports.AboutResponse_MapConfiguration_ParcelView = exports.AboutResponse_MapConfiguration_ImageViewWithZoomLevel = exports.AboutResponse_MapConfiguration = exports.AboutResponse_MinimapConfiguration = exports.AboutResponse = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const border_rect_gen_1 = require("../common/border_rect.gen");
|
|
10
|
+
const vectors_gen_1 = require("../common/vectors.gen");
|
|
9
11
|
exports.protobufPackage = "decentraland.realm";
|
|
10
12
|
function createBaseAboutResponse() {
|
|
11
13
|
return {
|
|
@@ -164,27 +166,85 @@ var AboutResponse;
|
|
|
164
166
|
AboutResponse.fromPartial = fromPartial;
|
|
165
167
|
})(AboutResponse || (exports.AboutResponse = AboutResponse = {}));
|
|
166
168
|
function createBaseAboutResponse_MinimapConfiguration() {
|
|
167
|
-
return {
|
|
169
|
+
return {};
|
|
168
170
|
}
|
|
169
171
|
var AboutResponse_MinimapConfiguration;
|
|
170
172
|
(function (AboutResponse_MinimapConfiguration) {
|
|
173
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
174
|
+
return writer;
|
|
175
|
+
}
|
|
176
|
+
AboutResponse_MinimapConfiguration.encode = encode;
|
|
177
|
+
function decode(input, length) {
|
|
178
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
179
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
180
|
+
const message = createBaseAboutResponse_MinimapConfiguration();
|
|
181
|
+
while (reader.pos < end) {
|
|
182
|
+
const tag = reader.uint32();
|
|
183
|
+
switch (tag >>> 3) {
|
|
184
|
+
}
|
|
185
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
reader.skipType(tag & 7);
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
}
|
|
192
|
+
AboutResponse_MinimapConfiguration.decode = decode;
|
|
193
|
+
function fromJSON(_) {
|
|
194
|
+
return {};
|
|
195
|
+
}
|
|
196
|
+
AboutResponse_MinimapConfiguration.fromJSON = fromJSON;
|
|
197
|
+
function toJSON(_) {
|
|
198
|
+
const obj = {};
|
|
199
|
+
return obj;
|
|
200
|
+
}
|
|
201
|
+
AboutResponse_MinimapConfiguration.toJSON = toJSON;
|
|
202
|
+
function create(base) {
|
|
203
|
+
return AboutResponse_MinimapConfiguration.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
204
|
+
}
|
|
205
|
+
AboutResponse_MinimapConfiguration.create = create;
|
|
206
|
+
function fromPartial(_) {
|
|
207
|
+
const message = createBaseAboutResponse_MinimapConfiguration();
|
|
208
|
+
return message;
|
|
209
|
+
}
|
|
210
|
+
AboutResponse_MinimapConfiguration.fromPartial = fromPartial;
|
|
211
|
+
})(AboutResponse_MinimapConfiguration || (exports.AboutResponse_MinimapConfiguration = AboutResponse_MinimapConfiguration = {}));
|
|
212
|
+
function createBaseAboutResponse_MapConfiguration() {
|
|
213
|
+
return {
|
|
214
|
+
minimapEnabled: false,
|
|
215
|
+
sizes: [],
|
|
216
|
+
satelliteView: undefined,
|
|
217
|
+
parcelView: undefined,
|
|
218
|
+
thumbnailView: undefined,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
var AboutResponse_MapConfiguration;
|
|
222
|
+
(function (AboutResponse_MapConfiguration) {
|
|
171
223
|
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
172
|
-
if (message.
|
|
173
|
-
writer.uint32(8).bool(message.
|
|
224
|
+
if (message.minimapEnabled === true) {
|
|
225
|
+
writer.uint32(8).bool(message.minimapEnabled);
|
|
226
|
+
}
|
|
227
|
+
for (const v of message.sizes) {
|
|
228
|
+
border_rect_gen_1.BorderRect.encode(v, writer.uint32(18).fork()).ldelim();
|
|
229
|
+
}
|
|
230
|
+
if (message.satelliteView !== undefined) {
|
|
231
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.satelliteView, writer.uint32(42).fork())
|
|
232
|
+
.ldelim();
|
|
174
233
|
}
|
|
175
|
-
if (message.
|
|
176
|
-
writer.uint32(
|
|
234
|
+
if (message.parcelView !== undefined) {
|
|
235
|
+
AboutResponse_MapConfiguration_ParcelView.encode(message.parcelView, writer.uint32(50).fork()).ldelim();
|
|
177
236
|
}
|
|
178
|
-
if (message.
|
|
179
|
-
writer.uint32(
|
|
237
|
+
if (message.thumbnailView !== undefined) {
|
|
238
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.thumbnailView, writer.uint32(58).fork())
|
|
239
|
+
.ldelim();
|
|
180
240
|
}
|
|
181
241
|
return writer;
|
|
182
242
|
}
|
|
183
|
-
|
|
243
|
+
AboutResponse_MapConfiguration.encode = encode;
|
|
184
244
|
function decode(input, length) {
|
|
185
245
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
246
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
|
-
const message =
|
|
247
|
+
const message = createBaseAboutResponse_MapConfiguration();
|
|
188
248
|
while (reader.pos < end) {
|
|
189
249
|
const tag = reader.uint32();
|
|
190
250
|
switch (tag >>> 3) {
|
|
@@ -192,19 +252,154 @@ var AboutResponse_MinimapConfiguration;
|
|
|
192
252
|
if (tag !== 8) {
|
|
193
253
|
break;
|
|
194
254
|
}
|
|
195
|
-
message.
|
|
255
|
+
message.minimapEnabled = reader.bool();
|
|
256
|
+
continue;
|
|
257
|
+
case 2:
|
|
258
|
+
if (tag !== 18) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.sizes.push(border_rect_gen_1.BorderRect.decode(reader, reader.uint32()));
|
|
262
|
+
continue;
|
|
263
|
+
case 5:
|
|
264
|
+
if (tag !== 42) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.satelliteView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
|
|
268
|
+
continue;
|
|
269
|
+
case 6:
|
|
270
|
+
if (tag !== 50) {
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
message.parcelView = AboutResponse_MapConfiguration_ParcelView.decode(reader, reader.uint32());
|
|
274
|
+
continue;
|
|
275
|
+
case 7:
|
|
276
|
+
if (tag !== 58) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.thumbnailView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
reader.skipType(tag & 7);
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
}
|
|
289
|
+
AboutResponse_MapConfiguration.decode = decode;
|
|
290
|
+
function fromJSON(object) {
|
|
291
|
+
return {
|
|
292
|
+
minimapEnabled: isSet(object.minimapEnabled) ? Boolean(object.minimapEnabled) : false,
|
|
293
|
+
sizes: Array.isArray(object === null || object === void 0 ? void 0 : object.sizes) ? object.sizes.map((e) => border_rect_gen_1.BorderRect.fromJSON(e)) : [],
|
|
294
|
+
satelliteView: isSet(object.satelliteView)
|
|
295
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.satelliteView)
|
|
296
|
+
: undefined,
|
|
297
|
+
parcelView: isSet(object.parcelView)
|
|
298
|
+
? AboutResponse_MapConfiguration_ParcelView.fromJSON(object.parcelView)
|
|
299
|
+
: undefined,
|
|
300
|
+
thumbnailView: isSet(object.thumbnailView)
|
|
301
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.thumbnailView)
|
|
302
|
+
: undefined,
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
AboutResponse_MapConfiguration.fromJSON = fromJSON;
|
|
306
|
+
function toJSON(message) {
|
|
307
|
+
const obj = {};
|
|
308
|
+
message.minimapEnabled !== undefined && (obj.minimapEnabled = message.minimapEnabled);
|
|
309
|
+
if (message.sizes) {
|
|
310
|
+
obj.sizes = message.sizes.map((e) => e ? border_rect_gen_1.BorderRect.toJSON(e) : undefined);
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
obj.sizes = [];
|
|
314
|
+
}
|
|
315
|
+
message.satelliteView !== undefined &&
|
|
316
|
+
(obj.satelliteView = message.satelliteView
|
|
317
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.satelliteView)
|
|
318
|
+
: undefined);
|
|
319
|
+
message.parcelView !== undefined &&
|
|
320
|
+
(obj.parcelView = message.parcelView
|
|
321
|
+
? AboutResponse_MapConfiguration_ParcelView.toJSON(message.parcelView)
|
|
322
|
+
: undefined);
|
|
323
|
+
message.thumbnailView !== undefined &&
|
|
324
|
+
(obj.thumbnailView = message.thumbnailView
|
|
325
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.thumbnailView)
|
|
326
|
+
: undefined);
|
|
327
|
+
return obj;
|
|
328
|
+
}
|
|
329
|
+
AboutResponse_MapConfiguration.toJSON = toJSON;
|
|
330
|
+
function create(base) {
|
|
331
|
+
return AboutResponse_MapConfiguration.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
332
|
+
}
|
|
333
|
+
AboutResponse_MapConfiguration.create = create;
|
|
334
|
+
function fromPartial(object) {
|
|
335
|
+
var _a, _b;
|
|
336
|
+
const message = createBaseAboutResponse_MapConfiguration();
|
|
337
|
+
message.minimapEnabled = (_a = object.minimapEnabled) !== null && _a !== void 0 ? _a : false;
|
|
338
|
+
message.sizes = ((_b = object.sizes) === null || _b === void 0 ? void 0 : _b.map((e) => border_rect_gen_1.BorderRect.fromPartial(e))) || [];
|
|
339
|
+
message.satelliteView = (object.satelliteView !== undefined && object.satelliteView !== null)
|
|
340
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.satelliteView)
|
|
341
|
+
: undefined;
|
|
342
|
+
message.parcelView = (object.parcelView !== undefined && object.parcelView !== null)
|
|
343
|
+
? AboutResponse_MapConfiguration_ParcelView.fromPartial(object.parcelView)
|
|
344
|
+
: undefined;
|
|
345
|
+
message.thumbnailView = (object.thumbnailView !== undefined && object.thumbnailView !== null)
|
|
346
|
+
? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.thumbnailView)
|
|
347
|
+
: undefined;
|
|
348
|
+
return message;
|
|
349
|
+
}
|
|
350
|
+
AboutResponse_MapConfiguration.fromPartial = fromPartial;
|
|
351
|
+
})(AboutResponse_MapConfiguration || (exports.AboutResponse_MapConfiguration = AboutResponse_MapConfiguration = {}));
|
|
352
|
+
function createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel() {
|
|
353
|
+
return { version: "", baseUrl: undefined, suffixUrl: undefined, topLeftOffset: undefined };
|
|
354
|
+
}
|
|
355
|
+
var AboutResponse_MapConfiguration_ImageViewWithZoomLevel;
|
|
356
|
+
(function (AboutResponse_MapConfiguration_ImageViewWithZoomLevel) {
|
|
357
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
358
|
+
if (message.version !== "") {
|
|
359
|
+
writer.uint32(10).string(message.version);
|
|
360
|
+
}
|
|
361
|
+
if (message.baseUrl !== undefined) {
|
|
362
|
+
writer.uint32(18).string(message.baseUrl);
|
|
363
|
+
}
|
|
364
|
+
if (message.suffixUrl !== undefined) {
|
|
365
|
+
writer.uint32(26).string(message.suffixUrl);
|
|
366
|
+
}
|
|
367
|
+
if (message.topLeftOffset !== undefined) {
|
|
368
|
+
vectors_gen_1.Vector2.encode(message.topLeftOffset, writer.uint32(34).fork()).ldelim();
|
|
369
|
+
}
|
|
370
|
+
return writer;
|
|
371
|
+
}
|
|
372
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode = encode;
|
|
373
|
+
function decode(input, length) {
|
|
374
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
375
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
376
|
+
const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
|
|
377
|
+
while (reader.pos < end) {
|
|
378
|
+
const tag = reader.uint32();
|
|
379
|
+
switch (tag >>> 3) {
|
|
380
|
+
case 1:
|
|
381
|
+
if (tag !== 10) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
message.version = reader.string();
|
|
196
385
|
continue;
|
|
197
386
|
case 2:
|
|
198
387
|
if (tag !== 18) {
|
|
199
388
|
break;
|
|
200
389
|
}
|
|
201
|
-
message.
|
|
390
|
+
message.baseUrl = reader.string();
|
|
202
391
|
continue;
|
|
203
392
|
case 3:
|
|
204
393
|
if (tag !== 26) {
|
|
205
394
|
break;
|
|
206
395
|
}
|
|
207
|
-
message.
|
|
396
|
+
message.suffixUrl = reader.string();
|
|
397
|
+
continue;
|
|
398
|
+
case 4:
|
|
399
|
+
if (tag !== 34) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.topLeftOffset = vectors_gen_1.Vector2.decode(reader, reader.uint32());
|
|
208
403
|
continue;
|
|
209
404
|
}
|
|
210
405
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -214,37 +409,113 @@ var AboutResponse_MinimapConfiguration;
|
|
|
214
409
|
}
|
|
215
410
|
return message;
|
|
216
411
|
}
|
|
217
|
-
|
|
412
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode = decode;
|
|
218
413
|
function fromJSON(object) {
|
|
219
414
|
return {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
415
|
+
version: isSet(object.version) ? String(object.version) : "",
|
|
416
|
+
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : undefined,
|
|
417
|
+
suffixUrl: isSet(object.suffixUrl) ? String(object.suffixUrl) : undefined,
|
|
418
|
+
topLeftOffset: isSet(object.topLeftOffset) ? vectors_gen_1.Vector2.fromJSON(object.topLeftOffset) : undefined,
|
|
223
419
|
};
|
|
224
420
|
}
|
|
225
|
-
|
|
421
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON = fromJSON;
|
|
226
422
|
function toJSON(message) {
|
|
227
423
|
const obj = {};
|
|
228
|
-
message.
|
|
229
|
-
message.
|
|
230
|
-
message.
|
|
424
|
+
message.version !== undefined && (obj.version = message.version);
|
|
425
|
+
message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
|
|
426
|
+
message.suffixUrl !== undefined && (obj.suffixUrl = message.suffixUrl);
|
|
427
|
+
message.topLeftOffset !== undefined &&
|
|
428
|
+
(obj.topLeftOffset = message.topLeftOffset ? vectors_gen_1.Vector2.toJSON(message.topLeftOffset) : undefined);
|
|
231
429
|
return obj;
|
|
232
430
|
}
|
|
233
|
-
|
|
431
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON = toJSON;
|
|
234
432
|
function create(base) {
|
|
235
|
-
return
|
|
433
|
+
return AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
236
434
|
}
|
|
237
|
-
|
|
435
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.create = create;
|
|
238
436
|
function fromPartial(object) {
|
|
239
437
|
var _a, _b, _c;
|
|
240
|
-
const message =
|
|
241
|
-
message.
|
|
242
|
-
message.
|
|
243
|
-
message.
|
|
438
|
+
const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
|
|
439
|
+
message.version = (_a = object.version) !== null && _a !== void 0 ? _a : "";
|
|
440
|
+
message.baseUrl = (_b = object.baseUrl) !== null && _b !== void 0 ? _b : undefined;
|
|
441
|
+
message.suffixUrl = (_c = object.suffixUrl) !== null && _c !== void 0 ? _c : undefined;
|
|
442
|
+
message.topLeftOffset = (object.topLeftOffset !== undefined && object.topLeftOffset !== null)
|
|
443
|
+
? vectors_gen_1.Vector2.fromPartial(object.topLeftOffset)
|
|
444
|
+
: undefined;
|
|
244
445
|
return message;
|
|
245
446
|
}
|
|
246
|
-
|
|
247
|
-
})(
|
|
447
|
+
AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial = fromPartial;
|
|
448
|
+
})(AboutResponse_MapConfiguration_ImageViewWithZoomLevel || (exports.AboutResponse_MapConfiguration_ImageViewWithZoomLevel = AboutResponse_MapConfiguration_ImageViewWithZoomLevel = {}));
|
|
449
|
+
function createBaseAboutResponse_MapConfiguration_ParcelView() {
|
|
450
|
+
return { version: "", imageUrl: undefined };
|
|
451
|
+
}
|
|
452
|
+
var AboutResponse_MapConfiguration_ParcelView;
|
|
453
|
+
(function (AboutResponse_MapConfiguration_ParcelView) {
|
|
454
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
455
|
+
if (message.version !== "") {
|
|
456
|
+
writer.uint32(10).string(message.version);
|
|
457
|
+
}
|
|
458
|
+
if (message.imageUrl !== undefined) {
|
|
459
|
+
writer.uint32(18).string(message.imageUrl);
|
|
460
|
+
}
|
|
461
|
+
return writer;
|
|
462
|
+
}
|
|
463
|
+
AboutResponse_MapConfiguration_ParcelView.encode = encode;
|
|
464
|
+
function decode(input, length) {
|
|
465
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
466
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
467
|
+
const message = createBaseAboutResponse_MapConfiguration_ParcelView();
|
|
468
|
+
while (reader.pos < end) {
|
|
469
|
+
const tag = reader.uint32();
|
|
470
|
+
switch (tag >>> 3) {
|
|
471
|
+
case 1:
|
|
472
|
+
if (tag !== 10) {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
message.version = reader.string();
|
|
476
|
+
continue;
|
|
477
|
+
case 2:
|
|
478
|
+
if (tag !== 18) {
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
message.imageUrl = reader.string();
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
reader.skipType(tag & 7);
|
|
488
|
+
}
|
|
489
|
+
return message;
|
|
490
|
+
}
|
|
491
|
+
AboutResponse_MapConfiguration_ParcelView.decode = decode;
|
|
492
|
+
function fromJSON(object) {
|
|
493
|
+
return {
|
|
494
|
+
version: isSet(object.version) ? String(object.version) : "",
|
|
495
|
+
imageUrl: isSet(object.imageUrl) ? String(object.imageUrl) : undefined,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
AboutResponse_MapConfiguration_ParcelView.fromJSON = fromJSON;
|
|
499
|
+
function toJSON(message) {
|
|
500
|
+
const obj = {};
|
|
501
|
+
message.version !== undefined && (obj.version = message.version);
|
|
502
|
+
message.imageUrl !== undefined && (obj.imageUrl = message.imageUrl);
|
|
503
|
+
return obj;
|
|
504
|
+
}
|
|
505
|
+
AboutResponse_MapConfiguration_ParcelView.toJSON = toJSON;
|
|
506
|
+
function create(base) {
|
|
507
|
+
return AboutResponse_MapConfiguration_ParcelView.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
508
|
+
}
|
|
509
|
+
AboutResponse_MapConfiguration_ParcelView.create = create;
|
|
510
|
+
function fromPartial(object) {
|
|
511
|
+
var _a, _b;
|
|
512
|
+
const message = createBaseAboutResponse_MapConfiguration_ParcelView();
|
|
513
|
+
message.version = (_a = object.version) !== null && _a !== void 0 ? _a : "";
|
|
514
|
+
message.imageUrl = (_b = object.imageUrl) !== null && _b !== void 0 ? _b : undefined;
|
|
515
|
+
return message;
|
|
516
|
+
}
|
|
517
|
+
AboutResponse_MapConfiguration_ParcelView.fromPartial = fromPartial;
|
|
518
|
+
})(AboutResponse_MapConfiguration_ParcelView || (exports.AboutResponse_MapConfiguration_ParcelView = AboutResponse_MapConfiguration_ParcelView = {}));
|
|
248
519
|
function createBaseAboutResponse_SkyboxConfiguration() {
|
|
249
520
|
return { fixedHour: undefined };
|
|
250
521
|
}
|
|
@@ -307,9 +578,9 @@ function createBaseAboutResponse_AboutConfiguration() {
|
|
|
307
578
|
networkId: 0,
|
|
308
579
|
globalScenesUrn: [],
|
|
309
580
|
scenesUrn: [],
|
|
310
|
-
minimap: undefined,
|
|
311
581
|
skybox: undefined,
|
|
312
582
|
cityLoaderContentServer: undefined,
|
|
583
|
+
map: undefined,
|
|
313
584
|
};
|
|
314
585
|
}
|
|
315
586
|
var AboutResponse_AboutConfiguration;
|
|
@@ -327,15 +598,15 @@ var AboutResponse_AboutConfiguration;
|
|
|
327
598
|
for (const v of message.scenesUrn) {
|
|
328
599
|
writer.uint32(34).string(v);
|
|
329
600
|
}
|
|
330
|
-
if (message.minimap !== undefined) {
|
|
331
|
-
AboutResponse_MinimapConfiguration.encode(message.minimap, writer.uint32(42).fork()).ldelim();
|
|
332
|
-
}
|
|
333
601
|
if (message.skybox !== undefined) {
|
|
334
602
|
AboutResponse_SkyboxConfiguration.encode(message.skybox, writer.uint32(50).fork()).ldelim();
|
|
335
603
|
}
|
|
336
604
|
if (message.cityLoaderContentServer !== undefined) {
|
|
337
605
|
writer.uint32(58).string(message.cityLoaderContentServer);
|
|
338
606
|
}
|
|
607
|
+
if (message.map !== undefined) {
|
|
608
|
+
AboutResponse_MapConfiguration.encode(message.map, writer.uint32(66).fork()).ldelim();
|
|
609
|
+
}
|
|
339
610
|
return writer;
|
|
340
611
|
}
|
|
341
612
|
AboutResponse_AboutConfiguration.encode = encode;
|
|
@@ -370,12 +641,6 @@ var AboutResponse_AboutConfiguration;
|
|
|
370
641
|
}
|
|
371
642
|
message.scenesUrn.push(reader.string());
|
|
372
643
|
continue;
|
|
373
|
-
case 5:
|
|
374
|
-
if (tag !== 42) {
|
|
375
|
-
break;
|
|
376
|
-
}
|
|
377
|
-
message.minimap = AboutResponse_MinimapConfiguration.decode(reader, reader.uint32());
|
|
378
|
-
continue;
|
|
379
644
|
case 6:
|
|
380
645
|
if (tag !== 50) {
|
|
381
646
|
break;
|
|
@@ -388,6 +653,12 @@ var AboutResponse_AboutConfiguration;
|
|
|
388
653
|
}
|
|
389
654
|
message.cityLoaderContentServer = reader.string();
|
|
390
655
|
continue;
|
|
656
|
+
case 8:
|
|
657
|
+
if (tag !== 66) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.map = AboutResponse_MapConfiguration.decode(reader, reader.uint32());
|
|
661
|
+
continue;
|
|
391
662
|
}
|
|
392
663
|
if ((tag & 7) === 4 || tag === 0) {
|
|
393
664
|
break;
|
|
@@ -403,11 +674,11 @@ var AboutResponse_AboutConfiguration;
|
|
|
403
674
|
networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
|
|
404
675
|
globalScenesUrn: Array.isArray(object === null || object === void 0 ? void 0 : object.globalScenesUrn) ? object.globalScenesUrn.map((e) => String(e)) : [],
|
|
405
676
|
scenesUrn: Array.isArray(object === null || object === void 0 ? void 0 : object.scenesUrn) ? object.scenesUrn.map((e) => String(e)) : [],
|
|
406
|
-
minimap: isSet(object.minimap) ? AboutResponse_MinimapConfiguration.fromJSON(object.minimap) : undefined,
|
|
407
677
|
skybox: isSet(object.skybox) ? AboutResponse_SkyboxConfiguration.fromJSON(object.skybox) : undefined,
|
|
408
678
|
cityLoaderContentServer: isSet(object.cityLoaderContentServer)
|
|
409
679
|
? String(object.cityLoaderContentServer)
|
|
410
680
|
: undefined,
|
|
681
|
+
map: isSet(object.map) ? AboutResponse_MapConfiguration.fromJSON(object.map) : undefined,
|
|
411
682
|
};
|
|
412
683
|
}
|
|
413
684
|
AboutResponse_AboutConfiguration.fromJSON = fromJSON;
|
|
@@ -427,11 +698,11 @@ var AboutResponse_AboutConfiguration;
|
|
|
427
698
|
else {
|
|
428
699
|
obj.scenesUrn = [];
|
|
429
700
|
}
|
|
430
|
-
message.minimap !== undefined &&
|
|
431
|
-
(obj.minimap = message.minimap ? AboutResponse_MinimapConfiguration.toJSON(message.minimap) : undefined);
|
|
432
701
|
message.skybox !== undefined &&
|
|
433
702
|
(obj.skybox = message.skybox ? AboutResponse_SkyboxConfiguration.toJSON(message.skybox) : undefined);
|
|
434
703
|
message.cityLoaderContentServer !== undefined && (obj.cityLoaderContentServer = message.cityLoaderContentServer);
|
|
704
|
+
message.map !== undefined &&
|
|
705
|
+
(obj.map = message.map ? AboutResponse_MapConfiguration.toJSON(message.map) : undefined);
|
|
435
706
|
return obj;
|
|
436
707
|
}
|
|
437
708
|
AboutResponse_AboutConfiguration.toJSON = toJSON;
|
|
@@ -446,13 +717,13 @@ var AboutResponse_AboutConfiguration;
|
|
|
446
717
|
message.networkId = (_b = object.networkId) !== null && _b !== void 0 ? _b : 0;
|
|
447
718
|
message.globalScenesUrn = ((_c = object.globalScenesUrn) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
448
719
|
message.scenesUrn = ((_d = object.scenesUrn) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
449
|
-
message.minimap = (object.minimap !== undefined && object.minimap !== null)
|
|
450
|
-
? AboutResponse_MinimapConfiguration.fromPartial(object.minimap)
|
|
451
|
-
: undefined;
|
|
452
720
|
message.skybox = (object.skybox !== undefined && object.skybox !== null)
|
|
453
721
|
? AboutResponse_SkyboxConfiguration.fromPartial(object.skybox)
|
|
454
722
|
: undefined;
|
|
455
723
|
message.cityLoaderContentServer = (_e = object.cityLoaderContentServer) !== null && _e !== void 0 ? _e : undefined;
|
|
724
|
+
message.map = (object.map !== undefined && object.map !== null)
|
|
725
|
+
? AboutResponse_MapConfiguration.fromPartial(object.map)
|
|
726
|
+
: undefined;
|
|
456
727
|
return message;
|
|
457
728
|
}
|
|
458
729
|
AboutResponse_AboutConfiguration.fromPartial = fromPartial;
|