@dcl/ecs 7.1.12-4959459822.commit-47fda0f → 7.1.12-4960633446.commit-728c1f7
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/dist/components/generated/pb/decentraland/common/border_rect.gen.d.ts +15 -0
- package/dist/components/generated/pb/decentraland/common/border_rect.gen.js +28 -28
- package/dist/components/generated/pb/decentraland/common/colors.gen.d.ts +15 -0
- package/dist/components/generated/pb/decentraland/common/colors.gen.js +27 -27
- package/dist/components/generated/pb/decentraland/common/texture.gen.d.ts +29 -0
- package/dist/components/generated/pb/decentraland/common/texture.gen.js +52 -52
- package/dist/components/generated/pb/decentraland/common/vectors.gen.d.ts +22 -0
- package/dist/components/generated/pb/decentraland/common/vectors.gen.js +38 -38
- package/dist/components/generated/pb/decentraland/sdk/components/animator.gen.d.ts +15 -0
- package/dist/components/generated/pb/decentraland/sdk/components/animator.gen.js +28 -28
- package/dist/components/generated/pb/decentraland/sdk/components/audio_source.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/audio_source.gen.js +15 -15
- package/dist/components/generated/pb/decentraland/sdk/components/audio_stream.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/audio_stream.gen.js +13 -13
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_attach.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_attach.gen.js +12 -12
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_modifier_area.gen.js +14 -14
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/avatar_shape.gen.js +21 -21
- package/dist/components/generated/pb/decentraland/sdk/components/billboard.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/billboard.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/camera_mode.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/camera_mode.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/camera_mode_area.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/camera_mode_area.gen.js +12 -12
- package/dist/components/generated/pb/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/common/raycast_hit.gen.js +17 -17
- package/dist/components/generated/pb/decentraland/sdk/components/engine_info.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/engine_info.gen.js +13 -13
- package/dist/components/generated/pb/decentraland/sdk/components/gltf_container.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/gltf_container.gen.js +13 -13
- package/dist/components/generated/pb/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/gltf_container_loading_state.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/material.gen.d.ts +22 -0
- package/dist/components/generated/pb/decentraland/sdk/components/material.gen.js +52 -52
- package/dist/components/generated/pb/decentraland/sdk/components/mesh_collider.gen.d.ts +36 -0
- package/dist/components/generated/pb/decentraland/sdk/components/mesh_collider.gen.js +57 -57
- package/dist/components/generated/pb/decentraland/sdk/components/mesh_renderer.gen.d.ts +36 -0
- package/dist/components/generated/pb/decentraland/sdk/components/mesh_renderer.gen.js +60 -60
- package/dist/components/generated/pb/decentraland/sdk/components/nft_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/nft_shape.gen.js +13 -13
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +22 -0
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +37 -37
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events_result.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events_result.gen.js +16 -16
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_lock.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/raycast.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/raycast.gen.js +20 -20
- package/dist/components/generated/pb/decentraland/sdk/components/raycast_result.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/raycast_result.gen.js +15 -15
- package/dist/components/generated/pb/decentraland/sdk/components/text_shape.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/text_shape.gen.js +31 -31
- package/dist/components/generated/pb/decentraland/sdk/components/ui_background.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_background.gen.js +16 -16
- package/dist/components/generated/pb/decentraland/sdk/components/ui_canvas_information.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_canvas_information.gen.js +14 -14
- package/dist/components/generated/pb/decentraland/sdk/components/ui_dropdown.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_dropdown.gen.js +19 -19
- package/dist/components/generated/pb/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_dropdown_result.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input.gen.js +18 -18
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input_result.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_input_result.gen.js +11 -11
- package/dist/components/generated/pb/decentraland/sdk/components/ui_text.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_text.gen.js +15 -15
- package/dist/components/generated/pb/decentraland/sdk/components/ui_transform.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/ui_transform.gen.js +61 -61
- package/dist/components/generated/pb/decentraland/sdk/components/video_event.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/video_event.gen.js +15 -15
- package/dist/components/generated/pb/decentraland/sdk/components/video_player.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/video_player.gen.js +16 -16
- package/dist/components/generated/pb/decentraland/sdk/components/visibility_component.gen.d.ts +8 -0
- package/dist/components/generated/pb/decentraland/sdk/components/visibility_component.gen.js +11 -11
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.d.ts +176 -0
- package/dist/components/generated/pb/google/protobuf/descriptor.gen.js +366 -366
- package/dist/composite/proto/gen/composite.gen.d.ts +37 -0
- package/dist/composite/proto/gen/composite.gen.js +73 -65
- package/dist/composite/proto/gen/google/protobuf/struct.gen.d.ts +47 -0
- package/dist/composite/proto/gen/google/protobuf/struct.gen.js +92 -78
- package/package.json +3 -6
|
@@ -30,11 +30,9 @@ function createBasePBTextShape() {
|
|
|
30
30
|
/**
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const PBTextShape = {
|
|
37
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
33
|
+
export var PBTextShape;
|
|
34
|
+
(function (PBTextShape) {
|
|
35
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
38
36
|
if (message.text !== "") {
|
|
39
37
|
writer.uint32(10).string(message.text);
|
|
40
38
|
}
|
|
@@ -99,8 +97,9 @@ export const PBTextShape = {
|
|
|
99
97
|
Color4.encode(message.textColor, writer.uint32(170).fork()).ldelim();
|
|
100
98
|
}
|
|
101
99
|
return writer;
|
|
102
|
-
}
|
|
103
|
-
|
|
100
|
+
}
|
|
101
|
+
PBTextShape.encode = encode;
|
|
102
|
+
function decode(input, length) {
|
|
104
103
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
105
104
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
106
105
|
const message = createBasePBTextShape();
|
|
@@ -108,137 +107,138 @@ export const PBTextShape = {
|
|
|
108
107
|
const tag = reader.uint32();
|
|
109
108
|
switch (tag >>> 3) {
|
|
110
109
|
case 1:
|
|
111
|
-
if (tag
|
|
110
|
+
if (tag !== 10) {
|
|
112
111
|
break;
|
|
113
112
|
}
|
|
114
113
|
message.text = reader.string();
|
|
115
114
|
continue;
|
|
116
115
|
case 2:
|
|
117
|
-
if (tag
|
|
116
|
+
if (tag !== 16) {
|
|
118
117
|
break;
|
|
119
118
|
}
|
|
120
119
|
message.font = reader.int32();
|
|
121
120
|
continue;
|
|
122
121
|
case 3:
|
|
123
|
-
if (tag
|
|
122
|
+
if (tag !== 29) {
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
126
125
|
message.fontSize = reader.float();
|
|
127
126
|
continue;
|
|
128
127
|
case 4:
|
|
129
|
-
if (tag
|
|
128
|
+
if (tag !== 32) {
|
|
130
129
|
break;
|
|
131
130
|
}
|
|
132
131
|
message.fontAutoSize = reader.bool();
|
|
133
132
|
continue;
|
|
134
133
|
case 5:
|
|
135
|
-
if (tag
|
|
134
|
+
if (tag !== 40) {
|
|
136
135
|
break;
|
|
137
136
|
}
|
|
138
137
|
message.textAlign = reader.int32();
|
|
139
138
|
continue;
|
|
140
139
|
case 6:
|
|
141
|
-
if (tag
|
|
140
|
+
if (tag !== 53) {
|
|
142
141
|
break;
|
|
143
142
|
}
|
|
144
143
|
message.width = reader.float();
|
|
145
144
|
continue;
|
|
146
145
|
case 7:
|
|
147
|
-
if (tag
|
|
146
|
+
if (tag !== 61) {
|
|
148
147
|
break;
|
|
149
148
|
}
|
|
150
149
|
message.height = reader.float();
|
|
151
150
|
continue;
|
|
152
151
|
case 8:
|
|
153
|
-
if (tag
|
|
152
|
+
if (tag !== 69) {
|
|
154
153
|
break;
|
|
155
154
|
}
|
|
156
155
|
message.paddingTop = reader.float();
|
|
157
156
|
continue;
|
|
158
157
|
case 9:
|
|
159
|
-
if (tag
|
|
158
|
+
if (tag !== 77) {
|
|
160
159
|
break;
|
|
161
160
|
}
|
|
162
161
|
message.paddingRight = reader.float();
|
|
163
162
|
continue;
|
|
164
163
|
case 10:
|
|
165
|
-
if (tag
|
|
164
|
+
if (tag !== 85) {
|
|
166
165
|
break;
|
|
167
166
|
}
|
|
168
167
|
message.paddingBottom = reader.float();
|
|
169
168
|
continue;
|
|
170
169
|
case 11:
|
|
171
|
-
if (tag
|
|
170
|
+
if (tag !== 93) {
|
|
172
171
|
break;
|
|
173
172
|
}
|
|
174
173
|
message.paddingLeft = reader.float();
|
|
175
174
|
continue;
|
|
176
175
|
case 12:
|
|
177
|
-
if (tag
|
|
176
|
+
if (tag !== 101) {
|
|
178
177
|
break;
|
|
179
178
|
}
|
|
180
179
|
message.lineSpacing = reader.float();
|
|
181
180
|
continue;
|
|
182
181
|
case 13:
|
|
183
|
-
if (tag
|
|
182
|
+
if (tag !== 104) {
|
|
184
183
|
break;
|
|
185
184
|
}
|
|
186
185
|
message.lineCount = reader.int32();
|
|
187
186
|
continue;
|
|
188
187
|
case 14:
|
|
189
|
-
if (tag
|
|
188
|
+
if (tag !== 112) {
|
|
190
189
|
break;
|
|
191
190
|
}
|
|
192
191
|
message.textWrapping = reader.bool();
|
|
193
192
|
continue;
|
|
194
193
|
case 15:
|
|
195
|
-
if (tag
|
|
194
|
+
if (tag !== 125) {
|
|
196
195
|
break;
|
|
197
196
|
}
|
|
198
197
|
message.shadowBlur = reader.float();
|
|
199
198
|
continue;
|
|
200
199
|
case 16:
|
|
201
|
-
if (tag
|
|
200
|
+
if (tag !== 133) {
|
|
202
201
|
break;
|
|
203
202
|
}
|
|
204
203
|
message.shadowOffsetX = reader.float();
|
|
205
204
|
continue;
|
|
206
205
|
case 17:
|
|
207
|
-
if (tag
|
|
206
|
+
if (tag !== 141) {
|
|
208
207
|
break;
|
|
209
208
|
}
|
|
210
209
|
message.shadowOffsetY = reader.float();
|
|
211
210
|
continue;
|
|
212
211
|
case 18:
|
|
213
|
-
if (tag
|
|
212
|
+
if (tag !== 149) {
|
|
214
213
|
break;
|
|
215
214
|
}
|
|
216
215
|
message.outlineWidth = reader.float();
|
|
217
216
|
continue;
|
|
218
217
|
case 19:
|
|
219
|
-
if (tag
|
|
218
|
+
if (tag !== 154) {
|
|
220
219
|
break;
|
|
221
220
|
}
|
|
222
221
|
message.shadowColor = Color3.decode(reader, reader.uint32());
|
|
223
222
|
continue;
|
|
224
223
|
case 20:
|
|
225
|
-
if (tag
|
|
224
|
+
if (tag !== 162) {
|
|
226
225
|
break;
|
|
227
226
|
}
|
|
228
227
|
message.outlineColor = Color3.decode(reader, reader.uint32());
|
|
229
228
|
continue;
|
|
230
229
|
case 21:
|
|
231
|
-
if (tag
|
|
230
|
+
if (tag !== 170) {
|
|
232
231
|
break;
|
|
233
232
|
}
|
|
234
233
|
message.textColor = Color4.decode(reader, reader.uint32());
|
|
235
234
|
continue;
|
|
236
235
|
}
|
|
237
|
-
if ((tag & 7)
|
|
236
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
238
237
|
break;
|
|
239
238
|
}
|
|
240
239
|
reader.skipType(tag & 7);
|
|
241
240
|
}
|
|
242
241
|
return message;
|
|
243
|
-
}
|
|
244
|
-
|
|
242
|
+
}
|
|
243
|
+
PBTextShape.decode = decode;
|
|
244
|
+
})(PBTextShape || (PBTextShape = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
1
2
|
import { BorderRect } from "../../common/border_rect.gen";
|
|
2
3
|
import { Color4 } from "../../common/colors.gen";
|
|
3
4
|
import { TextureUnion } from "../../common/texture.gen";
|
|
@@ -37,3 +38,10 @@ export interface PBUiBackground {
|
|
|
37
38
|
/** default=[0,0,0,1,1,0,1,0]: starting from bottom-left vertex clock-wise */
|
|
38
39
|
uvs: number[];
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare namespace PBUiBackground {
|
|
45
|
+
function encode(message: PBUiBackground, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
47
|
+
}
|
|
@@ -34,11 +34,9 @@ function createBasePBUiBackground() {
|
|
|
34
34
|
/**
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export const PBUiBackground = {
|
|
41
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
37
|
+
export var PBUiBackground;
|
|
38
|
+
(function (PBUiBackground) {
|
|
39
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
42
40
|
if (message.color !== undefined) {
|
|
43
41
|
Color4.encode(message.color, writer.uint32(10).fork()).ldelim();
|
|
44
42
|
}
|
|
@@ -57,8 +55,9 @@ export const PBUiBackground = {
|
|
|
57
55
|
}
|
|
58
56
|
writer.ldelim();
|
|
59
57
|
return writer;
|
|
60
|
-
}
|
|
61
|
-
|
|
58
|
+
}
|
|
59
|
+
PBUiBackground.encode = encode;
|
|
60
|
+
function decode(input, length) {
|
|
62
61
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
63
62
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
64
63
|
const message = createBasePBUiBackground();
|
|
@@ -66,35 +65,35 @@ export const PBUiBackground = {
|
|
|
66
65
|
const tag = reader.uint32();
|
|
67
66
|
switch (tag >>> 3) {
|
|
68
67
|
case 1:
|
|
69
|
-
if (tag
|
|
68
|
+
if (tag !== 10) {
|
|
70
69
|
break;
|
|
71
70
|
}
|
|
72
71
|
message.color = Color4.decode(reader, reader.uint32());
|
|
73
72
|
continue;
|
|
74
73
|
case 2:
|
|
75
|
-
if (tag
|
|
74
|
+
if (tag !== 18) {
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
77
|
message.texture = TextureUnion.decode(reader, reader.uint32());
|
|
79
78
|
continue;
|
|
80
79
|
case 3:
|
|
81
|
-
if (tag
|
|
80
|
+
if (tag !== 24) {
|
|
82
81
|
break;
|
|
83
82
|
}
|
|
84
83
|
message.textureMode = reader.int32();
|
|
85
84
|
continue;
|
|
86
85
|
case 4:
|
|
87
|
-
if (tag
|
|
86
|
+
if (tag !== 34) {
|
|
88
87
|
break;
|
|
89
88
|
}
|
|
90
89
|
message.textureSlices = BorderRect.decode(reader, reader.uint32());
|
|
91
90
|
continue;
|
|
92
91
|
case 5:
|
|
93
|
-
if (tag
|
|
92
|
+
if (tag === 45) {
|
|
94
93
|
message.uvs.push(reader.float());
|
|
95
94
|
continue;
|
|
96
95
|
}
|
|
97
|
-
if (tag
|
|
96
|
+
if (tag === 42) {
|
|
98
97
|
const end2 = reader.uint32() + reader.pos;
|
|
99
98
|
while (reader.pos < end2) {
|
|
100
99
|
message.uvs.push(reader.float());
|
|
@@ -103,11 +102,12 @@ export const PBUiBackground = {
|
|
|
103
102
|
}
|
|
104
103
|
break;
|
|
105
104
|
}
|
|
106
|
-
if ((tag & 7)
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
107
106
|
break;
|
|
108
107
|
}
|
|
109
108
|
reader.skipType(tag & 7);
|
|
110
109
|
}
|
|
111
110
|
return message;
|
|
112
|
-
}
|
|
113
|
-
|
|
111
|
+
}
|
|
112
|
+
PBUiBackground.decode = decode;
|
|
113
|
+
})(PBUiBackground || (PBUiBackground = {}));
|
package/dist/components/generated/pb/decentraland/sdk/components/ui_canvas_information.gen.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
1
2
|
import { BorderRect } from "../../common/border_rect.gen";
|
|
2
3
|
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
|
3
4
|
/**
|
|
@@ -19,3 +20,10 @@ export interface PBUiCanvasInformation {
|
|
|
19
20
|
*/
|
|
20
21
|
interactableArea: BorderRect | undefined;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace PBUiCanvasInformation {
|
|
27
|
+
function encode(message: PBUiCanvasInformation, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiCanvasInformation;
|
|
29
|
+
}
|
package/dist/components/generated/pb/decentraland/sdk/components/ui_canvas_information.gen.js
CHANGED
|
@@ -8,11 +8,9 @@ function createBasePBUiCanvasInformation() {
|
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export const PBUiCanvasInformation = {
|
|
15
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
11
|
+
export var PBUiCanvasInformation;
|
|
12
|
+
(function (PBUiCanvasInformation) {
|
|
13
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
16
14
|
if (message.devicePixelRatio !== 0) {
|
|
17
15
|
writer.uint32(13).float(message.devicePixelRatio);
|
|
18
16
|
}
|
|
@@ -26,8 +24,9 @@ export const PBUiCanvasInformation = {
|
|
|
26
24
|
BorderRect.encode(message.interactableArea, writer.uint32(34).fork()).ldelim();
|
|
27
25
|
}
|
|
28
26
|
return writer;
|
|
29
|
-
}
|
|
30
|
-
|
|
27
|
+
}
|
|
28
|
+
PBUiCanvasInformation.encode = encode;
|
|
29
|
+
function decode(input, length) {
|
|
31
30
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32
31
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
32
|
const message = createBasePBUiCanvasInformation();
|
|
@@ -35,35 +34,36 @@ export const PBUiCanvasInformation = {
|
|
|
35
34
|
const tag = reader.uint32();
|
|
36
35
|
switch (tag >>> 3) {
|
|
37
36
|
case 1:
|
|
38
|
-
if (tag
|
|
37
|
+
if (tag !== 13) {
|
|
39
38
|
break;
|
|
40
39
|
}
|
|
41
40
|
message.devicePixelRatio = reader.float();
|
|
42
41
|
continue;
|
|
43
42
|
case 2:
|
|
44
|
-
if (tag
|
|
43
|
+
if (tag !== 16) {
|
|
45
44
|
break;
|
|
46
45
|
}
|
|
47
46
|
message.width = reader.int32();
|
|
48
47
|
continue;
|
|
49
48
|
case 3:
|
|
50
|
-
if (tag
|
|
49
|
+
if (tag !== 24) {
|
|
51
50
|
break;
|
|
52
51
|
}
|
|
53
52
|
message.height = reader.int32();
|
|
54
53
|
continue;
|
|
55
54
|
case 4:
|
|
56
|
-
if (tag
|
|
55
|
+
if (tag !== 34) {
|
|
57
56
|
break;
|
|
58
57
|
}
|
|
59
58
|
message.interactableArea = BorderRect.decode(reader, reader.uint32());
|
|
60
59
|
continue;
|
|
61
60
|
}
|
|
62
|
-
if ((tag & 7)
|
|
61
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
63
62
|
break;
|
|
64
63
|
}
|
|
65
64
|
reader.skipType(tag & 7);
|
|
66
65
|
}
|
|
67
66
|
return message;
|
|
68
|
-
}
|
|
69
|
-
|
|
67
|
+
}
|
|
68
|
+
PBUiCanvasInformation.decode = decode;
|
|
69
|
+
})(PBUiCanvasInformation || (PBUiCanvasInformation = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
1
2
|
import { Color4 } from "../../common/colors.gen";
|
|
2
3
|
import { Font, TextAlignMode } from "./common/texts.gen";
|
|
3
4
|
/**
|
|
@@ -19,3 +20,10 @@ export interface PBUiDropdown {
|
|
|
19
20
|
/** default=10 */
|
|
20
21
|
fontSize?: number | undefined;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace PBUiDropdown {
|
|
27
|
+
function encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
29
|
+
}
|
|
@@ -18,11 +18,9 @@ function createBasePBUiDropdown() {
|
|
|
18
18
|
/**
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const PBUiDropdown = {
|
|
25
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
21
|
+
export var PBUiDropdown;
|
|
22
|
+
(function (PBUiDropdown) {
|
|
23
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
26
24
|
if (message.acceptEmpty === true) {
|
|
27
25
|
writer.uint32(8).bool(message.acceptEmpty);
|
|
28
26
|
}
|
|
@@ -51,8 +49,9 @@ export const PBUiDropdown = {
|
|
|
51
49
|
writer.uint32(96).int32(message.fontSize);
|
|
52
50
|
}
|
|
53
51
|
return writer;
|
|
54
|
-
}
|
|
55
|
-
|
|
52
|
+
}
|
|
53
|
+
PBUiDropdown.encode = encode;
|
|
54
|
+
function decode(input, length) {
|
|
56
55
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
57
56
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
57
|
const message = createBasePBUiDropdown();
|
|
@@ -60,65 +59,66 @@ export const PBUiDropdown = {
|
|
|
60
59
|
const tag = reader.uint32();
|
|
61
60
|
switch (tag >>> 3) {
|
|
62
61
|
case 1:
|
|
63
|
-
if (tag
|
|
62
|
+
if (tag !== 8) {
|
|
64
63
|
break;
|
|
65
64
|
}
|
|
66
65
|
message.acceptEmpty = reader.bool();
|
|
67
66
|
continue;
|
|
68
67
|
case 2:
|
|
69
|
-
if (tag
|
|
68
|
+
if (tag !== 18) {
|
|
70
69
|
break;
|
|
71
70
|
}
|
|
72
71
|
message.emptyLabel = reader.string();
|
|
73
72
|
continue;
|
|
74
73
|
case 3:
|
|
75
|
-
if (tag
|
|
74
|
+
if (tag !== 26) {
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
77
|
message.options.push(reader.string());
|
|
79
78
|
continue;
|
|
80
79
|
case 4:
|
|
81
|
-
if (tag
|
|
80
|
+
if (tag !== 32) {
|
|
82
81
|
break;
|
|
83
82
|
}
|
|
84
83
|
message.selectedIndex = reader.int32();
|
|
85
84
|
continue;
|
|
86
85
|
case 5:
|
|
87
|
-
if (tag
|
|
86
|
+
if (tag !== 40) {
|
|
88
87
|
break;
|
|
89
88
|
}
|
|
90
89
|
message.disabled = reader.bool();
|
|
91
90
|
continue;
|
|
92
91
|
case 6:
|
|
93
|
-
if (tag
|
|
92
|
+
if (tag !== 50) {
|
|
94
93
|
break;
|
|
95
94
|
}
|
|
96
95
|
message.color = Color4.decode(reader, reader.uint32());
|
|
97
96
|
continue;
|
|
98
97
|
case 10:
|
|
99
|
-
if (tag
|
|
98
|
+
if (tag !== 80) {
|
|
100
99
|
break;
|
|
101
100
|
}
|
|
102
101
|
message.textAlign = reader.int32();
|
|
103
102
|
continue;
|
|
104
103
|
case 11:
|
|
105
|
-
if (tag
|
|
104
|
+
if (tag !== 88) {
|
|
106
105
|
break;
|
|
107
106
|
}
|
|
108
107
|
message.font = reader.int32();
|
|
109
108
|
continue;
|
|
110
109
|
case 12:
|
|
111
|
-
if (tag
|
|
110
|
+
if (tag !== 96) {
|
|
112
111
|
break;
|
|
113
112
|
}
|
|
114
113
|
message.fontSize = reader.int32();
|
|
115
114
|
continue;
|
|
116
115
|
}
|
|
117
|
-
if ((tag & 7)
|
|
116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
118
117
|
break;
|
|
119
118
|
}
|
|
120
119
|
reader.skipType(tag & 7);
|
|
121
120
|
}
|
|
122
121
|
return message;
|
|
123
|
-
}
|
|
124
|
-
|
|
122
|
+
}
|
|
123
|
+
PBUiDropdown.decode = decode;
|
|
124
|
+
})(PBUiDropdown || (PBUiDropdown = {}));
|
package/dist/components/generated/pb/decentraland/sdk/components/ui_dropdown_result.gen.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
1
2
|
/**
|
|
2
3
|
* @public
|
|
3
4
|
*/
|
|
4
5
|
export interface PBUiDropdownResult {
|
|
5
6
|
value: number;
|
|
6
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare namespace PBUiDropdownResult {
|
|
12
|
+
function encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
14
|
+
}
|
|
@@ -7,17 +7,16 @@ function createBasePBUiDropdownResult() {
|
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export const PBUiDropdownResult = {
|
|
14
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
10
|
+
export var PBUiDropdownResult;
|
|
11
|
+
(function (PBUiDropdownResult) {
|
|
12
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
15
13
|
if (message.value !== 0) {
|
|
16
14
|
writer.uint32(8).int32(message.value);
|
|
17
15
|
}
|
|
18
16
|
return writer;
|
|
19
|
-
}
|
|
20
|
-
|
|
17
|
+
}
|
|
18
|
+
PBUiDropdownResult.encode = encode;
|
|
19
|
+
function decode(input, length) {
|
|
21
20
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22
21
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
22
|
const message = createBasePBUiDropdownResult();
|
|
@@ -25,17 +24,18 @@ export const PBUiDropdownResult = {
|
|
|
25
24
|
const tag = reader.uint32();
|
|
26
25
|
switch (tag >>> 3) {
|
|
27
26
|
case 1:
|
|
28
|
-
if (tag
|
|
27
|
+
if (tag !== 8) {
|
|
29
28
|
break;
|
|
30
29
|
}
|
|
31
30
|
message.value = reader.int32();
|
|
32
31
|
continue;
|
|
33
32
|
}
|
|
34
|
-
if ((tag & 7)
|
|
33
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35
34
|
break;
|
|
36
35
|
}
|
|
37
36
|
reader.skipType(tag & 7);
|
|
38
37
|
}
|
|
39
38
|
return message;
|
|
40
|
-
}
|
|
41
|
-
|
|
39
|
+
}
|
|
40
|
+
PBUiDropdownResult.decode = decode;
|
|
41
|
+
})(PBUiDropdownResult || (PBUiDropdownResult = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
1
2
|
import { Color4 } from "../../common/colors.gen";
|
|
2
3
|
import { Font, TextAlignMode } from "./common/texts.gen";
|
|
3
4
|
/**
|
|
@@ -18,3 +19,10 @@ export interface PBUiInput {
|
|
|
18
19
|
fontSize?: number | undefined;
|
|
19
20
|
value?: string | undefined;
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare namespace PBUiInput {
|
|
26
|
+
function encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
28
|
+
}
|
|
@@ -17,11 +17,9 @@ function createBasePBUiInput() {
|
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export const PBUiInput = {
|
|
24
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
20
|
+
export var PBUiInput;
|
|
21
|
+
(function (PBUiInput) {
|
|
22
|
+
function encode(message, writer = _m0.Writer.create()) {
|
|
25
23
|
if (message.placeholder !== "") {
|
|
26
24
|
writer.uint32(10).string(message.placeholder);
|
|
27
25
|
}
|
|
@@ -47,8 +45,9 @@ export const PBUiInput = {
|
|
|
47
45
|
writer.uint32(106).string(message.value);
|
|
48
46
|
}
|
|
49
47
|
return writer;
|
|
50
|
-
}
|
|
51
|
-
|
|
48
|
+
}
|
|
49
|
+
PBUiInput.encode = encode;
|
|
50
|
+
function decode(input, length) {
|
|
52
51
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
53
52
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
53
|
const message = createBasePBUiInput();
|
|
@@ -56,59 +55,60 @@ export const PBUiInput = {
|
|
|
56
55
|
const tag = reader.uint32();
|
|
57
56
|
switch (tag >>> 3) {
|
|
58
57
|
case 1:
|
|
59
|
-
if (tag
|
|
58
|
+
if (tag !== 10) {
|
|
60
59
|
break;
|
|
61
60
|
}
|
|
62
61
|
message.placeholder = reader.string();
|
|
63
62
|
continue;
|
|
64
63
|
case 2:
|
|
65
|
-
if (tag
|
|
64
|
+
if (tag !== 18) {
|
|
66
65
|
break;
|
|
67
66
|
}
|
|
68
67
|
message.color = Color4.decode(reader, reader.uint32());
|
|
69
68
|
continue;
|
|
70
69
|
case 3:
|
|
71
|
-
if (tag
|
|
70
|
+
if (tag !== 26) {
|
|
72
71
|
break;
|
|
73
72
|
}
|
|
74
73
|
message.placeholderColor = Color4.decode(reader, reader.uint32());
|
|
75
74
|
continue;
|
|
76
75
|
case 4:
|
|
77
|
-
if (tag
|
|
76
|
+
if (tag !== 32) {
|
|
78
77
|
break;
|
|
79
78
|
}
|
|
80
79
|
message.disabled = reader.bool();
|
|
81
80
|
continue;
|
|
82
81
|
case 10:
|
|
83
|
-
if (tag
|
|
82
|
+
if (tag !== 80) {
|
|
84
83
|
break;
|
|
85
84
|
}
|
|
86
85
|
message.textAlign = reader.int32();
|
|
87
86
|
continue;
|
|
88
87
|
case 11:
|
|
89
|
-
if (tag
|
|
88
|
+
if (tag !== 88) {
|
|
90
89
|
break;
|
|
91
90
|
}
|
|
92
91
|
message.font = reader.int32();
|
|
93
92
|
continue;
|
|
94
93
|
case 12:
|
|
95
|
-
if (tag
|
|
94
|
+
if (tag !== 96) {
|
|
96
95
|
break;
|
|
97
96
|
}
|
|
98
97
|
message.fontSize = reader.int32();
|
|
99
98
|
continue;
|
|
100
99
|
case 13:
|
|
101
|
-
if (tag
|
|
100
|
+
if (tag !== 106) {
|
|
102
101
|
break;
|
|
103
102
|
}
|
|
104
103
|
message.value = reader.string();
|
|
105
104
|
continue;
|
|
106
105
|
}
|
|
107
|
-
if ((tag & 7)
|
|
106
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
108
107
|
break;
|
|
109
108
|
}
|
|
110
109
|
reader.skipType(tag & 7);
|
|
111
110
|
}
|
|
112
111
|
return message;
|
|
113
|
-
}
|
|
114
|
-
|
|
112
|
+
}
|
|
113
|
+
PBUiInput.decode = decode;
|
|
114
|
+
})(PBUiInput || (PBUiInput = {}));
|