@dcl/protocol 1.0.0-3239222053.commit-c9e426d → 1.0.0-3244237062.commit-99a88ae
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/README.md +6 -0
- package/out-ts/comms.gen.ts +3 -0
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +4 -4
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +4 -4
- package/out-ts/decentraland/kernel/apis/experimental_api.gen.ts +4 -4
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +728 -0
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +817 -0
- package/out-ts/decentraland/kernel/comms/v3/comms.gen.ts +771 -0
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/engine_api.proto +1 -1
- package/proto/decentraland/kernel/apis/environment_api.proto +28 -27
- package/proto/decentraland/kernel/apis/experimental_api.proto +1 -1
- package/proto/decentraland/renderer/engine_interface.proto +157 -164
- package/proto/decentraland/sdk/components/avatar_attach.proto +6 -6
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +4 -4
- package/proto/decentraland/sdk/components/camera_mode.proto +2 -2
- package/proto/decentraland/sdk/components/camera_mode_area.proto +5 -3
- package/proto/decentraland/sdk/components/common/camera_type.proto +8 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +20 -0
- package/proto/decentraland/sdk/components/common/texts.proto +4 -4
- package/proto/decentraland/sdk/components/material.proto +12 -12
- package/proto/decentraland/sdk/components/nft_shape.proto +26 -26
- package/proto/decentraland/sdk/components/pointer_events.proto +4 -2
- package/proto/decentraland/sdk/components/pointer_events_result.proto +6 -4
- package/proto/decentraland/sdk/components/text_shape.proto +4 -3
- package/proto/decentraland/sdk/components/ui_text.proto +7 -6
- package/proto/decentraland/sdk/components/ui_transform.proto +3 -3
- package/public/comms.proto +5 -0
- package/proto/decentraland/sdk/components/common/action_button.proto +0 -20
- package/proto/decentraland/sdk/components/common/camera_mode_value.proto +0 -8
|
@@ -14,25 +14,25 @@ enum TextureWrapMode {
|
|
|
14
14
|
TWM_MIRROR_ONCE = 3;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
enum
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
enum TextureFilterMode {
|
|
18
|
+
TFM_POINT = 0;
|
|
19
|
+
TFM_BILINEAR = 1;
|
|
20
|
+
TFM_TRILINEAR = 2;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
enum
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
29
|
}
|
|
30
30
|
|
|
31
31
|
message PBMaterial {
|
|
32
32
|
message Texture {
|
|
33
33
|
string src = 1;
|
|
34
34
|
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
35
|
-
optional
|
|
35
|
+
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
optional Texture texture = 1; // default = null
|
|
@@ -47,7 +47,7 @@ message PBMaterial {
|
|
|
47
47
|
optional decentraland.common.Color3 emissive_color = 8; // default = black;
|
|
48
48
|
optional decentraland.common.Color3 reflectivity_color = 9; // default = white;
|
|
49
49
|
|
|
50
|
-
optional
|
|
50
|
+
optional MaterialTransparencyMode transparency_mode = 10; // default = TransparencyMode.Auto
|
|
51
51
|
|
|
52
52
|
optional float metallic = 11; // default = 0.5
|
|
53
53
|
optional float roughness = 12; // default = 0.5
|
|
@@ -7,34 +7,34 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
7
7
|
|
|
8
8
|
option (common.ecs_component_id) = 1040;
|
|
9
9
|
|
|
10
|
-
enum
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
34
|
}
|
|
35
35
|
|
|
36
|
-
message
|
|
36
|
+
message PBNftShape {
|
|
37
37
|
string src = 1;
|
|
38
|
-
optional
|
|
38
|
+
optional NftFrameType style = 2; // default = PictureFrameStyle.Classic
|
|
39
39
|
optional decentraland.common.Color3 color = 3; // default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906)
|
|
40
40
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.sdk.components;
|
|
3
4
|
|
|
5
|
+
import "decentraland/sdk/components/common/input_action.proto";
|
|
4
6
|
import "decentraland/sdk/components/common/id.proto";
|
|
7
|
+
|
|
5
8
|
option (common.ecs_component_id) = 1062;
|
|
6
|
-
import "decentraland/sdk/components/common/action_button.proto";
|
|
7
9
|
|
|
8
10
|
enum PointerEventType {
|
|
9
11
|
PET_UP = 0;
|
|
@@ -14,7 +16,7 @@ enum PointerEventType {
|
|
|
14
16
|
|
|
15
17
|
message PBPointerEvents {
|
|
16
18
|
message Info {
|
|
17
|
-
optional common.
|
|
19
|
+
optional common.InputAction button = 1; // default=InputAction.ANY
|
|
18
20
|
optional string hover_text = 2; // default='Interact'
|
|
19
21
|
optional float max_distance = 3; // default=10
|
|
20
22
|
optional bool show_feedback = 4; // default=true
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.sdk.components;
|
|
3
4
|
|
|
4
5
|
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
import "decentraland/sdk/components/
|
|
6
|
+
import "decentraland/sdk/components/common/input_action.proto";
|
|
6
7
|
import "decentraland/sdk/components/pointer_events.proto";
|
|
8
|
+
import "decentraland/sdk/components/raycast_result.proto";
|
|
9
|
+
|
|
7
10
|
option (common.ecs_component_id) = 1063;
|
|
8
|
-
import "decentraland/sdk/components/common/action_button.proto";
|
|
9
11
|
|
|
10
12
|
// the renderer will set this component to the root entity once per frame with all the events
|
|
11
13
|
message PBPointerEventsResult {
|
|
@@ -14,10 +16,10 @@ message PBPointerEventsResult {
|
|
|
14
16
|
|
|
15
17
|
// this message represents a pointer event, used both for UP and DOWN actions
|
|
16
18
|
message PointerCommand {
|
|
17
|
-
common.
|
|
19
|
+
common.InputAction button = 1; // identifier of the input
|
|
18
20
|
RaycastHit hit = 2;
|
|
19
21
|
PointerEventType state = 4;
|
|
20
22
|
int32 timestamp = 5; // could be a Lamport timestamp
|
|
21
23
|
optional float analog = 6; // if the input is analog then we store it here
|
|
22
24
|
}
|
|
23
|
-
}
|
|
25
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.sdk.components;
|
|
3
4
|
|
|
5
|
+
import "decentraland/common/colors.proto";
|
|
4
6
|
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
option (common.ecs_component_id) = 1030;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
option (common.ecs_component_id) = 1030;
|
|
8
9
|
|
|
9
10
|
message PBTextShape {
|
|
10
11
|
string text = 1;
|
|
@@ -32,4 +33,4 @@ message PBTextShape {
|
|
|
32
33
|
optional decentraland.common.Color3 shadow_color = 22; // default=(1.0,1.0,1.0)
|
|
33
34
|
optional decentraland.common.Color3 outline_color = 23; // default=(1.0,1.0,1.0)
|
|
34
35
|
optional decentraland.common.Color3 text_color = 24; // default=(1.0,1.0,1.0)
|
|
35
|
-
}
|
|
36
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.sdk.components;
|
|
3
4
|
|
|
5
|
+
import "decentraland/common/colors.proto";
|
|
4
6
|
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
-
option (common.ecs_component_id) = 1052;
|
|
6
|
-
|
|
7
7
|
import "decentraland/sdk/components/common/texts.proto";
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
option (common.ecs_component_id) = 1052;
|
|
9
10
|
|
|
10
11
|
message PBUiText {
|
|
11
12
|
string value = 1;
|
|
12
13
|
optional decentraland.common.Color3 color = 2; // default=(1.0,1.0,1.0)
|
|
13
|
-
optional common.
|
|
14
|
+
optional common.TextAlignMode text_align = 3; // default='center'
|
|
14
15
|
optional common.Font font = 4; // default=0
|
|
15
|
-
optional int32 font_size = 5;
|
|
16
|
-
}
|
|
16
|
+
optional int32 font_size = 5; // default=10
|
|
17
|
+
}
|
|
@@ -7,9 +7,9 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
7
7
|
option (common.ecs_component_id) = 1050;
|
|
8
8
|
|
|
9
9
|
enum YGPositionType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
YGPT_STATIC = 0;
|
|
11
|
+
YGPT_RELATIVE = 1;
|
|
12
|
+
YGPT_ABSOLUTE = 2;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
enum YGAlign {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package decentraland.sdk.components.common;
|
|
4
|
-
|
|
5
|
-
enum ActionButton {
|
|
6
|
-
AB_POINTER = 0;
|
|
7
|
-
AB_PRIMARY = 1;
|
|
8
|
-
AB_SECONDARY = 2;
|
|
9
|
-
AB_ANY = 3;
|
|
10
|
-
AB_FORWARD = 4;
|
|
11
|
-
AB_BACKWARD = 5;
|
|
12
|
-
AB_RIGHT = 6;
|
|
13
|
-
AB_LEFT = 7;
|
|
14
|
-
AB_JUMP = 8;
|
|
15
|
-
AB_WALK = 9;
|
|
16
|
-
AB_ACTION_3 = 10;
|
|
17
|
-
AB_ACTION_4 = 11;
|
|
18
|
-
AB_ACTION_5 = 12;
|
|
19
|
-
AB_ACTION_6 = 13;
|
|
20
|
-
}
|