@dcl/protocol 1.0.0-14231413220.commit-ef9bad2 → 1.0.0-14601347329.commit-deb9aa6

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 (88) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  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 +0 -2
  5. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  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 +0 -41
  8. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  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 +0 -2
  11. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
  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 +1 -35
  14. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  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 +0 -3
  17. package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
  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 +0 -19
  20. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  21. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  23. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  24. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  26. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  27. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  29. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  30. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  32. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  33. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -37
  35. package/out-js/decentraland/sdk/components/ui_transform.gen.js +2 -201
  36. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  37. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +477 -22
  38. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +3354 -991
  39. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
  40. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  41. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  42. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  43. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -20
  44. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  45. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
  46. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  47. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  48. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  49. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  50. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  51. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1 -230
  52. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +3664 -1015
  53. package/package.json +3 -6
  54. package/proto/decentraland/common/texture.proto +1 -8
  55. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  56. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  57. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
  58. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  59. package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
  60. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  61. package/proto/decentraland/sdk/components/light_source.proto +35 -0
  62. package/proto/decentraland/sdk/components/material.proto +1 -13
  63. package/proto/decentraland/sdk/components/mesh_collider.proto +1 -8
  64. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  65. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  66. package/proto/decentraland/sdk/components/ui_transform.proto +0 -23
  67. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
  68. package/proto/decentraland/social_service/v2/social_service_v2.proto +190 -9
  69. package/public/sdk-components.proto +0 -2
  70. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  71. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  72. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  73. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  74. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  75. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  76. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  77. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  78. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  79. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  80. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  81. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  82. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  83. package/proto/decentraland/sdk/components/light.proto +0 -42
  84. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -25
  85. package/proto/decentraland/sdk/components/spotlight.proto +0 -21
  86. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  87. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  88. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,42 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1200;
6
-
7
- // a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
8
- // This component must be added to a direct child of an entity with a PBGltfContainer component, or
9
- // to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
10
- // in the parent.
11
- // The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
12
- //
13
- // The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
14
- // - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
15
- // - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
16
- // - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
17
- // - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
18
- //
19
- // After creation, if an animation moves the node, the `Transform` will be updated.
20
- //
21
- // From the scene, you can modify various components to alter the gltf node:
22
- // - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
23
- // regardless of any intermediate gltf node hierarchy.
24
- // If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
25
- // - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
26
- // - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
27
- // - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
28
- // - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
29
- // used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
30
- // PBMaterial will be maintained.
31
- //
32
- // The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
33
- // - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
34
- // change the state to `GNS_FAILED`.
35
- // - deleting the scene entity will not delete the gltf node.
36
- //
37
- // Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
38
- // are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
39
- // the gltf node will also be displayed.
40
- message PBGltfNode {
41
- string path = 1; // the path of the target node in the Gltf.
42
- }
@@ -1,20 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/sdk/components/common/id.proto";
5
- option (common.ecs_component_id) = 1201;
6
-
7
- // See the details of the GltfNode component for more information.
8
-
9
- // The state of a linked gltf node.
10
- // If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
11
- message PBGltfNodeState {
12
- GltfNodeStateValue state = 1;
13
- optional string error = 2;
14
- }
15
-
16
- enum GltfNodeStateValue {
17
- GNSV_PENDING = 0;
18
- GNSV_FAILED = 1;
19
- GNSV_READY = 2;
20
- }
@@ -1,42 +0,0 @@
1
- syntax = "proto3";
2
- package decentraland.sdk.components;
3
-
4
- import "decentraland/common/colors.proto";
5
-
6
- import "decentraland/sdk/components/common/id.proto";
7
- option (common.ecs_component_id) = 1204;
8
-
9
- // defines a light source.
10
- // the world has a default directional light (like sunlight) which can be overridden by adding the light component to the scene root.
11
- // a PBGlobalLight component can also be added to the root to control the directional light direction.
12
- // point lights (lightbulbs) or spotlights can be created by attaching the light component to non-root entities.
13
- message PBLight {
14
- // whether the light is on
15
- // default true
16
- optional bool enabled = 1;
17
- // light brightness in lux (lumens/m^2).
18
- //
19
- // for global directional light, this applies as a constant value at all surfaces and distances (though the effect on the surface still depends on incidence angle).
20
- // the default global light illuminance varies from 400 (sunrise/sunset) to 10,000 (midday).
21
- // for typical values, see https://en.wikipedia.org/wiki/Lux#Illuminance
22
- //
23
- // for point and spot lights, this is the lumens/m^2 at 1m distance from the light. to transform from raw lumens,
24
- // divide lumens by ~12 (4*pi).
25
- // e.g. a 100w household bulb with 1200 lumens would have an illuminance of ~100.
26
- // a lighthouse bulb with 200,000 lumens would have an illuminance of ~15,000 (ignoring beam reflections)
27
- //
28
- // default
29
- // for point/spotlights: 10,000
30
- // for global directional light: depends on explorer implementation. may vary on light direction, time of day, etc
31
- optional float illuminance = 2;
32
- // whether the light should cast shadows.
33
- // note: even when set to true the engine may not display shadows, or may only show shadows for a limited number
34
- // of lights depending on the implementation, platform, and user settings.
35
- // default
36
- // for point/spotlights: false / off
37
- // for global directional light: true / on
38
- optional bool shadows = 3;
39
- // light color
40
- // default White
41
- optional decentraland.common.Color3 color = 4;
42
- }
@@ -1,25 +0,0 @@
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
- }
@@ -1,21 +0,0 @@
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
- }
@@ -1,46 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }