@dcl/protocol 1.0.0-3761391741.commit-d4dfa66 → 1.0.0-3808528053.commit-d66d462
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-ts/decentraland/kernel/apis/restricted_actions.gen.ts +428 -0
- package/package.json +2 -2
- package/proto/decentraland/common/border_rect.proto +10 -0
- package/proto/decentraland/kernel/apis/restricted_actions.proto +52 -5
- package/proto/decentraland/sdk/components/{pointer_hover_feedback.proto → pointer_events.proto} +1 -1
- package/proto/decentraland/sdk/components/pointer_events_result.proto +1 -1
- package/proto/decentraland/sdk/components/text_shape.proto +3 -0
- package/proto/decentraland/sdk/components/ui_background.proto +25 -2
- package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
- package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
- package/proto/decentraland/sdk/components/ui_input.proto +19 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +11 -0
|
@@ -17,6 +17,11 @@ export interface MovePlayerToRequest {
|
|
|
17
17
|
cameraTarget?: Vector3 | undefined;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export interface TeleportToRequest {
|
|
21
|
+
worldPosition: Vector3 | undefined;
|
|
22
|
+
cameraTarget?: Vector3 | undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
export interface TriggerEmoteResponse {
|
|
21
26
|
}
|
|
22
27
|
|
|
@@ -24,6 +29,30 @@ export interface TriggerEmoteRequest {
|
|
|
24
29
|
predefinedEmote: string;
|
|
25
30
|
}
|
|
26
31
|
|
|
32
|
+
export interface ChangeRealmRequest {
|
|
33
|
+
realm: string;
|
|
34
|
+
message?: string | undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface OpenExternalUrlRequest {
|
|
38
|
+
url: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface OpenNftDialogRequest {
|
|
42
|
+
urn: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface UnblockPointerRequest {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface CommsAdapterRequest {
|
|
49
|
+
connectionString: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SuccessResponse {
|
|
53
|
+
success: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
27
56
|
function createBaseVector3(): Vector3 {
|
|
28
57
|
return { x: 0, y: 0, z: 0 };
|
|
29
58
|
}
|
|
@@ -194,6 +223,70 @@ export const MovePlayerToRequest = {
|
|
|
194
223
|
},
|
|
195
224
|
};
|
|
196
225
|
|
|
226
|
+
function createBaseTeleportToRequest(): TeleportToRequest {
|
|
227
|
+
return { worldPosition: undefined, cameraTarget: undefined };
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export const TeleportToRequest = {
|
|
231
|
+
encode(message: TeleportToRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
232
|
+
if (message.worldPosition !== undefined) {
|
|
233
|
+
Vector3.encode(message.worldPosition, writer.uint32(10).fork()).ldelim();
|
|
234
|
+
}
|
|
235
|
+
if (message.cameraTarget !== undefined) {
|
|
236
|
+
Vector3.encode(message.cameraTarget, writer.uint32(18).fork()).ldelim();
|
|
237
|
+
}
|
|
238
|
+
return writer;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TeleportToRequest {
|
|
242
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
243
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
244
|
+
const message = createBaseTeleportToRequest();
|
|
245
|
+
while (reader.pos < end) {
|
|
246
|
+
const tag = reader.uint32();
|
|
247
|
+
switch (tag >>> 3) {
|
|
248
|
+
case 1:
|
|
249
|
+
message.worldPosition = Vector3.decode(reader, reader.uint32());
|
|
250
|
+
break;
|
|
251
|
+
case 2:
|
|
252
|
+
message.cameraTarget = Vector3.decode(reader, reader.uint32());
|
|
253
|
+
break;
|
|
254
|
+
default:
|
|
255
|
+
reader.skipType(tag & 7);
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return message;
|
|
260
|
+
},
|
|
261
|
+
|
|
262
|
+
fromJSON(object: any): TeleportToRequest {
|
|
263
|
+
return {
|
|
264
|
+
worldPosition: isSet(object.worldPosition) ? Vector3.fromJSON(object.worldPosition) : undefined,
|
|
265
|
+
cameraTarget: isSet(object.cameraTarget) ? Vector3.fromJSON(object.cameraTarget) : undefined,
|
|
266
|
+
};
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
toJSON(message: TeleportToRequest): unknown {
|
|
270
|
+
const obj: any = {};
|
|
271
|
+
message.worldPosition !== undefined &&
|
|
272
|
+
(obj.worldPosition = message.worldPosition ? Vector3.toJSON(message.worldPosition) : undefined);
|
|
273
|
+
message.cameraTarget !== undefined &&
|
|
274
|
+
(obj.cameraTarget = message.cameraTarget ? Vector3.toJSON(message.cameraTarget) : undefined);
|
|
275
|
+
return obj;
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
fromPartial<I extends Exact<DeepPartial<TeleportToRequest>, I>>(object: I): TeleportToRequest {
|
|
279
|
+
const message = createBaseTeleportToRequest();
|
|
280
|
+
message.worldPosition = (object.worldPosition !== undefined && object.worldPosition !== null)
|
|
281
|
+
? Vector3.fromPartial(object.worldPosition)
|
|
282
|
+
: undefined;
|
|
283
|
+
message.cameraTarget = (object.cameraTarget !== undefined && object.cameraTarget !== null)
|
|
284
|
+
? Vector3.fromPartial(object.cameraTarget)
|
|
285
|
+
: undefined;
|
|
286
|
+
return message;
|
|
287
|
+
},
|
|
288
|
+
};
|
|
289
|
+
|
|
197
290
|
function createBaseTriggerEmoteResponse(): TriggerEmoteResponse {
|
|
198
291
|
return {};
|
|
199
292
|
}
|
|
@@ -280,11 +373,297 @@ export const TriggerEmoteRequest = {
|
|
|
280
373
|
},
|
|
281
374
|
};
|
|
282
375
|
|
|
376
|
+
function createBaseChangeRealmRequest(): ChangeRealmRequest {
|
|
377
|
+
return { realm: "", message: undefined };
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export const ChangeRealmRequest = {
|
|
381
|
+
encode(message: ChangeRealmRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
382
|
+
if (message.realm !== "") {
|
|
383
|
+
writer.uint32(10).string(message.realm);
|
|
384
|
+
}
|
|
385
|
+
if (message.message !== undefined) {
|
|
386
|
+
writer.uint32(18).string(message.message);
|
|
387
|
+
}
|
|
388
|
+
return writer;
|
|
389
|
+
},
|
|
390
|
+
|
|
391
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeRealmRequest {
|
|
392
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
393
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
394
|
+
const message = createBaseChangeRealmRequest();
|
|
395
|
+
while (reader.pos < end) {
|
|
396
|
+
const tag = reader.uint32();
|
|
397
|
+
switch (tag >>> 3) {
|
|
398
|
+
case 1:
|
|
399
|
+
message.realm = reader.string();
|
|
400
|
+
break;
|
|
401
|
+
case 2:
|
|
402
|
+
message.message = reader.string();
|
|
403
|
+
break;
|
|
404
|
+
default:
|
|
405
|
+
reader.skipType(tag & 7);
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return message;
|
|
410
|
+
},
|
|
411
|
+
|
|
412
|
+
fromJSON(object: any): ChangeRealmRequest {
|
|
413
|
+
return {
|
|
414
|
+
realm: isSet(object.realm) ? String(object.realm) : "",
|
|
415
|
+
message: isSet(object.message) ? String(object.message) : undefined,
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
|
|
419
|
+
toJSON(message: ChangeRealmRequest): unknown {
|
|
420
|
+
const obj: any = {};
|
|
421
|
+
message.realm !== undefined && (obj.realm = message.realm);
|
|
422
|
+
message.message !== undefined && (obj.message = message.message);
|
|
423
|
+
return obj;
|
|
424
|
+
},
|
|
425
|
+
|
|
426
|
+
fromPartial<I extends Exact<DeepPartial<ChangeRealmRequest>, I>>(object: I): ChangeRealmRequest {
|
|
427
|
+
const message = createBaseChangeRealmRequest();
|
|
428
|
+
message.realm = object.realm ?? "";
|
|
429
|
+
message.message = object.message ?? undefined;
|
|
430
|
+
return message;
|
|
431
|
+
},
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
function createBaseOpenExternalUrlRequest(): OpenExternalUrlRequest {
|
|
435
|
+
return { url: "" };
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export const OpenExternalUrlRequest = {
|
|
439
|
+
encode(message: OpenExternalUrlRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
440
|
+
if (message.url !== "") {
|
|
441
|
+
writer.uint32(10).string(message.url);
|
|
442
|
+
}
|
|
443
|
+
return writer;
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenExternalUrlRequest {
|
|
447
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
448
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
449
|
+
const message = createBaseOpenExternalUrlRequest();
|
|
450
|
+
while (reader.pos < end) {
|
|
451
|
+
const tag = reader.uint32();
|
|
452
|
+
switch (tag >>> 3) {
|
|
453
|
+
case 1:
|
|
454
|
+
message.url = reader.string();
|
|
455
|
+
break;
|
|
456
|
+
default:
|
|
457
|
+
reader.skipType(tag & 7);
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
|
|
464
|
+
fromJSON(object: any): OpenExternalUrlRequest {
|
|
465
|
+
return { url: isSet(object.url) ? String(object.url) : "" };
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
toJSON(message: OpenExternalUrlRequest): unknown {
|
|
469
|
+
const obj: any = {};
|
|
470
|
+
message.url !== undefined && (obj.url = message.url);
|
|
471
|
+
return obj;
|
|
472
|
+
},
|
|
473
|
+
|
|
474
|
+
fromPartial<I extends Exact<DeepPartial<OpenExternalUrlRequest>, I>>(object: I): OpenExternalUrlRequest {
|
|
475
|
+
const message = createBaseOpenExternalUrlRequest();
|
|
476
|
+
message.url = object.url ?? "";
|
|
477
|
+
return message;
|
|
478
|
+
},
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
function createBaseOpenNftDialogRequest(): OpenNftDialogRequest {
|
|
482
|
+
return { urn: "" };
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export const OpenNftDialogRequest = {
|
|
486
|
+
encode(message: OpenNftDialogRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
487
|
+
if (message.urn !== "") {
|
|
488
|
+
writer.uint32(10).string(message.urn);
|
|
489
|
+
}
|
|
490
|
+
return writer;
|
|
491
|
+
},
|
|
492
|
+
|
|
493
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenNftDialogRequest {
|
|
494
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
495
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
496
|
+
const message = createBaseOpenNftDialogRequest();
|
|
497
|
+
while (reader.pos < end) {
|
|
498
|
+
const tag = reader.uint32();
|
|
499
|
+
switch (tag >>> 3) {
|
|
500
|
+
case 1:
|
|
501
|
+
message.urn = reader.string();
|
|
502
|
+
break;
|
|
503
|
+
default:
|
|
504
|
+
reader.skipType(tag & 7);
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return message;
|
|
509
|
+
},
|
|
510
|
+
|
|
511
|
+
fromJSON(object: any): OpenNftDialogRequest {
|
|
512
|
+
return { urn: isSet(object.urn) ? String(object.urn) : "" };
|
|
513
|
+
},
|
|
514
|
+
|
|
515
|
+
toJSON(message: OpenNftDialogRequest): unknown {
|
|
516
|
+
const obj: any = {};
|
|
517
|
+
message.urn !== undefined && (obj.urn = message.urn);
|
|
518
|
+
return obj;
|
|
519
|
+
},
|
|
520
|
+
|
|
521
|
+
fromPartial<I extends Exact<DeepPartial<OpenNftDialogRequest>, I>>(object: I): OpenNftDialogRequest {
|
|
522
|
+
const message = createBaseOpenNftDialogRequest();
|
|
523
|
+
message.urn = object.urn ?? "";
|
|
524
|
+
return message;
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
function createBaseUnblockPointerRequest(): UnblockPointerRequest {
|
|
529
|
+
return {};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export const UnblockPointerRequest = {
|
|
533
|
+
encode(_: UnblockPointerRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
534
|
+
return writer;
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnblockPointerRequest {
|
|
538
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
539
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
540
|
+
const message = createBaseUnblockPointerRequest();
|
|
541
|
+
while (reader.pos < end) {
|
|
542
|
+
const tag = reader.uint32();
|
|
543
|
+
switch (tag >>> 3) {
|
|
544
|
+
default:
|
|
545
|
+
reader.skipType(tag & 7);
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return message;
|
|
550
|
+
},
|
|
551
|
+
|
|
552
|
+
fromJSON(_: any): UnblockPointerRequest {
|
|
553
|
+
return {};
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
toJSON(_: UnblockPointerRequest): unknown {
|
|
557
|
+
const obj: any = {};
|
|
558
|
+
return obj;
|
|
559
|
+
},
|
|
560
|
+
|
|
561
|
+
fromPartial<I extends Exact<DeepPartial<UnblockPointerRequest>, I>>(_: I): UnblockPointerRequest {
|
|
562
|
+
const message = createBaseUnblockPointerRequest();
|
|
563
|
+
return message;
|
|
564
|
+
},
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
function createBaseCommsAdapterRequest(): CommsAdapterRequest {
|
|
568
|
+
return { connectionString: "" };
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export const CommsAdapterRequest = {
|
|
572
|
+
encode(message: CommsAdapterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
573
|
+
if (message.connectionString !== "") {
|
|
574
|
+
writer.uint32(10).string(message.connectionString);
|
|
575
|
+
}
|
|
576
|
+
return writer;
|
|
577
|
+
},
|
|
578
|
+
|
|
579
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CommsAdapterRequest {
|
|
580
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
581
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
582
|
+
const message = createBaseCommsAdapterRequest();
|
|
583
|
+
while (reader.pos < end) {
|
|
584
|
+
const tag = reader.uint32();
|
|
585
|
+
switch (tag >>> 3) {
|
|
586
|
+
case 1:
|
|
587
|
+
message.connectionString = reader.string();
|
|
588
|
+
break;
|
|
589
|
+
default:
|
|
590
|
+
reader.skipType(tag & 7);
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
return message;
|
|
595
|
+
},
|
|
596
|
+
|
|
597
|
+
fromJSON(object: any): CommsAdapterRequest {
|
|
598
|
+
return { connectionString: isSet(object.connectionString) ? String(object.connectionString) : "" };
|
|
599
|
+
},
|
|
600
|
+
|
|
601
|
+
toJSON(message: CommsAdapterRequest): unknown {
|
|
602
|
+
const obj: any = {};
|
|
603
|
+
message.connectionString !== undefined && (obj.connectionString = message.connectionString);
|
|
604
|
+
return obj;
|
|
605
|
+
},
|
|
606
|
+
|
|
607
|
+
fromPartial<I extends Exact<DeepPartial<CommsAdapterRequest>, I>>(object: I): CommsAdapterRequest {
|
|
608
|
+
const message = createBaseCommsAdapterRequest();
|
|
609
|
+
message.connectionString = object.connectionString ?? "";
|
|
610
|
+
return message;
|
|
611
|
+
},
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
function createBaseSuccessResponse(): SuccessResponse {
|
|
615
|
+
return { success: false };
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export const SuccessResponse = {
|
|
619
|
+
encode(message: SuccessResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
620
|
+
if (message.success === true) {
|
|
621
|
+
writer.uint32(8).bool(message.success);
|
|
622
|
+
}
|
|
623
|
+
return writer;
|
|
624
|
+
},
|
|
625
|
+
|
|
626
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SuccessResponse {
|
|
627
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
628
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
629
|
+
const message = createBaseSuccessResponse();
|
|
630
|
+
while (reader.pos < end) {
|
|
631
|
+
const tag = reader.uint32();
|
|
632
|
+
switch (tag >>> 3) {
|
|
633
|
+
case 1:
|
|
634
|
+
message.success = reader.bool();
|
|
635
|
+
break;
|
|
636
|
+
default:
|
|
637
|
+
reader.skipType(tag & 7);
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
return message;
|
|
642
|
+
},
|
|
643
|
+
|
|
644
|
+
fromJSON(object: any): SuccessResponse {
|
|
645
|
+
return { success: isSet(object.success) ? Boolean(object.success) : false };
|
|
646
|
+
},
|
|
647
|
+
|
|
648
|
+
toJSON(message: SuccessResponse): unknown {
|
|
649
|
+
const obj: any = {};
|
|
650
|
+
message.success !== undefined && (obj.success = message.success);
|
|
651
|
+
return obj;
|
|
652
|
+
},
|
|
653
|
+
|
|
654
|
+
fromPartial<I extends Exact<DeepPartial<SuccessResponse>, I>>(object: I): SuccessResponse {
|
|
655
|
+
const message = createBaseSuccessResponse();
|
|
656
|
+
message.success = object.success ?? false;
|
|
657
|
+
return message;
|
|
658
|
+
},
|
|
659
|
+
};
|
|
660
|
+
|
|
283
661
|
export type RestrictedActionsServiceDefinition = typeof RestrictedActionsServiceDefinition;
|
|
284
662
|
export const RestrictedActionsServiceDefinition = {
|
|
285
663
|
name: "RestrictedActionsService",
|
|
286
664
|
fullName: "decentraland.kernel.apis.RestrictedActionsService",
|
|
287
665
|
methods: {
|
|
666
|
+
/** MovePlayerTo will move the player in a position relative to the current scene */
|
|
288
667
|
movePlayerTo: {
|
|
289
668
|
name: "MovePlayerTo",
|
|
290
669
|
requestType: MovePlayerToRequest,
|
|
@@ -293,6 +672,16 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
293
672
|
responseStream: false,
|
|
294
673
|
options: {},
|
|
295
674
|
},
|
|
675
|
+
/** TeleportTo will move the user into an absolute world position */
|
|
676
|
+
teleportTo: {
|
|
677
|
+
name: "TeleportTo",
|
|
678
|
+
requestType: TeleportToRequest,
|
|
679
|
+
requestStream: false,
|
|
680
|
+
responseType: MovePlayerToResponse,
|
|
681
|
+
responseStream: false,
|
|
682
|
+
options: {},
|
|
683
|
+
},
|
|
684
|
+
/** TriggerEmote will trigger an emote in this current user */
|
|
296
685
|
triggerEmote: {
|
|
297
686
|
name: "TriggerEmote",
|
|
298
687
|
requestType: TriggerEmoteRequest,
|
|
@@ -301,6 +690,45 @@ export const RestrictedActionsServiceDefinition = {
|
|
|
301
690
|
responseStream: false,
|
|
302
691
|
options: {},
|
|
303
692
|
},
|
|
693
|
+
/** ChangeRealm prompts the user to change to a specific realm */
|
|
694
|
+
changeRealm: {
|
|
695
|
+
name: "ChangeRealm",
|
|
696
|
+
requestType: ChangeRealmRequest,
|
|
697
|
+
requestStream: false,
|
|
698
|
+
responseType: SuccessResponse,
|
|
699
|
+
responseStream: false,
|
|
700
|
+
options: {},
|
|
701
|
+
},
|
|
702
|
+
/** OpenExternalUrl prompts the user to open an external link */
|
|
703
|
+
openExternalUrl: {
|
|
704
|
+
name: "OpenExternalUrl",
|
|
705
|
+
requestType: OpenExternalUrlRequest,
|
|
706
|
+
requestStream: false,
|
|
707
|
+
responseType: SuccessResponse,
|
|
708
|
+
responseStream: false,
|
|
709
|
+
options: {},
|
|
710
|
+
},
|
|
711
|
+
/** OpenNftDialog opens an NFT dialog. */
|
|
712
|
+
openNftDialog: {
|
|
713
|
+
name: "OpenNftDialog",
|
|
714
|
+
requestType: OpenNftDialogRequest,
|
|
715
|
+
requestStream: false,
|
|
716
|
+
responseType: SuccessResponse,
|
|
717
|
+
responseStream: false,
|
|
718
|
+
options: {},
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
* Asks the explorer to connect to other communications adapter, this feature
|
|
722
|
+
* can be used to join private game servers
|
|
723
|
+
*/
|
|
724
|
+
setCommunicationsAdapter: {
|
|
725
|
+
name: "SetCommunicationsAdapter",
|
|
726
|
+
requestType: CommsAdapterRequest,
|
|
727
|
+
requestStream: false,
|
|
728
|
+
responseType: SuccessResponse,
|
|
729
|
+
responseStream: false,
|
|
730
|
+
options: {},
|
|
731
|
+
},
|
|
304
732
|
},
|
|
305
733
|
} as const;
|
|
306
734
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-3808528053.commit-d66d462",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"out-ts",
|
|
26
26
|
"public"
|
|
27
27
|
],
|
|
28
|
-
"commit": "
|
|
28
|
+
"commit": "d66d46238f6713d295d8bd2a9c090ba13345034b"
|
|
29
29
|
}
|
|
@@ -10,17 +10,64 @@ message Vector3 {
|
|
|
10
10
|
message MovePlayerToResponse { }
|
|
11
11
|
|
|
12
12
|
message MovePlayerToRequest {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Vector3 new_relative_position = 1;
|
|
14
|
+
optional Vector3 camera_target = 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message TeleportToRequest {
|
|
18
|
+
Vector3 world_position = 1;
|
|
19
|
+
optional Vector3 camera_target = 2;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
message TriggerEmoteResponse { }
|
|
18
23
|
|
|
19
24
|
message TriggerEmoteRequest {
|
|
20
|
-
|
|
25
|
+
string predefined_emote = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message ChangeRealmRequest {
|
|
29
|
+
string realm = 1;
|
|
30
|
+
optional string message = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message OpenExternalUrlRequest {
|
|
34
|
+
string url = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message OpenNftDialogRequest {
|
|
38
|
+
string urn = 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message UnblockPointerRequest {}
|
|
42
|
+
|
|
43
|
+
message CommsAdapterRequest {
|
|
44
|
+
string connection_string = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message SuccessResponse {
|
|
48
|
+
bool success = 1;
|
|
21
49
|
}
|
|
22
50
|
|
|
23
51
|
service RestrictedActionsService {
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
// MovePlayerTo will move the player in a position relative to the current scene
|
|
53
|
+
rpc MovePlayerTo(MovePlayerToRequest) returns (MovePlayerToResponse) {}
|
|
54
|
+
|
|
55
|
+
// TeleportTo will move the user into an absolute world position
|
|
56
|
+
rpc TeleportTo(TeleportToRequest) returns (MovePlayerToResponse) {}
|
|
57
|
+
|
|
58
|
+
// TriggerEmote will trigger an emote in this current user
|
|
59
|
+
rpc TriggerEmote(TriggerEmoteRequest) returns (TriggerEmoteResponse) {}
|
|
60
|
+
|
|
61
|
+
// ChangeRealm prompts the user to change to a specific realm
|
|
62
|
+
rpc ChangeRealm(ChangeRealmRequest) returns (SuccessResponse) {}
|
|
63
|
+
|
|
64
|
+
// OpenExternalUrl prompts the user to open an external link
|
|
65
|
+
rpc OpenExternalUrl(OpenExternalUrlRequest) returns (SuccessResponse) {}
|
|
66
|
+
|
|
67
|
+
// OpenNftDialog opens an NFT dialog.
|
|
68
|
+
rpc OpenNftDialog(OpenNftDialogRequest) returns (SuccessResponse) {}
|
|
69
|
+
|
|
70
|
+
// Asks the explorer to connect to other communications adapter, this feature
|
|
71
|
+
// can be used to join private game servers
|
|
72
|
+
rpc SetCommunicationsAdapter(CommsAdapterRequest) returns (SuccessResponse) {}
|
|
26
73
|
}
|
package/proto/decentraland/sdk/components/{pointer_hover_feedback.proto → pointer_events.proto}
RENAMED
|
@@ -14,7 +14,7 @@ enum PointerEventType {
|
|
|
14
14
|
PET_HOVER_LEAVE = 3;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
message
|
|
17
|
+
message PBPointerEvents {
|
|
18
18
|
message Info {
|
|
19
19
|
optional common.InputAction button = 1; // default=InputAction.ANY
|
|
20
20
|
optional string hover_text = 2; // default='Interact'
|
|
@@ -4,7 +4,7 @@ package decentraland.sdk.components;
|
|
|
4
4
|
|
|
5
5
|
import "decentraland/sdk/components/common/id.proto";
|
|
6
6
|
import "decentraland/sdk/components/common/input_action.proto";
|
|
7
|
-
import "decentraland/sdk/components/
|
|
7
|
+
import "decentraland/sdk/components/pointer_events.proto";
|
|
8
8
|
import "decentraland/sdk/components/raycast_result.proto";
|
|
9
9
|
|
|
10
10
|
option (common.ecs_component_id) = 1063;
|
|
@@ -20,8 +20,11 @@ message PBTextShape {
|
|
|
20
20
|
optional float padding_right = 9;
|
|
21
21
|
optional float padding_bottom = 10;
|
|
22
22
|
optional float padding_left = 11;
|
|
23
|
+
// The amount of additional spacing to add between each lines of text.
|
|
23
24
|
optional float line_spacing = 12;
|
|
25
|
+
// Allows control over how many lines of text are displayed.
|
|
24
26
|
optional int32 line_count = 13;
|
|
27
|
+
// Enables text wrapping
|
|
25
28
|
optional bool text_wrapping = 14;
|
|
26
29
|
optional float shadow_blur = 15;
|
|
27
30
|
optional float shadow_offset_x = 16;
|
|
@@ -5,7 +5,30 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
5
5
|
option (common.ecs_component_id) = 1053;
|
|
6
6
|
|
|
7
7
|
import "decentraland/common/colors.proto";
|
|
8
|
+
import "decentraland/common/texture.proto";
|
|
9
|
+
import "decentraland/common/border_rect.proto";
|
|
8
10
|
|
|
9
11
|
message PBUiBackground {
|
|
10
|
-
optional decentraland.common.Color4
|
|
11
|
-
|
|
12
|
+
optional decentraland.common.Color4 color = 1; // default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv)
|
|
13
|
+
optional decentraland.common.TextureUnion texture = 2;
|
|
14
|
+
BackgroundTextureMode texture_mode = 3;
|
|
15
|
+
optional decentraland.common.BorderRect texture_slices = 4; // default=(1/3, 1/3, 1/3, 1/3)
|
|
16
|
+
repeated float uvs = 5; // default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
enum BackgroundTextureMode {
|
|
20
|
+
// https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
21
|
+
// https://forum.unity.com/threads/how-does-slicing-in-ui-tookkit-works.1235863/
|
|
22
|
+
// https://docs.unity3d.com/Manual/9SliceSprites.html
|
|
23
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice
|
|
24
|
+
NINE_SLICES = 0;
|
|
25
|
+
|
|
26
|
+
// CENTER enables the texture to be rendered centered in relation to the
|
|
27
|
+
// element. If the element is smaller than the texture then the background
|
|
28
|
+
// should use the element as stencil to cut off the out-of-bounds area
|
|
29
|
+
CENTER = 1;
|
|
30
|
+
|
|
31
|
+
// STRETCH enables the texture to cover all the area of the container,
|
|
32
|
+
// adopting its aspect ratio.
|
|
33
|
+
STRETCH = 2;
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/common/colors.proto";
|
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
7
|
+
import "decentraland/sdk/components/common/texts.proto";
|
|
8
|
+
|
|
9
|
+
option (common.ecs_component_id) = 1094;
|
|
10
|
+
|
|
11
|
+
message PBUiDropdown {
|
|
12
|
+
bool accept_empty = 1;
|
|
13
|
+
optional string empty_label = 2;
|
|
14
|
+
repeated string options = 3;
|
|
15
|
+
optional int32 selected_index = 4; // default=null when accept_empty==true; default=0 when accept_empty==false
|
|
16
|
+
bool disabled = 5;
|
|
17
|
+
optional decentraland.common.Color4 color = 6; // default=(0.0,0.0,0.0,1.0)
|
|
18
|
+
|
|
19
|
+
optional common.TextAlignMode text_align = 10; // default='center'
|
|
20
|
+
optional common.Font font = 11; // default=0
|
|
21
|
+
optional int32 font_size = 12; // default=10
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/common/colors.proto";
|
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
7
|
+
import "decentraland/sdk/components/common/texts.proto";
|
|
8
|
+
|
|
9
|
+
option (common.ecs_component_id) = 1093;
|
|
10
|
+
|
|
11
|
+
message PBUiInput {
|
|
12
|
+
string placeholder = 1;
|
|
13
|
+
optional decentraland.common.Color4 color = 2; // default=(0.0,0.0,0.0,1.0)
|
|
14
|
+
optional decentraland.common.Color4 placeholder_color = 3; // default=(0.3,0.3,0.3,1.0)
|
|
15
|
+
bool disabled = 4;
|
|
16
|
+
optional common.TextAlignMode text_align = 10; // default='center'
|
|
17
|
+
optional common.Font font = 11; // default=0
|
|
18
|
+
optional int32 font_size = 12; // default=10
|
|
19
|
+
}
|