@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.
Files changed (58) hide show
  1. package/out-js/decentraland/realm/about.gen.d.ts +84 -8
  2. package/out-js/decentraland/realm/about.gen.js +317 -46
  3. package/out-js/decentraland/realm/about.gen.js.map +1 -1
  4. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  5. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  6. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  8. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  9. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  11. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  12. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  14. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  15. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  16. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  17. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  18. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  19. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  20. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  21. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  23. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  24. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  26. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  27. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  29. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  30. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +35 -0
  32. package/out-js/decentraland/sdk/components/ui_transform.gen.js +188 -2
  33. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  34. package/out-ts/decentraland/realm/about.gen.ts +401 -51
  35. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  36. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  37. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  38. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  39. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  40. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  41. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  42. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  43. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  44. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +212 -1
  45. package/package.json +2 -2
  46. package/proto/decentraland/realm/about.proto +64 -4
  47. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  48. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  49. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  50. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  51. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  52. package/proto/decentraland/sdk/components/material.proto +11 -0
  53. package/proto/decentraland/sdk/components/mesh_collider.proto +8 -1
  54. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  55. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  56. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  57. package/proto/decentraland/sdk/components/ui_transform.proto +21 -0
  58. package/public/sdk-components.proto +2 -0
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
+ import { BorderRect } from "../common/border_rect.gen";
4
+ import { Vector2 } from "../common/vectors.gen";
3
5
 
4
6
  export const protobufPackage = "decentraland.realm";
5
7
 
@@ -13,10 +15,63 @@ export interface AboutResponse {
13
15
  acceptingUsers: boolean;
14
16
  }
15
17
 
18
+ /** @deprecated This message was never used but it's still here for compatibility reasons */
16
19
  export interface AboutResponse_MinimapConfiguration {
17
- enabled: boolean;
18
- dataImage?: string | undefined;
19
- estateImage?: string | undefined;
20
+ }
21
+
22
+ export interface AboutResponse_MapConfiguration {
23
+ /** whether the minimap should be rendered */
24
+ minimapEnabled: boolean;
25
+ /**
26
+ * the union of all rects here represents the places where that MAY have scenes
27
+ * - all the other parcels are considered as empty, up to the explorer to decide if they're walkable or not
28
+ * - the contained square is determined by points:
29
+ * - top-left with minX, maxY
30
+ * - bottom-left with minX, minY
31
+ * - top-right with maxX, maxY
32
+ * - bottom-right with maxX, maxY
33
+ * Note: the coordinate system used is the Cartesian coordinate system, where the y-axis increases upwards,
34
+ * not the screen coordinate system, where the origin is at the top-left corner and the y-axis increases downwards.
35
+ */
36
+ sizes: BorderRect[];
37
+ satelliteView?: AboutResponse_MapConfiguration_ImageViewWithZoomLevel | undefined;
38
+ parcelView?: AboutResponse_MapConfiguration_ParcelView | undefined;
39
+ thumbnailView?: AboutResponse_MapConfiguration_ImageViewWithZoomLevel | undefined;
40
+ }
41
+
42
+ /**
43
+ * ImageViewWithZoomLevel uses a description to render the minimap
44
+ * using different images with different zoom levels.
45
+ * When `version='v1'`:
46
+ * - The description allows the explorer to form the URL:
47
+ * url(x,y,zoom_level) = `{base_url}/{zoom_level}/{x},{y}{suffix_url}`
48
+ * - The given URL is for an image where the pixel `0,0` for the image `0,0` always
49
+ * points to the top-left contained square.
50
+ * - The `zoom_level=1` is to a ratio of 3.2 pixel per parcel, this means in a 32x32 pixel square
51
+ * you get 10x10 parcels.
52
+ * - Each increase of zoom level, double the ratio pixel per parcels.
53
+ */
54
+ export interface AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
55
+ /** options: ['v1'] */
56
+ version: string;
57
+ baseUrl?: string | undefined;
58
+ suffixUrl?: string | undefined;
59
+ topLeftOffset?: Vector2 | undefined;
60
+ }
61
+
62
+ /**
63
+ * ParcelView uses a description to render the minimap
64
+ * using a image where each pixel is a parcel and each pixel
65
+ * has the metadata to make a representation (using a shader or image-generation client-side)
66
+ * When `version='v1'`:
67
+ * - The pixel `0,0` is the top-left contained square
68
+ * - The image has to be at least of contained square pixels size
69
+ * - 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
70
+ */
71
+ export interface AboutResponse_MapConfiguration_ParcelView {
72
+ /** options: `v1` */
73
+ version: string;
74
+ imageUrl?: string | undefined;
20
75
  }
