@dcl/protocol 1.0.0-3239222053.commit-c9e426d → 1.0.0-3243753014.commit-161bbc8
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/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/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/proto/decentraland/sdk/components/common/action_button.proto +0 -20
- package/proto/decentraland/sdk/components/common/camera_mode_value.proto +0 -8
package/README.md
CHANGED
|
@@ -18,3 +18,9 @@ protoc \
|
|
|
18
18
|
-I="$(pwd)/node_modules/@dcl/protocol/proto" \
|
|
19
19
|
"$(pwd)/node_modules/@dcl/protocol/public/bff-services.proto"
|
|
20
20
|
```
|
|
21
|
+
|
|
22
|
+
# Style Guidelines
|
|
23
|
+
1. All .proto files are snake_case.proto.
|
|
24
|
+
2. For pascal or camel case usage, please make a deterministic one from the snake case. Example: nft_shape will transform to NftShape.
|
|
25
|
+
3. See https://docs.buf.build/best-practices/style-guide. The most of other styles are taken from there, the Buf configuration is in proto/buf.yml.
|
|
26
|
+
4. Use public/ folder only for .proto with protocol exposing, that is only for files with `import public`. This folder is not processed by the linter.
|
|
@@ -2080,10 +2080,10 @@ export const EventData = {
|
|
|
2080
2080
|
},
|
|
2081
2081
|
};
|
|
2082
2082
|
|
|
2083
|
-
export type
|
|
2084
|
-
export const
|
|
2085
|
-
name: "
|
|
2086
|
-
fullName: "decentraland.kernel.apis.
|
|
2083
|
+
export type EngineApiServiceDefinition = typeof EngineApiServiceDefinition;
|
|
2084
|
+
export const EngineApiServiceDefinition = {
|
|
2085
|
+
name: "EngineApiService",
|
|
2086
|
+
fullName: "decentraland.kernel.apis.EngineApiService",
|
|
2087
2087
|
methods: {
|
|
2088
2088
|
sendBatch: {
|
|
2089
2089
|
name: "SendBatch",
|
|
@@ -966,10 +966,10 @@ export const GetDecentralandTimeRequest = {
|
|
|
966
966
|
},
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
export type
|
|
970
|
-
export const
|
|
971
|
-
name: "
|
|
972
|
-
fullName: "decentraland.kernel.apis.
|
|
969
|
+
export type EnvironmentApiServiceDefinition = typeof EnvironmentApiServiceDefinition;
|
|
970
|
+
export const EnvironmentApiServiceDefinition = {
|
|
971
|
+
name: "EnvironmentApiService",
|
|
972
|
+
fullName: "decentraland.kernel.apis.EnvironmentApiService",
|
|
973
973
|
methods: {
|
|
974
974
|
getBootstrapData: {
|
|
975
975
|
name: "GetBootstrapData",
|
|
@@ -194,10 +194,10 @@ export const MessageFromRendererResponse = {
|
|
|
194
194
|
},
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
export type
|
|
198
|
-
export const
|
|
199
|
-
name: "
|
|
200
|
-
fullName: "decentraland.kernel.apis.
|
|
197
|
+
export type ExperimentalApiServiceDefinition = typeof ExperimentalApiServiceDefinition;
|
|
198
|
+
export const ExperimentalApiServiceDefinition = {
|
|
199
|
+
name: "ExperimentalApiService",
|
|
200
|
+
fullName: "decentraland.kernel.apis.ExperimentalApiService",
|
|
201
201
|
methods: {
|
|
202
202
|
sendToRenderer: {
|
|
203
203
|
name: "SendToRenderer",
|
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-3243753014.commit-161bbc8",
|
|
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": "161bbc810afc00ab4731ac26f79f1640bb670487"
|
|
29
29
|
}
|
|
@@ -172,7 +172,7 @@ message EventData {
|
|
|
172
172
|
optional RotationChangedPayload rotation_changed = 4;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
service
|
|
175
|
+
service EngineApiService {
|
|
176
176
|
rpc SendBatch(ManyEntityAction) returns (SendBatchResponse) {}
|
|
177
177
|
rpc Subscribe(SubscribeRequest) returns (SubscribeResponse) {}
|
|
178
178
|
rpc Unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse) {}
|
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.kernel.apis;
|
|
3
4
|
|
|
4
5
|
import "decentraland/common/content_mapping.proto";
|
|
5
6
|
|
|
6
7
|
message MinimalRunnableEntity {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
repeated decentraland.common.ContentMapping content = 1;
|
|
9
|
+
string metadata_json = 2;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
message BootstrapDataResponse {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
string id = 1;
|
|
14
|
+
string base_url = 4;
|
|
15
|
+
MinimalRunnableEntity entity = 2;
|
|
16
|
+
bool use_f_p_s_throttling = 5;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
message PreviewModeResponse {
|
|
19
|
-
|
|
20
|
+
bool is_preview = 1;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
message AreUnsafeRequestAllowedResponse {
|
|
23
|
-
|
|
24
|
+
bool status = 1;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
message GetPlatformResponse {
|
|
27
|
-
|
|
28
|
+
string platform = 1;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
message EnvironmentRealm {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
string domain = 1;
|
|
33
|
+
string layer = 2;
|
|
34
|
+
string room = 3;
|
|
35
|
+
string server_name = 4;
|
|
36
|
+
string display_name = 5;
|
|
37
|
+
string protocol = 6;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
message GetCurrentRealmResponse {
|
|
40
|
-
|
|
41
|
+
optional EnvironmentRealm current_realm = 1;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message GetExplorerConfigurationResponse {
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
string client_uri = 1;
|
|
46
|
+
map<string, string> configurations = 2;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
message GetDecentralandTimeResponse {
|
|
49
|
-
|
|
50
|
+
int32 seconds = 1;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
message GetBootstrapDataRequest {}
|
|
@@ -57,12 +58,12 @@ message GetCurrentRealmRequest {}
|
|
|
57
58
|
message GetExplorerConfigurationRequest {}
|
|
58
59
|
message GetDecentralandTimeRequest {}
|
|
59
60
|
|
|
60
|
-
service
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
service EnvironmentApiService {
|
|
62
|
+
rpc GetBootstrapData(GetBootstrapDataRequest) returns (BootstrapDataResponse) {}
|
|
63
|
+
rpc IsPreviewMode(IsPreviewModeRequest) returns (PreviewModeResponse) {}
|
|
64
|
+
rpc GetPlatform(GetPlatformRequest) returns (GetPlatformResponse) {}
|
|
65
|
+
rpc AreUnsafeRequestAllowed(AreUnsafeRequestAllowedRequest) returns (AreUnsafeRequestAllowedResponse) {}
|
|
66
|
+
rpc GetCurrentRealm(GetCurrentRealmRequest) returns (GetCurrentRealmResponse) {}
|
|
67
|
+
rpc GetExplorerConfiguration(GetExplorerConfigurationRequest) returns (GetExplorerConfigurationResponse) {}
|
|
68
|
+
rpc GetDecentralandTime(GetDecentralandTimeRequest) returns (GetDecentralandTimeResponse) {}
|
|
68
69
|
}
|
|
@@ -11,7 +11,7 @@ message MessageFromRendererResponse {
|
|
|
11
11
|
repeated bytes data = 1;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
service
|
|
14
|
+
service ExperimentalApiService {
|
|
15
15
|
rpc SendToRenderer(SendToRendererRequest) returns (SendToResponse) {}
|
|
16
16
|
rpc MessageFromRenderer(MessageFromRendererRequest) returns (MessageFromRendererResponse) {}
|
|
17
17
|
}
|
|
@@ -4,246 +4,243 @@
|
|
|
4
4
|
syntax = "proto3";
|
|
5
5
|
|
|
6
6
|
package decentraland.renderer;
|
|
7
|
+
// option csharp_namespace = "DCL.Interface";
|
|
7
8
|
|
|
8
|
-
import "google/protobuf/empty.proto";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
import "google/protobuf/empty.proto";
|
|
11
11
|
|
|
12
12
|
message PB_CreateEntity {
|
|
13
|
-
|
|
13
|
+
string id = 1;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message PB_RemoveEntity {
|
|
17
|
-
|
|
17
|
+
string id = 1;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
message PB_SetEntityParent {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
string entityId = 1;
|
|
22
|
+
string parentId = 2;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
message PB_ComponentRemoved {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
string entityId = 1;
|
|
27
|
+
string name = 2;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message PB_Component {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
oneof model {
|
|
32
|
+
PB_Transform transform = 1;
|
|
33
|
+
PB_UUIDCallback uuidCallback = 8;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
PB_BoxShape box = 16;
|
|
36
|
+
PB_SphereShape sphere = 17;
|
|
37
|
+
PB_PlaneShape plane = 18;
|
|
38
|
+
PB_ConeShape cone = 19;
|
|
39
|
+
PB_CylinderShape cylinder = 20;
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
PB_TextShape text = 21;
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
PB_NFTShape nft = 22;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
PB_UIContainerRect containerRect = 25;
|
|
46
|
+
PB_UIContainerStack containerStack = 26;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
PB_UITextShape uiTextShape = 27;
|
|
49
|
+
PB_UIInputText uiInputTextShape = 28;
|
|
50
|
+
PB_UIImage uiImageShape = 29;
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
PB_CircleShape circle = 31;
|
|
53
|
+
PB_Billboard billboard = 32;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
PB_GLTFShape gltf = 54;
|
|
56
|
+
PB_OBJShape obj = 55;
|
|
57
|
+
PB_AvatarShape avatar = 56;
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
PB_BasicMaterial basicMaterial = 64;
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
PB_Texture texture = 68;
|
|
62
|
+
PB_AudioClip audioClip = 200;
|
|
63
|
+
PB_AudioSource audioSource = 201;
|
|
64
|
+
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
message PB_Color4 {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
float r = 1;
|
|
69
|
+
float g = 2;
|
|
70
|
+
float b = 3;
|
|
71
|
+
float a = 4;
|
|
72
72
|
}
|
|
73
73
|
message PB_Color3 {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
float r = 1;
|
|
75
|
+
float g = 2;
|
|
76
|
+
float b = 3;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
message PB_TextShapeModel {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
message PB_Vector3
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
double z = 3;
|
|
120
|
-
double w = 4;
|
|
80
|
+
bool billboard = 1;
|
|
81
|
+
string value = 2;
|
|
82
|
+
PB_Color3 color = 3;
|
|
83
|
+
float opacity = 4;
|
|
84
|
+
float fontSize = 5;
|
|
85
|
+
bool fontAutoSize = 6;
|
|
86
|
+
string fontWeight = 7;
|
|
87
|
+
string hTextAlign = 8;
|
|
88
|
+
string vTextAlign = 9;
|
|
89
|
+
float width = 10;
|
|
90
|
+
float height = 11;
|
|
91
|
+
bool adaptWidth = 12;
|
|
92
|
+
bool adaptHeight = 13;
|
|
93
|
+
float paddingTop = 14;
|
|
94
|
+
float paddingRight = 15;
|
|
95
|
+
float paddingBottom = 16;
|
|
96
|
+
float paddingLeft = 17;
|
|
97
|
+
float lineSpacing = 18;
|
|
98
|
+
int32 lineCount = 19;
|
|
99
|
+
bool textWrapping = 20;
|
|
100
|
+
float shadowBlur = 21;
|
|
101
|
+
float shadowOffsetX = 22;
|
|
102
|
+
float shadowOffsetY = 23;
|
|
103
|
+
PB_Color3 shadowColor = 24;
|
|
104
|
+
float outlineWidth = 25;
|
|
105
|
+
PB_Color3 outlineColor = 26;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message PB_Vector3 {
|
|
109
|
+
float x = 1;
|
|
110
|
+
float y = 2;
|
|
111
|
+
float z = 3;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message PB_Quaternion {
|
|
115
|
+
double x = 1;
|
|
116
|
+
double y = 2;
|
|
117
|
+
double z = 3;
|
|
118
|
+
double w = 4;
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
message PB_Transform {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
PB_Vector3 position = 1;
|
|
123
|
+
PB_Quaternion rotation = 2;
|
|
124
|
+
PB_Vector3 scale = 3;
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
message PB_UpdateEntityComponent {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
string entityId = 1;
|
|
129
|
+
int32 classId = 2;
|
|
130
|
+
string name = 3;
|
|
131
|
+
string data = 4;
|
|
134
132
|
}
|
|
135
133
|
|
|
136
134
|
message PB_ComponentCreated {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
string id = 1;
|
|
136
|
+
int32 classid = 2;
|
|
137
|
+
string name = 3;
|
|
140
138
|
}
|
|
141
139
|
|
|
142
140
|
message PB_AttachEntityComponent {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
string entityId = 1;
|
|
142
|
+
string name = 2;
|
|
143
|
+
string id = 3;
|
|
146
144
|
}
|
|
147
145
|
|
|
148
146
|
message PB_ComponentDisposed {
|
|
149
|
-
|
|
147
|
+
string id = 1;
|
|
150
148
|
}
|
|
151
149
|
|
|
152
150
|
message PB_ComponentUpdated {
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
string id = 1;
|
|
152
|
+
string json = 2;
|
|
155
153
|
}
|
|
156
154
|
|
|
157
155
|
message PB_Ray {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
PB_Vector3 origin = 1;
|
|
157
|
+
PB_Vector3 direction = 2;
|
|
158
|
+
float distance = 3;
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
message PB_RayQuery {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
string queryId = 1;
|
|
163
|
+
string queryType = 2;
|
|
164
|
+
PB_Ray ray = 3;
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
message PB_Query {
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
string queryId = 1;
|
|
169
|
+
string payload = 2;
|
|
172
170
|
}
|
|
173
171
|
|
|
174
172
|
message PB_SendSceneMessage {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
173
|
+
string sceneId = 1;
|
|
174
|
+
string tag = 2;
|
|
175
|
+
oneof payload {
|
|
176
|
+
PB_CreateEntity createEntity = 3;
|
|
177
|
+
PB_RemoveEntity removeEntity = 4;
|
|
178
|
+
PB_SetEntityParent setEntityParent = 5;
|
|
179
|
+
PB_UpdateEntityComponent updateEntityComponent = 6;
|
|
180
|
+
PB_AttachEntityComponent attachEntityComponent = 7;
|
|
181
|
+
PB_ComponentCreated componentCreated = 8;
|
|
182
|
+
PB_ComponentDisposed componentDisposed = 9;
|
|
183
|
+
PB_ComponentRemoved componentRemoved = 10;
|
|
184
|
+
PB_ComponentUpdated componentUpdated = 11;
|
|
185
|
+
PB_Query query = 12;
|
|
186
|
+
google.protobuf.Empty sceneStarted = 13;
|
|
187
|
+
PB_OpenExternalUrl openExternalUrl = 14;
|
|
188
|
+
PB_OpenNFTDialog openNFTDialog = 15;
|
|
189
|
+
}
|
|
190
|
+
int32 sceneNumber = 99;
|
|
193
191
|
}
|
|
194
192
|
|
|
195
193
|
message PB_SetPosition {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
float x = 1;
|
|
195
|
+
float y = 2;
|
|
196
|
+
float z = 3;
|
|
199
197
|
}
|
|
200
198
|
|
|
201
199
|
message PB_ContentMapping {
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
string file = 1;
|
|
201
|
+
string hash = 2;
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
message PB_Position {
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
float x = 1;
|
|
206
|
+
float y = 2;
|
|
209
207
|
}
|
|
210
208
|
|
|
211
209
|
message PB_LoadParcelScenes {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
string id = 1;
|
|
211
|
+
PB_Position basePosition = 2;
|
|
212
|
+
repeated PB_Position parcels = 3;
|
|
213
|
+
repeated PB_ContentMapping contents = 4;
|
|
214
|
+
string baseUrl = 5;
|
|
215
|
+
// ILand land = 6;
|
|
216
|
+
int32 sceneNumber = 99;
|
|
219
217
|
}
|
|
220
218
|
|
|
221
219
|
message PB_CreateUIScene {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
220
|
+
string id = 1;
|
|
221
|
+
string baseUrl = 2;
|
|
222
|
+
int32 sceneNumber = 99;
|
|
225
223
|
}
|
|
226
224
|
|
|
227
225
|
message PB_UnloadScene {
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
string sceneId = 1;
|
|
227
|
+
int32 sceneNumber = 99;
|
|
230
228
|
}
|
|
231
229
|
|
|
232
230
|
message PB_DclMessage {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
231
|
+
oneof message {
|
|
232
|
+
google.protobuf.Empty setDebug = 1;
|
|
233
|
+
google.protobuf.Empty setSceneDebugPanel = 2;
|
|
234
|
+
google.protobuf.Empty setEngineDebugPanel = 3;
|
|
235
|
+
PB_SendSceneMessage sendSceneMessage = 4;
|
|
236
|
+
PB_LoadParcelScenes loadParcelScenes = 5;
|
|
237
|
+
PB_UnloadScene unloadScene = 6;
|
|
238
|
+
PB_SetPosition setPosition = 7;
|
|
239
|
+
google.protobuf.Empty reset = 8;
|
|
240
|
+
PB_CreateUIScene createUIScene = 9;
|
|
241
|
+
}
|
|
244
242
|
}
|
|
245
243
|
|
|
246
|
-
|
|
247
244
|
message PB_AnimationState {
|
|
248
245
|
string clip = 1;
|
|
249
246
|
bool looping = 2;
|
|
@@ -364,13 +361,9 @@ message PB_CylinderShape {
|
|
|
364
361
|
float arc = 9;
|
|
365
362
|
}
|
|
366
363
|
|
|
367
|
-
message PB_GlobalPointerDown {
|
|
364
|
+
message PB_GlobalPointerDown {}
|
|
368
365
|
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
message PB_GlobalPointerUp {
|
|
372
|
-
|
|
373
|
-
}
|
|
366
|
+
message PB_GlobalPointerUp {}
|
|
374
367
|
|
|
375
368
|
message PB_GLTFShape {
|
|
376
369
|
bool withCollisions = 1;
|
|
@@ -706,11 +699,11 @@ message PB_UITextShape {
|
|
|
706
699
|
}
|
|
707
700
|
|
|
708
701
|
message PB_OpenExternalUrl {
|
|
709
|
-
|
|
702
|
+
string url = 1;
|
|
710
703
|
}
|
|
711
704
|
|
|
712
705
|
message PB_OpenNFTDialog {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
706
|
+
string assetContractAddress = 1;
|
|
707
|
+
string tokenId = 2;
|
|
708
|
+
string comment = 3;
|
|
716
709
|
}
|
|
@@ -6,14 +6,14 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
6
6
|
|
|
7
7
|
option (common.ecs_component_id) = 1073;
|
|
8
8
|
|
|
9
|
-
enum
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
enum AvatarAnchorPointType {
|
|
10
|
+
AAPT_POSITION = 0;
|
|
11
|
+
AAPT_NAME_TAG = 1;
|
|
12
|
+
AAPT_LEFT_HAND = 2;
|
|
13
|
+
AAPT_RIGHT_HAND = 3;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message PBAvatarAttach {
|
|
17
17
|
string avatar_id = 1;
|
|
18
|
-
|
|
18
|
+
AvatarAnchorPointType anchor_point_id = 2;
|
|
19
19
|
}
|
|
@@ -7,13 +7,13 @@ import "decentraland/sdk/components/common/id.proto";
|
|
|
7
7
|
|
|
8
8
|
option (common.ecs_component_id) = 1070;
|
|
9
9
|
|
|
10
|
-
enum
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
enum AvatarModifierType {
|
|
11
|
+
AMT_HIDE_AVATARS = 0;
|
|
12
|
+
AMT_DISABLE_PASSPORTS = 1;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
message PBAvatarModifierArea {
|
|
16
16
|
decentraland.common.Vector3 area = 1;
|
|
17
17
|
repeated string exclude_ids = 2;
|
|
18
|
-
repeated
|
|
18
|
+
repeated AvatarModifierType modifiers = 3;
|
|
19
19
|
}
|
|
@@ -3,8 +3,8 @@ package decentraland.sdk.components;
|
|
|
3
3
|
|
|
4
4
|
import "decentraland/sdk/components/common/id.proto";
|
|
5
5
|
option (common.ecs_component_id) = 1072;
|
|
6
|
-
import "decentraland/sdk/components/common/
|
|
6
|
+
import "decentraland/sdk/components/common/camera_type.proto";
|
|
7
7
|
|
|
8
8
|
message PBCameraMode {
|
|
9
|
-
common.
|
|
9
|
+
common.CameraType mode = 1;
|
|
10
10
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
|
|
2
3
|
package decentraland.sdk.components;
|
|
3
4
|
|
|
5
|
+
import "decentraland/common/vectors.proto";
|
|
6
|
+
import "decentraland/sdk/components/common/camera_type.proto";
|
|
4
7
|
import "decentraland/sdk/components/common/id.proto";
|
|
8
|
+
|
|
5
9
|
option (common.ecs_component_id) = 1071;
|
|
6
|
-
import "decentraland/common/vectors.proto";
|
|
7
|
-
import "decentraland/sdk/components/common/camera_mode_value.proto";
|
|
8
10
|
|
|
9
11
|
message PBCameraModeArea {
|
|
10
12
|
decentraland.common.Vector3 area = 1;
|
|
11
|
-
common.
|
|
13
|
+
common.CameraType mode = 2;
|
|
12
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
|
+
}
|
|
@@ -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
|
-
}
|