@dcl/protocol 1.0.0-21671196520.commit-ca94ea2 → 1.0.0-22309437617.commit-6617cff
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 +70 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +228 -1
- 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_modifier_area.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +241 -3
- 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 +34 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +101 -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 +40 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +135 -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_mode_area.gen.d.ts +35 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -3
- 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 +4 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +24 -0
- 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 +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/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/ui_text.gen.d.ts +4 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +30 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- 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 +242 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +20 -1
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +292 -1
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +119 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +163 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +23 -1
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +218 -2
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +24 -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/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/ui_text.gen.ts +40 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +193 -0
- package/package.json +6 -3
- package/proto/decentraland/common/texture.proto +8 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +2 -1
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +18 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +45 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +16 -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 +22 -3
- package/proto/decentraland/sdk/components/common/input_action.proto +4 -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_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +3 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +20 -0
- package/public/sdk-components.proto +4 -0
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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,6 +9,8 @@ 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_shape.proto";
|
|
13
15
|
import public "decentraland/sdk/components/billboard.proto";
|
|
14
16
|
import public "decentraland/sdk/components/camera_mode_area.proto";
|
|
@@ -17,6 +19,8 @@ import public "decentraland/sdk/components/engine_info.proto";
|
|
|
17
19
|
import public "decentraland/sdk/components/gltf_container.proto";
|
|
18
20
|
import public "decentraland/sdk/components/gltf_node_modifiers.proto";
|
|
19
21
|
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";
|
|
20
24
|
import public "decentraland/sdk/components/material.proto";
|
|
21
25
|
import public "decentraland/sdk/components/mesh_collider.proto";
|
|
22
26
|
import public "decentraland/sdk/components/mesh_renderer.proto";
|