21
76
 
22
77
  export interface AboutResponse_SkyboxConfiguration {
@@ -29,7 +84,6 @@ export interface AboutResponse_AboutConfiguration {
29
84
  networkId: number;
30
85
  globalScenesUrn: string[];
31
86
  scenesUrn: string[];
32
- minimap?: AboutResponse_MinimapConfiguration | undefined;
33
87
  skybox?:
34
88
  | AboutResponse_SkyboxConfiguration
35
89
  | undefined;
@@ -39,6 +93,7 @@ export interface AboutResponse_AboutConfiguration {
39
93
  * if == "" then the city_loader will be disabled and the scenes_urn will be used to load the world
40
94
  */
41
95
  cityLoaderContentServer?: string | undefined;
96
+ map?: AboutResponse_MapConfiguration | undefined;
42
97
  }
43
98
 
44
99
  export interface AboutResponse_ContentInfo {
@@ -245,30 +300,92 @@ export namespace AboutResponse {
245
300
  }
246
301
 
247
302
  function createBaseAboutResponse_MinimapConfiguration(): AboutResponse_MinimapConfiguration {
248
- return { enabled: false, dataImage: undefined, estateImage: undefined };
303
+ return {};
249
304
  }
250
305
 
251
306
  export namespace AboutResponse_MinimapConfiguration {
307
+ export function encode(_: AboutResponse_MinimapConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
308
+ return writer;
309
+ }
310
+
311
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MinimapConfiguration {
312
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
313
+ let end = length === undefined ? reader.len : reader.pos + length;
314
+ const message = createBaseAboutResponse_MinimapConfiguration();
315
+ while (reader.pos < end) {
316
+ const tag = reader.uint32();
317
+ switch (tag >>> 3) {
318
+ }
319
+ if ((tag & 7) === 4 || tag === 0) {
320
+ break;
321
+ }
322
+ reader.skipType(tag & 7);
323
+ }
324
+ return message;
325
+ }
326
+
327
+ export function fromJSON(_: any): AboutResponse_MinimapConfiguration {
328
+ return {};
329
+ }
330
+
331
+ export function toJSON(_: AboutResponse_MinimapConfiguration): unknown {
332
+ const obj: any = {};
333
+ return obj;
334
+ }
335
+
336
+ export function create<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
337
+ base?: I,
338
+ ): AboutResponse_MinimapConfiguration {
339
+ return AboutResponse_MinimapConfiguration.fromPartial(base ?? {});
340
+ }
341
+
342
+ export function fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
343
+ _: I,
344
+ ): AboutResponse_MinimapConfiguration {
345
+ const message = createBaseAboutResponse_MinimapConfiguration();
346
+ return message;
347
+ }
348
+ }
349
+
350
+ function createBaseAboutResponse_MapConfiguration(): AboutResponse_MapConfiguration {
351
+ return {
352
+ minimapEnabled: false,
353
+ sizes: [],
354
+ satelliteView: undefined,
355
+ parcelView: undefined,
356
+ thumbnailView: undefined,
357
+ };
358
+ }
359
+
360
+ export namespace AboutResponse_MapConfiguration {
252
361
  export function encode(
253
- message: AboutResponse_MinimapConfiguration,
362
+ message: AboutResponse_MapConfiguration,
254
363
  writer: _m0.Writer = _m0.Writer.create(),
255
364
  ): _m0.Writer {
256
- if (message.enabled === true) {
257
- writer.uint32(8).bool(message.enabled);
365
+ if (message.minimapEnabled === true) {
366
+ writer.uint32(8).bool(message.minimapEnabled);
367
+ }
368
+ for (const v of message.sizes) {
369
+ BorderRect.encode(v!, writer.uint32(18).fork()).ldelim();
370
+ }
371
+ if (message.satelliteView !== undefined) {
372
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.satelliteView, writer.uint32(42).fork())
373
+ .ldelim();
258
374
  }
259
- if (message.dataImage !== undefined) {
260
- writer.uint32(18).string(message.dataImage);
375
+ if (message.parcelView !== undefined) {
376
+ AboutResponse_MapConfiguration_ParcelView.encode(message.parcelView, writer.uint32(50).fork()).ldelim();
261
377
  }
262
- if (message.estateImage !== undefined) {
263
- writer.uint32(26).string(message.estateImage);
378
+ if (message.thumbnailView !== undefined) {
379
+ AboutResponse_MapConfiguration_ImageViewWithZoomLevel.encode(message.thumbnailView, writer.uint32(58).fork())
380
+ .ldelim();
264
381
  }
265
382
  return writer;
266
383
  }
267
384
 
268
- export function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MinimapConfiguration {
385
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MapConfiguration {
269
386
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
270
387
  let end = length === undefined ? reader.len : reader.pos + length;
271
- const message = createBaseAboutResponse_MinimapConfiguration();
388
+ const message = createBaseAboutResponse_MapConfiguration();
272
389
  while (reader.pos < end) {
273
390
  const tag = reader.uint32();
274
391
  switch (tag >>> 3) {
@@ -277,21 +394,170 @@ export namespace AboutResponse_MinimapConfiguration {
277
394
  break;
278
395
  }
279
396
 
280
- message.enabled = reader.bool();
397
+ message.minimapEnabled = reader.bool();
398
+ continue;
399
+ case 2:
400
+ if (tag !== 18) {
401
+ break;
402
+ }
403
+
404
+ message.sizes.push(BorderRect.decode(reader, reader.uint32()));
405
+ continue;
406
+ case 5:
407
+ if (tag !== 42) {
408
+ break;
409
+ }
410
+
411
+ message.satelliteView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
412
+ continue;
413
+ case 6:
414
+ if (tag !== 50) {
415
+ break;
416
+ }
417
+
418
+ message.parcelView = AboutResponse_MapConfiguration_ParcelView.decode(reader, reader.uint32());
419
+ continue;
420
+ case 7:
421
+ if (tag !== 58) {
422
+ break;
423
+ }
424
+
425
+ message.thumbnailView = AboutResponse_MapConfiguration_ImageViewWithZoomLevel.decode(reader, reader.uint32());
426
+ continue;
427
+ }
428
+ if ((tag & 7) === 4 || tag === 0) {
429
+ break;
430
+ }
431
+ reader.skipType(tag & 7);
432
+ }
433
+ return message;
434
+ }
435
+
436
+ export function fromJSON(object: any): AboutResponse_MapConfiguration {
437
+ return {
438
+ minimapEnabled: isSet(object.minimapEnabled) ? Boolean(object.minimapEnabled) : false,
439
+ sizes: Array.isArray(object?.sizes) ? object.sizes.map((e: any) => BorderRect.fromJSON(e)) : [],
440
+ satelliteView: isSet(object.satelliteView)
441
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.satelliteView)
442
+ : undefined,
443
+ parcelView: isSet(object.parcelView)
444
+ ? AboutResponse_MapConfiguration_ParcelView.fromJSON(object.parcelView)
445
+ : undefined,
446
+ thumbnailView: isSet(object.thumbnailView)
447
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromJSON(object.thumbnailView)
448
+ : undefined,
449
+ };
450
+ }
451
+
452
+ export function toJSON(message: AboutResponse_MapConfiguration): unknown {
453
+ const obj: any = {};
454
+ message.minimapEnabled !== undefined && (obj.minimapEnabled = message.minimapEnabled);
455
+ if (message.sizes) {
456
+ obj.sizes = message.sizes.map((e) => e ? BorderRect.toJSON(e) : undefined);
457
+ } else {
458
+ obj.sizes = [];
459
+ }
460
+ message.satelliteView !== undefined &&
461
+ (obj.satelliteView = message.satelliteView
462
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.satelliteView)
463
+ : undefined);
464
+ message.parcelView !== undefined &&
465
+ (obj.parcelView = message.parcelView
466
+ ? AboutResponse_MapConfiguration_ParcelView.toJSON(message.parcelView)
467
+ : undefined);
468
+ message.thumbnailView !== undefined &&
469
+ (obj.thumbnailView = message.thumbnailView
470
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.toJSON(message.thumbnailView)
471
+ : undefined);
472
+ return obj;
473
+ }
474
+
475
+ export function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration>, I>>(
476
+ base?: I,
477
+ ): AboutResponse_MapConfiguration {
478
+ return AboutResponse_MapConfiguration.fromPartial(base ?? {});
479
+ }
480
+
481
+ export function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration>, I>>(
482
+ object: I,
483
+ ): AboutResponse_MapConfiguration {
484
+ const message = createBaseAboutResponse_MapConfiguration();
485
+ message.minimapEnabled = object.minimapEnabled ?? false;
486
+ message.sizes = object.sizes?.map((e) => BorderRect.fromPartial(e)) || [];
487
+ message.satelliteView = (object.satelliteView !== undefined && object.satelliteView !== null)
488
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.satelliteView)
489
+ : undefined;
490
+ message.parcelView = (object.parcelView !== undefined && object.parcelView !== null)
491
+ ? AboutResponse_MapConfiguration_ParcelView.fromPartial(object.parcelView)
492
+ : undefined;
493
+ message.thumbnailView = (object.thumbnailView !== undefined && object.thumbnailView !== null)
494
+ ? AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(object.thumbnailView)
495
+ : undefined;
496
+ return message;
497
+ }
498
+ }
499
+
500
+ function createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel(): AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
501
+ return { version: "", baseUrl: undefined, suffixUrl: undefined, topLeftOffset: undefined };
502
+ }
503
+
504
+ export namespace AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
505
+ export function encode(
506
+ message: AboutResponse_MapConfiguration_ImageViewWithZoomLevel,
507
+ writer: _m0.Writer = _m0.Writer.create(),
508
+ ): _m0.Writer {
509
+ if (message.version !== "") {
510
+ writer.uint32(10).string(message.version);
511
+ }
512
+ if (message.baseUrl !== undefined) {
513
+ writer.uint32(18).string(message.baseUrl);
514
+ }
515
+ if (message.suffixUrl !== undefined) {
516
+ writer.uint32(26).string(message.suffixUrl);
517
+ }
518
+ if (message.topLeftOffset !== undefined) {
519
+ Vector2.encode(message.topLeftOffset, writer.uint32(34).fork()).ldelim();
520
+ }
521
+ return writer;
522
+ }
523
+
524
+ export function decode(
525
+ input: _m0.Reader | Uint8Array,
526
+ length?: number,
527
+ ): AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
528
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
529
+ let end = length === undefined ? reader.len : reader.pos + length;
530
+ const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
531
+ while (reader.pos < end) {
532
+ const tag = reader.uint32();
533
+ switch (tag >>> 3) {
534
+ case 1:
535
+ if (tag !== 10) {
536
+ break;
537
+ }
538
+
539
+ message.version = reader.string();
281
540
  continue;
282
541
  case 2:
283
542
  if (tag !== 18) {
284
543
  break;
285
544
  }
286
545
 
287
- message.dataImage = reader.string();
546
+ message.baseUrl = reader.string();
288
547
  continue;
289
548
  case 3:
290
549
  if (tag !== 26) {
291
550
  break;
292
551
  }
293
552
 
294
- message.estateImage = reader.string();
553
+ message.suffixUrl = reader.string();
554
+ continue;
555
+ case 4:
556
+ if (tag !== 34) {
557
+ break;
558
+ }
559
+
560
+ message.topLeftOffset = Vector2.decode(reader, reader.uint32());
295
561
  continue;
296
562
  }
297
563
  if ((tag & 7) === 4 || tag === 0) {
@@ -302,35 +568,119 @@ export namespace AboutResponse_MinimapConfiguration {
302
568
  return message;
303
569
  }
304
570
 
305
- export function fromJSON(object: any): AboutResponse_MinimapConfiguration {
571
+ export function fromJSON(object: any): AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
306
572
  return {
307
- enabled: isSet(object.enabled) ? Boolean(object.enabled) : false,
308
- dataImage: isSet(object.dataImage) ? String(object.dataImage) : undefined,
309
- estateImage: isSet(object.estateImage) ? String(object.estateImage) : undefined,
573
+ version: isSet(object.version) ? String(object.version) : "",
574
+ baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : undefined,
575
+ suffixUrl: isSet(object.suffixUrl) ? String(object.suffixUrl) : undefined,
576
+ topLeftOffset: isSet(object.topLeftOffset) ? Vector2.fromJSON(object.topLeftOffset) : undefined,
310
577
  };
311
578
  }
312
579
 
313
- export function toJSON(message: AboutResponse_MinimapConfiguration): unknown {
580
+ export function toJSON(message: AboutResponse_MapConfiguration_ImageViewWithZoomLevel): unknown {
314
581
  const obj: any = {};
315
- message.enabled !== undefined && (obj.enabled = message.enabled);
316
- message.dataImage !== undefined && (obj.dataImage = message.dataImage);
317
- message.estateImage !== undefined && (obj.estateImage = message.estateImage);
582
+ message.version !== undefined && (obj.version = message.version);
583
+ message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
584
+ message.suffixUrl !== undefined && (obj.suffixUrl = message.suffixUrl);
585
+ message.topLeftOffset !== undefined &&
586
+ (obj.topLeftOffset = message.topLeftOffset ? Vector2.toJSON(message.topLeftOffset) : undefined);
318
587
  return obj;
319
588
  }
320
589
 
321
- export function create<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
590
+ export function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ImageViewWithZoomLevel>, I>>(
322
591
  base?: I,
323
- ): AboutResponse_MinimapConfiguration {
324
- return AboutResponse_MinimapConfiguration.fromPartial(base ?? {});
592
+ ): AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
593
+ return AboutResponse_MapConfiguration_ImageViewWithZoomLevel.fromPartial(base ?? {});
325
594
  }
326
595
 
327
- export function fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
596
+ export function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ImageViewWithZoomLevel>, I>>(
328
597
  object: I,
329
- ): AboutResponse_MinimapConfiguration {
330
- const message = createBaseAboutResponse_MinimapConfiguration();
331
- message.enabled = object.enabled ?? false;
332
- message.dataImage = object.dataImage ?? undefined;
333
- message.estateImage = object.estateImage ?? undefined;
598
+ ): AboutResponse_MapConfiguration_ImageViewWithZoomLevel {
599
+ const message = createBaseAboutResponse_MapConfiguration_ImageViewWithZoomLevel();
600
+ message.version = object.version ?? "";
601
+ message.baseUrl = object.baseUrl ?? undefined;
602
+ message.suffixUrl = object.suffixUrl ?? undefined;
603
+ message.topLeftOffset = (object.topLeftOffset !== undefined && object.topLeftOffset !== null)
604
+ ? Vector2.fromPartial(object.topLeftOffset)
605
+ : undefined;
606
+ return message;
607
+ }
608
+ }
609
+
610
+ function createBaseAboutResponse_MapConfiguration_ParcelView(): AboutResponse_MapConfiguration_ParcelView {
611
+ return { version: "", imageUrl: undefined };
612
+ }
613
+
614
+ export namespace AboutResponse_MapConfiguration_ParcelView {
615
+ export function encode(
616
+ message: AboutResponse_MapConfiguration_ParcelView,
617
+ writer: _m0.Writer = _m0.Writer.create(),
618
+ ): _m0.Writer {
619
+ if (message.version !== "") {
620
+ writer.uint32(10).string(message.version);
621
+ }
622
+ if (message.imageUrl !== undefined) {
623
+ writer.uint32(18).string(message.imageUrl);
624
+ }
625
+ return writer;
626
+ }
627
+
628
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MapConfiguration_ParcelView {
629
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
630
+ let end = length === undefined ? reader.len : reader.pos + length;
631
+ const message = createBaseAboutResponse_MapConfiguration_ParcelView();
632
+ while (reader.pos < end) {
633
+ const tag = reader.uint32();
634
+ switch (tag >>> 3) {
635
+ case 1:
636
+ if (tag !== 10) {
637
+ break;
638
+ }
639
+
640
+ message.version = reader.string();
641
+ continue;
642
+ case 2:
643
+ if (tag !== 18) {
644
+ break;
645
+ }
646
+
647
+ message.imageUrl = reader.string();
648
+ continue;
649
+ }
650
+ if ((tag & 7) === 4 || tag === 0) {
651
+ break;
652
+ }
653
+ reader.skipType(tag & 7);
654
+ }
655
+ return message;
656
+ }
657
+
658
+ export function fromJSON(object: any): AboutResponse_MapConfiguration_ParcelView {
659
+ return {
660
+ version: isSet(object.version) ? String(object.version) : "",
661
+ imageUrl: isSet(object.imageUrl) ? String(object.imageUrl) : undefined,
662
+ };
663
+ }
664
+
665
+ export function toJSON(message: AboutResponse_MapConfiguration_ParcelView): unknown {
666
+ const obj: any = {};
667
+ message.version !== undefined && (obj.version = message.version);
668
+ message.imageUrl !== undefined && (obj.imageUrl = message.imageUrl);
669
+ return obj;
670
+ }
671
+
672
+ export function create<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ParcelView>, I>>(
673
+ base?: I,
674
+ ): AboutResponse_MapConfiguration_ParcelView {
675
+ return AboutResponse_MapConfiguration_ParcelView.fromPartial(base ?? {});
676
+ }
677
+
678
+ export function fromPartial<I extends Exact<DeepPartial<AboutResponse_MapConfiguration_ParcelView>, I>>(
679
+ object: I,
680
+ ): AboutResponse_MapConfiguration_ParcelView {
681
+ const message = createBaseAboutResponse_MapConfiguration_ParcelView();
682
+ message.version = object.version ?? "";
683
+ message.imageUrl = object.imageUrl ?? undefined;
334
684
  return message;
335
685
  }
336
686
  }
@@ -404,9 +754,9 @@ function createBaseAboutResponse_AboutConfiguration(): AboutResponse_AboutConfig
404
754
  networkId: 0,
405
755
  globalScenesUrn: [],
406
756
  scenesUrn: [],
407
- minimap: undefined,
408
757
  skybox: undefined,
409
758
  cityLoaderContentServer: undefined,
759
+ map: undefined,
410
760
  };
