@dcl/sdk 7.0.0-3220359277.commit-7cbadc7 → 7.0.0-3244103998.commit-74d3f83
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 +153 -221
- package/dist/ecs7/index.js +209 -620
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/README.md +3 -3
- package/dist/ecs7/proto-definitions/{Animator.proto → animator.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioSource.proto → audio_source.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioStream.proto → audio_stream.proto} +3 -2
- package/dist/ecs7/proto-definitions/avatar_attach.proto +19 -0
- package/dist/ecs7/proto-definitions/avatar_modifier_area.proto +19 -0
- package/dist/ecs7/proto-definitions/{AvatarShape.proto → avatar_shape.proto} +7 -6
- package/dist/ecs7/proto-definitions/{Billboard.proto → billboard.proto} +3 -2
- package/dist/ecs7/proto-definitions/camera_mode.proto +10 -0
- package/dist/ecs7/proto-definitions/camera_mode_area.proto +14 -0
- package/dist/ecs7/proto-definitions/common/camera_type.proto +8 -0
- package/dist/ecs7/proto-definitions/common/id.proto +1 -0
- package/dist/ecs7/proto-definitions/common/input_action.proto +20 -0
- package/dist/ecs7/proto-definitions/common/texts.proto +14 -0
- package/dist/ecs7/proto-definitions/{GltfContainer.proto → gltf_container.proto} +3 -2
- package/dist/ecs7/proto-definitions/material.proto +59 -0
- package/dist/ecs7/proto-definitions/mesh_collider.proto +35 -0
- package/dist/ecs7/proto-definitions/{MeshRenderer.proto → mesh_renderer.proto} +3 -2
- package/dist/ecs7/proto-definitions/nft_shape.proto +40 -0
- package/dist/ecs7/proto-definitions/pointer_events.proto +31 -0
- package/dist/ecs7/proto-definitions/{PointerEventsResult.proto → pointer_events_result.proto} +10 -7
- package/dist/ecs7/proto-definitions/pointer_lock.proto +9 -0
- package/dist/ecs7/proto-definitions/raycast.proto +21 -0
- package/dist/ecs7/proto-definitions/raycast_result.proto +25 -0
- package/dist/ecs7/proto-definitions/{TextShape.proto → text_shape.proto} +13 -11
- package/dist/ecs7/proto-definitions/ui_background.proto +11 -0
- package/dist/ecs7/proto-definitions/ui_text.proto +17 -0
- package/dist/ecs7/proto-definitions/{UiTransform.proto → ui_transform.proto} +50 -49
- package/dist/ecs7/proto-definitions/visibility_component.proto +9 -0
- package/dist/playground/snippets/cube-spawner.ts +3 -3
- package/dist/playground/snippets/material.ts +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -6
- package/dist/playground/snippets/raycast-hit-many.ts +1 -1
- package/dist/playground/snippets/raycast-hit-oscilator.ts +1 -1
- package/dist/playground/snippets/raycast-hit.ts +1 -1
- package/dist/playground/snippets/ui.tsx +3 -3
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +153 -221
- package/types/rpc-modules/CommunicationsController/index.d.ts +1 -1
- package/types/rpc-modules/DevTools/index.d.ts +1 -1
- package/types/rpc-modules/{EngineAPI → EngineApi}/index.d.ts +24 -24
- package/types/rpc-modules/{EnvironmentAPI → EnvironmentApi}/index.d.ts +3 -3
- package/types/rpc-modules/EthereumController/index.d.ts +1 -1
- package/types/rpc-modules/{ExperimentalAPI → ExperimentalApi}/index.d.ts +2 -2
- package/types/rpc-modules/ParcelIdentity/index.d.ts +2 -2
- package/types/rpc-modules/Permissions/index.d.ts +6 -6
- package/types/rpc-modules/Players/index.d.ts +3 -3
- package/types/rpc-modules/PortableExperiences/index.d.ts +1 -1
- package/types/rpc-modules/RestrictedActions/index.d.ts +1 -1
- package/types/rpc-modules/SignedFetch/index.d.ts +1 -1
- package/types/rpc-modules/SocialController/index.d.ts +1 -1
- package/types/rpc-modules/UserActionModule/index.d.ts +1 -1
- package/types/rpc-modules/UserIdentity/index.d.ts +3 -3
- package/types/tsconfig.ecs7.json +3 -3
- package/dist/ecs7/proto-definitions/AvatarAttach.proto +0 -16
- package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +0 -16
- package/dist/ecs7/proto-definitions/CameraMode.proto +0 -9
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +0 -11
- package/dist/ecs7/proto-definitions/Material.proto +0 -59
- package/dist/ecs7/proto-definitions/MeshCollider.proto +0 -35
- package/dist/ecs7/proto-definitions/NFTShape.proto +0 -38
- package/dist/ecs7/proto-definitions/OnPointerDown.proto +0 -12
- package/dist/ecs7/proto-definitions/OnPointerDownResult.proto +0 -17
- package/dist/ecs7/proto-definitions/OnPointerUp.proto +0 -12
- package/dist/ecs7/proto-definitions/OnPointerUpResult.proto +0 -17
- package/dist/ecs7/proto-definitions/PointerEvents.proto +0 -28
- package/dist/ecs7/proto-definitions/PointerLock.proto +0 -8
- package/dist/ecs7/proto-definitions/Raycast.proto +0 -19
- package/dist/ecs7/proto-definitions/RaycastResult.proto +0 -24
- package/dist/ecs7/proto-definitions/UiBackground.proto +0 -10
- package/dist/ecs7/proto-definitions/UiText.proto +0 -25
- package/dist/ecs7/proto-definitions/VisibilityComponent.proto +0 -8
- package/dist/ecs7/proto-definitions/common/ActionButton.proto +0 -18
- package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +0 -6
- package/dist/ecs7/proto-definitions/common/Color3.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Color4.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Vector3.proto +0 -7
- package/types/rpc-modules/SceneStateStorageController/index.d.ts +0 -90
@@ -1,81 +1,84 @@
|
|
1
1
|
syntax = "proto3";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
6
|
+
|
7
|
+
option (common.ecs_component_id) = 1050;
|
5
8
|
|
6
9
|
enum YGPositionType {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
+
YGPT_STATIC = 0;
|
11
|
+
YGPT_RELATIVE = 1;
|
12
|
+
YGPT_ABSOLUTE = 2;
|
10
13
|
}
|
11
14
|
|
12
15
|
enum YGAlign {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
YGA_AUTO = 0;
|
17
|
+
YGA_FLEX_START = 1;
|
18
|
+
YGA_CENTER = 2;
|
19
|
+
YGA_FLEX_END = 3;
|
20
|
+
YGA_STRETCH = 4;
|
21
|
+
YGA_BASELINE = 5;
|
22
|
+
YGA_SPACE_BETWEEN = 6;
|
23
|
+
YGA_SPACE_AROUND = 7;
|
21
24
|
}
|
22
25
|
|
23
26
|
enum YGUnit {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
YGU_UNDEFINED = 0;
|
28
|
+
YGU_POINT = 1;
|
29
|
+
YGU_PERCENT = 2;
|
30
|
+
YGU_AUTO = 3;
|
28
31
|
}
|
29
32
|
|
30
33
|
enum YGDirection {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
YGD_INHERIT = 0;
|
35
|
+
YGD_LTR = 1;
|
36
|
+
YGD_RTL = 2;
|
34
37
|
}
|
35
38
|
|
36
39
|
enum YGFlexDirection {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
40
|
+
YGFD_COLUMN = 0;
|
41
|
+
YGFD_COLUMN_REVERSE = 1;
|
42
|
+
YGFD_ROW = 2;
|
43
|
+
YGFD_ROW_REVERSE = 3;
|
41
44
|
}
|
42
45
|
|
43
46
|
enum YGWrap {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
+
YGW_NO_WRAP = 0;
|
48
|
+
YGW_WRAP = 1;
|
49
|
+
YGW_WRAP_REVERSE = 2;
|
47
50
|
}
|
48
51
|
|
49
52
|
enum YGJustify {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
YGJ_FLEX_START = 0;
|
54
|
+
YGJ_CENTER = 1;
|
55
|
+
YGJ_FLEX_END = 2;
|
56
|
+
YGJ_SPACE_BETWEEN = 3;
|
57
|
+
YGJ_SPACE_AROUND = 4;
|
58
|
+
YGJ_SPACE_EVENLY = 5;
|
56
59
|
}
|
57
60
|
|
58
61
|
enum YGOverflow {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
+
YGO_VISIBLE = 0;
|
63
|
+
YGO_HIDDEN = 1;
|
64
|
+
YGO_SCROLL = 2;
|
62
65
|
}
|
63
66
|
|
64
67
|
enum YGDisplay {
|
65
|
-
|
66
|
-
|
68
|
+
YGD_FLEX = 0;
|
69
|
+
YGD_NONE = 1;
|
67
70
|
}
|
68
71
|
|
69
72
|
enum YGEdge {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
73
|
+
YGE_LEFT = 0;
|
74
|
+
YGE_TOP = 1;
|
75
|
+
YGE_RIGHT = 2;
|
76
|
+
YGE_BOTTOM = 3;
|
77
|
+
YGE_START = 4;
|
78
|
+
YGE_END = 5;
|
79
|
+
YGE_HORIZONTAL = 6;
|
80
|
+
YGE_VERTICAL = 7;
|
81
|
+
YGE_ALL = 8;
|
79
82
|
}
|
80
83
|
|
81
84
|
message PBUiTransform {
|
@@ -158,5 +161,3 @@ message PBUiTransform {
|
|
158
161
|
reserved 77; // YGUnit border_bottom_unit = 77;
|
159
162
|
float border_bottom = 78;
|
160
163
|
}
|
161
|
-
|
162
|
-
|
@@ -8,9 +8,9 @@ function createCube(x: number, y: number, z: number, spawner = true): Entity {
|
|
8
8
|
PointerEvents.create(meshEntity, {
|
9
9
|
pointerEvents: [
|
10
10
|
{
|
11
|
-
eventType: PointerEventType.
|
11
|
+
eventType: PointerEventType.PET_DOWN,
|
12
12
|
eventInfo: {
|
13
|
-
button:
|
13
|
+
button: InputAction.IA_PRIMARY,
|
14
14
|
hoverText: 'Press E to spawn',
|
15
15
|
maxDistance: 100,
|
16
16
|
showFeedback: true
|
@@ -41,7 +41,7 @@ function circularSystem(dt: number) {
|
|
41
41
|
function spawnerSystem() {
|
42
42
|
const clickedCubes = engine.getEntitiesWith(PointerEvents)
|
43
43
|
for (const [entity] of clickedCubes) {
|
44
|
-
if (wasEntityClicked(entity,
|
44
|
+
if (wasEntityClicked(entity, InputAction.IA_PRIMARY)) {
|
45
45
|
createCube(
|
46
46
|
1 + Math.random() * 8,
|
47
47
|
Math.random() * 8,
|
@@ -15,9 +15,9 @@ function createCube(
|
|
15
15
|
|
16
16
|
createCube(15, 1, 15, [
|
17
17
|
{
|
18
|
-
eventType: PointerEventType.
|
18
|
+
eventType: PointerEventType.PET_DOWN,
|
19
19
|
eventInfo: {
|
20
|
-
button:
|
20
|
+
button: InputAction.IA_PRIMARY,
|
21
21
|
hoverText: 'PrimaryDown',
|
22
22
|
maxDistance: 5,
|
23
23
|
showFeedback: true
|
@@ -27,9 +27,9 @@ createCube(15, 1, 15, [
|
|
27
27
|
|
28
28
|
createCube(13, 1, 15, [
|
29
29
|
{
|
30
|
-
eventType: PointerEventType.
|
30
|
+
eventType: PointerEventType.PET_UP,
|
31
31
|
eventInfo: {
|
32
|
-
button:
|
32
|
+
button: InputAction.IA_SECONDARY,
|
33
33
|
hoverText: 'Secondary Up',
|
34
34
|
maxDistance: 5,
|
35
35
|
showFeedback: true
|
@@ -39,9 +39,9 @@ createCube(13, 1, 15, [
|
|
39
39
|
|
40
40
|
createCube(11, 1, 15, [
|
41
41
|
{
|
42
|
-
eventType: PointerEventType.
|
42
|
+
eventType: PointerEventType.PET_HOVER_ENTER,
|
43
43
|
eventInfo: {
|
44
|
-
button:
|
44
|
+
button: InputAction.IA_ANY,
|
45
45
|
hoverText: 'Infinity Hover',
|
46
46
|
maxDistance: 10000000,
|
47
47
|
showFeedback: true
|
@@ -19,9 +19,9 @@ export const uiComponent = () => (
|
|
19
19
|
uiTransform={{
|
20
20
|
width: 100,
|
21
21
|
height: 100,
|
22
|
-
display: YGDisplay.
|
23
|
-
justifyContent: YGJustify.
|
24
|
-
alignItems: YGAlign.
|
22
|
+
display: YGDisplay.YGD_FLEX,
|
23
|
+
justifyContent: YGJustify.YGJ_CENTER,
|
24
|
+
alignItems: YGAlign.YGA_CENTER
|
25
25
|
}}
|
26
26
|
uiBackground={{ backgroundColor: { r: 255, g: 45, b: 85, a: 0.2 } }}
|
27
27
|
>
|
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-3244103998.commit-74d3f83",
|
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.9-
|
31
|
-
"@dcl/build-ecs": "6.11.9-
|
30
|
+
"@dcl/amd": "6.11.9-3244103998.commit-74d3f83",
|
31
|
+
"@dcl/build-ecs": "6.11.9-3244103998.commit-74d3f83",
|
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": "74d3f83cd5983e1e00143bc9b583dd91ede60eb5"
|
42
42
|
}
|