@dcl/protocol 1.0.0-10043247792.commit-428d1eb → 1.0.0-10047077926.commit-ea61304
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-ts/decentraland/realm/about.gen.ts +401 -51
- package/package.json +2 -2
- package/proto/decentraland/realm/about.proto +64 -4
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package decentraland.realm;
|
|
3
3
|
|
|
4
|
+
import "decentraland/common/border_rect.proto";
|
|
5
|
+
import "decentraland/common/vectors.proto";
|
|
6
|
+
|
|
4
7
|
message AboutResponse {
|
|
5
8
|
bool healthy = 1;
|
|
6
9
|
AboutConfiguration configurations = 2;
|
|
@@ -10,10 +13,65 @@ message AboutResponse {
|
|
|
10
13
|
optional BffInfo bff = 6;
|
|
11
14
|
bool accepting_users = 7;
|
|
12
15
|
|
|
16
|
+
// @deprecated This message was never used but it's still here for compatibility reasons
|
|
13
17
|
message MinimapConfiguration {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
reserved 1;
|
|
19
|
+
reserved "enabled";
|
|
20
|
+
reserved 2;
|
|
21
|
+
reserved "data_image";
|
|
22
|
+
reserved 3;
|
|
23
|
+
reserved "estate_image";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message MapConfiguration {
|
|
27
|
+
// whether the minimap should be rendered
|
|
28
|
+
bool minimap_enabled = 1;
|
|
29
|
+
|
|
30
|
+
// the union of all rects here represents the places where that MAY have scenes
|
|
31
|
+
// - all the other parcels are considered as empty, up to the explorer to decide if they're walkable or not
|
|
32
|
+
// - the contained square is determined by points:
|
|
33
|
+
// - top-left with minX, maxY
|
|
34
|
+
// - bottom-left with minX, minY
|
|
35
|
+
// - top-right with maxX, maxY
|
|
36
|
+
// - bottom-right with maxX, maxY
|
|
37
|
+
// Note: the coordinate system used is the Cartesian coordinate system, where the y-axis increases upwards,
|
|
38
|
+
// not the screen coordinate system, where the origin is at the top-left corner and the y-axis increases downwards.
|
|
39
|
+
repeated decentraland.common.BorderRect sizes = 2;
|
|
40
|
+
|
|
41
|
+
// ImageViewWithZoomLevel uses a description to render the minimap
|
|
42
|
+
// using different images with different zoom levels.
|
|
43
|
+
// When `version='v1'`:
|
|
44
|
+
// - The description allows the explorer to form the URL:
|
|
45
|
+
// url(x,y,zoom_level) = `{base_url}/{zoom_level}/{x},{y}{suffix_url}`
|
|
46
|
+
// - The given URL is for an image where the pixel `0,0` for the image `0,0` always
|
|
47
|
+
// points to the top-left contained square.
|
|
48
|
+
// - The `zoom_level=1` is to a ratio of 3.2 pixel per parcel, this means in a 32x32 pixel square
|
|
49
|
+
// you get 10x10 parcels.
|
|
50
|
+
// - Each increase of zoom level, double the ratio pixel per parcels.
|
|
51
|
+
message ImageViewWithZoomLevel {
|
|
52
|
+
// options: ['v1']
|
|
53
|
+
string version = 1;
|
|
54
|
+
optional string base_url = 2;
|
|
55
|
+
optional string suffix_url = 3;
|
|
56
|
+
optional decentraland.common.Vector2 top_left_offset = 4;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ParcelView uses a description to render the minimap
|
|
60
|
+
// using a image where each pixel is a parcel and each pixel
|
|
61
|
+
// has the metadata to make a representation (using a shader or image-generation client-side)
|
|
62
|
+
// When `version='v1'`:
|
|
63
|
+
// - The pixel `0,0` is the top-left contained square
|
|
64
|
+
// - The image has to be at least of contained square pixels size
|
|
65
|
+
// - 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
|
|
66
|
+
message ParcelView {
|
|
67
|
+
// options: `v1`
|
|
68
|
+
string version = 1;
|
|
69
|
+
optional string image_url = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
optional ImageViewWithZoomLevel satellite_view = 5;
|
|
73
|
+
optional ParcelView parcel_view = 6;
|
|
74
|
+
optional ImageViewWithZoomLevel thumbnail_view = 7;
|
|
17
75
|
}
|
|
18
76
|
|
|
19
77
|
message SkyboxConfiguration {
|
|
@@ -26,13 +84,15 @@ message AboutResponse {
|
|
|
26
84
|
uint32 network_id = 2;
|
|
27
85
|
repeated string global_scenes_urn = 3;
|
|
28
86
|
repeated string scenes_urn = 4;
|
|
29
|
-
|
|
87
|
+
reserved 5;
|
|
88
|
+
reserved "minimap";
|
|
30
89
|
optional SkyboxConfiguration skybox = 6;
|
|
31
90
|
|
|
32
91
|
// A content server to be used to load the parcels around the user. Uses the POST /entities/active endpoint
|
|
33
92
|
// to continously fetch the parcels around the users. if null, then the default content server will be used
|
|
34
93
|
// if == "" then the city_loader will be disabled and the scenes_urn will be used to load the world
|
|
35
94
|
optional string city_loader_content_server = 7;
|
|
95
|
+
optional MapConfiguration map = 8;
|
|
36
96
|
}
|
|
37
97
|
|
|
38
98
|
message ContentInfo {
|