@dcl/protocol 1.0.0-13589257140.commit-dc6f088 → 1.0.0-13819135826.commit-d5f22b8

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.
Files changed (81) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +18 -0
  2. package/out-js/decentraland/common/texture.gen.js +104 -4
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +2 -0
  5. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +19 -2
  6. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +41 -0
  8. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
  9. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +2 -0
  11. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +19 -1
  12. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +35 -1
  14. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
  15. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +3 -0
  17. package/out-js/decentraland/sdk/components/common/input_action.gen.js +18 -0
  18. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +19 -0
  20. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +90 -3
  21. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  23. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  24. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  25. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  26. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  27. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  28. package/out-js/decentraland/sdk/components/material.gen.d.ts +20 -0
  29. package/out-js/decentraland/sdk/components/material.gen.js +86 -2
  30. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +18 -0
  32. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +90 -4
  33. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +19 -3
  35. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +90 -4
  36. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +4 -0
  38. package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
  39. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +37 -0
  41. package/out-js/decentraland/sdk/components/ui_transform.gen.js +201 -2
  42. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  43. package/out-ts/decentraland/common/texture.gen.ts +119 -4
  44. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
  45. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
  46. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +20 -0
  47. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
  48. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +18 -0
  49. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +108 -2
  50. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  51. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  52. package/out-ts/decentraland/sdk/components/material.gen.ts +102 -1
  53. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +99 -0
  54. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +100 -3
  55. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +40 -1
  56. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +230 -1
  57. package/package.json +2 -2
  58. package/proto/decentraland/common/texture.proto +8 -1
  59. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
  60. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
  61. package/proto/decentraland/sdk/components/avatar_shape.proto +1 -0
  62. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  63. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  64. package/proto/decentraland/sdk/components/camera_mode_area.proto +22 -3
  65. package/proto/decentraland/sdk/components/common/input_action.proto +3 -0
  66. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  67. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  68. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  69. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  70. package/proto/decentraland/sdk/components/light.proto +42 -0
  71. package/proto/decentraland/sdk/components/material.proto +13 -1
  72. package/proto/decentraland/sdk/components/mesh_collider.proto +8 -1
  73. package/proto/decentraland/sdk/components/mesh_renderer.proto +8 -3
  74. package/proto/decentraland/sdk/components/primary_pointer_info.proto +25 -0
  75. package/proto/decentraland/sdk/components/spotlight.proto +21 -0
  76. package/proto/decentraland/sdk/components/texture_camera.proto +41 -0
  77. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  78. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  79. package/proto/decentraland/sdk/components/ui_text.proto +3 -0
  80. package/proto/decentraland/sdk/components/ui_transform.proto +23 -0
  81. package/public/sdk-components.proto +2 -0
@@ -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 cylinder.
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
  }
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/common/vectors.proto";
5
+ import "decentraland/sdk/components/common/id.proto";
6
+ option (common.ecs_component_id) = 1209;
7
+
8
+ message PBPrimaryPointerInfo {
9
+ optional PointerType pointer_type = 1;
10
+ // in pixels
11
+ optional decentraland.common.Vector2 screen_coordinates = 2;
12
+ // in pixels
13
+ optional decentraland.common.Vector2 screen_delta = 3;
14
+ // ray direction that can be used with the primary camera origin for
15
+ // raycasting from the cursor into the world
16
+ optional decentraland.common.Vector3 world_ray_direction = 4;
17
+ }
18
+
19
+ enum PointerType {
20
+ POT_NONE = 0;
21
+ POT_MOUSE = 1;
22
+ POT_PAD = 2;
23
+ POT_TOUCH = 3;
24
+ POT_WAND = 4;
25
+ }
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1205;
6
+
7
+ // defines a spotlight.
8
+ // spotlights are point lights that emit light only in a cone around the transform's forward direction.
9
+ // add this component together with the PBLight component to transform a point light into a spotlight.
10
+ // note that spotlights do not model any internal reflections / focus, they only restrict the area of effect.
11
+ // so for e.g. a torch beam, the bulb illuminance should be multiplied by the solid angle.
12
+ // a typical torch with a beam width of 15 degrees would use outer angle of 0.15 (7.5 degrees in radians),
13
+ // and an illuminance approximately equal to the bulb's lumens, e.g. 1200.
14
+ message PBSpotlight {
15
+ // the cone radius in radians. distance away from forward in which the light is visible.
16
+ // for a torch a value around 0.15 is appropriate.
17
+ float angle = 1;
18
+ // optional angle at which the light is brightest. should be <= outer angle.
19
+ // if specified, the light will fall off smoothly between `inner_angle` and `angle`.
20
+ optional float inner_angle = 2;
21
+ }
@@ -0,0 +1,41 @@
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
+
31
+ message Perspective {
32
+ // vertical field of view in radians
33
+ // defaults to pi/4 = 45 degrees
34
+ optional float field_of_view = 1;
35
+ }
36
+
37
+ message Orthographic {
38
+ // vertical extent of the visible range in meters
39
+ // defaults to 4m
40
+ optional float vertical_range = 1;
41
+ }
@@ -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
+ }
@@ -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
+ }
@@ -23,4 +23,7 @@ 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)
26
29
  }
@@ -3,6 +3,7 @@ syntax = "proto3";
3
3
  package decentraland.sdk.components;
4
4
 
5
5
  import "decentraland/sdk/components/common/id.proto";
6
+ import "decentraland/common/vectors.proto";
6
7
 
7
8
  option (common.ecs_component_id) = 1050;
8
9
 
@@ -79,6 +80,20 @@ enum PointerFilterMode {
79
80
  PFM_BLOCK = 1;
80
81
  }
81
82
 
83
+ enum ShowScrollBar {
84
+ SSB_BOTH = 0;
85
+ SSB_ONLY_VERTICAL = 1;
86
+ SSB_ONLY_HORIZONTAL = 2;
87
+ SSB_HIDDEN = 3;
88
+ }
89
+
90
+ message ScrollPositionValue {
91
+ oneof value {
92
+ decentraland.common.Vector2 position = 1;
93
+ string reference = 2;
94
+ }
95
+ }
96
+
82
97
  message PBUiTransform {
83
98
  int32 parent = 1;
84
99
  int32 right_of = 2;
@@ -145,4 +160,12 @@ message PBUiTransform {
145
160
  float padding_bottom = 51;
146
161
 
147
162
  optional PointerFilterMode pointer_filter = 52; // default: PointerFilterMode.PFM_NONE
163
+ optional float opacity = 53; // default: 1
164
+
165
+ optional string element_id = 54; // default empty
166
+
167
+ optional ScrollPositionValue scroll_position = 55; // default position=(0,0)
168
+ optional ShowScrollBar scroll_visible = 56; // default ShowScrollBar.SSB_BOTH
169
+
170
+ optional int32 z_index = 57; // default 0
148
171
  }
@@ -16,6 +16,8 @@ import public "decentraland/sdk/components/camera_mode.proto";
16
16
  import public "decentraland/sdk/components/engine_info.proto";
17
17
  import public "decentraland/sdk/components/gltf_container.proto";
18
18
  import public "decentraland/sdk/components/gltf_container_loading_state.proto";
19
+ import public "decentraland/sdk/components/gltf_node.proto";
20
+ import public "decentraland/sdk/components/gltf_node_state.proto";
19
21
  import public "decentraland/sdk/components/material.proto";
20
22
  import public "decentraland/sdk/components/mesh_collider.proto";
21
23
  import public "decentraland/sdk/components/mesh_renderer.proto";