@dcl/protocol 1.0.0-22583117520.commit-28394c4 → 1.0.0-22584214067.commit-276e5b7
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 +58 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +393 -19
- 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 +10 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +52 -1
- 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 +5 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +31 -3
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +302 -6
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +0 -3
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +2 -40
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +451 -3
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +51 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -3
- package/out-ts/decentraland/sdk/components/tween.gen.ts +333 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2 -44
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +38 -1
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +8 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +2 -0
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/pointer_events.proto +2 -0
- package/proto/decentraland/sdk/components/tween.proto +18 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +0 -3
- package/proto/decentraland/sdk/components/physics_combined_force.proto +0 -21
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +0 -23
|
@@ -17,6 +17,7 @@ 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,
|
|
20
21
|
UNRECOGNIZED = -1,
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -64,6 +65,9 @@ export function inputActionFromJSON(object: any): InputAction {
|
|
|
64
65
|
case 13:
|
|
65
66
|
case "IA_ACTION_6":
|
|
66
67
|
return InputAction.IA_ACTION_6;
|
|
68
|
+
case 14:
|
|
69
|
+
case "IA_MODIFIER":
|
|
70
|
+
return InputAction.IA_MODIFIER;
|
|
67
71
|
case -1:
|
|
68
72
|
case "UNRECOGNIZED":
|
|
69
73
|
default:
|
|
@@ -101,6 +105,8 @@ export function inputActionToJSON(object: InputAction): string {
|
|
|
101
105
|
return "IA_ACTION_5";
|
|
102
106
|
case InputAction.IA_ACTION_6:
|
|
103
107
|
return "IA_ACTION_6";
|
|
108
|
+
case InputAction.IA_MODIFIER:
|
|
109
|
+
return "IA_MODIFIER";
|
|
104
110
|
case InputAction.UNRECOGNIZED:
|
|
105
111
|
default:
|
|
106
112
|
return "UNRECOGNIZED";
|
|
@@ -113,6 +119,8 @@ export enum PointerEventType {
|
|
|
113
119
|
PET_DOWN = 1,
|
|
114
120
|
PET_HOVER_ENTER = 2,
|
|
115
121
|
PET_HOVER_LEAVE = 3,
|
|
122
|
+
PET_PROXIMITY_ENTER = 4,
|
|
123
|
+
PET_PROXIMITY_LEAVE = 5,
|
|
116
124
|
UNRECOGNIZED = -1,
|
|
117
125
|
}
|
|
118
126
|
|
|
@@ -130,6 +138,12 @@ export function pointerEventTypeFromJSON(object: any): PointerEventType {
|
|
|
130
138
|
case 3:
|
|
131
139
|
case "PET_HOVER_LEAVE":
|
|
132
140
|
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;
|
|
133
147
|
case -1:
|
|
134
148
|
case "UNRECOGNIZED":
|
|
135
149
|
default:
|
|
@@ -147,8 +161,45 @@ export function pointerEventTypeToJSON(object: PointerEventType): string {
|
|
|
147
161
|
return "PET_HOVER_ENTER";
|
|
148
162
|
case PointerEventType.PET_HOVER_LEAVE:
|
|
149
163
|
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";
|
|
150
168
|
case PointerEventType.UNRECOGNIZED:
|
|
151
169
|
default:
|
|
152
170
|
return "UNRECOGNIZED";
|
|
153
171
|
}
|
|
154
172
|
}
|
|
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,6 +4,9 @@ import {
|
|
|
4
4
|
InputAction,
|
|
5
5
|
inputActionFromJSON,
|
|
6
6
|
inputActionToJSON,
|
|
7
|
+
InteractionType,
|
|
8
|
+
interactionTypeFromJSON,
|
|
9
|
+
interactionTypeToJSON,
|
|
7
10
|
PointerEventType,
|
|
8
11
|
pointerEventTypeFromJSON,
|
|
9
12
|
pointerEventTypeToJSON,
|
|
@@ -76,14 +79,22 @@ export interface PBPointerEvents_Info {
|
|
|
76
79
|
| boolean
|
|
77
80
|
| undefined;
|
|
78
81
|
/** range of interaction from the avatar's position (default 0) */
|
|
79
|
-
maxPlayerDistance?:
|
|
82
|
+
maxPlayerDistance?:
|
|
83
|
+
| number
|
|
84
|
+
| undefined;
|
|
85
|
+
/** resolution order when multiple events overlap, higher wins (default 0) */
|
|
86
|
+
priority?: number | undefined;
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
export interface PBPointerEvents_Entry {
|
|
83
90
|
/** the kind of interaction to detect */
|
|
84
91
|
eventType: PointerEventType;
|
|
85
92
|
/** additional configuration for this detection */
|
|
86
|
-
eventInfo:
|
|
93
|
+
eventInfo:
|
|
94
|
+
| PBPointerEvents_Info
|
|
95
|
+
| undefined;
|
|
96
|
+
/** the type of interaction source (default 0 == CURSOR) */
|
|
97
|
+
interactionType?: InteractionType | undefined;
|
|
87
98
|
}
|
|
88
99
|
|
|
89
100
|
function createBasePBPointerEvents(): PBPointerEvents {
|
|
@@ -158,6 +169,7 @@ function createBasePBPointerEvents_Info(): PBPointerEvents_Info {
|
|
|
158
169
|
showFeedback: undefined,
|
|
159
170
|
showHighlight: undefined,
|
|
160
171
|
maxPlayerDistance: undefined,
|
|
172
|
+
priority: undefined,
|
|
161
173
|
};
|
|
162
174
|
}
|
|
163
175
|
|
|
@@ -181,6 +193,9 @@ export namespace PBPointerEvents_Info {
|
|
|
181
193
|
if (message.maxPlayerDistance !== undefined) {
|
|
182
194
|
writer.uint32(53).float(message.maxPlayerDistance);
|
|
183
195
|
}
|
|
196
|
+
if (message.priority !== undefined) {
|
|
197
|
+
writer.uint32(56).uint32(message.priority);
|
|
198
|
+
}
|
|
184
199
|
return writer;
|
|
185
200
|
}
|
|
186
201
|
|
|
@@ -233,6 +248,13 @@ export namespace PBPointerEvents_Info {
|
|
|
233
248
|
|
|
234
249
|
message.maxPlayerDistance = reader.float();
|
|
235
250
|
continue;
|
|
251
|
+
case 7:
|
|
252
|
+
if (tag !== 56) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message.priority = reader.uint32();
|
|
257
|
+
continue;
|
|
236
258
|
}
|
|
237
259
|
if ((tag & 7) === 4 || tag === 0) {
|
|
238
260
|
break;
|
|
@@ -250,6 +272,7 @@ export namespace PBPointerEvents_Info {
|
|
|
250
272
|
showFeedback: isSet(object.showFeedback) ? Boolean(object.showFeedback) : undefined,
|
|
251
273
|
showHighlight: isSet(object.showHighlight) ? Boolean(object.showHighlight) : undefined,
|
|
252
274
|
maxPlayerDistance: isSet(object.maxPlayerDistance) ? Number(object.maxPlayerDistance) : undefined,
|
|
275
|
+
priority: isSet(object.priority) ? Number(object.priority) : undefined,
|
|
253
276
|
};
|
|
254
277
|
}
|
|
255
278
|
|
|
@@ -262,6 +285,7 @@ export namespace PBPointerEvents_Info {
|
|
|
262
285
|
message.showFeedback !== undefined && (obj.showFeedback = message.showFeedback);
|
|
263
286
|
message.showHighlight !== undefined && (obj.showHighlight = message.showHighlight);
|
|
264
287
|
message.maxPlayerDistance !== undefined && (obj.maxPlayerDistance = message.maxPlayerDistance);
|
|
288
|
+
message.priority !== undefined && (obj.priority = Math.round(message.priority));
|
|
265
289
|
return obj;
|
|
266
290
|
}
|
|
267
291
|
|
|
@@ -277,12 +301,13 @@ export namespace PBPointerEvents_Info {
|
|
|
277
301
|
message.showFeedback = object.showFeedback ?? undefined;
|
|
278
302
|
message.showHighlight = object.showHighlight ?? undefined;
|
|
279
303
|
message.maxPlayerDistance = object.maxPlayerDistance ?? undefined;
|
|
304
|
+
message.priority = object.priority ?? undefined;
|
|
280
305
|
return message;
|
|
281
306
|
}
|
|
282
307
|
}
|
|
283
308
|
|
|
284
309
|
function createBasePBPointerEvents_Entry(): PBPointerEvents_Entry {
|
|
285
|
-
return { eventType: 0, eventInfo: undefined };
|
|
310
|
+
return { eventType: 0, eventInfo: undefined, interactionType: undefined };
|
|
286
311
|
}
|
|
287
312
|
|
|
288
313
|
export namespace PBPointerEvents_Entry {
|
|
@@ -293,6 +318,9 @@ export namespace PBPointerEvents_Entry {
|
|
|
293
318
|
if (message.eventInfo !== undefined) {
|
|
294
319
|
PBPointerEvents_Info.encode(message.eventInfo, writer.uint32(18).fork()).ldelim();
|
|
295
320
|
}
|
|
321
|
+
if (message.interactionType !== undefined) {
|
|
322
|
+
writer.uint32(24).int32(message.interactionType);
|
|
323
|
+
}
|
|
296
324
|
return writer;
|
|
297
325
|
}
|
|
298
326
|
|
|
@@ -317,6 +345,13 @@ export namespace PBPointerEvents_Entry {
|
|
|
317
345
|
|
|
318
346
|
message.eventInfo = PBPointerEvents_Info.decode(reader, reader.uint32());
|
|
319
347
|
continue;
|
|
348
|
+
case 3:
|
|
349
|
+
if (tag !== 24) {
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
message.interactionType = reader.int32() as any;
|
|
354
|
+
continue;
|
|
320
355
|
}
|
|
321
356
|
if ((tag & 7) === 4 || tag === 0) {
|
|
322
357
|
break;
|
|
@@ -330,6 +365,7 @@ export namespace PBPointerEvents_Entry {
|
|
|
330
365
|
return {
|
|
331
366
|
eventType: isSet(object.eventType) ? pointerEventTypeFromJSON(object.eventType) : 0,
|
|
332
367
|
eventInfo: isSet(object.eventInfo) ? PBPointerEvents_Info.fromJSON(object.eventInfo) : undefined,
|
|
368
|
+
interactionType: isSet(object.interactionType) ? interactionTypeFromJSON(object.interactionType) : undefined,
|
|
333
369
|
};
|
|
334
370
|
}
|
|
335
371
|
|
|
@@ -338,6 +374,10 @@ export namespace PBPointerEvents_Entry {
|
|
|
338
374
|
message.eventType !== undefined && (obj.eventType = pointerEventTypeToJSON(message.eventType));
|
|
339
375
|
message.eventInfo !== undefined &&
|
|
340
376
|
(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);
|
|
341
381
|
return obj;
|
|
342
382
|
}
|
|
343
383
|
|
|
@@ -353,6 +393,7 @@ export namespace PBPointerEvents_Entry {
|
|
|
353
393
|
message.eventInfo = (object.eventInfo !== undefined && object.eventInfo !== null)
|
|
354
394
|
? PBPointerEvents_Info.fromPartial(object.eventInfo)
|
|
355
395
|
: undefined;
|
|
396
|
+
message.interactionType = object.interactionType ?? undefined;
|
|
356
397
|
return message;
|
|
357
398
|
}
|
|
358
399
|
}
|
|
@@ -262,6 +262,8 @@ 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 }
|
|
265
267
|
| undefined;
|
|
266
268
|
/** default true (pause or running) */
|
|
267
269
|
playing?:
|
|
@@ -287,6 +289,15 @@ export interface Scale {
|
|
|
287
289
|
end: Vector3 | undefined;
|
|
288
290
|
}
|
|
289
291
|
|
|
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
|
+
|
|
290
301
|
/**
|
|
291
302
|
* This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
|
|
292
303
|
* You can also specify the movement type (offset or tiling)
|
|
@@ -310,6 +321,13 @@ export interface MoveContinuous {
|
|
|
310
321
|
speed: number;
|
|
311
322
|
}
|
|
312
323
|
|
|
324
|
+
export interface MoveRotateScaleContinuous {
|
|
325
|
+
positionDirection: Vector3 | undefined;
|
|
326
|
+
rotationDirection: Quaternion | undefined;
|
|
327
|
+
scaleDirection: Vector3 | undefined;
|
|
328
|
+
speed: number;
|
|
329
|
+
}
|
|
330
|
+
|
|
313
331
|
export interface TextureMoveContinuous {
|
|
314
332
|
direction: Vector2 | undefined;
|
|
315
333
|
speed: number;
|
|
@@ -351,6 +369,12 @@ export namespace PBTween {
|
|
|
351
369
|
case "textureMoveContinuous":
|
|
352
370
|
TextureMoveContinuous.encode(message.mode.textureMoveContinuous, writer.uint32(90).fork()).ldelim();
|
|
353
371
|
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;
|
|
354
378
|
}
|
|
355
379
|
if (message.playing !== undefined) {
|
|
356
380
|
writer.uint32(48).bool(message.playing);
|
|
@@ -437,6 +461,23 @@ export namespace PBTween {
|
|
|
437
461
|
textureMoveContinuous: TextureMoveContinuous.decode(reader, reader.uint32()),
|
|
438
462
|
};
|
|
439
463
|
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;
|
|
440
481
|
case 6:
|
|
441
482
|
if (tag !== 48) {
|
|
442
483
|
break;
|
|
@@ -481,6 +522,13 @@ export namespace PBTween {
|
|
|
481
522
|
$case: "textureMoveContinuous",
|
|
482
523
|
textureMoveContinuous: TextureMoveContinuous.fromJSON(object.textureMoveContinuous),
|
|
483
524
|
}
|
|
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
|
+
}
|
|
484
532
|
: undefined,
|
|
485
533
|
playing: isSet(object.playing) ? Boolean(object.playing) : undefined,
|
|
486
534
|
currentTime: isSet(object.currentTime) ? Number(object.currentTime) : undefined,
|
|
@@ -510,6 +558,14 @@ export namespace PBTween {
|
|
|
510
558
|
(obj.textureMoveContinuous = message.mode?.textureMoveContinuous
|
|
511
559
|
? TextureMoveContinuous.toJSON(message.mode?.textureMoveContinuous)
|
|
512
560
|
: 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);
|
|
513
569
|
message.playing !== undefined && (obj.playing = message.playing);
|
|
514
570
|
message.currentTime !== undefined && (obj.currentTime = message.currentTime);
|
|
515
571
|
return obj;
|
|
@@ -569,6 +625,26 @@ export namespace PBTween {
|
|
|
569
625
|
textureMoveContinuous: TextureMoveContinuous.fromPartial(object.mode.textureMoveContinuous),
|
|
570
626
|
};
|
|
571
627
|
}
|
|
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
|
+
}
|
|
572
648
|
message.playing = object.playing ?? undefined;
|
|
573
649
|
message.currentTime = object.currentTime ?? undefined;
|
|
574
650
|
return message;
|
|
@@ -807,6 +883,153 @@ export namespace Scale {
|
|
|
807
883
|
}
|
|
808
884
|
}
|
|
809
885
|
|
|
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
|
+
|
|
810
1033
|
function createBaseTextureMove(): TextureMove {
|
|
811
1034
|
return { start: undefined, end: undefined, movementType: undefined };
|
|
812
1035
|
}
|
|
@@ -1044,6 +1267,116 @@ export namespace MoveContinuous {
|
|
|
1044
1267
|
}
|
|
1045
1268
|
}
|
|
1046
1269
|
|
|
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
|
+
|
|
1047
1380
|
function createBaseTextureMoveContinuous(): TextureMoveContinuous {
|
|
1048
1381
|
return { direction: undefined, speed: 0, movementType: undefined };
|
|
1049
1382
|
}
|