@dcl/protocol 1.0.0-22309437617.commit-6617cff → 1.0.0-22483842997.commit-1c3d55b
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/kernel/comms/rfc4/comms.gen.d.ts +46 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +315 -12
- package/out-js/decentraland/kernel/comms/rfc4/comms.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 +9 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +44 -17
- 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/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/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-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/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +375 -3
- 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 +43 -16
- 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/pointer_events.gen.ts +44 -3
- 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/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +2 -44
- package/package.json +4 -7
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +29 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- 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 +7 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- 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/pointer_events.proto +2 -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/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +0 -3
- package/public/sdk-components.proto +0 -4
- 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 -40
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -135
- 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-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -119
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -163
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/proto/decentraland/sdk/components/avatar_movement.proto +0 -45
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -16
- 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
|
@@ -26,7 +26,11 @@ enum PointerEventType {
|
|
|
26
26
|
PET_DOWN = 1;
|
|
27
27
|
PET_HOVER_ENTER = 2;
|
|
28
28
|
PET_HOVER_LEAVE = 3;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
PET_PROXIMITY_ENTER = 4;
|
|
30
|
+
PET_PROXIMITY_LEAVE = 5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
enum InteractionType {
|
|
34
|
+
CURSOR = 0;
|
|
35
|
+
PROXIMITY = 1;
|
|
32
36
|
}
|
|
@@ -10,17 +10,4 @@ import "decentraland/sdk/components/common/loading_state.proto";
|
|
|
10
10
|
// the current state of the GltfContainer of an entity.
|
|
11
11
|
message PBGltfContainerLoadingState {
|
|
12
12
|
common.LoadingState current_state = 1;
|
|
13
|
-
repeated string node_paths = 2; // all node paths in the gltf, which can be used with a GltfNode to inspect and modify the gltf contents
|
|
14
|
-
repeated string mesh_names = 3; // all meshes in the gltf. unnamed meshes will be auto-assigned a name of the form `MeshX` or `MeshX/PrimitiveY`
|
|
15
|
-
// where X is the mesh index and Y is the primitive index (and there is more than 1 primitive). note this may
|
|
16
|
-
// conflict with manually named meshes - to avoid any issues make sure all your meshes are explicitly named.
|
|
17
|
-
repeated string material_names = 4; // all materials in the gltf. unnamed materials will be auto-assigned a name of the form `MaterialX` where
|
|
18
|
-
// X is the material index. note this may conflict with manually named materials - to avoid any issues make
|
|
19
|
-
// sure all your materials are explicitly named.
|
|
20
|
-
repeated string skin_names = 5; // all mesh skins in the gltf. unnamed skins will be auto-assigned a name of the form `SkinX` where
|
|
21
|
-
// X is the skin index. note this may conflict with manually named skins - to avoid any issues make sure all
|
|
22
|
-
// your skins are explicitly named.
|
|
23
|
-
repeated string animation_names = 6; // all animations in the gltf. unnamed animations will be auto-assigned a name of the form `AnimationX` where
|
|
24
|
-
// X is the animation index. note this may conflict with manually named anims - to avoid any issues make sure all
|
|
25
|
-
// your animations are explicitly named.
|
|
26
13
|
}
|
|
@@ -25,4 +25,4 @@ message PBLightSource {
|
|
|
25
25
|
optional float inner_angle = 9; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
|
|
26
26
|
optional float outer_angle = 10; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|
|
@@ -54,16 +54,4 @@ message PBMaterial {
|
|
|
54
54
|
UnlitMaterial unlit = 1;
|
|
55
55
|
PbrMaterial pbr = 2;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
message GltfMaterial {
|
|
59
|
-
string gltf_src = 1;
|
|
60
|
-
string name = 2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// A gltf material that may provide additional features not supported by the PbMaterial fields.
|
|
64
|
-
// If both gltf and material fields are provided, the gltf will be used only for extended features not
|
|
65
|
-
// supported by the PbMaterial.
|
|
66
|
-
// If this is provided and the `material` field is not provided, the renderer will update the material
|
|
67
|
-
// field with data that reflects the gltf material once it is loaded.
|
|
68
|
-
optional GltfMaterial gltf = 3;
|
|
69
|
-
}
|
|
57
|
+
}
|
|
@@ -30,12 +30,6 @@ message PBMeshCollider {
|
|
|
30
30
|
// SphereMesh is a sphere shape that contains the Entity.
|
|
31
31
|
message SphereMesh {}
|
|
32
32
|
|
|
33
|
-
// A collider constructed from a Gltf Mesh.
|
|
34
|
-
message GltfMesh {
|
|
35
|
-
string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
|
|
36
|
-
string name = 2; // the name of the mesh asset
|
|
37
|
-
}
|
|
38
|
-
|
|
39
33
|
optional uint32 collision_mask = 1; // enabled ColliderLayers (default CL_POINTER | CL_PHYSICS)
|
|
40
34
|
|
|
41
35
|
oneof mesh {
|
|
@@ -43,7 +37,6 @@ message PBMeshCollider {
|
|
|
43
37
|
SphereMesh sphere = 3;
|
|
44
38
|
CylinderMesh cylinder = 4;
|
|
45
39
|
PlaneMesh plane = 5;
|
|
46
|
-
GltfMesh gltf = 6;
|
|
47
40
|
}
|
|
48
41
|
}
|
|
49
42
|
|
|
@@ -5,11 +5,13 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
5
5
|
option (common.ecs_component_id) = 1018;
|
|
6
6
|
|
|
7
7
|
// The MeshRenderer component renders a basic geometric shape for an Entity. It can be a cube, a
|
|
8
|
-
// plane, a sphere
|
|
8
|
+
// plane, a sphere or a cylinder.
|
|
9
9
|
//
|
|
10
10
|
// The cube and plane variants can include a UV texture mapping, so specific areas of a material
|
|
11
11
|
// texture are rendered on different faces of the shape. They are serialized as a sequence of 2D
|
|
12
12
|
// `float` coordinates, one for each corner of each side of each face.
|
|
13
|
+
//
|
|
14
|
+
// More complex shapes require the use of a `GltfContainer` component.
|
|
13
15
|
message PBMeshRenderer {
|
|
14
16
|
|
|
15
17
|
// BoxMesh renders a prism shape.
|
|
@@ -32,17 +34,10 @@ message PBMeshRenderer {
|
|
|
32
34
|
message SphereMesh {
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
// A mesh from a Gltf.
|
|
36
|
-
message GltfMesh {
|
|
37
|
-
string gltf_src = 1; // the GLTF file path as listed in the scene's manifest.
|
|
38
|
-
string name = 2; // the name of the mesh asset
|
|
39
|
-
}
|
|
40
|
-
|
|
41
37
|
oneof mesh {
|
|
42
38
|
BoxMesh box = 1;
|
|
43
39
|
SphereMesh sphere = 2;
|
|
44
40
|
CylinderMesh cylinder = 3;
|
|
45
41
|
PlaneMesh plane = 4;
|
|
46
|
-
GltfMesh gltf = 5;
|
|
47
42
|
}
|
|
48
43
|
}
|
|
@@ -51,11 +51,13 @@ message PBPointerEvents {
|
|
|
51
51
|
optional bool show_feedback = 4; // enable or disable hover text and highlight (default true)
|
|
52
52
|
optional bool show_highlight = 5; // enable or disable hover highlight (default true)
|
|
53
53
|
optional float max_player_distance = 6; // range of interaction from the avatar's position (default 0)
|
|
54
|
+
optional uint32 priority = 7; // resolution order when multiple events overlap, higher wins (default 0)
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
message Entry {
|
|
57
58
|
common.PointerEventType event_type = 1; // the kind of interaction to detect
|
|
58
59
|
Info event_info = 2; // additional configuration for this detection
|
|
60
|
+
optional common.InteractionType interaction_type = 3; // the type of interaction source (default 0 == CURSOR)
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
repeated Entry pointer_events = 1; // the list of relevant events to detect
|
|
@@ -28,8 +28,6 @@ message PBPrimaryPointerInfo {
|
|
|
28
28
|
optional PointerType pointer_type = 1; // The type of input device being used
|
|
29
29
|
optional decentraland.common.Vector2 screen_coordinates = 2; // Current position in screen space (pixels)
|
|
30
30
|
optional decentraland.common.Vector2 screen_delta = 3; // Movement since last frame (pixels)
|
|
31
|
-
// ray direction that can be used with the primary camera origin for
|
|
32
|
-
// raycasting from the cursor into the world
|
|
33
31
|
optional decentraland.common.Vector3 world_ray_direction = 4; // Direction vector for 3D ray casting
|
|
34
32
|
}
|
|
35
33
|
|
|
@@ -38,7 +36,4 @@ message PBPrimaryPointerInfo {
|
|
|
38
36
|
enum PointerType {
|
|
39
37
|
POT_NONE = 0; // No pointer input
|
|
40
38
|
POT_MOUSE = 1; // Traditional mouse input
|
|
41
|
-
POT_PAD = 2;
|
|
42
|
-
POT_TOUCH = 3;
|
|
43
|
-
POT_WAND = 4;
|
|
44
39
|
}
|
|
@@ -45,12 +45,6 @@ message PBRaycast {
|
|
|
45
45
|
|
|
46
46
|
// Collision mask, by default CL_POINTER | CL_PHYSICS
|
|
47
47
|
optional uint32 collision_mask = 9;
|
|
48
|
-
|
|
49
|
-
// shape to cast, default ray
|
|
50
|
-
optional RaycastShape shape = 11;
|
|
51
|
-
|
|
52
|
-
// include hits with entities from other scenes
|
|
53
|
-
optional bool include_world = 12;
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
// RaycastQueryType indicates whether the ray should stop on the first collition, or continue.
|
|
@@ -62,10 +56,3 @@ enum RaycastQueryType {
|
|
|
62
56
|
// Do not perform the raycast, only set the raycast result with empty hits
|
|
63
57
|
RQT_NONE = 2;
|
|
64
58
|
}
|
|
65
|
-
|
|
66
|
-
enum RaycastShape {
|
|
67
|
-
// cast a point, get collisions along a ray
|
|
68
|
-
RS_RAY = 0;
|
|
69
|
-
// cast the avatar collider shape, get collisions from sweeping the shape
|
|
70
|
-
RS_AVATAR = 1;
|
|
71
|
-
}
|
|
@@ -23,7 +23,4 @@ message PBUiText {
|
|
|
23
23
|
optional common.Font font = 4; // font for the text (default: sans-serif)
|
|
24
24
|
optional int32 font_size = 5; // size of the text (default: 10)
|
|
25
25
|
optional TextWrap text_wrap = 6; // wrap text when the border is reached (default: TW_WRAP)
|
|
26
|
-
|
|
27
|
-
optional float outline_width = 7; // width of the outline (default: 0)
|
|
28
|
-
optional decentraland.common.Color4 outline_color = 8; // RGBA color of the outline (default: opaque black)
|
|
29
26
|
}
|
|
@@ -4,7 +4,6 @@ package decentraland.sdk.components;
|
|
|
4
4
|
|
|
5
5
|
import "decentraland/sdk/components/common/id.proto";
|
|
6
6
|
import "decentraland/common/colors.proto";
|
|
7
|
-
import "decentraland/common/vectors.proto";
|
|
8
7
|
|
|
9
8
|
option (common.ecs_component_id) = 1050;
|
|
10
9
|
|
|
@@ -81,20 +80,6 @@ enum PointerFilterMode {
|
|
|
81
80
|
PFM_BLOCK = 1;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
enum ShowScrollBar {
|
|
85
|
-
SSB_BOTH = 0;
|
|
86
|
-
SSB_ONLY_VERTICAL = 1;
|
|
87
|
-
SSB_ONLY_HORIZONTAL = 2;
|
|
88
|
-
SSB_HIDDEN = 3;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
message ScrollPositionValue {
|
|
92
|
-
oneof value {
|
|
93
|
-
decentraland.common.Vector2 position = 1;
|
|
94
|
-
string reference = 2;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
83
|
message PBUiTransform {
|
|
99
84
|
int32 parent = 1;
|
|
100
85
|
int32 right_of = 2;
|
|
@@ -189,10 +174,5 @@ message PBUiTransform {
|
|
|
189
174
|
optional decentraland.common.Color4 border_right_color = 72;
|
|
190
175
|
|
|
191
176
|
optional float opacity = 73; // default: 1
|
|
192
|
-
|
|
193
|
-
optional string element_id = 74; // reference for scroll_position. default empty
|
|
194
|
-
optional ScrollPositionValue scroll_position = 75; // default position=(0,0)
|
|
195
|
-
optional ShowScrollBar scroll_visible = 76; // default ShowScrollBar.SSB_BOTH
|
|
196
|
-
|
|
197
177
|
optional int32 z_index = 77; // default: 0 — controls render stacking order. Higher values appear in front of lower values.
|
|
198
178
|
}
|
|
@@ -10,7 +10,9 @@ option (common.ecs_component_id) = 1076;
|
|
|
10
10
|
// an 'instant' transition (like using speed/time = 0)
|
|
11
11
|
// * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
12
12
|
// the holding entity transform).
|
|
13
|
+
// * The fov defines the Field of View of the virtual camera
|
|
13
14
|
message PBVirtualCamera {
|
|
14
15
|
optional common.CameraTransition default_transition = 1;
|
|
15
16
|
optional uint32 look_at_entity = 2;
|
|
17
|
+
optional float fov = 3; // default: 60
|
|
16
18
|
}
|
|
@@ -2,7 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
package decentraland.social_service.v2;
|
|
3
3
|
|
|
4
4
|
import "google/protobuf/empty.proto";
|
|
5
|
-
import "decentraland/common/colors.proto";
|
|
6
5
|
import "decentraland/social_service/errors.proto";
|
|
7
6
|
|
|
8
7
|
// Types
|
|
@@ -13,7 +12,6 @@ message FriendProfile {
|
|
|
13
12
|
string name = 2;
|
|
14
13
|
bool has_claimed_name = 3;
|
|
15
14
|
string profile_picture_url = 4;
|
|
16
|
-
optional decentraland.common.Color3 name_color = 5;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
message BlockedUserProfile {
|
|
@@ -22,7 +20,6 @@ message BlockedUserProfile {
|
|
|
22
20
|
bool has_claimed_name = 3;
|
|
23
21
|
string profile_picture_url = 4;
|
|
24
22
|
optional int64 blocked_at = 5;
|
|
25
|
-
optional decentraland.common.Color3 name_color = 6;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
message Pagination {
|
|
@@ -9,8 +9,6 @@ import public "decentraland/sdk/components/avatar_base.proto";
|
|
|
9
9
|
import public "decentraland/sdk/components/avatar_emote_command.proto";
|
|
10
10
|
import public "decentraland/sdk/components/avatar_equipped_data.proto";
|
|
11
11
|
import public "decentraland/sdk/components/avatar_modifier_area.proto";
|
|
12
|
-
import public "decentraland/sdk/components/avatar_movement.proto";
|
|
13
|
-
import public "decentraland/sdk/components/avatar_movement_info.proto";
|
|
14
12
|
import public "decentraland/sdk/components/avatar_shape.proto";
|
|
15
13
|
import public "decentraland/sdk/components/billboard.proto";
|
|
16
14
|
import public "decentraland/sdk/components/camera_mode_area.proto";
|
|
@@ -19,8 +17,6 @@ import public "decentraland/sdk/components/engine_info.proto";
|
|
|
19
17
|
import public "decentraland/sdk/components/gltf_container.proto";
|
|
20
18
|
import public "decentraland/sdk/components/gltf_node_modifiers.proto";
|
|
21
19
|
import public "decentraland/sdk/components/gltf_container_loading_state.proto";
|
|
22
|
-
import public "decentraland/sdk/components/gltf_node.proto";
|
|
23
|
-
import public "decentraland/sdk/components/gltf_node_state.proto";
|
|
24
20
|
import public "decentraland/sdk/components/material.proto";
|
|
25
21
|
import public "decentraland/sdk/components/mesh_collider.proto";
|
|
26
22
|
import public "decentraland/sdk/components/mesh_renderer.proto";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Vector3 } from "../../common/vectors.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
-
export interface PBAvatarMovement {
|
|
5
|
-
velocity: Vector3 | undefined;
|
|
6
|
-
/** 0-360, we don't allow pitch/roll */
|
|
7
|
-
orientation: number;
|
|
8
|
-
groundDirection?: Vector3 | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace PBAvatarMovement {
|
|
11
|
-
function encode(message: PBAvatarMovement, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovement;
|
|
13
|
-
function fromJSON(object: any): PBAvatarMovement;
|
|
14
|
-
function toJSON(message: PBAvatarMovement): unknown;
|
|
15
|
-
function create<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(base?: I): PBAvatarMovement;
|
|
16
|
-
function fromPartial<I extends Exact<DeepPartial<PBAvatarMovement>, I>>(object: I): PBAvatarMovement;
|
|
17
|
-
}
|
|
18
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
19
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
20
|
-
$case: string;
|
|
21
|
-
} ? {
|
|
22
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
23
|
-
} & {
|
|
24
|
-
$case: T["$case"];
|
|
25
|
-
} : T extends {} ? {
|
|
26
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
-
} : Partial<T>;
|
|
28
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
-
} & {
|
|
32
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBAvatarMovement = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
-
function createBasePBAvatarMovement() {
|
|
12
|
-
return { velocity: undefined, orientation: 0, groundDirection: undefined };
|
|
13
|
-
}
|
|
14
|
-
var PBAvatarMovement;
|
|
15
|
-
(function (PBAvatarMovement) {
|
|
16
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.velocity !== undefined) {
|
|
18
|
-
vectors_gen_1.Vector3.encode(message.velocity, writer.uint32(10).fork()).ldelim();
|
|
19
|
-
}
|
|
20
|
-
if (message.orientation !== 0) {
|
|
21
|
-
writer.uint32(21).float(message.orientation);
|
|
22
|
-
}
|
|
23
|
-
if (message.groundDirection !== undefined) {
|
|
24
|
-
vectors_gen_1.Vector3.encode(message.groundDirection, writer.uint32(26).fork()).ldelim();
|
|
25
|
-
}
|
|
26
|
-
return writer;
|
|
27
|
-
}
|
|
28
|
-
PBAvatarMovement.encode = encode;
|
|
29
|
-
function decode(input, length) {
|
|
30
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
-
const message = createBasePBAvatarMovement();
|
|
33
|
-
while (reader.pos < end) {
|
|
34
|
-
const tag = reader.uint32();
|
|
35
|
-
switch (tag >>> 3) {
|
|
36
|
-
case 1:
|
|
37
|
-
if (tag !== 10) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
message.velocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
41
|
-
continue;
|
|
42
|
-
case 2:
|
|
43
|
-
if (tag !== 21) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.orientation = reader.float();
|
|
47
|
-
continue;
|
|
48
|
-
case 3:
|
|
49
|
-
if (tag !== 26) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.groundDirection = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
reader.skipType(tag & 7);
|
|
59
|
-
}
|
|
60
|
-
return message;
|
|
61
|
-
}
|
|
62
|
-
PBAvatarMovement.decode = decode;
|
|
63
|
-
function fromJSON(object) {
|
|
64
|
-
return {
|
|
65
|
-
velocity: isSet(object.velocity) ? vectors_gen_1.Vector3.fromJSON(object.velocity) : undefined,
|
|
66
|
-
orientation: isSet(object.orientation) ? Number(object.orientation) : 0,
|
|
67
|
-
groundDirection: isSet(object.groundDirection) ? vectors_gen_1.Vector3.fromJSON(object.groundDirection) : undefined,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
PBAvatarMovement.fromJSON = fromJSON;
|
|
71
|
-
function toJSON(message) {
|
|
72
|
-
const obj = {};
|
|
73
|
-
message.velocity !== undefined && (obj.velocity = message.velocity ? vectors_gen_1.Vector3.toJSON(message.velocity) : undefined);
|
|
74
|
-
message.orientation !== undefined && (obj.orientation = message.orientation);
|
|
75
|
-
message.groundDirection !== undefined &&
|
|
76
|
-
(obj.groundDirection = message.groundDirection ? vectors_gen_1.Vector3.toJSON(message.groundDirection) : undefined);
|
|
77
|
-
return obj;
|
|
78
|
-
}
|
|
79
|
-
PBAvatarMovement.toJSON = toJSON;
|
|
80
|
-
function create(base) {
|
|
81
|
-
return PBAvatarMovement.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
82
|
-
}
|
|
83
|
-
PBAvatarMovement.create = create;
|
|
84
|
-
function fromPartial(object) {
|
|
85
|
-
var _a;
|
|
86
|
-
const message = createBasePBAvatarMovement();
|
|
87
|
-
message.velocity = (object.velocity !== undefined && object.velocity !== null)
|
|
88
|
-
? vectors_gen_1.Vector3.fromPartial(object.velocity)
|
|
89
|
-
: undefined;
|
|
90
|
-
message.orientation = (_a = object.orientation) !== null && _a !== void 0 ? _a : 0;
|
|
91
|
-
message.groundDirection = (object.groundDirection !== undefined && object.groundDirection !== null)
|
|
92
|
-
? vectors_gen_1.Vector3.fromPartial(object.groundDirection)
|
|
93
|
-
: undefined;
|
|
94
|
-
return message;
|
|
95
|
-
}
|
|
96
|
-
PBAvatarMovement.fromPartial = fromPartial;
|
|
97
|
-
})(PBAvatarMovement || (exports.PBAvatarMovement = PBAvatarMovement = {}));
|
|
98
|
-
function isSet(value) {
|
|
99
|
-
return value !== null && value !== undefined;
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=avatar_movement.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar_movement.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAW7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AAC7E,CAAC;AAED,IAAiB,gBAAgB,CAmFhC;AAnFD,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CA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7C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IAVe,4BAAW,cAU1B,CAAA;AACH,CAAC,EAnFgB,gBAAgB,gCAAhB,gBAAgB,QAmFhC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Vector3 } from "../../common/vectors.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
-
export interface PBAvatarMovementInfo {
|
|
5
|
-
/** the length of time the current step velocity will apply for */
|
|
6
|
-
stepTime: number;
|
|
7
|
-
/** the length of time the previous step velocity applied for */
|
|
8
|
-
previousStepTime: number;
|
|
9
|
-
/** the velocity requested for the previous frame */
|
|
10
|
-
requestedVelocity: Vector3 | undefined;
|
|
11
|
-
/** the resulting velocity taking collisions into account */
|
|
12
|
-
actualVelocity: Vector3 | undefined;
|
|
13
|
-
/** the velocity imparted by movement of the "ground" platform or pushing from other moving colliders */
|
|
14
|
-
externalVelocity: Vector3 | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare namespace PBAvatarMovementInfo {
|
|
17
|
-
function encode(message: PBAvatarMovementInfo, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarMovementInfo;
|
|
19
|
-
function fromJSON(object: any): PBAvatarMovementInfo;
|
|
20
|
-
function toJSON(message: PBAvatarMovementInfo): unknown;
|
|
21
|
-
function create<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(base?: I): PBAvatarMovementInfo;
|
|
22
|
-
function fromPartial<I extends Exact<DeepPartial<PBAvatarMovementInfo>, I>>(object: I): PBAvatarMovementInfo;
|
|
23
|
-
}
|
|
24
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
26
|
-
$case: string;
|
|
27
|
-
} ? {
|
|
28
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
29
|
-
} & {
|
|
30
|
-
$case: T["$case"];
|
|
31
|
-
} : T extends {} ? {
|
|
32
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
-
} : Partial<T>;
|
|
34
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
-
} & {
|
|
38
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
-
};
|
|
40
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBAvatarMovementInfo = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const vectors_gen_1 = require("../../common/vectors.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
-
function createBasePBAvatarMovementInfo() {
|
|
12
|
-
return {
|
|
13
|
-
stepTime: 0,
|
|
14
|
-
previousStepTime: 0,
|
|
15
|
-
requestedVelocity: undefined,
|
|
16
|
-
actualVelocity: undefined,
|
|
17
|
-
externalVelocity: undefined,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var PBAvatarMovementInfo;
|
|
21
|
-
(function (PBAvatarMovementInfo) {
|
|
22
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
23
|
-
if (message.stepTime !== 0) {
|
|
24
|
-
writer.uint32(13).float(message.stepTime);
|
|
25
|
-
}
|
|
26
|
-
if (message.previousStepTime !== 0) {
|
|
27
|
-
writer.uint32(21).float(message.previousStepTime);
|
|
28
|
-
}
|
|
29
|
-
if (message.requestedVelocity !== undefined) {
|
|
30
|
-
vectors_gen_1.Vector3.encode(message.requestedVelocity, writer.uint32(26).fork()).ldelim();
|
|
31
|
-
}
|
|
32
|
-
if (message.actualVelocity !== undefined) {
|
|
33
|
-
vectors_gen_1.Vector3.encode(message.actualVelocity, writer.uint32(34).fork()).ldelim();
|
|
34
|
-
}
|
|
35
|
-
if (message.externalVelocity !== undefined) {
|
|
36
|
-
vectors_gen_1.Vector3.encode(message.externalVelocity, writer.uint32(42).fork()).ldelim();
|
|
37
|
-
}
|
|
38
|
-
return writer;
|
|
39
|
-
}
|
|
40
|
-
PBAvatarMovementInfo.encode = encode;
|
|
41
|
-
function decode(input, length) {
|
|
42
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
43
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
-
const message = createBasePBAvatarMovementInfo();
|
|
45
|
-
while (reader.pos < end) {
|
|
46
|
-
const tag = reader.uint32();
|
|
47
|
-
switch (tag >>> 3) {
|
|
48
|
-
case 1:
|
|
49
|
-
if (tag !== 13) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.stepTime = reader.float();
|
|
53
|
-
continue;
|
|
54
|
-
case 2:
|
|
55
|
-
if (tag !== 21) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
message.previousStepTime = reader.float();
|
|
59
|
-
continue;
|
|
60
|
-
case 3:
|
|
61
|
-
if (tag !== 26) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.requestedVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
65
|
-
continue;
|
|
66
|
-
case 4:
|
|
67
|
-
if (tag !== 34) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
message.actualVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
71
|
-
continue;
|
|
72
|
-
case 5:
|
|
73
|
-
if (tag !== 42) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
message.externalVelocity = vectors_gen_1.Vector3.decode(reader, reader.uint32());
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
reader.skipType(tag & 7);
|
|
83
|
-
}
|
|
84
|
-
return message;
|
|
85
|
-
}
|
|
86
|
-
PBAvatarMovementInfo.decode = decode;
|
|
87
|
-
function fromJSON(object) {
|
|
88
|
-
return {
|
|
89
|
-
stepTime: isSet(object.stepTime) ? Number(object.stepTime) : 0,
|
|
90
|
-
previousStepTime: isSet(object.previousStepTime) ? Number(object.previousStepTime) : 0,
|
|
91
|
-
requestedVelocity: isSet(object.requestedVelocity) ? vectors_gen_1.Vector3.fromJSON(object.requestedVelocity) : undefined,
|
|
92
|
-
actualVelocity: isSet(object.actualVelocity) ? vectors_gen_1.Vector3.fromJSON(object.actualVelocity) : undefined,
|
|
93
|
-
externalVelocity: isSet(object.externalVelocity) ? vectors_gen_1.Vector3.fromJSON(object.externalVelocity) : undefined,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
PBAvatarMovementInfo.fromJSON = fromJSON;
|
|
97
|
-
function toJSON(message) {
|
|
98
|
-
const obj = {};
|
|
99
|
-
message.stepTime !== undefined && (obj.stepTime = message.stepTime);
|
|
100
|
-
message.previousStepTime !== undefined && (obj.previousStepTime = message.previousStepTime);
|
|
101
|
-
message.requestedVelocity !== undefined &&
|
|
102
|
-
(obj.requestedVelocity = message.requestedVelocity ? vectors_gen_1.Vector3.toJSON(message.requestedVelocity) : undefined);
|
|
103
|
-
message.actualVelocity !== undefined &&
|
|
104
|
-
(obj.actualVelocity = message.actualVelocity ? vectors_gen_1.Vector3.toJSON(message.actualVelocity) : undefined);
|
|
105
|
-
message.externalVelocity !== undefined &&
|
|
106
|
-
(obj.externalVelocity = message.externalVelocity ? vectors_gen_1.Vector3.toJSON(message.externalVelocity) : undefined);
|
|
107
|
-
return obj;
|
|
108
|
-
}
|
|
109
|
-
PBAvatarMovementInfo.toJSON = toJSON;
|
|
110
|
-
function create(base) {
|
|
111
|
-
return PBAvatarMovementInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
112
|
-
}
|
|
113
|
-
PBAvatarMovementInfo.create = create;
|
|
114
|
-
function fromPartial(object) {
|
|
115
|
-
var _a, _b;
|
|
116
|
-
const message = createBasePBAvatarMovementInfo();
|
|
117
|
-
message.stepTime = (_a = object.stepTime) !== null && _a !== void 0 ? _a : 0;
|
|
118
|
-
message.previousStepTime = (_b = object.previousStepTime) !== null && _b !== void 0 ? _b : 0;
|
|
119
|
-
message.requestedVelocity = (object.requestedVelocity !== undefined && object.requestedVelocity !== null)
|
|
120
|
-
? vectors_gen_1.Vector3.fromPartial(object.requestedVelocity)
|
|
121
|
-
: undefined;
|
|
122
|
-
message.actualVelocity = (object.actualVelocity !== undefined && object.actualVelocity !== null)
|
|
123
|
-
? vectors_gen_1.Vector3.fromPartial(object.actualVelocity)
|
|
124
|
-
: undefined;
|
|
125
|
-
message.externalVelocity = (object.externalVelocity !== undefined && object.externalVelocity !== null)
|
|
126
|
-
? vectors_gen_1.Vector3.fromPartial(object.externalVelocity)
|
|
127
|
-
: undefined;
|
|
128
|
-
return message;
|
|
129
|
-
}
|
|
130
|
-
PBAvatarMovementInfo.fromPartial = fromPartial;
|
|
131
|
-
})(PBAvatarMovementInfo || (exports.PBAvatarMovementInfo = PBAvatarMovementInfo = {}));
|
|
132
|
-
function isSet(value) {
|
|
133
|
-
return value !== null && value !== undefined;
|
|
134
|
-
}
|
|
135
|
-
//# sourceMappingURL=avatar_movement_info.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar_movement_info.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAmB7D,SAAS,8BAA8B;IACrC,OAAO;QACL,QAAQ,EAAE,CAAC;QACX,gBAAgB,EAAE,CAAC;QACnB,iBAAiB,EAAE,SAAS;QAC5B,cAAc,EAAE,SAAS;QACzB,gBAAgB,EAAE,SAAS;KAC5B,CAAC;AACJ,CAAC;AAED,IAAiB,oBAAoB,CAiHpC;AAjHD,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,IAAI,OAAO,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI,OAAO,CAAC,gBAAgB,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACpD,CAAC;QACD,IAAI,OAAO,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;YAC5C,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QAC/E,CAAC;QACD,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;YACzC,qBAAO,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAA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