@dcl/protocol 1.0.0-40563911091.commit-694568d → 1.0.0-40603192045.commit-e7bab56
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 +18 -0
- package/out-js/decentraland/common/texture.gen.js +104 -4
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +113 -2
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +387 -3
- 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 +2 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +14 -2
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +71 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +303 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +80 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +14 -2
- 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 +3 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/{sun.gen.js → global_light.gen.js} +37 -48
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/material.gen.js +86 -2
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +13 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +64 -2
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +296 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +28 -2
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +33 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +176 -3
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +119 -4
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +414 -2
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +432 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +16 -1
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +73 -1
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +36 -0
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +2 -2
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +38 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +1 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +62 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +36 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/material.proto +13 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +7 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +5 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_input.proto +2 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +10 -3
- package/out-js/decentraland/common/gradient.gen.d.ts +0 -50
- package/out-js/decentraland/common/gradient.gen.js +0 -147
- package/out-js/decentraland/common/gradient.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +0 -44
- package/out-js/decentraland/sdk/components/environment_fog.gen.js +0 -86
- package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/skybox.gen.d.ts +0 -103
- package/out-js/decentraland/sdk/components/skybox.gen.js +0 -355
- package/out-js/decentraland/sdk/components/skybox.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/sun.gen.d.ts +0 -53
- package/out-js/decentraland/sdk/components/sun.gen.js.map +0 -1
- package/out-ts/decentraland/common/gradient.gen.ts +0 -170
- package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +0 -113
- package/out-ts/decentraland/sdk/components/skybox.gen.ts +0 -440
- package/out-ts/decentraland/sdk/components/sun.gen.ts +0 -155
- package/proto/decentraland/common/gradient.proto +0 -16
- package/proto/decentraland/sdk/components/environment_fog.proto +0 -21
- package/proto/decentraland/sdk/components/skybox.proto +0 -51
- package/proto/decentraland/sdk/components/sun.proto +0 -26
|
@@ -54,4 +54,16 @@ message PBMaterial {
|
|
|
54
54
|
UnlitMaterial unlit = 1;
|
|
55
55
|
PbrMaterial pbr = 2;
|
|
56
56
|
}
|
|
57
|
-
|
|
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
|
+
}
|
|
@@ -30,6 +30,12 @@ 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
|
+
|
|
33
39
|
optional uint32 collision_mask = 1; // enabled ColliderLayers (default CL_POINTER | CL_PHYSICS)
|
|
34
40
|
|
|
35
41
|
oneof mesh {
|
|
@@ -37,6 +43,7 @@ message PBMeshCollider {
|
|
|
37
43
|
SphereMesh sphere = 3;
|
|
38
44
|
CylinderMesh cylinder = 4;
|
|
39
45
|
PlaneMesh plane = 5;
|
|
46
|
+
GltfMesh gltf = 6;
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
|
|
@@ -5,13 +5,11 @@ 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 or a
|
|
8
|
+
// plane, a sphere, a cylinder, or a Gltf mesh.
|
|
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.
|
|
15
13
|
message PBMeshRenderer {
|
|
16
14
|
|
|
17
15
|
// BoxMesh renders a prism shape.
|
|
@@ -34,10 +32,17 @@ message PBMeshRenderer {
|
|
|
34
32
|
message SphereMesh {
|
|
35
33
|
}
|
|
36
34
|
|
|
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
|
+
|
|
37
41
|
oneof mesh {
|
|
38
42
|
BoxMesh box = 1;
|
|
39
43
|
SphereMesh sphere = 2;
|
|
40
44
|
CylinderMesh cylinder = 3;
|
|
41
45
|
PlaneMesh plane = 4;
|
|
46
|
+
GltfMesh gltf = 5;
|
|
42
47
|
}
|
|
43
48
|
}
|
|
@@ -28,6 +28,8 @@ 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
|
|
31
33
|
optional decentraland.common.Vector3 world_ray_direction = 4; // Direction vector for 3D ray casting
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -36,4 +38,7 @@ message PBPrimaryPointerInfo {
|
|
|
36
38
|
enum PointerType {
|
|
37
39
|
POT_NONE = 0; // No pointer input
|
|
38
40
|
POT_MOUSE = 1; // Traditional mouse input
|
|
41
|
+
POT_PAD = 2;
|
|
42
|
+
POT_TOUCH = 3;
|
|
43
|
+
POT_WAND = 4;
|
|
39
44
|
}
|
|
@@ -45,6 +45,12 @@ 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;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
// RaycastQueryType indicates whether the ray should stop on the first collition, or continue.
|
|
@@ -56,3 +62,10 @@ enum RaycastQueryType {
|
|
|
56
62
|
// Do not perform the raycast, only set the raycast result with empty hits
|
|
57
63
|
RQT_NONE = 2;
|
|
58
64
|
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
+
import "decentraland/common/colors.proto";
|
|
7
|
+
|
|
8
|
+
option (common.ecs_component_id) = 1207;
|
|
9
|
+
|
|
10
|
+
message PBTextureCamera {
|
|
11
|
+
// rendered texture width
|
|
12
|
+
optional uint32 width = 1;
|
|
13
|
+
// rendered texture height
|
|
14
|
+
optional uint32 height = 2;
|
|
15
|
+
// which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
|
|
16
|
+
// defaults to 0
|
|
17
|
+
optional uint32 layer = 3;
|
|
18
|
+
|
|
19
|
+
// default black
|
|
20
|
+
optional decentraland.common.Color4 clear_color = 6;
|
|
21
|
+
// default infinity
|
|
22
|
+
optional float far_plane = 7;
|
|
23
|
+
|
|
24
|
+
oneof mode {
|
|
25
|
+
Perspective perspective = 8;
|
|
26
|
+
Orthographic orthographic = 9;
|
|
27
|
+
/* Portal portal = 10; */
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// controls whether this camera acts as a receiver for audio on sources with matching `PBCameraLayers`.
|
|
31
|
+
// range: 0 (off) - 1 (full volume)
|
|
32
|
+
// default: 0
|
|
33
|
+
optional float volume = 10;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message Perspective {
|
|
37
|
+
// vertical field of view in radians
|
|
38
|
+
// defaults to pi/4 = 45 degrees
|
|
39
|
+
optional float field_of_view = 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message Orthographic {
|
|
43
|
+
// vertical extent of the visible range in meters
|
|
44
|
+
// defaults to 4m
|
|
45
|
+
optional float vertical_range = 1;
|
|
46
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
4
|
+
package decentraland.sdk.components;
|
|
5
|
+
|
|
6
|
+
option (common.ecs_component_id) = 1203;
|
|
7
|
+
|
|
8
|
+
import "decentraland/common/colors.proto";
|
|
9
|
+
|
|
10
|
+
// The UiCanvas component can be attached to a ui root entity to specify properties of the ui texture.
|
|
11
|
+
message PBUiCanvas {
|
|
12
|
+
uint32 width = 1;
|
|
13
|
+
uint32 height = 2;
|
|
14
|
+
|
|
15
|
+
optional decentraland.common.Color4 color = 3; // default = (0.0, 0.0, 0.0, 0.0) / transparent
|
|
16
|
+
}
|
|
@@ -17,5 +17,7 @@ message PBUiInput {
|
|
|
17
17
|
optional common.Font font = 11; // default=0
|
|
18
18
|
optional int32 font_size = 12; // default=10
|
|
19
19
|
optional string value = 13;
|
|
20
|
+
optional bool multi_line = 14; // default=false; when true, the input accepts newlines and behaves as a textarea
|
|
21
|
+
optional bool clear_on_submit = 15; // default=true; when false, the input value is preserved after pressing Enter
|
|
20
22
|
optional string font_src = 16; // a ttf font file in the scene content or a Google Fonts family name; `font` is the fallback (default: unset)
|
|
21
23
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
+
import "decentraland/common/vectors.proto";
|
|
7
|
+
|
|
8
|
+
option (common.ecs_component_id) = 1202;
|
|
9
|
+
|
|
10
|
+
message PBUiScrollResult {
|
|
11
|
+
decentraland.common.Vector2 value = 1;
|
|
12
|
+
}
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
|
|
8
9
|
option (common.ecs_component_id) = 1050;
|
|
9
10
|
|
|
@@ -80,6 +81,20 @@ enum PointerFilterMode {
|
|
|
80
81
|
PFM_BLOCK = 1;
|
|
81
82
|
}
|
|
82
83
|
|
|
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
|
+
|
|
83
98
|
message PBUiTransform {
|
|
84
99
|
int32 parent = 1;
|
|
85
100
|
int32 right_of = 2;
|
|
@@ -174,5 +189,10 @@ message PBUiTransform {
|
|
|
174
189
|
optional decentraland.common.Color4 border_right_color = 72;
|
|
175
190
|
|
|
176
191
|
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
|
+
|
|
177
197
|
optional int32 z_index = 77; // default: 0 — controls render stacking order. Higher values appear in front of lower values.
|
|
178
198
|
}
|
|
@@ -9,18 +9,24 @@ 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";
|
|
12
14
|
import public "decentraland/sdk/components/avatar_nametag.proto";
|
|
13
15
|
import public "decentraland/sdk/components/avatar_shape.proto";
|
|
14
16
|
import public "decentraland/sdk/components/billboard.proto";
|
|
17
|
+
import public "decentraland/sdk/components/camera_layer.proto";
|
|
18
|
+
import public "decentraland/sdk/components/camera_layers.proto";
|
|
15
19
|
import public "decentraland/sdk/components/camera_mode_area.proto";
|
|
16
20
|
import public "decentraland/sdk/components/camera_mode.proto";
|
|
17
21
|
import public "decentraland/sdk/components/engine_info.proto";
|
|
18
22
|
import public "decentraland/sdk/components/explorer_item_purchase_result.proto";
|
|
19
23
|
import public "decentraland/sdk/components/explorer_ui_events_result.proto";
|
|
20
|
-
import public "decentraland/sdk/components/
|
|
24
|
+
import public "decentraland/sdk/components/global_light.proto";
|
|
21
25
|
import public "decentraland/sdk/components/gltf_container.proto";
|
|
22
26
|
import public "decentraland/sdk/components/gltf_node_modifiers.proto";
|
|
23
27
|
import public "decentraland/sdk/components/gltf_container_loading_state.proto";
|
|
28
|
+
import public "decentraland/sdk/components/gltf_node.proto";
|
|
29
|
+
import public "decentraland/sdk/components/gltf_node_state.proto";
|
|
24
30
|
import public "decentraland/sdk/components/material.proto";
|
|
25
31
|
import public "decentraland/sdk/components/mesh_collider.proto";
|
|
26
32
|
import public "decentraland/sdk/components/mesh_renderer.proto";
|
|
@@ -32,19 +38,20 @@ import public "decentraland/sdk/components/pointer_lock.proto";
|
|
|
32
38
|
import public "decentraland/sdk/components/raycast_result.proto";
|
|
33
39
|
import public "decentraland/sdk/components/raycast.proto";
|
|
34
40
|
import public "decentraland/sdk/components/realm_info.proto";
|
|
35
|
-
import public "decentraland/sdk/components/skybox.proto";
|
|
36
|
-
import public "decentraland/sdk/components/sun.proto";
|
|
37
41
|
import public "decentraland/sdk/components/text_shape.proto";
|
|
42
|
+
import public "decentraland/sdk/components/texture_camera.proto";
|
|
38
43
|
import public "decentraland/sdk/components/touch_screen_controls.proto";
|
|
39
44
|
import public "decentraland/sdk/components/tween.proto";
|
|
40
45
|
import public "decentraland/sdk/components/tween_state.proto";
|
|
41
46
|
import public "decentraland/sdk/components/tween_sequence.proto";
|
|
42
47
|
import public "decentraland/sdk/components/ui_background.proto";
|
|
48
|
+
import public "decentraland/sdk/components/ui_canvas.proto";
|
|
43
49
|
import public "decentraland/sdk/components/ui_dropdown_result.proto";
|
|
44
50
|
import public "decentraland/sdk/components/ui_dropdown.proto";
|
|
45
51
|
import public "decentraland/sdk/components/ui_input_result.proto";
|
|
46
52
|
import public "decentraland/sdk/components/ui_input.proto";
|
|
47
53
|
import public "decentraland/sdk/components/ui_input_binding.proto";
|
|
54
|
+
import public "decentraland/sdk/components/ui_scroll_result.proto";
|
|
48
55
|
import public "decentraland/sdk/components/ui_text.proto";
|
|
49
56
|
import public "decentraland/sdk/components/ui_transform.proto";
|
|
50
57
|
import public "decentraland/sdk/components/video_player.proto";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Color4 } from "./colors.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.common";
|
|
4
|
-
export interface ColorKey {
|
|
5
|
-
/** position along the gradient, from 0 to 1. Values outside that range clamp to it */
|
|
6
|
-
time: number;
|
|
7
|
-
/** linear color. Values above 1 are allowed (HDR) */
|
|
8
|
-
color: Color4 | undefined;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Piecewise-linear, with keys interpolated in ascending order of `time`. Positions before the first key
|
|
12
|
-
* or after the last key take that key's color. No keys means the gradient is unset.
|
|
13
|
-
* If two keys have the same `time`, then the gradient keeps the key that comes later in `keys`.
|
|
14
|
-
*/
|
|
15
|
-
export interface ColorGradient {
|
|
16
|
-
keys: ColorKey[];
|
|
17
|
-
}
|
|
18
|
-
export declare namespace ColorKey {
|
|
19
|
-
function encode(message: ColorKey, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): ColorKey;
|
|
21
|
-
function fromJSON(object: any): ColorKey;
|
|
22
|
-
function toJSON(message: ColorKey): unknown;
|
|
23
|
-
function create<I extends Exact<DeepPartial<ColorKey>, I>>(base?: I): ColorKey;
|
|
24
|
-
function fromPartial<I extends Exact<DeepPartial<ColorKey>, I>>(object: I): ColorKey;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace ColorGradient {
|
|
27
|
-
function encode(message: ColorGradient, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): ColorGradient;
|
|
29
|
-
function fromJSON(object: any): ColorGradient;
|
|
30
|
-
function toJSON(message: ColorGradient): unknown;
|
|
31
|
-
function create<I extends Exact<DeepPartial<ColorGradient>, I>>(base?: I): ColorGradient;
|
|
32
|
-
function fromPartial<I extends Exact<DeepPartial<ColorGradient>, I>>(object: I): ColorGradient;
|
|
33
|
-
}
|
|
34
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
35
|
-
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 {
|
|
36
|
-
$case: string;
|
|
37
|
-
} ? {
|
|
38
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
39
|
-
} & {
|
|
40
|
-
$case: T["$case"];
|
|
41
|
-
} : T extends {} ? {
|
|
42
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
-
} : Partial<T>;
|
|
44
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
-
} & {
|
|
48
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
-
};
|
|
50
|
-
export {};
|
|
@@ -1,147 +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.ColorGradient = exports.ColorKey = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const colors_gen_1 = require("./colors.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.common";
|
|
11
|
-
function createBaseColorKey() {
|
|
12
|
-
return { time: 0, color: undefined };
|
|
13
|
-
}
|
|
14
|
-
var ColorKey;
|
|
15
|
-
(function (ColorKey) {
|
|
16
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.time !== 0) {
|
|
18
|
-
writer.uint32(13).float(message.time);
|
|
19
|
-
}
|
|
20
|
-
if (message.color !== undefined) {
|
|
21
|
-
colors_gen_1.Color4.encode(message.color, writer.uint32(18).fork()).ldelim();
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
}
|
|
25
|
-
ColorKey.encode = encode;
|
|
26
|
-
function decode(input, length) {
|
|
27
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBaseColorKey();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1:
|
|
34
|
-
if (tag !== 13) {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
message.time = reader.float();
|
|
38
|
-
continue;
|
|
39
|
-
case 2:
|
|
40
|
-
if (tag !== 18) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
message.color = colors_gen_1.Color4.decode(reader, reader.uint32());
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
reader.skipType(tag & 7);
|
|
50
|
-
}
|
|
51
|
-
return message;
|
|
52
|
-
}
|
|
53
|
-
ColorKey.decode = decode;
|
|
54
|
-
function fromJSON(object) {
|
|
55
|
-
return {
|
|
56
|
-
time: isSet(object.time) ? Number(object.time) : 0,
|
|
57
|
-
color: isSet(object.color) ? colors_gen_1.Color4.fromJSON(object.color) : undefined,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
ColorKey.fromJSON = fromJSON;
|
|
61
|
-
function toJSON(message) {
|
|
62
|
-
const obj = {};
|
|
63
|
-
message.time !== undefined && (obj.time = message.time);
|
|
64
|
-
message.color !== undefined && (obj.color = message.color ? colors_gen_1.Color4.toJSON(message.color) : undefined);
|
|
65
|
-
return obj;
|
|
66
|
-
}
|
|
67
|
-
ColorKey.toJSON = toJSON;
|
|
68
|
-
function create(base) {
|
|
69
|
-
return ColorKey.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
70
|
-
}
|
|
71
|
-
ColorKey.create = create;
|
|
72
|
-
function fromPartial(object) {
|
|
73
|
-
var _a;
|
|
74
|
-
const message = createBaseColorKey();
|
|
75
|
-
message.time = (_a = object.time) !== null && _a !== void 0 ? _a : 0;
|
|
76
|
-
message.color = (object.color !== undefined && object.color !== null)
|
|
77
|
-
? colors_gen_1.Color4.fromPartial(object.color)
|
|
78
|
-
: undefined;
|
|
79
|
-
return message;
|
|
80
|
-
}
|
|
81
|
-
ColorKey.fromPartial = fromPartial;
|
|
82
|
-
})(ColorKey || (exports.ColorKey = ColorKey = {}));
|
|
83
|
-
function createBaseColorGradient() {
|
|
84
|
-
return { keys: [] };
|
|
85
|
-
}
|
|
86
|
-
var ColorGradient;
|
|
87
|
-
(function (ColorGradient) {
|
|
88
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
89
|
-
for (const v of message.keys) {
|
|
90
|
-
ColorKey.encode(v, writer.uint32(10).fork()).ldelim();
|
|
91
|
-
}
|
|
92
|
-
return writer;
|
|
93
|
-
}
|
|
94
|
-
ColorGradient.encode = encode;
|
|
95
|
-
function decode(input, length) {
|
|
96
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
97
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
-
const message = createBaseColorGradient();
|
|
99
|
-
while (reader.pos < end) {
|
|
100
|
-
const tag = reader.uint32();
|
|
101
|
-
switch (tag >>> 3) {
|
|
102
|
-
case 1:
|
|
103
|
-
if (tag !== 10) {
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
message.keys.push(ColorKey.decode(reader, reader.uint32()));
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
reader.skipType(tag & 7);
|
|
113
|
-
}
|
|
114
|
-
return message;
|
|
115
|
-
}
|
|
116
|
-
ColorGradient.decode = decode;
|
|
117
|
-
function fromJSON(object) {
|
|
118
|
-
return { keys: Array.isArray(object === null || object === void 0 ? void 0 : object.keys) ? object.keys.map((e) => ColorKey.fromJSON(e)) : [] };
|
|
119
|
-
}
|
|
120
|
-
ColorGradient.fromJSON = fromJSON;
|
|
121
|
-
function toJSON(message) {
|
|
122
|
-
const obj = {};
|
|
123
|
-
if (message.keys) {
|
|
124
|
-
obj.keys = message.keys.map((e) => e ? ColorKey.toJSON(e) : undefined);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
obj.keys = [];
|
|
128
|
-
}
|
|
129
|
-
return obj;
|
|
130
|
-
}
|
|
131
|
-
ColorGradient.toJSON = toJSON;
|
|
132
|
-
function create(base) {
|
|
133
|
-
return ColorGradient.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
134
|
-
}
|
|
135
|
-
ColorGradient.create = create;
|
|
136
|
-
function fromPartial(object) {
|
|
137
|
-
var _a;
|
|
138
|
-
const message = createBaseColorGradient();
|
|
139
|
-
message.keys = ((_a = object.keys) === null || _a === void 0 ? void 0 : _a.map((e) => ColorKey.fromPartial(e))) || [];
|
|
140
|
-
return message;
|
|
141
|
-
}
|
|
142
|
-
ColorGradient.fromPartial = fromPartial;
|
|
143
|
-
})(ColorGradient || (exports.ColorGradient = ColorGradient = {}));
|
|
144
|
-
function isSet(value) {
|
|
145
|
-
return value !== null && value !== undefined;
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=gradient.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AC;IAJe,yBAAW,cAI1B,CAAA;AACH,CAAC,EAtDgB,aAAa,6BAAb,aAAa,QAsD7B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { ColorGradient } from "../../common/gradient.gen";
|
|
3
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
4
|
-
/**
|
|
5
|
-
* PBEnvironmentFog overrides the environment fog while the player is inside the scene.
|
|
6
|
-
* Valid only on the scene root entity (`engine.RootEntity`).
|
|
7
|
-
*
|
|
8
|
-
* An unset field keeps the time-of-day default.
|
|
9
|
-
* Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
|
|
10
|
-
* Gradients do not wrap around midnight.
|
|
11
|
-
* A scene cannot turn fog on or off. That is a user quality setting.
|
|
12
|
-
*
|
|
13
|
-
* While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
|
|
14
|
-
*/
|
|
15
|
-
export interface PBEnvironmentFog {
|
|
16
|
-
color?: ColorGradient | undefined;
|
|
17
|
-
/** default = 0.0005, per meter: fog = 1 - e^(-density * distance). Negative values clamp to 0 */
|
|
18
|
-
density?: number | undefined;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace PBEnvironmentFog {
|
|
21
|
-
function encode(message: PBEnvironmentFog, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBEnvironmentFog;
|
|
23
|
-
function fromJSON(object: any): PBEnvironmentFog;
|
|
24
|
-
function toJSON(message: PBEnvironmentFog): unknown;
|
|
25
|
-
function create<I extends Exact<DeepPartial<PBEnvironmentFog>, I>>(base?: I): PBEnvironmentFog;
|
|
26
|
-
function fromPartial<I extends Exact<DeepPartial<PBEnvironmentFog>, I>>(object: I): PBEnvironmentFog;
|
|
27
|
-
}
|
|
28
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
|
-
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 {
|
|
30
|
-
$case: string;
|
|
31
|
-
} ? {
|
|
32
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
33
|
-
} & {
|
|
34
|
-
$case: T["$case"];
|
|
35
|
-
} : T extends {} ? {
|
|
36
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
37
|
-
} : Partial<T>;
|
|
38
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
39
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
40
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
41
|
-
} & {
|
|
42
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
@@ -1,86 +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.PBEnvironmentFog = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const gradient_gen_1 = require("../../common/gradient.gen");
|
|
10
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
11
|
-
function createBasePBEnvironmentFog() {
|
|
12
|
-
return { color: undefined, density: undefined };
|
|
13
|
-
}
|
|
14
|
-
var PBEnvironmentFog;
|
|
15
|
-
(function (PBEnvironmentFog) {
|
|
16
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.color !== undefined) {
|
|
18
|
-
gradient_gen_1.ColorGradient.encode(message.color, writer.uint32(10).fork()).ldelim();
|
|
19
|
-
}
|
|
20
|
-
if (message.density !== undefined) {
|
|
21
|
-
writer.uint32(21).float(message.density);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
}
|
|
25
|
-
PBEnvironmentFog.encode = encode;
|
|
26
|
-
function decode(input, length) {
|
|
27
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBasePBEnvironmentFog();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1:
|
|
34
|
-
if (tag !== 10) {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
message.color = gradient_gen_1.ColorGradient.decode(reader, reader.uint32());
|
|
38
|
-
continue;
|
|
39
|
-
case 2:
|
|
40
|
-
if (tag !== 21) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
message.density = reader.float();
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
reader.skipType(tag & 7);
|
|
50
|
-
}
|
|
51
|
-
return message;
|
|
52
|
-
}
|
|
53
|
-
PBEnvironmentFog.decode = decode;
|
|
54
|
-
function fromJSON(object) {
|
|
55
|
-
return {
|
|
56
|
-
color: isSet(object.color) ? gradient_gen_1.ColorGradient.fromJSON(object.color) : undefined,
|
|
57
|
-
density: isSet(object.density) ? Number(object.density) : undefined,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
PBEnvironmentFog.fromJSON = fromJSON;
|
|
61
|
-
function toJSON(message) {
|
|
62
|
-
const obj = {};
|
|
63
|
-
message.color !== undefined && (obj.color = message.color ? gradient_gen_1.ColorGradient.toJSON(message.color) : undefined);
|
|
64
|
-
message.density !== undefined && (obj.density = message.density);
|
|
65
|
-
return obj;
|
|
66
|
-
}
|
|
67
|
-
PBEnvironmentFog.toJSON = toJSON;
|
|
68
|
-
function create(base) {
|
|
69
|
-
return PBEnvironmentFog.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
70
|
-
}
|
|
71
|
-
PBEnvironmentFog.create = create;
|
|
72
|
-
function fromPartial(object) {
|
|
73
|
-
var _a;
|
|
74
|
-
const message = createBasePBEnvironmentFog();
|
|
75
|
-
message.color = (object.color !== undefined && object.color !== null)
|
|
76
|
-
? gradient_gen_1.ColorGradient.fromPartial(object.color)
|
|
77
|
-
: undefined;
|
|
78
|
-
message.density = (_a = object.density) !== null && _a !== void 0 ? _a : undefined;
|
|
79
|
-
return message;
|
|
80
|
-
}
|
|
81
|
-
PBEnvironmentFog.fromPartial = fromPartial;
|
|
82
|
-
})(PBEnvironmentFog || (exports.PBEnvironmentFog = PBEnvironmentFog = {}));
|
|
83
|
-
function isSet(value) {
|
|
84
|
-
return value !== null && value !== undefined;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=environment_fog.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment_fog.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/environment_fog.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,4DAA0D;AAE7C,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAqB7D,SAAS,0BAA0B;IACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAClD,CAAC;AAED,IAAiB,gBAAgB,CAmEhC;AAnED,WAAiB,gBAAgB;IAC/B,SAAgB,MAAM,CAAC,OAAyB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACxF,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CA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