@dcl/protocol 1.0.0-3199325469.commit-c9bc23f → 1.0.0-3205348640.commit-bd227bf

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.
@@ -11,13 +11,26 @@ message AboutResponse {
11
11
  ContentInfo content = 3;
12
12
  CommsInfo comms = 4;
13
13
  LambdasInfo lambdas = 5;
14
- BffInfo bff = 6;
14
+ optional BffInfo bff = 6;
15
+
16
+ message MinimapConfiguration {
17
+ bool enabled = 1;
18
+ optional string data_image = 2;
19
+ optional string estate_image = 3;
20
+ }
21
+
22
+ message SkyboxConfiguration {
23
+ // only one value at a time
24
+ optional float fixed_hour = 1;
25
+ }
15
26
 
16
27
  message AboutConfiguration {
17
28
  optional string realm_name = 1;
18
29
  uint32 network_id = 2;
19
30
  repeated string global_scenes_urn = 3;
20
31
  repeated string scenes_urn = 4;
32
+ optional MinimapConfiguration minimap = 5;
33
+ optional SkyboxConfiguration skybox = 6;
21
34
  }
22
35
 
23
36
  message ContentInfo {
@@ -10,7 +10,18 @@ export interface AboutResponse {
10
10
  content: AboutResponse_ContentInfo | undefined;
11
11
  comms: AboutResponse_CommsInfo | undefined;
12
12
  lambdas: AboutResponse_LambdasInfo | undefined;
13
- bff: AboutResponse_BffInfo | undefined;
13
+ bff?: AboutResponse_BffInfo | undefined;
14
+ }
15
+
16
+ export interface AboutResponse_MinimapConfiguration {
17
+ enabled: boolean;
18
+ dataImage?: string | undefined;
19
+ estateImage?: string | undefined;
20
+ }
21
+
22
+ export interface AboutResponse_SkyboxConfiguration {
23
+ /** only one value at a time */
24
+ fixedHour?: number | undefined;
14
25
  }
15
26
 
16
27
  export interface AboutResponse_AboutConfiguration {
@@ -18,6 +29,8 @@ export interface AboutResponse_AboutConfiguration {
18
29
  networkId: number;
19
30
  globalScenesUrn: string[];
20
31
  scenesUrn: string[];
32
+ minimap?: AboutResponse_MinimapConfiguration | undefined;
33
+ skybox?: AboutResponse_SkyboxConfiguration | undefined;
21
34
  }
22
35
 
23
36
  export interface AboutResponse_ContentInfo {
@@ -179,8 +192,133 @@ export const AboutResponse = {
179
192
  },
180
193
  };
181
194
 
195
+ function createBaseAboutResponse_MinimapConfiguration(): AboutResponse_MinimapConfiguration {
196
+ return { enabled: false, dataImage: undefined, estateImage: undefined };
197
+ }
198
+
199
+ export const AboutResponse_MinimapConfiguration = {
200
+ encode(message: AboutResponse_MinimapConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
201
+ if (message.enabled === true) {
202
+ writer.uint32(8).bool(message.enabled);
203
+ }
204
+ if (message.dataImage !== undefined) {
205
+ writer.uint32(18).string(message.dataImage);
206
+ }
207
+ if (message.estateImage !== undefined) {
208
+ writer.uint32(26).string(message.estateImage);
209
+ }
210
+ return writer;
211
+ },
212
+
213
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_MinimapConfiguration {
214
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
215
+ let end = length === undefined ? reader.len : reader.pos + length;
216
+ const message = createBaseAboutResponse_MinimapConfiguration();
217
+ while (reader.pos < end) {
218
+ const tag = reader.uint32();
219
+ switch (tag >>> 3) {
220
+ case 1:
221
+ message.enabled = reader.bool();
222
+ break;
223
+ case 2:
224
+ message.dataImage = reader.string();
225
+ break;
226
+ case 3:
227
+ message.estateImage = reader.string();
228
+ break;
229
+ default:
230
+ reader.skipType(tag & 7);
231
+ break;
232
+ }
233
+ }
234
+ return message;
235
+ },
236
+
237
+ fromJSON(object: any): AboutResponse_MinimapConfiguration {
238
+ return {
239
+ enabled: isSet(object.enabled) ? Boolean(object.enabled) : false,
240
+ dataImage: isSet(object.dataImage) ? String(object.dataImage) : undefined,
241
+ estateImage: isSet(object.estateImage) ? String(object.estateImage) : undefined,
242
+ };
243
+ },
244
+
245
+ toJSON(message: AboutResponse_MinimapConfiguration): unknown {
246
+ const obj: any = {};
247
+ message.enabled !== undefined && (obj.enabled = message.enabled);
248
+ message.dataImage !== undefined && (obj.dataImage = message.dataImage);
249
+ message.estateImage !== undefined && (obj.estateImage = message.estateImage);
250
+ return obj;
251
+ },
252
+
253
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_MinimapConfiguration>, I>>(
254
+ object: I,
255
+ ): AboutResponse_MinimapConfiguration {
256
+ const message = createBaseAboutResponse_MinimapConfiguration();
257
+ message.enabled = object.enabled ?? false;
258
+ message.dataImage = object.dataImage ?? undefined;
259
+ message.estateImage = object.estateImage ?? undefined;
260
+ return message;
261
+ },
262
+ };
263
+
264
+ function createBaseAboutResponse_SkyboxConfiguration(): AboutResponse_SkyboxConfiguration {
265
+ return { fixedHour: undefined };
266
+ }
267
+
268
+ export const AboutResponse_SkyboxConfiguration = {
269
+ encode(message: AboutResponse_SkyboxConfiguration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
270
+ if (message.fixedHour !== undefined) {
271
+ writer.uint32(13).float(message.fixedHour);
272
+ }
273
+ return writer;
274
+ },
275
+
276
+ decode(input: _m0.Reader | Uint8Array, length?: number): AboutResponse_SkyboxConfiguration {
277
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
278
+ let end = length === undefined ? reader.len : reader.pos + length;
279
+ const message = createBaseAboutResponse_SkyboxConfiguration();
280
+ while (reader.pos < end) {
281
+ const tag = reader.uint32();
282
+ switch (tag >>> 3) {
283
+ case 1:
284
+ message.fixedHour = reader.float();
285
+ break;
286
+ default:
287
+ reader.skipType(tag & 7);
288
+ break;
289
+ }
290
+ }
291
+ return message;
292
+ },
293
+
294
+ fromJSON(object: any): AboutResponse_SkyboxConfiguration {
295
+ return { fixedHour: isSet(object.fixedHour) ? Number(object.fixedHour) : undefined };
296
+ },
297
+
298
+ toJSON(message: AboutResponse_SkyboxConfiguration): unknown {
299
+ const obj: any = {};
300
+ message.fixedHour !== undefined && (obj.fixedHour = message.fixedHour);
301
+ return obj;
302
+ },
303
+
304
+ fromPartial<I extends Exact<DeepPartial<AboutResponse_SkyboxConfiguration>, I>>(
305
+ object: I,
306
+ ): AboutResponse_SkyboxConfiguration {
307
+ const message = createBaseAboutResponse_SkyboxConfiguration();
308
+ message.fixedHour = object.fixedHour ?? undefined;
309
+ return message;
310
+ },
311
+ };
312
+
182
313
  function createBaseAboutResponse_AboutConfiguration(): AboutResponse_AboutConfiguration {
183
- return { realmName: undefined, networkId: 0, globalScenesUrn: [], scenesUrn: [] };
314
+ return {
315
+ realmName: undefined,
316
+ networkId: 0,
317
+ globalScenesUrn: [],
318
+ scenesUrn: [],
319
+ minimap: undefined,
320
+ skybox: undefined,
321
+ };
184
322
  }
185
323
 
186
324
  export const AboutResponse_AboutConfiguration = {
@@ -197,6 +335,12 @@ export const AboutResponse_AboutConfiguration = {
197
335
  for (const v of message.scenesUrn) {
198
336
  writer.uint32(34).string(v!);
199
337
  }
338
+ if (message.minimap !== undefined) {
339
+ AboutResponse_MinimapConfiguration.encode(message.minimap, writer.uint32(42).fork()).ldelim();
340
+ }
341
+ if (message.skybox !== undefined) {
342
+ AboutResponse_SkyboxConfiguration.encode(message.skybox, writer.uint32(50).fork()).ldelim();
343
+ }
200
344
  return writer;
201
345
  },
202
346
 
@@ -219,6 +363,12 @@ export const AboutResponse_AboutConfiguration = {
219
363
  case 4:
220
364
  message.scenesUrn.push(reader.string());
221
365
  break;
366
+ case 5:
367
+ message.minimap = AboutResponse_MinimapConfiguration.decode(reader, reader.uint32());
368
+ break;
369
+ case 6:
370
+ message.skybox = AboutResponse_SkyboxConfiguration.decode(reader, reader.uint32());
371
+ break;
222
372
  default:
223
373
  reader.skipType(tag & 7);
224
374
  break;
@@ -233,6 +383,8 @@ export const AboutResponse_AboutConfiguration = {
233
383
  networkId: isSet(object.networkId) ? Number(object.networkId) : 0,
234
384
  globalScenesUrn: Array.isArray(object?.globalScenesUrn) ? object.globalScenesUrn.map((e: any) => String(e)) : [],
235
385
  scenesUrn: Array.isArray(object?.scenesUrn) ? object.scenesUrn.map((e: any) => String(e)) : [],
386
+ minimap: isSet(object.minimap) ? AboutResponse_MinimapConfiguration.fromJSON(object.minimap) : undefined,
387
+ skybox: isSet(object.skybox) ? AboutResponse_SkyboxConfiguration.fromJSON(object.skybox) : undefined,
236
388
  };
237
389
  },
238
390
 
@@ -250,6 +402,10 @@ export const AboutResponse_AboutConfiguration = {
250
402
  } else {
251
403
  obj.scenesUrn = [];
252
404
  }
405
+ message.minimap !== undefined &&
406
+ (obj.minimap = message.minimap ? AboutResponse_MinimapConfiguration.toJSON(message.minimap) : undefined);
407
+ message.skybox !== undefined &&
408
+ (obj.skybox = message.skybox ? AboutResponse_SkyboxConfiguration.toJSON(message.skybox) : undefined);
253
409
  return obj;
254
410
  },
255
411
 
@@ -261,6 +417,12 @@ export const AboutResponse_AboutConfiguration = {
261
417
  message.networkId = object.networkId ?? 0;
262
418
  message.globalScenesUrn = object.globalScenesUrn?.map((e) => e) || [];
263
419
  message.scenesUrn = object.scenesUrn?.map((e) => e) || [];
420
+ message.minimap = (object.minimap !== undefined && object.minimap !== null)
421
+ ? AboutResponse_MinimapConfiguration.fromPartial(object.minimap)
422
+ : undefined;
423
+ message.skybox = (object.skybox !== undefined && object.skybox !== null)
424
+ ? AboutResponse_SkyboxConfiguration.fromPartial(object.skybox)
425
+ : undefined;
264
426
  return message;
265
427
  },
266
428
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-3199325469.commit-c9bc23f",
3
+ "version": "1.0.0-3205348640.commit-bd227bf",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,5 +29,5 @@
29
29
  "*.proto",
30
30
  "out-ts"
31
31
  ],
32
- "commit": "c9bc23fbbb4fe0ccc50487d1fb293223b907bc70"
32
+ "commit": "bd227bf4625bac7553671d749c29ac6388cc3d77"
33
33
  }