@dcl/protocol 1.0.0-21486679905.commit-de6a708 → 1.0.0-21487639770.commit-ba66987
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -70
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -228
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- 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/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-ts/decentraland/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -242
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +1 -23
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- 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/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/package.json +3 -6
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -22
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/public/sdk-components.proto +0 -2
- 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/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- 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
|
@@ -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,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
|
-
}
|