411
761
  }
412
762
 
@@ -427,15 +777,15 @@ export namespace AboutResponse_AboutConfiguration {
427
777
  for (const v of message.scenesUrn) {
428
778
  writer.uint32(34).string(v!);
429
779
  }
430
- if (message.minimap !== undefined) {
431
- AboutResponse_MinimapConfiguration.encode(message.minimap, writer.uint32(42).fork()).ldelim();
432
- }
433
780
  if (message.skybox !== undefined) {
434
781
  AboutResponse_SkyboxConfiguration.encode(message.skybox, writer.uint32(50).fork()).ldelim();
435
782
  }
436
783
  if (message.cityLoaderContentServer !== undefined) {
437
784
  writer.uint32(58).string(message.cityLoaderContentServer);
438
785
  }
786
+ if (message.map !== undefined) {
787
+ AboutResponse_MapConfiguration.encode(message.map, writer.uint32(66).fork()).ldelim();
788
+ }
439
789
  return writer;
440
790
  }
441
791
 
@@ -474,13 +824,6 @@ export namespace AboutResponse_AboutConfiguration {
474
824
 
475
825
  message.scenesUrn.push(reader.string());
476
826
  continue;
477
- case 5:
478
- if (tag !== 42) {
479
- break;
480
- }
481
-
482
- message.minimap = AboutResponse_MinimapConfiguration.decode(reader, reader.uint32());
483
- continue;
484
827
  case 6:
485
828
  if (tag !== 50) {
486
829
  break;
@@ -495,6 +838,13 @@ export namespace AboutResponse_AboutConfiguration {
495
838
 
496
839
  message.cityLoaderContentServer = reader.string();
497
840
  continue;
841
+ case 8:
842
+ if (tag !== 66) {
843
+ break;
844
+ }
845
+
846
+ message.map = AboutResponse_MapConfiguration.decode(reader, reader.uint32());
847
+ continue;
498
848
  }
499
849
  if ((tag & 7) === 4 || tag === 0) {
500
850
  break;
@@ -510,11 +860,11 @@ export namespace AboutResponse_AboutConfiguration {
510
860
  networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
511
861
  globalScenesUrn: Array.isArray(object?.globalScenesUrn) ? object.globalScenesUrn.map((e: any) => String(e)) : [],
512
862
  scenesUrn: Array.isArray(object?.scenesUrn) ? object.scenesUrn.map((e: any) => String(e)) : [],
513
- minimap: isSet(object.minimap) ? AboutResponse_MinimapConfiguration.fromJSON(object.minimap) : undefined,
514
863
  skybox: isSet(object.skybox) ? AboutResponse_SkyboxConfiguration.fromJSON(object.skybox) : undefined,
515
864
  cityLoaderContentServer: isSet(object.cityLoaderContentServer)
516
865
  ? String(object.cityLoaderContentServer)
517
866
  : undefined,
867
+ map: isSet(object.map) ? AboutResponse_MapConfiguration.fromJSON(object.map) : undefined,
518
868
  };
519
869
  }
520
870
 
@@ -532,11 +882,11 @@ export namespace AboutResponse_AboutConfiguration {
532
882
  } else {
533
883
  obj.scenesUrn = [];
534
884
  }
535
- message.minimap !== undefined &&
536
- (obj.minimap = message.minimap ? AboutResponse_MinimapConfiguration.toJSON(message.minimap) : undefined);
537
885
  message.skybox !== undefined &&
538
886
  (obj.skybox = message.skybox ? AboutResponse_SkyboxConfiguration.toJSON(message.skybox) : undefined);
539
887
  message.cityLoaderContentServer !== undefined && (obj.cityLoaderContentServer = message.cityLoaderContentServer);
888
+ message.map !== undefined &&
889
+ (obj.map = message.map ? AboutResponse_MapConfiguration.toJSON(message.map) : undefined);
540
890
  return obj;
541
891
  }
542
892
 
@@ -554,13 +904,13 @@ export namespace AboutResponse_AboutConfiguration {
554
904
  message.networkId = object.networkId ?? 0;
555
905
  message.globalScenesUrn = object.globalScenesUrn?.map((e) => e) || [];
556
906
  message.scenesUrn = object.scenesUrn?.map((e) => e) || [];
557
- message.minimap = (object.minimap !== undefined && object.minimap !== null)
558
- ? AboutResponse_MinimapConfiguration.fromPartial(object.minimap)
559
- : undefined;
560
907
  message.skybox = (object.skybox !== undefined && object.skybox !== null)
561
908
  ? AboutResponse_SkyboxConfiguration.fromPartial(object.skybox)
562
909
  : undefined;
563
910
  message.cityLoaderContentServer = object.cityLoaderContentServer ?? undefined;
911
+ message.map = (object.map !== undefined && object.map !== null)
912
+ ? AboutResponse_MapConfiguration.fromPartial(object.map)
913
+ : undefined;
564
914
  return message;
565
915
  }
566
916
  }