@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
@@ -6,8 +6,8 @@ Inside each proto, we need to have at least this template:
|
|
6
6
|
```proto
|
7
7
|
syntax = "proto3";
|
8
8
|
|
9
|
-
import "
|
10
|
-
option (ecs_component_id) = XXXX;
|
9
|
+
import "decentraland/sdk/components/common/id.proto";
|
10
|
+
option (common.ecs_component_id) = XXXX;
|
11
11
|
|
12
12
|
message PBComponentName {
|
13
13
|
float one_parameter = 1;
|
@@ -22,7 +22,7 @@ Some points that must be well-defined:
|
|
22
22
|
|
23
23
|
|
24
24
|
## Common directory
|
25
|
-
The common directory only has to have unambiguous structures like Vector3, Color3, Quaternion, etc. These messages will never change.
|
25
|
+
The common directory only has to have unambiguous structures like decentraland.common.Vector3, decentraland.common.Color3, Quaternion, etc. These messages will never change.
|
26
26
|
|
27
27
|
## About specific options with other languages
|
28
28
|
The definition must be the minimal proto code, and it shouldn't have a specific option to compile on some platform. So if you have to add additional information to the proto, you will be able to run a post-process after the protocol schemas acquisition.
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1042;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1042;
|
5
6
|
|
6
7
|
message PBAnimator {
|
7
8
|
repeated PBAnimationState states = 1;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1020;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1020;
|
5
6
|
|
6
7
|
message PBAudioSource {
|
7
8
|
optional bool playing = 1;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1021;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1021;
|
5
6
|
|
6
7
|
message PBAudioStream {
|
7
8
|
optional bool playing = 1;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
6
|
+
|
7
|
+
option (common.ecs_component_id) = 1073;
|
8
|
+
|
9
|
+
enum AvatarAnchorPointType {
|
10
|
+
AAPT_POSITION = 0;
|
11
|
+
AAPT_NAME_TAG = 1;
|
12
|
+
AAPT_LEFT_HAND = 2;
|
13
|
+
AAPT_RIGHT_HAND = 3;
|
14
|
+
}
|
15
|
+
|
16
|
+
message PBAvatarAttach {
|
17
|
+
string avatar_id = 1;
|
18
|
+
AvatarAnchorPointType anchor_point_id = 2;
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/vectors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1070;
|
9
|
+
|
10
|
+
enum AvatarModifierType {
|
11
|
+
AMT_HIDE_AVATARS = 0;
|
12
|
+
AMT_DISABLE_PASSPORTS = 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
message PBAvatarModifierArea {
|
16
|
+
decentraland.common.Vector3 area = 1;
|
17
|
+
repeated string exclude_ids = 2;
|
18
|
+
repeated AvatarModifierType modifiers = 3;
|
19
|
+
}
|
@@ -1,16 +1,17 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1080;
|
5
|
-
import "
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1080;
|
6
|
+
import "decentraland/common/colors.proto";
|
6
7
|
|
7
8
|
message PBAvatarShape {
|
8
9
|
string id = 1;
|
9
10
|
optional string name = 2; // default = NPC
|
10
11
|
optional string body_shape = 3; // default = urn:decentraland:off-chain:base-avatars:BaseFemale
|
11
|
-
optional Color3 skin_color = 4; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
12
|
-
optional Color3 hair_color = 5; // default = Color3(R = 0.283f, G = 0.142f, B = 0f)
|
13
|
-
optional Color3 eye_color = 6; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
12
|
+
optional decentraland.common.Color3 skin_color = 4; // default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
13
|
+
optional decentraland.common.Color3 hair_color = 5; // default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f)
|
14
|
+
optional decentraland.common.Color3 eye_color = 6; // default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
|
14
15
|
optional string expression_trigger_id = 7;
|
15
16
|
optional int64 expression_trigger_timestamp = 8; // default = timestamp
|
16
17
|
optional bool talking = 9;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1090;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1090;
|
5
6
|
|
6
7
|
message PBBillboard {
|
7
8
|
optional bool x = 1; // default=true
|
@@ -0,0 +1,10 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
3
|
+
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1072;
|
6
|
+
import "decentraland/sdk/components/common/camera_type.proto";
|
7
|
+
|
8
|
+
message PBCameraMode {
|
9
|
+
common.CameraType mode = 1;
|
10
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/vectors.proto";
|
6
|
+
import "decentraland/sdk/components/common/camera_type.proto";
|
7
|
+
import "decentraland/sdk/components/common/id.proto";
|
8
|
+
|
9
|
+
option (common.ecs_component_id) = 1071;
|
10
|
+
|
11
|
+
message PBCameraModeArea {
|
12
|
+
decentraland.common.Vector3 area = 1;
|
13
|
+
common.CameraType mode = 2;
|
14
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components.common;
|
4
|
+
|
5
|
+
enum InputAction {
|
6
|
+
IA_POINTER = 0;
|
7
|
+
IA_PRIMARY = 1;
|
8
|
+
IA_SECONDARY = 2;
|
9
|
+
IA_ANY = 3;
|
10
|
+
IA_FORWARD = 4;
|
11
|
+
IA_BACKWARD = 5;
|
12
|
+
IA_RIGHT = 6;
|
13
|
+
IA_LEFT = 7;
|
14
|
+
IA_JUMP = 8;
|
15
|
+
IA_WALK = 9;
|
16
|
+
IA_ACTION_3 = 10;
|
17
|
+
IA_ACTION_4 = 11;
|
18
|
+
IA_ACTION_5 = 12;
|
19
|
+
IA_ACTION_6 = 13;
|
20
|
+
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1041;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1041;
|
5
6
|
|
6
7
|
message PBGltfContainer {
|
7
8
|
// which file to load
|
@@ -0,0 +1,59 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/colors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1017;
|
9
|
+
|
10
|
+
enum TextureWrapMode {
|
11
|
+
TWM_REPEAT = 0;
|
12
|
+
TWM_CLAMP = 1;
|
13
|
+
TWM_MIRROR = 2;
|
14
|
+
TWM_MIRROR_ONCE = 3;
|
15
|
+
}
|
16
|
+
|
17
|
+
enum TextureFilterMode {
|
18
|
+
TFM_POINT = 0;
|
19
|
+
TFM_BILINEAR = 1;
|
20
|
+
TFM_TRILINEAR = 2;
|
21
|
+
}
|
22
|
+
|
23
|
+
enum MaterialTransparencyMode {
|
24
|
+
MTM_OPAQUE = 0;
|
25
|
+
MTM_ALPHA_TEST = 1;
|
26
|
+
MTM_ALPHA_BLEND = 2;
|
27
|
+
MTM_ALPHA_TEST_AND_ALPHA_BLEND = 3;
|
28
|
+
MTM_AUTO = 4;
|
29
|
+
}
|
30
|
+
|
31
|
+
message PBMaterial {
|
32
|
+
message Texture {
|
33
|
+
string src = 1;
|
34
|
+
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
35
|
+
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
36
|
+
}
|
37
|
+
|
38
|
+
optional Texture texture = 1; // default = null
|
39
|
+
optional float alpha_test = 2; // default = 0.5. range value: from 0 to 1
|
40
|
+
optional bool cast_shadows = 3; // default = true
|
41
|
+
|
42
|
+
optional Texture alpha_texture = 4; // default = null
|
43
|
+
optional Texture emissive_texture = 5; // default = null
|
44
|
+
optional Texture bump_texture = 6; // default = null
|
45
|
+
|
46
|
+
optional decentraland.common.Color3 albedo_color = 7; // default = white;
|
47
|
+
optional decentraland.common.Color3 emissive_color = 8; // default = black;
|
48
|
+
optional decentraland.common.Color3 reflectivity_color = 9; // default = white;
|
49
|
+
|
50
|
+
optional MaterialTransparencyMode transparency_mode = 10; // default = TransparencyMode.Auto
|
51
|
+
|
52
|
+
optional float metallic = 11; // default = 0.5
|
53
|
+
optional float roughness = 12; // default = 0.5
|
54
|
+
optional float glossiness = 13; // default = 1
|
55
|
+
|
56
|
+
optional float specular_intensity = 14; // default = 1
|
57
|
+
optional float emissive_intensity = 15; // default = 2
|
58
|
+
optional float direct_intensity = 16; // default = 1
|
59
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
6
|
+
|
7
|
+
option (common.ecs_component_id) = 1019;
|
8
|
+
|
9
|
+
enum ColliderLayer {
|
10
|
+
CL_NONE = 0;
|
11
|
+
CL_POINTER = 1;
|
12
|
+
CL_PHYSICS = 2;
|
13
|
+
}
|
14
|
+
|
15
|
+
message PBMeshCollider {
|
16
|
+
message BoxMesh {}
|
17
|
+
|
18
|
+
message CylinderMesh {
|
19
|
+
optional float radius_top = 1; // default=1.0
|
20
|
+
optional float radius_bottom = 2; // default=1.0
|
21
|
+
}
|
22
|
+
|
23
|
+
message PlaneMesh {}
|
24
|
+
|
25
|
+
message SphereMesh {}
|
26
|
+
|
27
|
+
optional int32 collision_mask = 1; // default = ColliderLayer.Physics | ColliderLayer.Pointer
|
28
|
+
|
29
|
+
oneof mesh {
|
30
|
+
BoxMesh box = 2;
|
31
|
+
SphereMesh sphere = 3;
|
32
|
+
CylinderMesh cylinder = 4;
|
33
|
+
PlaneMesh plane = 5;
|
34
|
+
}
|
35
|
+
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
2
3
|
|
3
|
-
import "
|
4
|
-
option (ecs_component_id) = 1018;
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1018;
|
5
6
|
|
6
7
|
message PBMeshRenderer {
|
7
8
|
message BoxMesh {
|
@@ -0,0 +1,40 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/colors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1040;
|
9
|
+
|
10
|
+
enum NftFrameType {
|
11
|
+
NFT_CLASSIC = 0;
|
12
|
+
NFT_BAROQUE_ORNAMENT = 1;
|
13
|
+
NFT_DIAMOND_ORNAMENT = 2;
|
14
|
+
NFT_MINIMAL_WIDE = 3;
|
15
|
+
NFT_MINIMAL_GREY = 4;
|
16
|
+
NFT_BLOCKY = 5;
|
17
|
+
NFT_GOLD_EDGES = 6;
|
18
|
+
NFT_GOLD_CARVED = 7;
|
19
|
+
NFT_GOLD_WIDE = 8;
|
20
|
+
NFT_GOLD_ROUNDED = 9;
|
21
|
+
NFT_METAL_MEDIUM = 10;
|
22
|
+
NFT_METAL_WIDE = 11;
|
23
|
+
NFT_METAL_SLIM = 12;
|
24
|
+
NFT_METAL_ROUNDED = 13;
|
25
|
+
NFT_PINS = 14;
|
26
|
+
NFT_MINIMAL_BLACK = 15;
|
27
|
+
NFT_MINIMAL_WHITE = 16;
|
28
|
+
NFT_TAPE = 17;
|
29
|
+
NFT_WOOD_SLIM = 18;
|
30
|
+
NFT_WOOD_WIDE = 19;
|
31
|
+
NFT_WOOD_TWIGS = 20;
|
32
|
+
NFT_CANVAS = 21;
|
33
|
+
NFT_NONE = 22;
|
34
|
+
}
|
35
|
+
|
36
|
+
message PBNftShape {
|
37
|
+
string src = 1;
|
38
|
+
optional NftFrameType style = 2; // default = PictureFrameStyle.Classic
|
39
|
+
optional decentraland.common.Color3 color = 3; // default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906)
|
40
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/sdk/components/common/input_action.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1062;
|
9
|
+
|
10
|
+
enum PointerEventType {
|
11
|
+
PET_UP = 0;
|
12
|
+
PET_DOWN = 1;
|
13
|
+
PET_HOVER_ENTER = 2;
|
14
|
+
PET_HOVER_LEAVE = 3;
|
15
|
+
}
|
16
|
+
|
17
|
+
message PBPointerEvents {
|
18
|
+
message Info {
|
19
|
+
optional common.InputAction button = 1; // default=InputAction.ANY
|
20
|
+
optional string hover_text = 2; // default='Interact'
|
21
|
+
optional float max_distance = 3; // default=10
|
22
|
+
optional bool show_feedback = 4; // default=true
|
23
|
+
}
|
24
|
+
|
25
|
+
message Entry {
|
26
|
+
PointerEventType event_type = 1;
|
27
|
+
Info event_info = 2;
|
28
|
+
}
|
29
|
+
|
30
|
+
repeated Entry pointer_events = 1;
|
31
|
+
}
|
package/dist/ecs7/proto-definitions/{PointerEventsResult.proto → pointer_events_result.proto}
RENAMED
@@ -1,10 +1,13 @@
|
|
1
1
|
syntax = "proto3";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
import "
|
6
|
-
|
7
|
-
import "
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
6
|
+
import "decentraland/sdk/components/common/input_action.proto";
|
7
|
+
import "decentraland/sdk/components/pointer_events.proto";
|
8
|
+
import "decentraland/sdk/components/raycast_result.proto";
|
9
|
+
|
10
|
+
option (common.ecs_component_id) = 1063;
|
8
11
|
|
9
12
|
// the renderer will set this component to the root entity once per frame with all the events
|
10
13
|
message PBPointerEventsResult {
|
@@ -13,10 +16,10 @@ message PBPointerEventsResult {
|
|
13
16
|
|
14
17
|
// this message represents a pointer event, used both for UP and DOWN actions
|
15
18
|
message PointerCommand {
|
16
|
-
|
19
|
+
common.InputAction button = 1; // identifier of the input
|
17
20
|
RaycastHit hit = 2;
|
18
21
|
PointerEventType state = 4;
|
19
22
|
int32 timestamp = 5; // could be a Lamport timestamp
|
20
23
|
optional float analog = 6; // if the input is analog then we store it here
|
21
24
|
}
|
22
|
-
}
|
25
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/vectors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1067;
|
9
|
+
|
10
|
+
enum RaycastQueryType {
|
11
|
+
RQT_HIT_FIRST = 0;
|
12
|
+
RQT_QUERY_ALL = 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
message PBRaycast {
|
16
|
+
int32 timestamp = 1;
|
17
|
+
decentraland.common.Vector3 origin = 2;
|
18
|
+
decentraland.common.Vector3 direction = 3;
|
19
|
+
float max_distance = 4;
|
20
|
+
RaycastQueryType query_type = 5;
|
21
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
3
|
+
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
import "decentraland/common/vectors.proto";
|
6
|
+
|
7
|
+
option (common.ecs_component_id) = 1068;
|
8
|
+
|
9
|
+
message PBRaycastResult {
|
10
|
+
int32 timestamp = 1;
|
11
|
+
decentraland.common.Vector3 origin = 2;
|
12
|
+
decentraland.common.Vector3 direction = 3;
|
13
|
+
repeated RaycastHit hits = 4;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Position will be relative to the scene
|
17
|
+
message RaycastHit {
|
18
|
+
decentraland.common.Vector3 position = 1;
|
19
|
+
decentraland.common.Vector3 origin = 2;
|
20
|
+
decentraland.common.Vector3 direction = 3;
|
21
|
+
decentraland.common.Vector3 normal_hit = 4;
|
22
|
+
float length = 5;
|
23
|
+
optional string mesh_name = 6;
|
24
|
+
optional int64 entity_id = 7;
|
25
|
+
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
syntax = "proto3";
|
2
2
|
|
3
|
-
|
4
|
-
option (ecs_component_id) = 1030;
|
3
|
+
package decentraland.sdk.components;
|
5
4
|
|
6
|
-
import "
|
5
|
+
import "decentraland/common/colors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
|
8
|
+
option (common.ecs_component_id) = 1030;
|
7
9
|
|
8
10
|
message PBTextShape {
|
9
11
|
string text = 1;
|
@@ -11,8 +13,8 @@ message PBTextShape {
|
|
11
13
|
optional bool visible = 2; // default=true
|
12
14
|
optional string font = 3;
|
13
15
|
optional float opacity = 4; // default=1.0f
|
14
|
-
optional float
|
15
|
-
optional bool
|
16
|
+
optional float font_size = 5; // default=10
|
17
|
+
optional bool font_auto_size = 6;
|
16
18
|
optional string h_text_align = 7; // default='center'
|
17
19
|
optional string v_text_align = 8; // default='center'
|
18
20
|
optional float width = 9; // default=1
|
@@ -25,10 +27,10 @@ message PBTextShape {
|
|
25
27
|
optional int32 line_count = 16;
|
26
28
|
optional bool text_wrapping = 17;
|
27
29
|
optional float shadow_blur = 18;
|
28
|
-
optional float
|
29
|
-
optional float
|
30
|
+
optional float shadow_offset_x = 19;
|
31
|
+
optional float shadow_offset_y = 20;
|
30
32
|
optional float outline_width = 21;
|
31
|
-
optional Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
|
32
|
-
optional Color3 outline_color = 23; // default=(1.0,1.0,1.0)
|
33
|
-
optional Color3 text_color = 24; // default=(1.0,1.0,1.0)
|
34
|
-
}
|
33
|
+
optional decentraland.common.Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
|
34
|
+
optional decentraland.common.Color3 outline_color = 23; // default=(1.0,1.0,1.0)
|
35
|
+
optional decentraland.common.Color3 text_color = 24; // default=(1.0,1.0,1.0)
|
36
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
package decentraland.sdk.components;
|
3
|
+
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
5
|
+
option (common.ecs_component_id) = 1053;
|
6
|
+
|
7
|
+
import "decentraland/common/colors.proto";
|
8
|
+
|
9
|
+
message PBUiBackground {
|
10
|
+
optional decentraland.common.Color4 background_color = 1; // default=(0.0, 0.0, 0.0, 0.0)
|
11
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package decentraland.sdk.components;
|
4
|
+
|
5
|
+
import "decentraland/common/colors.proto";
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
7
|
+
import "decentraland/sdk/components/common/texts.proto";
|
8
|
+
|
9
|
+
option (common.ecs_component_id) = 1052;
|
10
|
+
|
11
|
+
message PBUiText {
|
12
|
+
string value = 1;
|
13
|
+
optional decentraland.common.Color3 color = 2; // default=(1.0,1.0,1.0)
|
14
|
+
optional common.TextAlignMode text_align = 3; // default='center'
|
15
|
+
optional common.Font font = 4; // default=0
|
16
|
+
optional int32 font_size = 5; // default=10
|
17
|
+
}
|