@dcl/protocol 1.0.0-22584828914.commit-50f6aeb → 1.0.0-22668989180.commit-25aa736
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/kernel/comms/rfc4/comms.gen.d.ts +0 -58
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +19 -393
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -10
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +1 -52
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +3 -31
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +0 -36
- package/out-js/decentraland/sdk/components/tween.gen.js +6 -302
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +3 -451
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -51
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +3 -44
- package/out-ts/decentraland/sdk/components/tween.gen.ts +0 -333
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +1 -38
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -8
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/pointer_events.proto +0 -2
- package/proto/decentraland/sdk/components/tween.proto +0 -18
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -21
|
@@ -17,7 +17,6 @@ export enum InputAction {
|
|
|
17
17
|
IA_ACTION_4 = 11,
|
|
18
18
|
IA_ACTION_5 = 12,
|
|
19
19
|
IA_ACTION_6 = 13,
|
|
20
|
-
IA_MODIFIER = 14,
|
|
21
20
|
UNRECOGNIZED = -1,
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -65,9 +64,6 @@ export function inputActionFromJSON(object: any): InputAction {
|
|
|
65
64
|
case 13:
|
|
66
65
|
case "IA_ACTION_6":
|
|
67
66
|
return InputAction.IA_ACTION_6;
|
|
68
|
-
case 14:
|
|
69
|
-
case "IA_MODIFIER":
|
|
70
|
-
return InputAction.IA_MODIFIER;
|
|
71
67
|
case -1:
|
|
72
68
|
case "UNRECOGNIZED":
|
|
73
69
|
default:
|
|
@@ -105,8 +101,6 @@ export function inputActionToJSON(object: InputAction): string {
|
|
|
105
101
|
return "IA_ACTION_5";
|
|
106
102
|
case InputAction.IA_ACTION_6:
|
|
107
103
|
return "IA_ACTION_6";
|
|
108
|
-
case InputAction.IA_MODIFIER:
|
|
109
|
-
return "IA_MODIFIER";
|
|
110
104
|
case InputAction.UNRECOGNIZED:
|
|
111
105
|
default:
|
|
112
106
|
return "UNRECOGNIZED";
|
|
@@ -119,8 +113,6 @@ export enum PointerEventType {
|
|
|
119
113
|
PET_DOWN = 1,
|
|
120
114
|
PET_HOVER_ENTER = 2,
|
|
121
115
|
PET_HOVER_LEAVE = 3,
|
|
122
|
-
PET_PROXIMITY_ENTER = 4,
|
|
123
|
-
PET_PROXIMITY_LEAVE = 5,
|
|
124
116
|
UNRECOGNIZED = -1,
|
|
125
117
|
}
|
|
126
118
|
|
|
@@ -138,12 +130,6 @@ export function pointerEventTypeFromJSON(object: any): PointerEventType {
|
|
|
138
130
|
case 3:
|
|
139
131
|
case "PET_HOVER_LEAVE":
|
|
140
132
|
return PointerEventType.PET_HOVER_LEAVE;
|
|
141
|
-
case 4:
|
|
142
|
-
case "PET_PROXIMITY_ENTER":
|
|
143
|
-
return PointerEventType.PET_PROXIMITY_ENTER;
|
|
144
|
-
case 5:
|
|
145
|
-
case "PET_PROXIMITY_LEAVE":
|
|
146
|
-
return PointerEventType.PET_PROXIMITY_LEAVE;
|
|
147
133
|
case -1:
|
|
148
134
|
case "UNRECOGNIZED":
|
|
149
135
|
default:
|
|
@@ -161,45 +147,8 @@ export function pointerEventTypeToJSON(object: PointerEventType): string {
|
|
|
161
147
|
return "PET_HOVER_ENTER";
|
|
162
148
|
case PointerEventType.PET_HOVER_LEAVE:
|
|
163
149
|
return "PET_HOVER_LEAVE";
|
|
164
|
-
case PointerEventType.PET_PROXIMITY_ENTER:
|
|
165
|
-
return "PET_PROXIMITY_ENTER";
|
|
166
|
-
case PointerEventType.PET_PROXIMITY_LEAVE:
|
|
167
|
-
return "PET_PROXIMITY_LEAVE";
|
|
168
150
|
case PointerEventType.UNRECOGNIZED:
|
|
169
151
|
default:
|
|
170
152
|
return "UNRECOGNIZED";
|
|
171
153
|
}
|
|
172
154
|
}
|
|
173
|
-
|
|
174
|
-
export enum InteractionType {
|
|
175
|
-
CURSOR = 0,
|
|
176
|
-
PROXIMITY = 1,
|
|
177
|
-
UNRECOGNIZED = -1,
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export function interactionTypeFromJSON(object: any): InteractionType {
|
|
181
|
-
switch (object) {
|
|
182
|
-
case 0:
|
|
183
|
-
case "CURSOR":
|
|
184
|
-
return InteractionType.CURSOR;
|
|
185
|
-
case 1:
|
|
186
|
-
case "PROXIMITY":
|
|
187
|
-
return InteractionType.PROXIMITY;
|
|
188
|
-
case -1:
|
|
189
|
-
case "UNRECOGNIZED":
|
|
190
|
-
default:
|
|
191
|
-
return InteractionType.UNRECOGNIZED;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export function interactionTypeToJSON(object: InteractionType): string {
|
|
196
|
-
switch (object) {
|
|
197
|
-
case InteractionType.CURSOR:
|
|
198
|
-
return "CURSOR";
|
|
199
|
-
case InteractionType.PROXIMITY:
|
|
200
|
-
return "PROXIMITY";
|
|
201
|
-
case InteractionType.UNRECOGNIZED:
|
|
202
|
-
default:
|
|
203
|
-
return "UNRECOGNIZED";
|
|
204
|
-
}
|
|
205
|
-
}
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
InputAction,
|
|
5
5
|
inputActionFromJSON,
|
|
6
6
|
inputActionToJSON,
|
|
7
|
-
InteractionType,
|
|
8
|
-
interactionTypeFromJSON,
|
|
9
|
-
interactionTypeToJSON,
|
|
10
7
|
PointerEventType,
|
|
11
8
|
pointerEventTypeFromJSON,
|
|
12
9
|
pointerEventTypeToJSON,
|
|
@@ -79,22 +76,14 @@ export interface PBPointerEvents_Info {
|
|
|
79
76
|
| boolean
|
|
80
77
|
| undefined;
|
|
81
78
|
/** range of interaction from the avatar's position (default 0) */
|
|
82
|
-
maxPlayerDistance?:
|
|
83
|
-
| number
|
|
84
|
-
| undefined;
|
|
85
|
-
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
86
|
-
priority?: number | undefined;
|
|
79
|
+
maxPlayerDistance?: number | undefined;
|
|
87
80
|
}
|
|
88
81
|
|
|
89
82
|
export interface PBPointerEvents_Entry {
|
|
90
83
|
/** the kind of interaction to detect */
|
|
91
84
|
eventType: PointerEventType;
|
|
92
85
|
/** additional configuration for this detection */
|
|
93
|
-
eventInfo:
|
|
94
|
-
| PBPointerEvents_Info
|
|
95
|
-
| undefined;
|
|
96
|
-
/** the type of interaction source (default 0 == CURSOR) */
|
|
97
|
-
interactionType?: InteractionType | undefined;
|
|
86
|
+
eventInfo: PBPointerEvents_Info | undefined;
|
|
98
87
|
}
|
|
99
88
|
|
|
100
89
|
function createBasePBPointerEvents(): PBPointerEvents {
|
|
@@ -169,7 +158,6 @@ function createBasePBPointerEvents_Info(): PBPointerEvents_Info {
|
|
|
169
158
|
showFeedback: undefined,
|
|
170
159
|
showHighlight: undefined,
|
|
171
160
|
maxPlayerDistance: undefined,
|
|
172
|
-
priority: undefined,
|
|
173
161
|
};
|
|
174
162
|
}
|
|
175
163
|
|
|
@@ -193,9 +181,6 @@ export namespace PBPointerEvents_Info {
|
|
|
193
181
|
if (message.maxPlayerDistance !== undefined) {
|
|
194
182
|
writer.uint32(53).float(message.maxPlayerDistance);
|
|
195
183
|
}
|
|
196
|
-
if (message.priority !== undefined) {
|
|
197
|
-
writer.uint32(56).uint32(message.priority);
|
|
198
|
-
}
|
|
199
184
|
return writer;
|
|
200
185
|
}
|
|
201
186
|
|
|
@@ -248,13 +233,6 @@ export namespace PBPointerEvents_Info {
|
|
|
248
233
|
|
|
249
234
|
message.maxPlayerDistance = reader.float();
|
|
250
235
|
continue;
|
|
251
|
-
case 7:
|
|
252
|
-
if (tag !== 56) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message.priority = reader.uint32();
|
|
257
|
-
continue;
|
|
258
236
|
}
|
|
259
237
|
if ((tag & 7) === 4 || tag === 0) {
|
|
260
238
|
break;
|
|
@@ -272,7 +250,6 @@ export namespace PBPointerEvents_Info {
|
|
|
272
250
|
showFeedback: isSet(object.showFeedback) ? Boolean(object.showFeedback) : undefined,
|
|
273
251
|
showHighlight: isSet(object.showHighlight) ? Boolean(object.showHighlight) : undefined,
|
|
274
252
|
maxPlayerDistance: isSet(object.maxPlayerDistance) ? Number(object.maxPlayerDistance) : undefined,
|
|
275
|
-
priority: isSet(object.priority) ? Number(object.priority) : undefined,
|
|
276
253
|
};
|
|
277
254
|
}
|
|
278
255
|
|
|
@@ -285,7 +262,6 @@ export namespace PBPointerEvents_Info {
|
|
|
285
262
|
message.showFeedback !== undefined && (obj.showFeedback = message.showFeedback);
|
|
286
263
|
message.showHighlight !== undefined && (obj.showHighlight = message.showHighlight);
|
|
287
264
|
message.maxPlayerDistance !== undefined && (obj.maxPlayerDistance = message.maxPlayerDistance);
|
|
288
|
-
message.priority !== undefined && (obj.priority = Math.round(message.priority));
|
|
289
265
|
return obj;
|
|
290
266
|
}
|
|
291
267
|
|
|
@@ -301,13 +277,12 @@ export namespace PBPointerEvents_Info {
|
|
|
301
277
|
message.showFeedback = object.showFeedback ?? undefined;
|
|
302
278
|
message.showHighlight = object.showHighlight ?? undefined;
|
|
303
279
|
message.maxPlayerDistance = object.maxPlayerDistance ?? undefined;
|
|
304
|
-
message.priority = object.priority ?? undefined;
|
|
305
280
|
return message;
|
|
306
281
|
}
|
|
307
282
|
}
|
|
308
283
|
|
|
309
284
|
function createBasePBPointerEvents_Entry(): PBPointerEvents_Entry {
|
|
310
|
-
return { eventType: 0, eventInfo: undefined
|
|
285
|
+
return { eventType: 0, eventInfo: undefined };
|
|
311
286
|
}
|
|
312
287
|
|
|
313
288
|
export namespace PBPointerEvents_Entry {
|
|
@@ -318,9 +293,6 @@ export namespace PBPointerEvents_Entry {
|
|
|
318
293
|
if (message.eventInfo !== undefined) {
|
|
319
294
|
PBPointerEvents_Info.encode(message.eventInfo, writer.uint32(18).fork()).ldelim();
|
|
320
295
|
}
|
|
321
|
-
if (message.interactionType !== undefined) {
|
|
322
|
-
writer.uint32(24).int32(message.interactionType);
|
|
323
|
-
}
|
|
324
296
|
return writer;
|
|
325
297
|
}
|
|
326
298
|
|
|
@@ -345,13 +317,6 @@ export namespace PBPointerEvents_Entry {
|
|
|
345
317
|
|
|
346
318
|
message.eventInfo = PBPointerEvents_Info.decode(reader, reader.uint32());
|
|
347
319
|
continue;
|
|
348
|
-
case 3:
|
|
349
|
-
if (tag !== 24) {
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
message.interactionType = reader.int32() as any;
|
|
354
|
-
continue;
|
|
355
320
|
}
|
|
356
321
|
if ((tag & 7) === 4 || tag === 0) {
|
|
357
322
|
break;
|
|
@@ -365,7 +330,6 @@ export namespace PBPointerEvents_Entry {
|
|
|
365
330
|
return {
|
|
366
331
|
eventType: isSet(object.eventType) ? pointerEventTypeFromJSON(object.eventType) : 0,
|
|
367
332
|
eventInfo: isSet(object.eventInfo) ? PBPointerEvents_Info.fromJSON(object.eventInfo) : undefined,
|
|
368
|
-
interactionType: isSet(object.interactionType) ? interactionTypeFromJSON(object.interactionType) : undefined,
|
|
369
333
|
};
|
|
370
334
|
}
|
|
371
335
|
|
|
@@ -374,10 +338,6 @@ export namespace PBPointerEvents_Entry {
|
|
|
374
338
|
message.eventType !== undefined && (obj.eventType = pointerEventTypeToJSON(message.eventType));
|
|
375
339
|
message.eventInfo !== undefined &&
|
|
376
340
|
(obj.eventInfo = message.eventInfo ? PBPointerEvents_Info.toJSON(message.eventInfo) : undefined);
|
|
377
|
-
message.interactionType !== undefined &&
|
|
378
|
-
(obj.interactionType = message.interactionType !== undefined
|
|
379
|
-
? interactionTypeToJSON(message.interactionType)
|
|
380
|
-
: undefined);
|
|
381
341
|
return obj;
|
|
382
342
|
}
|
|
383
343
|
|
|
@@ -393,7 +353,6 @@ export namespace PBPointerEvents_Entry {
|
|
|
393
353
|
message.eventInfo = (object.eventInfo !== undefined && object.eventInfo !== null)
|
|
394
354
|
? PBPointerEvents_Info.fromPartial(object.eventInfo)
|
|
395
355
|
: undefined;
|
|
396
|
-
message.interactionType = object.interactionType ?? undefined;
|
|
397
356
|
return message;
|
|
398
357
|
}
|
|
399
358
|
}
|
|
@@ -262,8 +262,6 @@ export interface PBTween {
|
|
|
262
262
|
| { $case: "rotateContinuous"; rotateContinuous: RotateContinuous }
|
|
263
263
|
| { $case: "moveContinuous"; moveContinuous: MoveContinuous }
|
|
264
264
|
| { $case: "textureMoveContinuous"; textureMoveContinuous: TextureMoveContinuous }
|
|
265
|
-
| { $case: "moveRotateScale"; moveRotateScale: MoveRotateScale }
|
|
266
|
-
| { $case: "moveRotateScaleContinuous"; moveRotateScaleContinuous: MoveRotateScaleContinuous }
|
|
267
265
|
| undefined;
|
|
268
266
|
/** default true (pause or running) */
|
|
269
267
|
playing?:
|
|
@@ -289,15 +287,6 @@ export interface Scale {
|
|
|
289
287
|
end: Vector3 | undefined;
|
|
290
288
|
}
|
|
291
289
|
|
|
292
|
-
export interface MoveRotateScale {
|
|
293
|
-
positionStart: Vector3 | undefined;
|
|
294
|
-
positionEnd: Vector3 | undefined;
|
|
295
|
-
rotationStart: Quaternion | undefined;
|
|
296
|
-
rotationEnd: Quaternion | undefined;
|
|
297
|
-
scaleStart: Vector3 | undefined;
|
|
298
|
-
scaleEnd: Vector3 | undefined;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
290
|
/**
|
|
302
291
|
* This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
|
|
303
292
|
* You can also specify the movement type (offset or tiling)
|
|
@@ -321,13 +310,6 @@ export interface MoveContinuous {
|
|
|
321
310
|
speed: number;
|
|
322
311
|
}
|
|
323
312
|
|
|
324
|
-
export interface MoveRotateScaleContinuous {
|
|
325
|
-
positionDirection: Vector3 | undefined;
|
|
326
|
-
rotationDirection: Quaternion | undefined;
|
|
327
|
-
scaleDirection: Vector3 | undefined;
|
|
328
|
-
speed: number;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
313
|
export interface TextureMoveContinuous {
|
|
332
314
|
direction: Vector2 | undefined;
|
|
333
315
|
speed: number;
|
|
@@ -369,12 +351,6 @@ export namespace PBTween {
|
|
|
369
351
|
case "textureMoveContinuous":
|
|
370
352
|
TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
|
|
371
353
|
break;
|
|
372
|
-
case "moveRotateScale":
|
|
373
|
-
MoveRotateScale.encode(message.mode.moveRotateScale, writer.uint32(98).fork()).ldelim();
|
|
374
|
-
break;
|
|
375
|
-
case "moveRotateScaleContinuous":
|
|
376
|
-
MoveRotateScaleContinuous.encode(message.mode.moveRotateScaleContinuous, writer.uint32(106).fork()).ldelim();
|
|
377
|
-
break;
|
|
378
354
|
}
|
|
379
355
|
if (message.playing !== undefined) {
|
|
380
356
|
writer.uint32(48).bool(message.playing);
|
|
@@ -461,23 +437,6 @@ export namespace PBTween {
|
|
|
461
437
|
textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
|
|
462
438
|
};
|
|
463
439
|
continue;
|
|
464
|
-
case 12:
|
|
465
|
-
if (tag !== 98) {
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
message.mode = { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.decode(reader, reader.uint32()) };
|
|
470
|
-
continue;
|
|
471
|
-
case 13:
|
|
472
|
-
if (tag !== 106) {
|
|
473
|
-
break;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
message.mode = {
|
|
477
|
-
$case: "moveRotateScaleContinuous",
|
|
478
|
-
moveRotateScaleContinuous: MoveRotateScaleContinuous.decode(reader, reader.uint32()),
|
|
479
|
-
};
|
|
480
|
-
continue;
|
|
481
440
|
case 6:
|
|
482
441
|
if (tag !== 48) {
|
|
483
442
|
break;
|
|
@@ -522,13 +481,6 @@ export namespace PBTween {
|
|
|
522
481
|
$case: "textureMoveContinuous",
|
|
523
482
|
textureMoveContinuous: TextureMoveContinuous.fromJSON(object.textureMoveContinuous),
|
|
524
483
|
}
|
|
525
|
-
: isSet(object.moveRotateScale)
|
|
526
|
-
? { $case: "moveRotateScale", moveRotateScale: MoveRotateScale.fromJSON(object.moveRotateScale) }
|
|
527
|
-
: isSet(object.moveRotateScaleContinuous)
|
|
528
|
-
? {
|
|
529
|
-
$case: "moveRotateScaleContinuous",
|
|
530
|
-
moveRotateScaleContinuous: MoveRotateScaleContinuous.fromJSON(object.moveRotateScaleContinuous),
|
|
531
|
-
}
|
|
532
484
|
: undefined,
|
|
533
485
|
playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
|
|
534
486
|
currentTime: isSet(object.currentTime) ? Number(object.currentTime) : undefined,
|
|
@@ -558,14 +510,6 @@ export namespace PBTween {
|
|
|
558
510
|
(obj.textureMoveContinuous = message.mode?.textureMoveContinuous
|
|
559
511
|
? TextureMoveContinuous.toJSON(message.mode?.textureMoveContinuous)
|
|
560
512
|
: undefined);
|
|
561
|
-
message.mode?.$case === "moveRotateScale" &&
|
|
562
|
-
(obj.moveRotateScale = message.mode?.moveRotateScale
|
|
563
|
-
? MoveRotateScale.toJSON(message.mode?.moveRotateScale)
|
|
564
|
-
: undefined);
|
|
565
|
-
message.mode?.$case === "moveRotateScaleContinuous" &&
|
|
566
|
-
(obj.moveRotateScaleContinuous = message.mode?.moveRotateScaleContinuous
|
|
567
|
-
? MoveRotateScaleContinuous.toJSON(message.mode?.moveRotateScaleContinuous)
|
|
568
|
-
: undefined);
|
|
569
513
|
message.playing !== undefined && (obj.playing = message.playing);
|
|
570
514
|
message.currentTime !== undefined && (obj.currentTime = message.currentTime);
|
|
571
515
|
return obj;
|
|
@@ -625,26 +569,6 @@ export namespace PBTween {
|
|
|
625
569
|
textureMoveContinuous: TextureMoveContinuous.fromPartial(object.mode.textureMoveContinuous),
|
|
626
570
|
};
|
|
627
571
|
}
|
|
628
|
-
if (
|
|
629
|
-
object.mode?.$case === "moveRotateScale" &&
|
|
630
|
-
object.mode?.moveRotateScale !== undefined &&
|
|
631
|
-
object.mode?.moveRotateScale !== null
|
|
632
|
-
) {
|
|
633
|
-
message.mode = {
|
|
634
|
-
$case: "moveRotateScale",
|
|
635
|
-
moveRotateScale: MoveRotateScale.fromPartial(object.mode.moveRotateScale),
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
if (
|
|
639
|
-
object.mode?.$case === "moveRotateScaleContinuous" &&
|
|
640
|
-
object.mode?.moveRotateScaleContinuous !== undefined &&
|
|
641
|
-
object.mode?.moveRotateScaleContinuous !== null
|
|
642
|
-
) {
|
|
643
|
-
message.mode = {
|
|
644
|
-
$case: "moveRotateScaleContinuous",
|
|
645
|
-
moveRotateScaleContinuous: MoveRotateScaleContinuous.fromPartial(object.mode.moveRotateScaleContinuous),
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
572
|
message.playing = object.playing ?? undefined;
|
|
649
573
|
message.currentTime = object.currentTime ?? undefined;
|
|
650
574
|
return message;
|
|
@@ -883,153 +807,6 @@ export namespace Scale {
|
|
|
883
807
|
}
|
|
884
808
|
}
|
|
885
809
|
|
|
886
|
-
function createBaseMoveRotateScale(): MoveRotateScale {
|
|
887
|
-
return {
|
|
888
|
-
positionStart: undefined,
|
|
889
|
-
positionEnd: undefined,
|
|
890
|
-
rotationStart: undefined,
|
|
891
|
-
rotationEnd: undefined,
|
|
892
|
-
scaleStart: undefined,
|
|
893
|
-
scaleEnd: undefined,
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
export namespace MoveRotateScale {
|
|
898
|
-
export function encode(message: MoveRotateScale, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
899
|
-
if (message.positionStart !== undefined) {
|
|
900
|
-
Vector3.encode(message.positionStart, writer.uint32(10).fork()).ldelim();
|
|
901
|
-
}
|
|
902
|
-
if (message.positionEnd !== undefined) {
|
|
903
|
-
Vector3.encode(message.positionEnd, writer.uint32(18).fork()).ldelim();
|
|
904
|
-
}
|
|
905
|
-
if (message.rotationStart !== undefined) {
|
|
906
|
-
Quaternion.encode(message.rotationStart, writer.uint32(26).fork()).ldelim();
|
|
907
|
-
}
|
|
908
|
-
if (message.rotationEnd !== undefined) {
|
|
909
|
-
Quaternion.encode(message.rotationEnd, writer.uint32(34).fork()).ldelim();
|
|
910
|
-
}
|
|
911
|
-
if (message.scaleStart !== undefined) {
|
|
912
|
-
Vector3.encode(message.scaleStart, writer.uint32(42).fork()).ldelim();
|
|
913
|
-
}
|
|
914
|
-
if (message.scaleEnd !== undefined) {
|
|
915
|
-
Vector3.encode(message.scaleEnd, writer.uint32(50).fork()).ldelim();
|
|
916
|
-
}
|
|
917
|
-
return writer;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScale {
|
|
921
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
922
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
923
|
-
const message = createBaseMoveRotateScale();
|
|
924
|
-
while (reader.pos < end) {
|
|
925
|
-
const tag = reader.uint32();
|
|
926
|
-
switch (tag >>> 3) {
|
|
927
|
-
case 1:
|
|
928
|
-
if (tag !== 10) {
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
message.positionStart = Vector3.decode(reader, reader.uint32());
|
|
933
|
-
continue;
|
|
934
|
-
case 2:
|
|
935
|
-
if (tag !== 18) {
|
|
936
|
-
break;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
message.positionEnd = Vector3.decode(reader, reader.uint32());
|
|
940
|
-
continue;
|
|
941
|
-
case 3:
|
|
942
|
-
if (tag !== 26) {
|
|
943
|
-
break;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
message.rotationStart = Quaternion.decode(reader, reader.uint32());
|
|
947
|
-
continue;
|
|
948
|
-
case 4:
|
|
949
|
-
if (tag !== 34) {
|
|
950
|
-
break;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
message.rotationEnd = Quaternion.decode(reader, reader.uint32());
|
|
954
|
-
continue;
|
|
955
|
-
case 5:
|
|
956
|
-
if (tag !== 42) {
|
|
957
|
-
break;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
message.scaleStart = Vector3.decode(reader, reader.uint32());
|
|
961
|
-
continue;
|
|
962
|
-
case 6:
|
|
963
|
-
if (tag !== 50) {
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
message.scaleEnd = Vector3.decode(reader, reader.uint32());
|
|
968
|
-
continue;
|
|
969
|
-
}
|
|
970
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
reader.skipType(tag & 7);
|
|
974
|
-
}
|
|
975
|
-
return message;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
export function fromJSON(object: any): MoveRotateScale {
|
|
979
|
-
return {
|
|
980
|
-
positionStart: isSet(object.positionStart) ? Vector3.fromJSON(object.positionStart) : undefined,
|
|
981
|
-
positionEnd: isSet(object.positionEnd) ? Vector3.fromJSON(object.positionEnd) : undefined,
|
|
982
|
-
rotationStart: isSet(object.rotationStart) ? Quaternion.fromJSON(object.rotationStart) : undefined,
|
|
983
|
-
rotationEnd: isSet(object.rotationEnd) ? Quaternion.fromJSON(object.rotationEnd) : undefined,
|
|
984
|
-
scaleStart: isSet(object.scaleStart) ? Vector3.fromJSON(object.scaleStart) : undefined,
|
|
985
|
-
scaleEnd: isSet(object.scaleEnd) ? Vector3.fromJSON(object.scaleEnd) : undefined,
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
export function toJSON(message: MoveRotateScale): unknown {
|
|
990
|
-
const obj: any = {};
|
|
991
|
-
message.positionStart !== undefined &&
|
|
992
|
-
(obj.positionStart = message.positionStart ? Vector3.toJSON(message.positionStart) : undefined);
|
|
993
|
-
message.positionEnd !== undefined &&
|
|
994
|
-
(obj.positionEnd = message.positionEnd ? Vector3.toJSON(message.positionEnd) : undefined);
|
|
995
|
-
message.rotationStart !== undefined &&
|
|
996
|
-
(obj.rotationStart = message.rotationStart ? Quaternion.toJSON(message.rotationStart) : undefined);
|
|
997
|
-
message.rotationEnd !== undefined &&
|
|
998
|
-
(obj.rotationEnd = message.rotationEnd ? Quaternion.toJSON(message.rotationEnd) : undefined);
|
|
999
|
-
message.scaleStart !== undefined &&
|
|
1000
|
-
(obj.scaleStart = message.scaleStart ? Vector3.toJSON(message.scaleStart) : undefined);
|
|
1001
|
-
message.scaleEnd !== undefined && (obj.scaleEnd = message.scaleEnd ? Vector3.toJSON(message.scaleEnd) : undefined);
|
|
1002
|
-
return obj;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
export function create<I extends Exact<DeepPartial<MoveRotateScale>, I>>(base?: I): MoveRotateScale {
|
|
1006
|
-
return MoveRotateScale.fromPartial(base ?? {});
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export function fromPartial<I extends Exact<DeepPartial<MoveRotateScale>, I>>(object: I): MoveRotateScale {
|
|
1010
|
-
const message = createBaseMoveRotateScale();
|
|
1011
|
-
message.positionStart = (object.positionStart !== undefined && object.positionStart !== null)
|
|
1012
|
-
? Vector3.fromPartial(object.positionStart)
|
|
1013
|
-
: undefined;
|
|
1014
|
-
message.positionEnd = (object.positionEnd !== undefined && object.positionEnd !== null)
|
|
1015
|
-
? Vector3.fromPartial(object.positionEnd)
|
|
1016
|
-
: undefined;
|
|
1017
|
-
message.rotationStart = (object.rotationStart !== undefined && object.rotationStart !== null)
|
|
1018
|
-
? Quaternion.fromPartial(object.rotationStart)
|
|
1019
|
-
: undefined;
|
|
1020
|
-
message.rotationEnd = (object.rotationEnd !== undefined && object.rotationEnd !== null)
|
|
1021
|
-
? Quaternion.fromPartial(object.rotationEnd)
|
|
1022
|
-
: undefined;
|
|
1023
|
-
message.scaleStart = (object.scaleStart !== undefined && object.scaleStart !== null)
|
|
1024
|
-
? Vector3.fromPartial(object.scaleStart)
|
|
1025
|
-
: undefined;
|
|
1026
|
-
message.scaleEnd = (object.scaleEnd !== undefined && object.scaleEnd !== null)
|
|
1027
|
-
? Vector3.fromPartial(object.scaleEnd)
|
|
1028
|
-
: undefined;
|
|
1029
|
-
return message;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
810
|
function createBaseTextureMove(): TextureMove {
|
|
1034
811
|
return { start: undefined, end: undefined, movementType: undefined };
|
|
1035
812
|
}
|
|
@@ -1267,116 +1044,6 @@ export namespace MoveContinuous {
|
|
|
1267
1044
|
}
|
|
1268
1045
|
}
|
|
1269
1046
|
|
|
1270
|
-
function createBaseMoveRotateScaleContinuous(): MoveRotateScaleContinuous {
|
|
1271
|
-
return { positionDirection: undefined, rotationDirection: undefined, scaleDirection: undefined, speed: 0 };
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
export namespace MoveRotateScaleContinuous {
|
|
1275
|
-
export function encode(message: MoveRotateScaleContinuous, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1276
|
-
if (message.positionDirection !== undefined) {
|
|
1277
|
-
Vector3.encode(message.positionDirection, writer.uint32(10).fork()).ldelim();
|
|
1278
|
-
}
|
|
1279
|
-
if (message.rotationDirection !== undefined) {
|
|
1280
|
-
Quaternion.encode(message.rotationDirection, writer.uint32(18).fork()).ldelim();
|
|
1281
|
-
}
|
|
1282
|
-
if (message.scaleDirection !== undefined) {
|
|
1283
|
-
Vector3.encode(message.scaleDirection, writer.uint32(26).fork()).ldelim();
|
|
1284
|
-
}
|
|
1285
|
-
if (message.speed !== 0) {
|
|
1286
|
-
writer.uint32(37).float(message.speed);
|
|
1287
|
-
}
|
|
1288
|
-
return writer;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): MoveRotateScaleContinuous {
|
|
1292
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1293
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1294
|
-
const message = createBaseMoveRotateScaleContinuous();
|
|
1295
|
-
while (reader.pos < end) {
|
|
1296
|
-
const tag = reader.uint32();
|
|
1297
|
-
switch (tag >>> 3) {
|
|
1298
|
-
case 1:
|
|
1299
|
-
if (tag !== 10) {
|
|
1300
|
-
break;
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
message.positionDirection = Vector3.decode(reader, reader.uint32());
|
|
1304
|
-
continue;
|
|
1305
|
-
case 2:
|
|
1306
|
-
if (tag !== 18) {
|
|
1307
|
-
break;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
message.rotationDirection = Quaternion.decode(reader, reader.uint32());
|
|
1311
|
-
continue;
|
|
1312
|
-
case 3:
|
|
1313
|
-
if (tag !== 26) {
|
|
1314
|
-
break;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
message.scaleDirection = Vector3.decode(reader, reader.uint32());
|
|
1318
|
-
continue;
|
|
1319
|
-
case 4:
|
|
1320
|
-
if (tag !== 37) {
|
|
1321
|
-
break;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
message.speed = reader.float();
|
|
1325
|
-
continue;
|
|
1326
|
-
}
|
|
1327
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1328
|
-
break;
|
|
1329
|
-
}
|
|
1330
|
-
reader.skipType(tag & 7);
|
|
1331
|
-
}
|
|
1332
|
-
return message;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
export function fromJSON(object: any): MoveRotateScaleContinuous {
|
|
1336
|
-
return {
|
|
1337
|
-
positionDirection: isSet(object.positionDirection) ? Vector3.fromJSON(object.positionDirection) : undefined,
|
|
1338
|
-
rotationDirection: isSet(object.rotationDirection) ? Quaternion.fromJSON(object.rotationDirection) : undefined,
|
|
1339
|
-
scaleDirection: isSet(object.scaleDirection) ? Vector3.fromJSON(object.scaleDirection) : undefined,
|
|
1340
|
-
speed: isSet(object.speed) ? Number(object.speed) : 0,
|
|
1341
|
-
};
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export function toJSON(message: MoveRotateScaleContinuous): unknown {
|
|
1345
|
-
const obj: any = {};
|
|
1346
|
-
message.positionDirection !== undefined &&
|
|
1347
|
-
(obj.positionDirection = message.positionDirection ? Vector3.toJSON(message.positionDirection) : undefined);
|
|
1348
|
-
message.rotationDirection !== undefined &&
|
|
1349
|
-
(obj.rotationDirection = message.rotationDirection ? Quaternion.toJSON(message.rotationDirection) : undefined);
|
|
1350
|
-
message.scaleDirection !== undefined &&
|
|
1351
|
-
(obj.scaleDirection = message.scaleDirection ? Vector3.toJSON(message.scaleDirection) : undefined);
|
|
1352
|
-
message.speed !== undefined && (obj.speed = message.speed);
|
|
1353
|
-
return obj;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
export function create<I extends Exact<DeepPartial<MoveRotateScaleContinuous>, I>>(
|
|
1357
|
-
base?: I,
|
|
1358
|
-
): MoveRotateScaleContinuous {
|
|
1359
|
-
return MoveRotateScaleContinuous.fromPartial(base ?? {});
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
export function fromPartial<I extends Exact<DeepPartial<MoveRotateScaleContinuous>, I>>(
|
|
1363
|
-
object: I,
|
|
1364
|
-
): MoveRotateScaleContinuous {
|
|
1365
|
-
const message = createBaseMoveRotateScaleContinuous();
|
|
1366
|
-
message.positionDirection = (object.positionDirection !== undefined && object.positionDirection !== null)
|
|
1367
|
-
? Vector3.fromPartial(object.positionDirection)
|
|
1368
|
-
: undefined;
|
|
1369
|
-
message.rotationDirection = (object.rotationDirection !== undefined && object.rotationDirection !== null)
|
|
1370
|
-
? Quaternion.fromPartial(object.rotationDirection)
|
|
1371
|
-
: undefined;
|
|
1372
|
-
message.scaleDirection = (object.scaleDirection !== undefined && object.scaleDirection !== null)
|
|
1373
|
-
? Vector3.fromPartial(object.scaleDirection)
|
|
1374
|
-
: undefined;
|
|
1375
|
-
message.speed = object.speed ?? 0;
|
|
1376
|
-
return message;
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
1047
|
function createBaseTextureMoveContinuous(): TextureMoveContinuous {
|
|
1381
1048
|
return { direction: undefined, speed: 0, movementType: undefined };
|
|
1382
1049
|
}
|
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-22668989180.commit-25aa736",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "./scripts/check-proto-compabitility.sh"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@protobuf-ts/protoc": "^2.
|
|
16
|
+
"@protobuf-ts/protoc": "^2.8.1",
|
|
17
17
|
"proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
|
|
18
18
|
"typescript": "^5.0.4"
|
|
19
19
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "25aa736b0135f743c25100cbee60799676b5a009"
|
|
34
34
|
}
|