@dcl/protocol 1.0.0-22578238676.commit-38e6cb5 → 1.0.0-22583117520.commit-28394c4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -24
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
- package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -24
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/package.json +3 -6
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -4
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/raycast.proto +0 -13
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/public/sdk-components.proto +0 -4
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -34
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -101
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -44
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -178
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -50
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -207
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -119
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -210
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -235
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -18
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -45
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -20
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -65,11 +65,7 @@ export interface PBAvatarShape {
|
|
|
65
65
|
/** available emotes (default empty) */
|
|
66
66
|
emotes: string[];
|
|
67
67
|
/** hides the skin + hair + facial features (default: false) */
|
|
68
|
-
showOnlyWearables?:
|
|
69
|
-
| boolean
|
|
70
|
-
| undefined;
|
|
71
|
-
/** slots that will render even if hidden */
|
|
72
|
-
forceRender: string[];
|
|
68
|
+
showOnlyWearables?: boolean | undefined;
|
|
73
69
|
}
|
|
74
70
|
|
|
75
71
|
function createBasePBAvatarShape(): PBAvatarShape {
|
|
@@ -86,7 +82,6 @@ function createBasePBAvatarShape(): PBAvatarShape {
|
|
|
86
82
|
wearables: [],
|
|
87
83
|
emotes: [],
|
|
88
84
|
showOnlyWearables: undefined,
|
|
89
|
-
forceRender: [],
|
|
90
85
|
};
|
|
91
86
|
}
|
|
92
87
|
|
|
@@ -128,9 +123,6 @@ export namespace PBAvatarShape {
|
|
|
128
123
|
if (message.showOnlyWearables !== undefined) {
|
|
129
124
|
writer.uint32(96).bool(message.showOnlyWearables);
|
|
130
125
|
}
|
|
131
|
-
for (const v of message.forceRender) {
|
|
132
|
-
writer.uint32(106).string(v!);
|
|
133
|
-
}
|
|
134
126
|
return writer;
|
|
135
127
|
}
|
|
136
128
|
|
|
@@ -225,13 +217,6 @@ export namespace PBAvatarShape {
|
|
|
225
217
|
|
|
226
218
|
message.showOnlyWearables = reader.bool();
|
|
227
219
|
continue;
|
|
228
|
-
case 13:
|
|
229
|
-
if (tag !== 106) {
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
message.forceRender.push(reader.string());
|
|
234
|
-
continue;
|
|
235
220
|
}
|
|
236
221
|
if ((tag & 7) === 4 || tag === 0) {
|
|
237
222
|
break;
|
|
@@ -257,7 +242,6 @@ export namespace PBAvatarShape {
|
|
|
257
242
|
wearables: Array.isArray(object?.wearables) ? object.wearables.map((e: any) => String(e)) : [],
|
|
258
243
|
emotes: Array.isArray(object?.emotes) ? object.emotes.map((e: any) => String(e)) : [],
|
|
259
244
|
showOnlyWearables: isSet(object.showOnlyWearables) ? Boolean(object.showOnlyWearables) : undefined,
|
|
260
|
-
forceRender: Array.isArray(object?.forceRender) ? object.forceRender.map((e: any) => String(e)) : [],
|
|
261
245
|
};
|
|
262
246
|
}
|
|
263
247
|
|
|
@@ -286,11 +270,6 @@ export namespace PBAvatarShape {
|
|
|
286
270
|
obj.emotes = [];
|
|
287
271
|
}
|
|
288
272
|
message.showOnlyWearables !== undefined && (obj.showOnlyWearables = message.showOnlyWearables);
|
|
289
|
-
if (message.forceRender) {
|
|
290
|
-
obj.forceRender = message.forceRender.map((e) => e);
|
|
291
|
-
} else {
|
|
292
|
-
obj.forceRender = [];
|
|
293
|
-
}
|
|
294
273
|
return obj;
|
|
295
274
|
}
|
|
296
275
|
|
|
@@ -318,7 +297,6 @@ export namespace PBAvatarShape {
|
|
|
318
297
|
message.wearables = object.wearables?.map((e) => e) || [];
|
|
319
298
|
message.emotes = object.emotes?.map((e) => e) || [];
|
|
320
299
|
message.showOnlyWearables = object.showOnlyWearables ?? undefined;
|
|
321
|
-
message.forceRender = object.forceRender?.map((e) => e) || [];
|
|
322
300
|
return message;
|
|
323
301
|
}
|
|
324
302
|
}
|
|
@@ -7,7 +7,7 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The CameraModeArea component can be attached to an Entity to define a region of space where
|
|
10
|
-
* the player's camera mode (1st-person
|
|
10
|
+
* the player's camera mode (1st-person or 3rd-person) is overridden.
|
|
11
11
|
*
|
|
12
12
|
* The Entity's Transform position determines the center-point of the region, while its size is
|
|
13
13
|
* given as a vector in the `area` property below. The Transform rotation is applied, but the scale
|
|
@@ -17,8 +17,6 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
17
17
|
*
|
|
18
18
|
* Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
|
|
19
19
|
* is actually a 3D volume.
|
|
20
|
-
*
|
|
21
|
-
* When mode is set to CtCinematic, the cinematic_settings field must also be provided.
|
|
22
20
|
*/
|
|
23
21
|
export interface PBCameraModeArea {
|
|
24
22
|
/** the 3D size of the region */
|
|
@@ -27,47 +25,10 @@ export interface PBCameraModeArea {
|
|
|
27
25
|
| undefined;
|
|
28
26
|
/** the camera mode to enforce */
|
|
29
27
|
mode: CameraType;
|
|
30
|
-
cinematicSettings?:
|
|
31
|
-
| CinematicSettings
|
|
32
|
-
| undefined;
|
|
33
|
-
/** if true, the player will be considered inside the area when they are within 0.3m of the area. default true */
|
|
34
|
-
useColliderRange?: boolean | undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface CinematicSettings {
|
|
38
|
-
/** Entity that defines the cinematic camera transform. */
|
|
39
|
-
cameraEntity: number;
|
|
40
|
-
/**
|
|
41
|
-
* Position -> camera's position
|
|
42
|
-
* Rotation -> camera's direction
|
|
43
|
-
* scale.z -> zoom level
|
|
44
|
-
* scale.x and scale.y -> unused
|
|
45
|
-
*/
|
|
46
|
-
allowManualRotation?:
|
|
47
|
-
| boolean
|
|
48
|
-
| undefined;
|
|
49
|
-
/** how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted */
|
|
50
|
-
yawRange?:
|
|
51
|
-
| number
|
|
52
|
-
| undefined;
|
|
53
|
-
/** how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted */
|
|
54
|
-
pitchRange?:
|
|
55
|
-
| number
|
|
56
|
-
| undefined;
|
|
57
|
-
/** note: cameras can never look up/down further than Vec3::Y */
|
|
58
|
-
rollRange?:
|
|
59
|
-
| number
|
|
60
|
-
| undefined;
|
|
61
|
-
/** minimum zoom level. must be greater than 0. defaults to the input zoom level */
|
|
62
|
-
zoomMin?:
|
|
63
|
-
| number
|
|
64
|
-
| undefined;
|
|
65
|
-
/** maximum zoom level. must be greater than 0. defaults to the input zoom level */
|
|
66
|
-
zoomMax?: number | undefined;
|
|
67
28
|
}
|
|
68
29
|
|
|
69
30
|
function createBasePBCameraModeArea(): PBCameraModeArea {
|
|
70
|
-
return { area: undefined, mode: 0
|
|
31
|
+
return { area: undefined, mode: 0 };
|
|
71
32
|
}
|
|
72
33
|
|
|
73
34
|
export namespace PBCameraModeArea {
|
|
@@ -78,12 +39,6 @@ export namespace PBCameraModeArea {
|
|
|
78
39
|
if (message.mode !== 0) {
|
|
79
40
|
writer.uint32(16).int32(message.mode);
|
|
80
41
|
}
|
|
81
|
-
if (message.cinematicSettings !== undefined) {
|
|
82
|
-
CinematicSettings.encode(message.cinematicSettings, writer.uint32(26).fork()).ldelim();
|
|
83
|
-
}
|
|
84
|
-
if (message.useColliderRange !== undefined) {
|
|
85
|
-
writer.uint32(32).bool(message.useColliderRange);
|
|
86
|
-
}
|
|
87
42
|
return writer;
|
|
88
43
|
}
|
|
89
44
|
|
|
@@ -108,20 +63,6 @@ export namespace PBCameraModeArea {
|
|
|
108
63
|
|
|
109
64
|
message.mode = reader.int32() as any;
|
|
110
65
|
continue;
|
|
111
|
-
case 3:
|
|
112
|
-
if (tag !== 26) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message.cinematicSettings = CinematicSettings.decode(reader, reader.uint32());
|
|
117
|
-
continue;
|
|
118
|
-
case 4:
|
|
119
|
-
if (tag !== 32) {
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message.useColliderRange = reader.bool();
|
|
124
|
-
continue;
|
|
125
66
|
}
|
|
126
67
|
if ((tag & 7) === 4 || tag === 0) {
|
|
127
68
|
break;
|
|
@@ -135,10 +76,6 @@ export namespace PBCameraModeArea {
|
|
|
135
76
|
return {
|
|
136
77
|
area: isSet(object.area) ? Vector3.fromJSON(object.area) : undefined,
|
|
137
78
|
mode: isSet(object.mode) ? cameraTypeFromJSON(object.mode) : 0,
|
|
138
|
-
cinematicSettings: isSet(object.cinematicSettings)
|
|
139
|
-
? CinematicSettings.fromJSON(object.cinematicSettings)
|
|
140
|
-
: undefined,
|
|
141
|
-
useColliderRange: isSet(object.useColliderRange) ? Boolean(object.useColliderRange) : undefined,
|
|
142
79
|
};
|
|
143
80
|
}
|
|
144
81
|
|
|
@@ -146,11 +83,6 @@ export namespace PBCameraModeArea {
|
|
|
146
83
|
const obj: any = {};
|
|
147
84
|
message.area !== undefined && (obj.area = message.area ? Vector3.toJSON(message.area) : undefined);
|
|
148
85
|
message.mode !== undefined && (obj.mode = cameraTypeToJSON(message.mode));
|
|
149
|
-
message.cinematicSettings !== undefined &&
|
|
150
|
-
(obj.cinematicSettings = message.cinematicSettings
|
|
151
|
-
? CinematicSettings.toJSON(message.cinematicSettings)
|
|
152
|
-
: undefined);
|
|
153
|
-
message.useColliderRange !== undefined && (obj.useColliderRange = message.useColliderRange);
|
|
154
86
|
return obj;
|
|
155
87
|
}
|
|
156
88
|
|
|
@@ -162,154 +94,6 @@ export namespace PBCameraModeArea {
|
|
|
162
94
|
const message = createBasePBCameraModeArea();
|
|
163
95
|
message.area = (object.area !== undefined && object.area !== null) ? Vector3.fromPartial(object.area) : undefined;
|
|
164
96
|
message.mode = object.mode ?? 0;
|
|
165
|
-
message.cinematicSettings = (object.cinematicSettings !== undefined && object.cinematicSettings !== null)
|
|
166
|
-
? CinematicSettings.fromPartial(object.cinematicSettings)
|
|
167
|
-
: undefined;
|
|
168
|
-
message.useColliderRange = object.useColliderRange ?? undefined;
|
|
169
|
-
return message;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
function createBaseCinematicSettings(): CinematicSettings {
|
|
174
|
-
return {
|
|
175
|
-
cameraEntity: 0,
|
|
176
|
-
allowManualRotation: undefined,
|
|
177
|
-
yawRange: undefined,
|
|
178
|
-
pitchRange: undefined,
|
|
179
|
-
rollRange: undefined,
|
|
180
|
-
zoomMin: undefined,
|
|
181
|
-
zoomMax: undefined,
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export namespace CinematicSettings {
|
|
186
|
-
export function encode(message: CinematicSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
187
|
-
if (message.cameraEntity !== 0) {
|
|
188
|
-
writer.uint32(8).uint32(message.cameraEntity);
|
|
189
|
-
}
|
|
190
|
-
if (message.allowManualRotation !== undefined) {
|
|
191
|
-
writer.uint32(16).bool(message.allowManualRotation);
|
|
192
|
-
}
|
|
193
|
-
if (message.yawRange !== undefined) {
|
|
194
|
-
writer.uint32(29).float(message.yawRange);
|
|
195
|
-
}
|
|
196
|
-
if (message.pitchRange !== undefined) {
|
|
197
|
-
writer.uint32(37).float(message.pitchRange);
|
|
198
|
-
}
|
|
199
|
-
if (message.rollRange !== undefined) {
|
|
200
|
-
writer.uint32(45).float(message.rollRange);
|
|
201
|
-
}
|
|
202
|
-
if (message.zoomMin !== undefined) {
|
|
203
|
-
writer.uint32(53).float(message.zoomMin);
|
|
204
|
-
}
|
|
205
|
-
if (message.zoomMax !== undefined) {
|
|
206
|
-
writer.uint32(61).float(message.zoomMax);
|
|
207
|
-
}
|
|
208
|
-
return writer;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export function decode(input: _m0.Reader | Uint8Array, length?: number): CinematicSettings {
|
|
212
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
213
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
214
|
-
const message = createBaseCinematicSettings();
|
|
215
|
-
while (reader.pos < end) {
|
|
216
|
-
const tag = reader.uint32();
|
|
217
|
-
switch (tag >>> 3) {
|
|
218
|
-
case 1:
|
|
219
|
-
if (tag !== 8) {
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
message.cameraEntity = reader.uint32();
|
|
224
|
-
continue;
|
|
225
|
-
case 2:
|
|
226
|
-
if (tag !== 16) {
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
message.allowManualRotation = reader.bool();
|
|
231
|
-
continue;
|
|
232
|
-
case 3:
|
|
233
|
-
if (tag !== 29) {
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
message.yawRange = reader.float();
|
|
238
|
-
continue;
|
|
239
|
-
case 4:
|
|
240
|
-
if (tag !== 37) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
message.pitchRange = reader.float();
|
|
245
|
-
continue;
|
|
246
|
-
case 5:
|
|
247
|
-
if (tag !== 45) {
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
message.rollRange = reader.float();
|
|
252
|
-
continue;
|
|
253
|
-
case 6:
|
|
254
|
-
if (tag !== 53) {
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
message.zoomMin = reader.float();
|
|
259
|
-
continue;
|
|
260
|
-
case 7:
|
|
261
|
-
if (tag !== 61) {
|
|
262
|
-
break;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
message.zoomMax = reader.float();
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
reader.skipType(tag & 7);
|
|
272
|
-
}
|
|
273
|
-
return message;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export function fromJSON(object: any): CinematicSettings {
|
|
277
|
-
return {
|
|
278
|
-
cameraEntity: isSet(object.cameraEntity) ? Number(object.cameraEntity) : 0,
|
|
279
|
-
allowManualRotation: isSet(object.allowManualRotation) ? Boolean(object.allowManualRotation) : undefined,
|
|
280
|
-
yawRange: isSet(object.yawRange) ? Number(object.yawRange) : undefined,
|
|
281
|
-
pitchRange: isSet(object.pitchRange) ? Number(object.pitchRange) : undefined,
|
|
282
|
-
rollRange: isSet(object.rollRange) ? Number(object.rollRange) : undefined,
|
|
283
|
-
zoomMin: isSet(object.zoomMin) ? Number(object.zoomMin) : undefined,
|
|
284
|
-
zoomMax: isSet(object.zoomMax) ? Number(object.zoomMax) : undefined,
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export function toJSON(message: CinematicSettings): unknown {
|
|
289
|
-
const obj: any = {};
|
|
290
|
-
message.cameraEntity !== undefined && (obj.cameraEntity = Math.round(message.cameraEntity));
|
|
291
|
-
message.allowManualRotation !== undefined && (obj.allowManualRotation = message.allowManualRotation);
|
|
292
|
-
message.yawRange !== undefined && (obj.yawRange = message.yawRange);
|
|
293
|
-
message.pitchRange !== undefined && (obj.pitchRange = message.pitchRange);
|
|
294
|
-
message.rollRange !== undefined && (obj.rollRange = message.rollRange);
|
|
295
|
-
message.zoomMin !== undefined && (obj.zoomMin = message.zoomMin);
|
|
296
|
-
message.zoomMax !== undefined && (obj.zoomMax = message.zoomMax);
|
|
297
|
-
return obj;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export function create<I extends Exact<DeepPartial<CinematicSettings>, I>>(base?: I): CinematicSettings {
|
|
301
|
-
return CinematicSettings.fromPartial(base ?? {});
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export function fromPartial<I extends Exact<DeepPartial<CinematicSettings>, I>>(object: I): CinematicSettings {
|
|
305
|
-
const message = createBaseCinematicSettings();
|
|
306
|
-
message.cameraEntity = object.cameraEntity ?? 0;
|
|
307
|
-
message.allowManualRotation = object.allowManualRotation ?? undefined;
|
|
308
|
-
message.yawRange = object.yawRange ?? undefined;
|
|
309
|
-
message.pitchRange = object.pitchRange ?? undefined;
|
|
310
|
-
message.rollRange = object.rollRange ?? undefined;
|
|
311
|
-
message.zoomMin = object.zoomMin ?? undefined;
|
|
312
|
-
message.zoomMax = object.zoomMax ?? undefined;
|
|
313
97
|
return message;
|
|
314
98
|
}
|
|
315
99
|
}
|
|
@@ -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,9 +113,6 @@ export enum PointerEventType {
|
|
|
119
113
|
PET_DOWN = 1,
|
|
120
114
|
PET_HOVER_ENTER = 2,
|
|
121
115
|
PET_HOVER_LEAVE = 3,
|
|
122
|
-
PET_DRAG_LOCKED = 4,
|
|
123
|
-
PET_DRAG = 5,
|
|
124
|
-
PET_DRAG_END = 6,
|
|
125
116
|
UNRECOGNIZED = -1,
|
|
126
117
|
}
|
|
127
118
|
|
|
@@ -139,15 +130,6 @@ export function pointerEventTypeFromJSON(object: any): PointerEventType {
|
|
|
139
130
|
case 3:
|
|
140
131
|
case "PET_HOVER_LEAVE":
|
|
141
132
|
return PointerEventType.PET_HOVER_LEAVE;
|
|
142
|
-
case 4:
|
|
143
|
-
case "PET_DRAG_LOCKED":
|
|
144
|
-
return PointerEventType.PET_DRAG_LOCKED;
|
|
145
|
-
case 5:
|
|
146
|
-
case "PET_DRAG":
|
|
147
|
-
return PointerEventType.PET_DRAG;
|
|
148
|
-
case 6:
|
|
149
|
-
case "PET_DRAG_END":
|
|
150
|
-
return PointerEventType.PET_DRAG_END;
|
|
151
133
|
case -1:
|
|
152
134
|
case "UNRECOGNIZED":
|
|
153
135
|
default:
|
|
@@ -165,12 +147,6 @@ export function pointerEventTypeToJSON(object: PointerEventType): string {
|
|
|
165
147
|
return "PET_HOVER_ENTER";
|
|
166
148
|
case PointerEventType.PET_HOVER_LEAVE:
|
|
167
149
|
return "PET_HOVER_LEAVE";
|
|
168
|
-
case PointerEventType.PET_DRAG_LOCKED:
|
|
169
|
-
return "PET_DRAG_LOCKED";
|
|
170
|
-
case PointerEventType.PET_DRAG:
|
|
171
|
-
return "PET_DRAG";
|
|
172
|
-
case PointerEventType.PET_DRAG_END:
|
|
173
|
-
return "PET_DRAG_END";
|
|
174
150
|
case PointerEventType.UNRECOGNIZED:
|
|
175
151
|
default:
|
|
176
152
|
return "UNRECOGNIZED";
|
|
@@ -10,29 +10,10 @@ export const protobufPackage = "decentraland.sdk.components";
|
|
|
10
10
|
*/
|
|
11
11
|
export interface PBGltfContainerLoadingState {
|
|
12
12
|
currentState: LoadingState;
|
|
13
|
-
/** all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents */
|
|
14
|
-
nodePaths: string[];
|
|
15
|
-
/** all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY` */
|
|
16
|
-
meshNames: string[];
|
|
17
|
-
/**
|
|
18
|
-
* where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
|
19
|
-
* conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
|
20
|
-
*/
|
|
21
|
-
materialNames: string[];
|
|
22
|
-
/**
|
|
23
|
-
* X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
|
24
|
-
* sure all your materials are explicitly named.
|
|
25
|
-
*/
|
|
26
|
-
skinNames: string[];
|
|
27
|
-
/**
|
|
28
|
-
* X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
|
29
|
-
* your skins are explicitly named.
|
|
30
|
-
*/
|
|
31
|
-
animationNames: string[];
|
|
32
13
|
}
|
|
33
14
|
|
|
34
15
|
function createBasePBGltfContainerLoadingState(): PBGltfContainerLoadingState {
|
|
35
|
-
return { currentState: 0
|
|
16
|
+
return { currentState: 0 };
|
|
36
17
|
}
|
|
37
18
|
|
|
38
19
|
export namespace PBGltfContainerLoadingState {
|
|
@@ -40,21 +21,6 @@ export namespace PBGltfContainerLoadingState {
|
|
|
40
21
|
if (message.currentState !== 0) {
|
|
41
22
|
writer.uint32(8).int32(message.currentState);
|
|
42
23
|
}
|
|
43
|
-
for (const v of message.nodePaths) {
|
|
44
|
-
writer.uint32(18).string(v!);
|
|
45
|
-
}
|
|
46
|
-
for (const v of message.meshNames) {
|
|
47
|
-
writer.uint32(26).string(v!);
|
|
48
|
-
}
|
|
49
|
-
for (const v of message.materialNames) {
|
|
50
|
-
writer.uint32(34).string(v!);
|
|
51
|
-
}
|
|
52
|
-
for (const v of message.skinNames) {
|
|
53
|
-
writer.uint32(42).string(v!);
|
|
54
|
-
}
|
|
55
|
-
for (const v of message.animationNames) {
|
|
56
|
-
writer.uint32(50).string(v!);
|
|
57
|
-
}
|
|
58
24
|
return writer;
|
|
59
25
|
}
|
|
60
26
|
|
|
@@ -72,41 +38,6 @@ export namespace PBGltfContainerLoadingState {
|
|
|
72
38
|
|
|
73
39
|
message.currentState = reader.int32() as any;
|
|
74
40
|
continue;
|
|
75
|
-
case 2:
|
|
76
|
-
if (tag !== 18) {
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message.nodePaths.push(reader.string());
|
|
81
|
-
continue;
|
|
82
|
-
case 3:
|
|
83
|
-
if (tag !== 26) {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message.meshNames.push(reader.string());
|
|
88
|
-
continue;
|
|
89
|
-
case 4:
|
|
90
|
-
if (tag !== 34) {
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message.materialNames.push(reader.string());
|
|
95
|
-
continue;
|
|
96
|
-
case 5:
|
|
97
|
-
if (tag !== 42) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message.skinNames.push(reader.string());
|
|
102
|
-
continue;
|
|
103
|
-
case 6:
|
|
104
|
-
if (tag !== 50) {
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
message.animationNames.push(reader.string());
|
|
109
|
-
continue;
|
|
110
41
|
}
|
|
111
42
|
if ((tag & 7) === 4 || tag === 0) {
|
|
112
43
|
break;
|
|
@@ -117,44 +48,12 @@ export namespace PBGltfContainerLoadingState {
|
|
|
117
48
|
}
|
|
118
49
|
|
|
119
50
|
export function fromJSON(object: any): PBGltfContainerLoadingState {
|
|
120
|
-
return {
|
|
121
|
-
currentState: isSet(object.currentState) ? loadingStateFromJSON(object.currentState) : 0,
|
|
122
|
-
nodePaths: Array.isArray(object?.nodePaths) ? object.nodePaths.map((e: any) => String(e)) : [],
|
|
123
|
-
meshNames: Array.isArray(object?.meshNames) ? object.meshNames.map((e: any) => String(e)) : [],
|
|
124
|
-
materialNames: Array.isArray(object?.materialNames) ? object.materialNames.map((e: any) => String(e)) : [],
|
|
125
|
-
skinNames: Array.isArray(object?.skinNames) ? object.skinNames.map((e: any) => String(e)) : [],
|
|
126
|
-
animationNames: Array.isArray(object?.animationNames) ? object.animationNames.map((e: any) => String(e)) : [],
|
|
127
|
-
};
|
|
51
|
+
return { currentState: isSet(object.currentState) ? loadingStateFromJSON(object.currentState) : 0 };
|
|
128
52
|
}
|
|
129
53
|
|
|
130
54
|
export function toJSON(message: PBGltfContainerLoadingState): unknown {
|
|
131
55
|
const obj: any = {};
|
|
132
56
|
message.currentState !== undefined && (obj.currentState = loadingStateToJSON(message.currentState));
|
|
133
|
-
if (message.nodePaths) {
|
|
134
|
-
obj.nodePaths = message.nodePaths.map((e) => e);
|
|
135
|
-
} else {
|
|
136
|
-
obj.nodePaths = [];
|
|
137
|
-
}
|
|
138
|
-
if (message.meshNames) {
|
|
139
|
-
obj.meshNames = message.meshNames.map((e) => e);
|
|
140
|
-
} else {
|
|
141
|
-
obj.meshNames = [];
|
|
142
|
-
}
|
|
143
|
-
if (message.materialNames) {
|
|
144
|
-
obj.materialNames = message.materialNames.map((e) => e);
|
|
145
|
-
} else {
|
|
146
|
-
obj.materialNames = [];
|
|
147
|
-
}
|
|
148
|
-
if (message.skinNames) {
|
|
149
|
-
obj.skinNames = message.skinNames.map((e) => e);
|
|
150
|
-
} else {
|
|
151
|
-
obj.skinNames = [];
|
|
152
|
-
}
|
|
153
|
-
if (message.animationNames) {
|
|
154
|
-
obj.animationNames = message.animationNames.map((e) => e);
|
|
155
|
-
} else {
|
|
156
|
-
obj.animationNames = [];
|
|
157
|
-
}
|
|
158
57
|
return obj;
|
|
159
58
|
}
|
|
160
59
|
|
|
@@ -169,11 +68,6 @@ export namespace PBGltfContainerLoadingState {
|
|
|
169
68
|
): PBGltfContainerLoadingState {
|
|
170
69
|
const message = createBasePBGltfContainerLoadingState();
|
|
171
70
|
message.currentState = object.currentState ?? 0;
|
|
172
|
-
message.nodePaths = object.nodePaths?.map((e) => e) || [];
|
|
173
|
-
message.meshNames = object.meshNames?.map((e) => e) || [];
|
|
174
|
-
message.materialNames = object.materialNames?.map((e) => e) || [];
|
|
175
|
-
message.skinNames = object.skinNames?.map((e) => e) || [];
|
|
176
|
-
message.animationNames = object.animationNames?.map((e) => e) || [];
|
|
177
71
|
return message;
|
|
178
72
|
}
|
|
179
73
|
}
|