@dcl/protocol 1.0.0-21653299440.commit-5d27bf3 → 1.0.0-21671196520.commit-ca94ea2
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/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +3 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +40 -2
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +44 -2
- package/package.json +3 -6
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/proto/decentraland/social_service/v2/social_service_v2.proto +3 -0
- package/public/sdk-components.proto +0 -2
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -65,15 +65,7 @@ export interface PBUiText {
|
|
|
65
65
|
| number
|
|
66
66
|
| undefined;
|
|
67
67
|
/** wrap text when the border is reached (default: TW_WRAP) */
|
|
68
|
-
textWrap?:
|
|
69
|
-
| TextWrap
|
|
70
|
-
| undefined;
|
|
71
|
-
/** width of the outline (default: 0) */
|
|
72
|
-
outlineWidth?:
|
|
73
|
-
| number
|
|
74
|
-
| undefined;
|
|
75
|
-
/** RGBA color of the outline (default: opaque black) */
|
|
76
|
-
outlineColor?: Color4 | undefined;
|
|
68
|
+
textWrap?: TextWrap | undefined;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
function createBasePBUiText(): PBUiText {
|
|
@@ -84,8 +76,6 @@ function createBasePBUiText(): PBUiText {
|
|
|
84
76
|
font: undefined,
|
|
85
77
|
fontSize: undefined,
|
|
86
78
|
textWrap: undefined,
|
|
87
|
-
outlineWidth: undefined,
|
|
88
|
-
outlineColor: undefined,
|
|
89
79
|
};
|
|
90
80
|
}
|
|
91
81
|
|
|
@@ -109,12 +99,6 @@ export namespace PBUiText {
|
|
|
109
99
|
if (message.textWrap !== undefined) {
|
|
110
100
|
writer.uint32(48).int32(message.textWrap);
|
|
111
101
|
}
|
|
112
|
-
if (message.outlineWidth !== undefined) {
|
|
113
|
-
writer.uint32(61).float(message.outlineWidth);
|
|
114
|
-
}
|
|
115
|
-
if (message.outlineColor !== undefined) {
|
|
116
|
-
Color4.encode(message.outlineColor, writer.uint32(66).fork()).ldelim();
|
|
117
|
-
}
|
|
118
102
|
return writer;
|
|
119
103
|
}
|
|
120
104
|
|
|
@@ -167,20 +151,6 @@ export namespace PBUiText {
|
|
|
167
151
|
|
|
168
152
|
message.textWrap = reader.int32() as any;
|
|
169
153
|
continue;
|
|
170
|
-
case 7:
|
|
171
|
-
if (tag !== 61) {
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
message.outlineWidth = reader.float();
|
|
176
|
-
continue;
|
|
177
|
-
case 8:
|
|
178
|
-
if (tag !== 66) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
message.outlineColor = Color4.decode(reader, reader.uint32());
|
|
183
|
-
continue;
|
|
184
154
|
}
|
|
185
155
|
if ((tag & 7) === 4 || tag === 0) {
|
|
186
156
|
break;
|
|
@@ -198,8 +168,6 @@ export namespace PBUiText {
|
|
|
198
168
|
font: isSet(object.font) ? fontFromJSON(object.font) : undefined,
|
|
199
169
|
fontSize: isSet(object.fontSize) ? Number(object.fontSize) : undefined,
|
|
200
170
|
textWrap: isSet(object.textWrap) ? textWrapFromJSON(object.textWrap) : undefined,
|
|
201
|
-
outlineWidth: isSet(object.outlineWidth) ? Number(object.outlineWidth) : undefined,
|
|
202
|
-
outlineColor: isSet(object.outlineColor) ? Color4.fromJSON(object.outlineColor) : undefined,
|
|
203
171
|
};
|
|
204
172
|
}
|
|
205
173
|
|
|
@@ -213,9 +181,6 @@ export namespace PBUiText {
|
|
|
213
181
|
message.fontSize !== undefined && (obj.fontSize = Math.round(message.fontSize));
|
|
214
182
|
message.textWrap !== undefined &&
|
|
215
183
|
(obj.textWrap = message.textWrap !== undefined ? textWrapToJSON(message.textWrap) : undefined);
|
|
216
|
-
message.outlineWidth !== undefined && (obj.outlineWidth = message.outlineWidth);
|
|
217
|
-
message.outlineColor !== undefined &&
|
|
218
|
-
(obj.outlineColor = message.outlineColor ? Color4.toJSON(message.outlineColor) : undefined);
|
|
219
184
|
return obj;
|
|
220
185
|
}
|
|
221
186
|
|
|
@@ -233,10 +198,6 @@ export namespace PBUiText {
|
|
|
233
198
|
message.font = object.font ?? undefined;
|
|
234
199
|
message.fontSize = object.fontSize ?? undefined;
|
|
235
200
|
message.textWrap = object.textWrap ?? undefined;
|
|
236
|
-
message.outlineWidth = object.outlineWidth ?? undefined;
|
|
237
|
-
message.outlineColor = (object.outlineColor !== undefined && object.outlineColor !== null)
|
|
238
|
-
? Color4.fromPartial(object.outlineColor)
|
|
239
|
-
: undefined;
|
|
240
201
|
return message;
|
|
241
202
|
}
|
|
242
203
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Color4 } from "../../common/colors.gen";
|
|
4
|
-
import { Vector2 } from "../../common/vectors.gen";
|
|
5
4
|
|
|
6
5
|
export const protobufPackage = "decentraland.sdk.components";
|
|
7
6
|
|
|
@@ -473,55 +472,6 @@ export function pointerFilterModeToJSON(object: PointerFilterMode): string {
|
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
474
|
|
|
476
|
-
export enum ShowScrollBar {
|
|
477
|
-
SSB_BOTH = 0,
|
|
478
|
-
SSB_ONLY_VERTICAL = 1,
|
|
479
|
-
SSB_ONLY_HORIZONTAL = 2,
|
|
480
|
-
SSB_HIDDEN = 3,
|
|
481
|
-
UNRECOGNIZED = -1,
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export function showScrollBarFromJSON(object: any): ShowScrollBar {
|
|
485
|
-
switch (object) {
|
|
486
|
-
case 0:
|
|
487
|
-
case "SSB_BOTH":
|
|
488
|
-
return ShowScrollBar.SSB_BOTH;
|
|
489
|
-
case 1:
|
|
490
|
-
case "SSB_ONLY_VERTICAL":
|
|
491
|
-
return ShowScrollBar.SSB_ONLY_VERTICAL;
|
|
492
|
-
case 2:
|
|
493
|
-
case "SSB_ONLY_HORIZONTAL":
|
|
494
|
-
return ShowScrollBar.SSB_ONLY_HORIZONTAL;
|
|
495
|
-
case 3:
|
|
496
|
-
case "SSB_HIDDEN":
|
|
497
|
-
return ShowScrollBar.SSB_HIDDEN;
|
|
498
|
-
case -1:
|
|
499
|
-
case "UNRECOGNIZED":
|
|
500
|
-
default:
|
|
501
|
-
return ShowScrollBar.UNRECOGNIZED;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export function showScrollBarToJSON(object: ShowScrollBar): string {
|
|
506
|
-
switch (object) {
|
|
507
|
-
case ShowScrollBar.SSB_BOTH:
|
|
508
|
-
return "SSB_BOTH";
|
|
509
|
-
case ShowScrollBar.SSB_ONLY_VERTICAL:
|
|
510
|
-
return "SSB_ONLY_VERTICAL";
|
|
511
|
-
case ShowScrollBar.SSB_ONLY_HORIZONTAL:
|
|
512
|
-
return "SSB_ONLY_HORIZONTAL";
|
|
513
|
-
case ShowScrollBar.SSB_HIDDEN:
|
|
514
|
-
return "SSB_HIDDEN";
|
|
515
|
-
case ShowScrollBar.UNRECOGNIZED:
|
|
516
|
-
default:
|
|
517
|
-
return "UNRECOGNIZED";
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export interface ScrollPositionValue {
|
|
522
|
-
value?: { $case: "position"; position: Vector2 } | { $case: "reference"; reference: string } | undefined;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
475
|
export interface PBUiTransform {
|
|
526
476
|
parent: number;
|
|
527
477
|
rightOf: number;
|
|
@@ -666,105 +616,10 @@ export interface PBUiTransform {
|
|
|
666
616
|
opacity?:
|
|
667
617
|
| number
|
|
668
618
|
| undefined;
|
|
669
|
-
/** reference for scroll_position. default empty */
|
|
670
|
-
elementId?:
|
|
671
|
-
| string
|
|
672
|
-
| undefined;
|
|
673
|
-
/** default position=(0,0) */
|
|
674
|
-
scrollPosition?:
|
|
675
|
-
| ScrollPositionValue
|
|
676
|
-
| undefined;
|
|
677
|
-
/** default ShowScrollBar.SSB_BOTH */
|
|
678
|
-
scrollVisible?:
|
|
679
|
-
| ShowScrollBar
|
|
680
|
-
| undefined;
|
|
681
619
|
/** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
|
|
682
620
|
zIndex?: number | undefined;
|
|
683
621
|
}
|
|
684
622
|
|
|
685
|
-
function createBaseScrollPositionValue(): ScrollPositionValue {
|
|
686
|
-
return { value: undefined };
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export namespace ScrollPositionValue {
|
|
690
|
-
export function encode(message: ScrollPositionValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
691
|
-
switch (message.value?.$case) {
|
|
692
|
-
case "position":
|
|
693
|
-
Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
|
|
694
|
-
break;
|
|
695
|
-
case "reference":
|
|
696
|
-
writer.uint32(18).string(message.value.reference);
|
|
697
|
-
break;
|
|
698
|
-
}
|
|
699
|
-
return writer;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue {
|
|
703
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
704
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
705
|
-
const message = createBaseScrollPositionValue();
|
|
706
|
-
while (reader.pos < end) {
|
|
707
|
-
const tag = reader.uint32();
|
|
708
|
-
switch (tag >>> 3) {
|
|
709
|
-
case 1:
|
|
710
|
-
if (tag !== 10) {
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
message.value = { $case: "position", position: Vector2.decode(reader, reader.uint32()) };
|
|
715
|
-
continue;
|
|
716
|
-
case 2:
|
|
717
|
-
if (tag !== 18) {
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
message.value = { $case: "reference", reference: reader.string() };
|
|
722
|
-
continue;
|
|
723
|
-
}
|
|
724
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
725
|
-
break;
|
|
726
|
-
}
|
|
727
|
-
reader.skipType(tag & 7);
|
|
728
|
-
}
|
|
729
|
-
return message;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
export function fromJSON(object: any): ScrollPositionValue {
|
|
733
|
-
return {
|
|
734
|
-
value: isSet(object.position)
|
|
735
|
-
? { $case: "position", position: Vector2.fromJSON(object.position) }
|
|
736
|
-
: isSet(object.reference)
|
|
737
|
-
? { $case: "reference", reference: String(object.reference) }
|
|
738
|
-
: undefined,
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
export function toJSON(message: ScrollPositionValue): unknown {
|
|
743
|
-
const obj: any = {};
|
|
744
|
-
message.value?.$case === "position" &&
|
|
745
|
-
(obj.position = message.value?.position ? Vector2.toJSON(message.value?.position) : undefined);
|
|
746
|
-
message.value?.$case === "reference" && (obj.reference = message.value?.reference);
|
|
747
|
-
return obj;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
export function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue {
|
|
751
|
-
return ScrollPositionValue.fromPartial(base ?? {});
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue {
|
|
755
|
-
const message = createBaseScrollPositionValue();
|
|
756
|
-
if (object.value?.$case === "position" && object.value?.position !== undefined && object.value?.position !== null) {
|
|
757
|
-
message.value = { $case: "position", position: Vector2.fromPartial(object.value.position) };
|
|
758
|
-
}
|
|
759
|
-
if (
|
|
760
|
-
object.value?.$case === "reference" && object.value?.reference !== undefined && object.value?.reference !== null
|
|
761
|
-
) {
|
|
762
|
-
message.value = { $case: "reference", reference: object.value.reference };
|
|
763
|
-
}
|
|
764
|
-
return message;
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
623
|
function createBasePBUiTransform(): PBUiTransform {
|
|
769
624
|
return {
|
|
770
625
|
parent: 0,
|
|
@@ -840,9 +695,6 @@ function createBasePBUiTransform(): PBUiTransform {
|
|
|
840
695
|
borderLeftColor: undefined,
|
|
841
696
|
borderRightColor: undefined,
|
|
842
697
|
opacity: undefined,
|
|
843
|
-
elementId: undefined,
|
|
844
|
-
scrollPosition: undefined,
|
|
845
|
-
scrollVisible: undefined,
|
|
846
698
|
zIndex: undefined,
|
|
847
699
|
};
|
|
848
700
|
}
|
|
@@ -1068,15 +920,6 @@ export namespace PBUiTransform {
|
|
|
1068
920
|
if (message.opacity !== undefined) {
|
|
1069
921
|
writer.uint32(589).float(message.opacity);
|
|
1070
922
|
}
|
|
1071
|
-
if (message.elementId !== undefined) {
|
|
1072
|
-
writer.uint32(594).string(message.elementId);
|
|
1073
|
-
}
|
|
1074
|
-
if (message.scrollPosition !== undefined) {
|
|
1075
|
-
ScrollPositionValue.encode(message.scrollPosition, writer.uint32(602).fork()).ldelim();
|
|
1076
|
-
}
|
|
1077
|
-
if (message.scrollVisible !== undefined) {
|
|
1078
|
-
writer.uint32(608).int32(message.scrollVisible);
|
|
1079
|
-
}
|
|
1080
923
|
if (message.zIndex !== undefined) {
|
|
1081
924
|
writer.uint32(616).int32(message.zIndex);
|
|
1082
925
|
}
|
|
@@ -1601,27 +1444,6 @@ export namespace PBUiTransform {
|
|
|
1601
1444
|
|
|
1602
1445
|
message.opacity = reader.float();
|
|
1603
1446
|
continue;
|
|
1604
|
-
case 74:
|
|
1605
|
-
if (tag !== 594) {
|
|
1606
|
-
break;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
message.elementId = reader.string();
|
|
1610
|
-
continue;
|
|
1611
|
-
case 75:
|
|
1612
|
-
if (tag !== 602) {
|
|
1613
|
-
break;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
|
|
1617
|
-
continue;
|
|
1618
|
-
case 76:
|
|
1619
|
-
if (tag !== 608) {
|
|
1620
|
-
break;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
message.scrollVisible = reader.int32() as any;
|
|
1624
|
-
continue;
|
|
1625
1447
|
case 77:
|
|
1626
1448
|
if (tag !== 616) {
|
|
1627
1449
|
break;
|
|
@@ -1727,9 +1549,6 @@ export namespace PBUiTransform {
|
|
|
1727
1549
|
borderLeftColor: isSet(object.borderLeftColor) ? Color4.fromJSON(object.borderLeftColor) : undefined,
|
|
1728
1550
|
borderRightColor: isSet(object.borderRightColor) ? Color4.fromJSON(object.borderRightColor) : undefined,
|
|
1729
1551
|
opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
|
|
1730
|
-
elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
|
|
1731
|
-
scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
|
|
1732
|
-
scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
|
|
1733
1552
|
zIndex: isSet(object.zIndex) ? Number(object.zIndex) : undefined,
|
|
1734
1553
|
};
|
|
1735
1554
|
}
|
|
@@ -1843,13 +1662,6 @@ export namespace PBUiTransform {
|
|
|
1843
1662
|
message.borderRightColor !== undefined &&
|
|
1844
1663
|
(obj.borderRightColor = message.borderRightColor ? Color4.toJSON(message.borderRightColor) : undefined);
|
|
1845
1664
|
message.opacity !== undefined && (obj.opacity = message.opacity);
|
|
1846
|
-
message.elementId !== undefined && (obj.elementId = message.elementId);
|
|
1847
|
-
message.scrollPosition !== undefined &&
|
|
1848
|
-
(obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
|
|
1849
|
-
message.scrollVisible !== undefined &&
|
|
1850
|
-
(obj.scrollVisible = message.scrollVisible !== undefined
|
|
1851
|
-
? showScrollBarToJSON(message.scrollVisible)
|
|
1852
|
-
: undefined);
|
|
1853
1665
|
message.zIndex !== undefined && (obj.zIndex = Math.round(message.zIndex));
|
|
1854
1666
|
return obj;
|
|
1855
1667
|
}
|
|
@@ -1941,11 +1753,6 @@ export namespace PBUiTransform {
|
|
|
1941
1753
|
? Color4.fromPartial(object.borderRightColor)
|
|
1942
1754
|
: undefined;
|
|
1943
1755
|
message.opacity = object.opacity ?? undefined;
|
|
1944
|
-
message.elementId = object.elementId ?? undefined;
|
|
1945
|
-
message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
|
|
1946
|
-
? ScrollPositionValue.fromPartial(object.scrollPosition)
|
|
1947
|
-
: undefined;
|
|
1948
|
-
message.scrollVisible = object.scrollVisible ?? undefined;
|
|
1949
1756
|
message.zIndex = object.zIndex ?? undefined;
|
|
1950
1757
|
return message;
|
|
1951
1758
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Empty } from "../../../google/protobuf/empty.gen";
|
|
5
|
+
import { Color3 } from "../../common/colors.gen";
|
|
5
6
|
import {
|
|
6
7
|
ConflictingError,
|
|
7
8
|
ForbiddenError,
|
|
@@ -288,6 +289,7 @@ export interface FriendProfile {
|
|
|
288
289
|
name: string;
|
|
289
290
|
hasClaimedName: boolean;
|
|
290
291
|
profilePictureUrl: string;
|
|
292
|
+
nameColor?: Color3 | undefined;
|
|
291
293
|
}
|
|
292
294
|
|
|
293
295
|
export interface BlockedUserProfile {
|
|
@@ -296,6 +298,7 @@ export interface BlockedUserProfile {
|
|
|
296
298
|
hasClaimedName: boolean;
|
|
297
299
|
profilePictureUrl: string;
|
|
298
300
|
blockedAt?: number | undefined;
|
|
301
|
+
nameColor?: Color3 | undefined;
|
|
299
302
|
}
|
|
300
303
|
|
|
301
304
|
export interface Pagination {
|
|
@@ -927,7 +930,7 @@ export namespace User {
|
|
|
927
930
|
}
|
|
928
931
|
|
|
929
932
|
function createBaseFriendProfile(): FriendProfile {
|
|
930
|
-
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "" };
|
|
933
|
+
return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "", nameColor: undefined };
|
|
931
934
|
}
|
|
932
935
|
|
|
933
936
|
export namespace FriendProfile {
|
|
@@ -944,6 +947,9 @@ export namespace FriendProfile {
|
|
|
944
947
|
if (message.profilePictureUrl !== "") {
|
|
945
948
|
writer.uint32(34).string(message.profilePictureUrl);
|
|
946
949
|
}
|
|
950
|
+
if (message.nameColor !== undefined) {
|
|
951
|
+
Color3.encode(message.nameColor, writer.uint32(42).fork()).ldelim();
|
|
952
|
+
}
|
|
947
953
|
return writer;
|
|
948
954
|
}
|
|
949
955
|
|
|
@@ -982,6 +988,13 @@ export namespace FriendProfile {
|
|
|
982
988
|
|
|
983
989
|
message.profilePictureUrl = reader.string();
|
|
984
990
|
continue;
|
|
991
|
+
case 5:
|
|
992
|
+
if (tag !== 42) {
|
|
993
|
+
break;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
message.nameColor = Color3.decode(reader, reader.uint32());
|
|
997
|
+
continue;
|
|
985
998
|
}
|
|
986
999
|
if ((tag & 7) === 4 || tag === 0) {
|
|
987
1000
|
break;
|
|
@@ -997,6 +1010,7 @@ export namespace FriendProfile {
|
|
|
997
1010
|
name: isSet(object.name) ? String(object.name) : "",
|
|
998
1011
|
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
999
1012
|
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
1013
|
+
nameColor: isSet(object.nameColor) ? Color3.fromJSON(object.nameColor) : undefined,
|
|
1000
1014
|
};
|
|
1001
1015
|
}
|
|
1002
1016
|
|
|
@@ -1006,6 +1020,8 @@ export namespace FriendProfile {
|
|
|
1006
1020
|
message.name !== undefined && (obj.name = message.name);
|
|
1007
1021
|
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
1008
1022
|
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
1023
|
+
message.nameColor !== undefined &&
|
|
1024
|
+
(obj.nameColor = message.nameColor ? Color3.toJSON(message.nameColor) : undefined);
|
|
1009
1025
|
return obj;
|
|
1010
1026
|
}
|
|
1011
1027
|
|
|
@@ -1019,12 +1035,22 @@ export namespace FriendProfile {
|
|
|
1019
1035
|
message.name = object.name ?? "";
|
|
1020
1036
|
message.hasClaimedName = object.hasClaimedName ?? false;
|
|
1021
1037
|
message.profilePictureUrl = object.profilePictureUrl ?? "";
|
|
1038
|
+
message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
|
|
1039
|
+
? Color3.fromPartial(object.nameColor)
|
|
1040
|
+
: undefined;
|
|
1022
1041
|
return message;
|
|
1023
1042
|
}
|
|
1024
1043
|
}
|
|
1025
1044
|
|
|
1026
1045
|
function createBaseBlockedUserProfile(): BlockedUserProfile {
|
|
1027
|
-
return {
|
|
1046
|
+
return {
|
|
1047
|
+
address: "",
|
|
1048
|
+
name: "",
|
|
1049
|
+
hasClaimedName: false,
|
|
1050
|
+
profilePictureUrl: "",
|
|
1051
|
+
blockedAt: undefined,
|
|
1052
|
+
nameColor: undefined,
|
|
1053
|
+
};
|
|
1028
1054
|
}
|
|
1029
1055
|
|
|
1030
1056
|
export namespace BlockedUserProfile {
|
|
@@ -1044,6 +1070,9 @@ export namespace BlockedUserProfile {
|
|
|
1044
1070
|
if (message.blockedAt !== undefined) {
|
|
1045
1071
|
writer.uint32(40).int64(message.blockedAt);
|
|
1046
1072
|
}
|
|
1073
|
+
if (message.nameColor !== undefined) {
|
|
1074
|
+
Color3.encode(message.nameColor, writer.uint32(50).fork()).ldelim();
|
|
1075
|
+
}
|
|
1047
1076
|
return writer;
|
|
1048
1077
|
}
|
|
1049
1078
|
|
|
@@ -1089,6 +1118,13 @@ export namespace BlockedUserProfile {
|
|
|
1089
1118
|
|
|
1090
1119
|
message.blockedAt = longToNumber(reader.int64() as Long);
|
|
1091
1120
|
continue;
|
|
1121
|
+
case 6:
|
|
1122
|
+
if (tag !== 50) {
|
|
1123
|
+
break;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
message.nameColor = Color3.decode(reader, reader.uint32());
|
|
1127
|
+
continue;
|
|
1092
1128
|
}
|
|
1093
1129
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1094
1130
|
break;
|
|
@@ -1105,6 +1141,7 @@ export namespace BlockedUserProfile {
|
|
|
1105
1141
|
hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
|
|
1106
1142
|
profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
|
|
1107
1143
|
blockedAt: isSet(object.blockedAt) ? Number(object.blockedAt) : undefined,
|
|
1144
|
+
nameColor: isSet(object.nameColor) ? Color3.fromJSON(object.nameColor) : undefined,
|
|
1108
1145
|
};
|
|
1109
1146
|
}
|
|
1110
1147
|
|
|
@@ -1115,6 +1152,8 @@ export namespace BlockedUserProfile {
|
|
|
1115
1152
|
message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
|
|
1116
1153
|
message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
|
|
1117
1154
|
message.blockedAt !== undefined && (obj.blockedAt = Math.round(message.blockedAt));
|
|
1155
|
+
message.nameColor !== undefined &&
|
|
1156
|
+
(obj.nameColor = message.nameColor ? Color3.toJSON(message.nameColor) : undefined);
|
|
1118
1157
|
return obj;
|
|
1119
1158
|
}
|
|
1120
1159
|
|
|
@@ -1129,6 +1168,9 @@ export namespace BlockedUserProfile {
|
|
|
1129
1168
|
message.hasClaimedName = object.hasClaimedName ?? false;
|
|
1130
1169
|
message.profilePictureUrl = object.profilePictureUrl ?? "";
|
|
1131
1170
|
message.blockedAt = object.blockedAt ?? undefined;
|
|
1171
|
+
message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
|
|
1172
|
+
? Color3.fromPartial(object.nameColor)
|
|
1173
|
+
: undefined;
|
|
1132
1174
|
return message;
|
|
1133
1175
|
}
|
|
1134
1176
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-21671196520.commit-ca94ea2",
|
|
4
4
|
"description": "",
|
|
5
|
-
"repository":
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/decentraland/protocol.git"
|
|
8
|
-
},
|
|
5
|
+
"repository": "decentraland/protocol.git",
|
|
9
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
10
7
|
"bugs": "https://github.com/decentraland/protocol/issues",
|
|
11
8
|
"keywords": [],
|
|
@@ -33,5 +30,5 @@
|
|
|
33
30
|
"out-js",
|
|
34
31
|
"public"
|
|
35
32
|
],
|
|
36
|
-
"commit": "
|
|
33
|
+
"commit": "ca94ea2baebb3ebbba6975e668dd5bec8fc96b64"
|
|
37
34
|
}
|
|
@@ -36,17 +36,10 @@ message VideoTexture {
|
|
|
36
36
|
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
message UiCanvasTexture {
|
|
40
|
-
uint32 ui_canvas_entity = 1;
|
|
41
|
-
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
42
|
-
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
43
|
-
}
|
|
44
|
-
|
|
45
39
|
message TextureUnion {
|
|
46
40
|
oneof tex {
|
|
47
41
|
Texture texture = 1; // default = null
|
|
48
42
|
AvatarTexture avatar_texture = 2; // default = null
|
|
49
43
|
VideoTexture video_texture = 3; // default = null
|
|
50
|
-
UiCanvasTexture ui_texture = 4;
|
|
51
44
|
}
|
|
52
|
-
}
|
|
45
|
+
}
|
|
@@ -54,19 +54,6 @@ message MovePlayerToResponse {
|
|
|
54
54
|
|
|
55
55
|
message TeleportToResponse { }
|
|
56
56
|
|
|
57
|
-
message SetUiFocusRequest {
|
|
58
|
-
string element_id = 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message ClearUiFocusRequest { }
|
|
62
|
-
|
|
63
|
-
message GetUiFocusRequest { }
|
|
64
|
-
|
|
65
|
-
message UiFocusResponse {
|
|
66
|
-
// the element that is/was focussed
|
|
67
|
-
optional string element_id = 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
57
|
message CopyToClipboardRequest {
|
|
71
58
|
string text = 1;
|
|
72
59
|
}
|
|
@@ -101,15 +88,6 @@ service RestrictedActionsService {
|
|
|
101
88
|
// TriggerSceneEmote will trigger an scene emote file in this current user
|
|
102
89
|
rpc TriggerSceneEmote(TriggerSceneEmoteRequest) returns (SuccessResponse) {}
|
|
103
90
|
|
|
104
|
-
// Sets the focus to a specific UI element
|
|
105
|
-
rpc SetUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
|
|
106
|
-
|
|
107
|
-
// Clears the focus from any currently focused textentry or dropdown
|
|
108
|
-
rpc ClearUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
|
|
109
|
-
|
|
110
|
-
// Returns the element_id of any currently focused textentry or dropdown
|
|
111
|
-
rpc GetUiFocus(GetUiFocusRequest) returns (UiFocusResponse) {}
|
|
112
|
-
|
|
113
91
|
// CopyToClipboard copies the provided text into the clipboard
|
|
114
92
|
rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
|
|
115
93
|
}
|
|
@@ -23,8 +23,6 @@ message PBAvatarModifierArea {
|
|
|
23
23
|
decentraland.common.Vector3 area = 1; // the 3D size of the region
|
|
24
24
|
repeated string exclude_ids = 2; // user IDs that can enter and remain unaffected
|
|
25
25
|
repeated AvatarModifierType modifiers = 3; // list of modifiers to apply
|
|
26
|
-
optional AvatarMovementSettings movement_settings = 4;
|
|
27
|
-
optional bool use_collider_range = 5; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
// AvatarModifierType is an effect that should be applied to avatars inside the region.
|
|
@@ -32,22 +30,3 @@ enum AvatarModifierType {
|
|
|
32
30
|
AMT_HIDE_AVATARS = 0; // avatars are invisible
|
|
33
31
|
AMT_DISABLE_PASSPORTS = 1; // selecting (e.g. clicking) an avatar will not bring up their profile.
|
|
34
32
|
}
|
|
35
|
-
|
|
36
|
-
message AvatarMovementSettings {
|
|
37
|
-
optional AvatarControlType control_mode = 1;
|
|
38
|
-
// if not explicitly set, the following properties default to user's preference settings
|
|
39
|
-
optional float run_speed = 2; // speed the player moves at, in m/s
|
|
40
|
-
optional float friction = 3; // how fast the player gets up to speed or comes to rest. higher = more responsive
|
|
41
|
-
optional float gravity = 4; // how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative
|
|
42
|
-
optional float jump_height = 5; // how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible
|
|
43
|
-
optional float max_fall_speed = 6; // max fall speed in m/s. should normally be negative
|
|
44
|
-
optional float turn_speed = 7; // speed the player turns in tank mode, in radians/s
|
|
45
|
-
optional float walk_speed = 8; // speed the player walks at, in m/s
|
|
46
|
-
optional bool allow_weighted_movement = 9; // whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
enum AvatarControlType {
|
|
50
|
-
CCT_NONE = 0; // avatar cannot move
|
|
51
|
-
CCT_RELATIVE = 1; // avatar moves relative to the camera origin
|
|
52
|
-
CCT_TANK = 2; // avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player
|
|
53
|
-
}
|
|
@@ -40,6 +40,5 @@ message PBAvatarShape {
|
|
|
40
40
|
repeated string emotes = 11; // available emotes (default empty)
|
|
41
41
|
|
|
42
42
|
optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
|
|
43
|
-
repeated string force_render = 13; // slots that will render even if hidden
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -9,7 +9,7 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
9
9
|
option (common.ecs_component_id) = 1071;
|
|
10
10
|
|
|
11
11
|
// The CameraModeArea component can be attached to an Entity to define a region of space where
|
|
12
|
-
// the player's camera mode (1st-person
|
|
12
|
+
// the player's camera mode (1st-person or 3rd-person) is overridden.
|
|
13
13
|
//
|
|
14
14
|
// The Entity's Transform position determines the center-point of the region, while its size is
|
|
15
15
|
// given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
|
@@ -19,26 +19,7 @@ option (common.ecs_component_id) = 1071;
|
|
|
19
19
|
//
|
|
20
20
|
// Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
|
21
21
|
// is actually a 3D volume.
|
|
22
|
-
//
|
|
23
|
-
// When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
|
24
22
|
message PBCameraModeArea {
|
|
25
|
-
decentraland.common.Vector3 area = 1;
|
|
26
|
-
common.CameraType mode = 2;
|
|
27
|
-
optional CinematicSettings cinematic_settings = 3;
|
|
28
|
-
optional bool use_collider_range = 4; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message CinematicSettings {
|
|
32
|
-
uint32 camera_entity = 1; // Entity that defines the cinematic camera transform.
|
|
33
|
-
// Position -> camera's position
|
|
34
|
-
// Rotation -> camera's direction
|
|
35
|
-
// scale.z -> zoom level
|
|
36
|
-
// scale.x and scale.y -> unused
|
|
37
|
-
optional bool allow_manual_rotation = 2; // whether the user can move the camera's rotation. default false
|
|
38
|
-
optional float yaw_range = 3; // how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted
|
|
39
|
-
optional float pitch_range = 4; // how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted
|
|
40
|
-
// note: cameras can never look up/down further than Vec3::Y
|
|
41
|
-
optional float roll_range = 5; // how far the camera can rotate around the z-axis / tilt, in radians. default unrestricted
|
|
42
|
-
optional float zoom_min = 6; // minimum zoom level. must be greater than 0. defaults to the input zoom level
|
|
43
|
-
optional float zoom_max = 7; // maximum zoom level. must be greater than 0. defaults to the input zoom level
|
|
23
|
+
decentraland.common.Vector3 area = 1; // the 3D size of the region
|
|
24
|
+
common.CameraType mode = 2; // the camera mode to enforce
|
|
44
25
|
}
|
|
@@ -10,17 +10,4 @@ import "decentraland/sdk/components/common/loading_state.proto";
|
|
|
10
10
|
// the current state of the GltfContainer of an entity.
|
|
11
11
|
message PBGltfContainerLoadingState {
|
|
12
12
|
common.LoadingState current_state = 1;
|
|
13
|
-
repeated string node_paths = 2; // all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents
|
|
14
|
-
repeated string mesh_names = 3; // all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY`
|
|
15
|
-
// where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
|
16
|
-
// conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
|
17
|
-
repeated string material_names = 4; // all materials in the gltf. unnamed materials will be auto-assigned a name of the form `MaterialX` where
|
|
18
|
-
// X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
|
19
|
-
// sure all your materials are explicitly named.
|
|
20
|
-
repeated string skin_names = 5; // all mesh skins in the gltf. unnamed skins will be auto-assigned a name of the form `SkinX` where
|
|
21
|
-
// X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
|
22
|
-
// your skins are explicitly named.
|
|
23
|
-
repeated string animation_names = 6; // all animations in the gltf. unnamed animations will be auto-assigned a name of the form `AnimationX` where
|
|
24
|
-
// X is the animation index. note this may conflict with manually named anims - to avoid any issues make sure all
|
|
25
|
-
// your animations are explicitly named.
|
|
26
13
|
}
|