@dcl/protocol 1.0.0-3373991894.commit-8aa3a49 → 1.0.0-3482040729.commit-4f0f6b5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-3482040729.commit-4f0f6b5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"out-ts",
|
|
26
26
|
"public"
|
|
27
27
|
],
|
|
28
|
-
"commit": "
|
|
28
|
+
"commit": "4f0f6b5847d92dd94211fee9f253e1816b7f7f64"
|
|
29
29
|
}
|
|
@@ -17,26 +17,40 @@ enum MaterialTransparencyMode {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
message PBMaterial {
|
|
20
|
-
|
|
20
|
+
message UnlitMaterial {
|
|
21
|
+
optional decentraland.common.TextureUnion texture = 1; // default = null
|
|
22
|
+
optional float alpha_test = 2; // default = 0.5. range value: from 0 to 1
|
|
23
|
+
optional bool cast_shadows = 3; // default = true
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message PbrMaterial {
|
|
27
|
+
optional decentraland.common.TextureUnion texture = 1; // default = null
|
|
28
|
+
|
|
29
|
+
optional float alpha_test = 2; // default = 0.5. range value: from 0 to 1
|
|
30
|
+
optional bool cast_shadows = 3; // default = true
|
|
31
|
+
|
|
32
|
+
optional decentraland.common.TextureUnion alpha_texture = 4; // default = null
|
|
33
|
+
optional decentraland.common.TextureUnion emissive_texture = 5; // default = null
|
|
34
|
+
optional decentraland.common.TextureUnion bump_texture = 6; // default = null
|
|
35
|
+
|
|
36
|
+
optional decentraland.common.Color3 albedo_color = 7; // default = white;
|
|
37
|
+
optional decentraland.common.Color3 emissive_color = 8; // default = black;
|
|
38
|
+
optional decentraland.common.Color3 reflectivity_color = 9; // default = white;
|
|
39
|
+
|
|
40
|
+
optional MaterialTransparencyMode transparency_mode = 10; // default = TransparencyMode.Auto
|
|
41
|
+
|
|
42
|
+
optional float metallic = 11; // default = 0.5
|
|
43
|
+
optional float roughness = 12; // default = 0.5
|
|
44
|
+
optional float glossiness = 13; // default = 1
|
|
45
|
+
|
|
46
|
+
optional float specular_intensity = 14; // default = 1
|
|
47
|
+
optional float emissive_intensity = 15; // default = 2
|
|
48
|
+
optional float direct_intensity = 16; // default = 1
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
oneof material {
|
|
52
|
+
UnlitMaterial unlit = 1;
|
|
53
|
+
PbrMaterial pbr = 2;
|
|
54
|
+
}
|
|
21
55
|
|
|
22
|
-
optional float alpha_test = 2; // default = 0.5. range value: from 0 to 1
|
|
23
|
-
optional bool cast_shadows = 3; // default = true
|
|
24
|
-
|
|
25
|
-
optional decentraland.common.TextureUnion alpha_texture = 4; // default = null
|
|
26
|
-
optional decentraland.common.TextureUnion emissive_texture = 5; // default = null
|
|
27
|
-
optional decentraland.common.TextureUnion bump_texture = 6; // default = null
|
|
28
|
-
|
|
29
|
-
optional decentraland.common.Color3 albedo_color = 7; // default = white;
|
|
30
|
-
optional decentraland.common.Color3 emissive_color = 8; // default = black;
|
|
31
|
-
optional decentraland.common.Color3 reflectivity_color = 9; // default = white;
|
|
32
|
-
|
|
33
|
-
optional MaterialTransparencyMode transparency_mode = 10; // default = TransparencyMode.Auto
|
|
34
|
-
|
|
35
|
-
optional float metallic = 11; // default = 0.5
|
|
36
|
-
optional float roughness = 12; // default = 0.5
|
|
37
|
-
optional float glossiness = 13; // default = 1
|
|
38
|
-
|
|
39
|
-
optional float specular_intensity = 14; // default = 1
|
|
40
|
-
optional float emissive_intensity = 15; // default = 2
|
|
41
|
-
optional float direct_intensity = 16; // default = 1
|
|
42
56
|
}
|
|
@@ -7,9 +7,8 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
7
7
|
option (common.ecs_component_id) = 1050;
|
|
8
8
|
|
|
9
9
|
enum YGPositionType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
YGPT_ABSOLUTE = 2;
|
|
10
|
+
YGPT_RELATIVE = 0;
|
|
11
|
+
YGPT_ABSOLUTE = 1;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
enum YGAlign {
|
|
@@ -30,16 +29,10 @@ enum YGUnit {
|
|
|
30
29
|
YGU_AUTO = 3;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
enum YGDirection {
|
|
34
|
-
YGD_INHERIT = 0;
|
|
35
|
-
YGD_LTR = 1;
|
|
36
|
-
YGD_RTL = 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
32
|
enum YGFlexDirection {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
YGFD_ROW = 0;
|
|
34
|
+
YGFD_COLUMN = 1;
|
|
35
|
+
YGFD_COLUMN_REVERSE = 2;
|
|
43
36
|
YGFD_ROW_REVERSE = 3;
|
|
44
37
|
}
|
|
45
38
|
|
|
@@ -82,82 +75,67 @@ enum YGEdge {
|
|
|
82
75
|
}
|
|
83
76
|
|
|
84
77
|
message PBUiTransform {
|
|
85
|
-
int32 parent =
|
|
86
|
-
int32 right_of =
|
|
78
|
+
int32 parent = 1;
|
|
79
|
+
int32 right_of = 2;
|
|
87
80
|
|
|
88
|
-
|
|
81
|
+
optional YGAlign align_content = 3; // default: YGAlign.YGA_FLEX_START
|
|
82
|
+
optional YGAlign align_items = 4; // default: YGAlign.YGA_STRETCH
|
|
83
|
+
optional YGWrap flex_wrap = 5; // default: YGWrap.YGW_WRAP
|
|
84
|
+
optional float flex_shrink = 6; // default: 1
|
|
89
85
|
|
|
90
|
-
|
|
91
|
-
YGAlign align_items = 3;
|
|
92
|
-
YGAlign align_self = 4;
|
|
93
|
-
YGFlexDirection flex_direction = 5;
|
|
94
|
-
YGWrap flex_wrap = 6;
|
|
95
|
-
YGJustify justify_content = 7;
|
|
86
|
+
YGPositionType position_type = 7; // YGPositionType.YGPT_RELATIVE
|
|
96
87
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
YGAlign align_self = 8; // YGAlign.YGA_AUTO
|
|
89
|
+
YGFlexDirection flex_direction = 9; // YGFlexDirection.YGFD_ROW
|
|
90
|
+
YGJustify justify_content = 10; // YGJustify.YGJ_FLEX_START
|
|
100
91
|
|
|
101
|
-
|
|
92
|
+
YGOverflow overflow = 11; // YGOverflow.YGO_VISIBLE
|
|
93
|
+
YGDisplay display = 12; // YGDisplay.YGD_FLEX
|
|
102
94
|
|
|
103
|
-
YGUnit flex_basis_unit = 13;
|
|
95
|
+
YGUnit flex_basis_unit = 13; // YGUnit.YGU_UNDEFINED
|
|
104
96
|
float flex_basis = 14;
|
|
105
97
|
|
|
106
98
|
float flex_grow = 15;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
YGUnit
|
|
128
|
-
float
|
|
129
|
-
YGUnit
|
|
130
|
-
float
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
//
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
YGUnit
|
|
142
|
-
float
|
|
143
|
-
YGUnit
|
|
144
|
-
float
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
float padding_top = 64;
|
|
150
|
-
YGUnit padding_right_unit = 65;
|
|
151
|
-
float padding_right = 66;
|
|
152
|
-
YGUnit padding_bottom_unit = 67;
|
|
153
|
-
float padding_bottom = 68;
|
|
154
|
-
|
|
155
|
-
reserved 71; // YGUnit border_left_unit = 71;
|
|
156
|
-
float border_left = 72;
|
|
157
|
-
reserved 73; // YGUnit border_top_unit = 73;
|
|
158
|
-
float border_top = 74;
|
|
159
|
-
reserved 75; // YGUnit border_right_unit = 75;
|
|
160
|
-
float border_right = 76;
|
|
161
|
-
reserved 77; // YGUnit border_bottom_unit = 77;
|
|
162
|
-
float border_bottom = 78;
|
|
99
|
+
|
|
100
|
+
YGUnit width_unit = 16; // YGUnit.YGU_UNDEFINED
|
|
101
|
+
float width = 17;
|
|
102
|
+
YGUnit height_unit = 18; // YGUnit.YGU_UNDEFINED
|
|
103
|
+
float height = 19;
|
|
104
|
+
|
|
105
|
+
YGUnit min_width_unit = 20; // YGUnit.YGU_UNDEFINED
|
|
106
|
+
float min_width = 21;
|
|
107
|
+
YGUnit min_height_unit = 22; // YGUnit.YGU_UNDEFINED
|
|
108
|
+
float min_height = 23;
|
|
109
|
+
|
|
110
|
+
YGUnit max_width_unit = 24; // YGUnit.YGU_UNDEFINED
|
|
111
|
+
float max_width = 25;
|
|
112
|
+
YGUnit max_height_unit = 26; // YGUnit.YGU_UNDEFINED
|
|
113
|
+
float max_height = 27;
|
|
114
|
+
|
|
115
|
+
YGUnit position_left_unit = 28; // YGUnit.YGU_UNDEFINED
|
|
116
|
+
float position_left = 29;
|
|
117
|
+
YGUnit position_top_unit = 30; // YGUnit.YGU_UNDEFINED
|
|
118
|
+
float position_top = 31;
|
|
119
|
+
YGUnit position_right_unit = 32; // YGUnit.YGU_UNDEFINED
|
|
120
|
+
float position_right = 33;
|
|
121
|
+
YGUnit position_bottom_unit = 34; // YGUnit.YGU_UNDEFINED
|
|
122
|
+
float position_bottom = 35;
|
|
123
|
+
|
|
124
|
+
YGUnit margin_left_unit = 36; // YGUnit.YGU_UNDEFINED
|
|
125
|
+
float margin_left = 37;
|
|
126
|
+
YGUnit margin_top_unit = 38; // YGUnit.YGU_UNDEFINED
|
|
127
|
+
float margin_top = 39;
|
|
128
|
+
YGUnit margin_right_unit = 40; // YGUnit.YGU_UNDEFINED
|
|
129
|
+
float margin_right = 41;
|
|
130
|
+
YGUnit margin_bottom_unit = 42; // YGUnit.YGU_UNDEFINED
|
|
131
|
+
float margin_bottom = 43;
|
|
132
|
+
|
|
133
|
+
YGUnit padding_left_unit = 44; // YGUnit.YGU_UNDEFINED
|
|
134
|
+
float padding_left = 45;
|
|
135
|
+
YGUnit padding_top_unit = 46; // YGUnit.YGU_UNDEFINED
|
|
136
|
+
float padding_top = 47;
|
|
137
|
+
YGUnit padding_right_unit = 48; // YGUnit.YGU_UNDEFINED
|
|
138
|
+
float padding_right = 49;
|
|
139
|
+
YGUnit padding_bottom_unit = 50; // YGUnit.YGU_UNDEFINED
|
|
140
|
+
float padding_bottom = 51;
|
|
163
141
|
}
|