@dcl/sdk 7.0.0-3000224008.commit-8bf3645 → 7.0.0-3038080345.commit-de046a3
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/dist/ecs7/index.d.ts +582 -11
- package/dist/ecs7/index.js +1843 -244
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/PointerEvents.proto +28 -0
- package/dist/ecs7/proto-definitions/PointerEventsResult.proto +22 -0
- package/dist/ecs7/proto-definitions/RaycastResult.proto +23 -0
- package/dist/ecs7/proto-definitions/UiTransform.proto +3 -2
- package/package.json +4 -4
- package/types/dcl/decentraland-ecs.api.json +102 -102
- package/types/dcl/decentraland-ecs.api.md +35 -35
- package/types/ecs7/index.d.ts +582 -11
- package/types/tsconfig.ecs7.json +2 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1062;
|
5
|
+
import "common/ActionButton.proto";
|
6
|
+
|
7
|
+
enum PointerEventType {
|
8
|
+
UP = 0;
|
9
|
+
DOWN = 1;
|
10
|
+
HOVER_ENTER = 2;
|
11
|
+
HOVER_LEAVE = 3;
|
12
|
+
}
|
13
|
+
|
14
|
+
message PBPointerEvents {
|
15
|
+
message Info {
|
16
|
+
optional ActionButton button = 1; // default=ActionButton.ANY
|
17
|
+
optional string hover_text = 2; // default='Interact'
|
18
|
+
optional float max_distance = 3; // default=10
|
19
|
+
optional bool show_feedback = 4; // default=true
|
20
|
+
}
|
21
|
+
|
22
|
+
message Entry {
|
23
|
+
PointerEventType eventType = 1;
|
24
|
+
Info eventInfo = 2;
|
25
|
+
}
|
26
|
+
|
27
|
+
repeated Entry pointerEvents = 1;
|
28
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
import "RaycastResult.proto";
|
5
|
+
import "PointerEvents.proto";
|
6
|
+
option (ecs_component_id) = 1063;
|
7
|
+
import "common/ActionButton.proto";
|
8
|
+
|
9
|
+
// the renderer will set this component to the root entity once per frame with all the events
|
10
|
+
message PBPointerEventsResult {
|
11
|
+
// a list of the last N pointer commands (from the engine)
|
12
|
+
repeated PointerCommand commands = 1;
|
13
|
+
|
14
|
+
// this message represents a pointer event, used both for UP and DOWN actions
|
15
|
+
message PointerCommand {
|
16
|
+
ActionButton button = 1; // identifier of the input
|
17
|
+
RaycastHit hit = 2;
|
18
|
+
PointerEventType state = 4;
|
19
|
+
int32 timestamp = 5; // could be a Lamport timestamp
|
20
|
+
optional float analog = 6; // if the input is analog then we store it here
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1064;
|
5
|
+
import "common/Vector3.proto";
|
6
|
+
|
7
|
+
message PBRaycastResult {
|
8
|
+
int32 timestamp = 1;
|
9
|
+
Vector3 origin = 2;
|
10
|
+
Vector3 direction = 3;
|
11
|
+
repeated RaycastHit hits = 4;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Position will be relative to the scene
|
15
|
+
message RaycastHit {
|
16
|
+
Vector3 position = 1;
|
17
|
+
Vector3 origin = 2;
|
18
|
+
Vector3 direction = 3;
|
19
|
+
Vector3 normal_hit = 4;
|
20
|
+
float length = 5;
|
21
|
+
optional string mesh_name = 6;
|
22
|
+
optional int64 entity_id = 7;
|
23
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-3038080345.commit-de046a3",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.7-
|
31
|
-
"@dcl/build-ecs": "6.11.7-
|
30
|
+
"@dcl/amd": "6.11.7-3038080345.commit-de046a3",
|
31
|
+
"@dcl/build-ecs": "6.11.7-3038080345.commit-de046a3",
|
32
32
|
"@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "de046a35cd0c6f08f93c2ced6d62255ab533a41a"
|
42
42
|
}
|