@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.
Files changed (25) hide show
  1. package/README.md +6 -0
  2. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +4 -4
  3. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +4 -4
  4. package/out-ts/decentraland/kernel/apis/experimental_api.gen.ts +4 -4
  5. package/package.json +2 -2
  6. package/proto/decentraland/kernel/apis/engine_api.proto +1 -1
  7. package/proto/decentraland/kernel/apis/environment_api.proto +28 -27
  8. package/proto/decentraland/kernel/apis/experimental_api.proto +1 -1
  9. package/proto/decentraland/renderer/engine_interface.proto +157 -164
  10. package/proto/decentraland/sdk/components/avatar_attach.proto +6 -6
  11. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +4 -4
  12. package/proto/decentraland/sdk/components/camera_mode.proto +2 -2
  13. package/proto/decentraland/sdk/components/camera_mode_area.proto +5 -3
  14. package/proto/decentraland/sdk/components/common/camera_type.proto +8 -0
  15. package/proto/decentraland/sdk/components/common/input_action.proto +20 -0
  16. package/proto/decentraland/sdk/components/common/texts.proto +4 -4
  17. package/proto/decentraland/sdk/components/material.proto +12 -12
  18. package/proto/decentraland/sdk/components/nft_shape.proto +26 -26
  19. package/proto/decentraland/sdk/components/pointer_events.proto +4 -2
  20. package/proto/decentraland/sdk/components/pointer_events_result.proto +6 -4
  21. package/proto/decentraland/sdk/components/text_shape.proto +4 -3
  22. package/proto/decentraland/sdk/components/ui_text.proto +7 -6
  23. package/proto/decentraland/sdk/components/ui_transform.proto +3 -3
  24. package/proto/decentraland/sdk/components/common/action_button.proto +0 -20
  25. 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 EngineAPIServiceDefinition = typeof EngineAPIServiceDefinition;
2084
- export const EngineAPIServiceDefinition = {
2085
- name: "EngineAPIService",
2086
- fullName: "decentraland.kernel.apis.EngineAPIService",
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 EnvironmentAPIServiceDefinition = typeof EnvironmentAPIServiceDefinition;
970
- export const EnvironmentAPIServiceDefinition = {
971
- name: "EnvironmentAPIService",
972
- fullName: "decentraland.kernel.apis.EnvironmentAPIService",
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 ExperimentalAPIServiceDefinition = typeof ExperimentalAPIServiceDefinition;
198
- export const ExperimentalAPIServiceDefinition = {
199
- name: "ExperimentalAPIService",
200
- fullName: "decentraland.kernel.apis.ExperimentalAPIService",
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-3239222053.commit-c9e426d",
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": "c9e426d8ea851abc0cb382e4faccbcd785e0b8f3"
28
+ "commit": "161bbc810afc00ab4731ac26f79f1640bb670487"
29
29
  }
@@ -172,7 +172,7 @@ message EventData {
172
172
  optional RotationChangedPayload rotation_changed = 4;
173
173
  }
174
174
 
175
- service EngineAPIService {
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
- repeated decentraland.common.ContentMapping content = 1;
8
- string metadata_json = 2;
8
+ repeated decentraland.common.ContentMapping content = 1;
9
+ string metadata_json = 2;
9
10
  }
10
11
 
11
12
  message BootstrapDataResponse {
12
- string id = 1;
13
- string base_url = 4;
14
- MinimalRunnableEntity entity = 2;
15
- bool use_f_p_s_throttling = 5;
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
- bool is_preview = 1;
20
+ bool is_preview = 1;
20
21
  }
21
22
 
22
23
  message AreUnsafeRequestAllowedResponse {
23
- bool status = 1;
24
+ bool status = 1;
24
25
  }
25
26
 
26
27
  message GetPlatformResponse {
27
- string platform = 1;
28
+ string platform = 1;
28
29
  }
29
30
 
30
31
  message EnvironmentRealm {
31
- string domain = 1;
32
- string layer = 2;
33
- string room = 3;
34
- string server_name = 4;
35
- string display_name = 5;
36
- string protocol = 6;
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
- optional EnvironmentRealm current_realm = 1;
41
+ optional EnvironmentRealm current_realm = 1;
41
42
  }
42
43
 
43
44
  message GetExplorerConfigurationResponse {
44
- string client_uri = 1;
45
- map<string, string> configurations = 2;
45
+ string client_uri = 1;
46
+ map<string, string> configurations = 2;
46
47
  }
47
48
 
48
49
  message GetDecentralandTimeResponse {
49
- int32 seconds = 1;
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 EnvironmentAPIService {
61
- rpc GetBootstrapData(GetBootstrapDataRequest) returns (BootstrapDataResponse) {}
62
- rpc IsPreviewMode(IsPreviewModeRequest) returns (PreviewModeResponse) {}
63
- rpc GetPlatform(GetPlatformRequest) returns (GetPlatformResponse) {}
64
- rpc AreUnsafeRequestAllowed(AreUnsafeRequestAllowedRequest) returns (AreUnsafeRequestAllowedResponse) {}
65
- rpc GetCurrentRealm(GetCurrentRealmRequest) returns (GetCurrentRealmResponse) {}
66
- rpc GetExplorerConfiguration(GetExplorerConfigurationRequest) returns (GetExplorerConfigurationResponse) {}
67
- rpc GetDecentralandTime(GetDecentralandTimeRequest) returns (GetDecentralandTimeResponse) {}
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 ExperimentalAPIService {
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
- // option csharp_namespace = "DCL.Interface";
10
+ import "google/protobuf/empty.proto";
11
11
 
12
12
  message PB_CreateEntity {
13
- string id = 1;
13
+ string id = 1;
14
14
  }
15
15
 
16
16
  message PB_RemoveEntity {
17
- string id = 1;
17
+ string id = 1;
18
18
  }
19
19
 
20
20
  message PB_SetEntityParent {
21
- string entityId = 1;
22
- string parentId = 2;
21
+ string entityId = 1;
22
+ string parentId = 2;
23
23
  }
24
24
 
25
25
  message PB_ComponentRemoved {
26
- string entityId = 1;
27
- string name = 2;
26
+ string entityId = 1;
27
+ string name = 2;
28
28
  }
29
29
 
30
30
  message PB_Component {
31
- oneof model {
32
- PB_Transform transform = 1;
33
- PB_UUIDCallback uuidCallback = 8;
31
+ oneof model {
32
+ PB_Transform transform = 1;
33
+ PB_UUIDCallback uuidCallback = 8;
34
34
 
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;
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
- PB_TextShape text = 21;
41
+ PB_TextShape text = 21;
42
42
 
43
- PB_NFTShape nft = 22;
43
+ PB_NFTShape nft = 22;
44
44
 
45
- PB_UIContainerRect containerRect = 25;
46
- PB_UIContainerStack containerStack = 26;
45
+ PB_UIContainerRect containerRect = 25;
46
+ PB_UIContainerStack containerStack = 26;
47
47
 
48
- PB_UITextShape uiTextShape = 27;
49
- PB_UIInputText uiInputTextShape = 28;
50
- PB_UIImage uiImageShape = 29;
48
+ PB_UITextShape uiTextShape = 27;
49
+ PB_UIInputText uiInputTextShape = 28;
50
+ PB_UIImage uiImageShape = 29;
51
51
 
52
- PB_CircleShape circle = 31;
53
- PB_Billboard billboard = 32;
52
+ PB_CircleShape circle = 31;
53
+ PB_Billboard billboard = 32;
54
54
 
55
- PB_GLTFShape gltf = 54;
56
- PB_OBJShape obj = 55;
57
- PB_AvatarShape avatar = 56;
55
+ PB_GLTFShape gltf = 54;
56
+ PB_OBJShape obj = 55;
57
+ PB_AvatarShape avatar = 56;
58
58
 
59
- PB_BasicMaterial basicMaterial = 64;
59
+ PB_BasicMaterial basicMaterial = 64;
60
60
 
61
- PB_Texture texture = 68;
62
- PB_AudioClip audioClip = 200;
63
- PB_AudioSource audioSource = 201;
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
- float r = 1;
69
- float g = 2;
70
- float b = 3;
71
- float a = 4;
68
+ float r = 1;
69
+ float g = 2;
70
+ float b = 3;
71
+ float a = 4;
72
72
  }
73
73
  message PB_Color3 {
74
- float r = 1;
75
- float g = 2;
76
- float b = 3;
74
+ float r = 1;
75
+ float g = 2;
76
+ float b = 3;
77
77
  }
78
78
 
79
79
  message PB_TextShapeModel {
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
- {
110
- float x = 1;
111
- float y = 2;
112
- float z = 3;
113
- }
114
-
115
- message PB_Quaternion
116
- {
117
- double x = 1;
118
- double y = 2;
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
- PB_Vector3 position = 1;
125
- PB_Quaternion rotation = 2;
126
- PB_Vector3 scale = 3;
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
- string entityId = 1;
131
- int32 classId = 2;
132
- string name = 3;
133
- string data = 4;
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
- string id = 1;
138
- int32 classid = 2;
139
- string name = 3;
135
+ string id = 1;
136
+ int32 classid = 2;
137
+ string name = 3;
140
138
  }
141
139
 
142
140
  message PB_AttachEntityComponent {
143
- string entityId = 1;
144
- string name = 2;
145
- string id = 3;
141
+ string entityId = 1;
142
+ string name = 2;
143
+ string id = 3;
146
144
  }
147
145
 
148
146
  message PB_ComponentDisposed {
149
- string id = 1;
147
+ string id = 1;
150
148
  }
151
149
 
152
150
  message PB_ComponentUpdated {
153
- string id = 1;
154
- string json = 2;
151
+ string id = 1;
152
+ string json = 2;
155
153
  }
156
154
 
157
155
  message PB_Ray {
158
- PB_Vector3 origin = 1;
159
- PB_Vector3 direction = 2;
160
- float distance = 3;
156
+ PB_Vector3 origin = 1;
157
+ PB_Vector3 direction = 2;
158
+ float distance = 3;
161
159
  }
162
160
 
163
161
  message PB_RayQuery {
164
- string queryId = 1;
165
- string queryType = 2;
166
- PB_Ray ray = 3;
162
+ string queryId = 1;
163
+ string queryType = 2;
164
+ PB_Ray ray = 3;
167
165
  }
168
166
 
169
167
  message PB_Query {
170
- string queryId = 1;
171
- string payload = 2;
168
+ string queryId = 1;
169
+ string payload = 2;
172
170
  }
173
171
 
174
172
  message PB_SendSceneMessage {
175
- string sceneId = 1;
176
- string tag = 2;
177
- oneof payload {
178
- PB_CreateEntity createEntity = 3;
179
- PB_RemoveEntity removeEntity = 4;
180
- PB_SetEntityParent setEntityParent = 5;
181
- PB_UpdateEntityComponent updateEntityComponent = 6;
182
- PB_AttachEntityComponent attachEntityComponent = 7;
183
- PB_ComponentCreated componentCreated = 8;
184
- PB_ComponentDisposed componentDisposed = 9;
185
- PB_ComponentRemoved componentRemoved = 10;
186
- PB_ComponentUpdated componentUpdated = 11;
187
- PB_Query query = 12;
188
- google.protobuf.Empty sceneStarted = 13;
189
- PB_OpenExternalUrl openExternalUrl = 14;
190
- PB_OpenNFTDialog openNFTDialog = 15;
191
- }
192
- int32 sceneNumber = 99;
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
- float x = 1;
197
- float y = 2;
198
- float z = 3;
194
+ float x = 1;
195
+ float y = 2;
196
+ float z = 3;
199
197
  }
200
198
 
201
199
  message PB_ContentMapping {
202
- string file = 1;
203
- string hash = 2;
200
+ string file = 1;
201
+ string hash = 2;
204
202
  }
205
203
 
206
204
  message PB_Position {
207
- float x = 1;
208
- float y = 2;
205
+ float x = 1;
206
+ float y = 2;
209
207
  }
210
208
 
211
209
  message PB_LoadParcelScenes {
212
- string id = 1;
213
- PB_Position basePosition = 2;
214
- repeated PB_Position parcels = 3;
215
- repeated PB_ContentMapping contents = 4;
216
- string baseUrl = 5;
217
- // ILand land = 6;
218
- int32 sceneNumber = 99;
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
- string id = 1;
223
- string baseUrl = 2;
224
- int32 sceneNumber = 99;
220
+ string id = 1;
221
+ string baseUrl = 2;
222
+ int32 sceneNumber = 99;
225
223
  }
226
224
 
227
225
  message PB_UnloadScene {
228
- string sceneId = 1;
229
- int32 sceneNumber = 99;
226
+ string sceneId = 1;
227
+ int32 sceneNumber = 99;
230
228
  }
231
229
 
232
230
  message PB_DclMessage {
233
- oneof message {
234
- google.protobuf.Empty setDebug = 1;
235
- google.protobuf.Empty setSceneDebugPanel = 2;
236
- google.protobuf.Empty setEngineDebugPanel = 3;
237
- PB_SendSceneMessage sendSceneMessage = 4;
238
- PB_LoadParcelScenes loadParcelScenes = 5;
239
- PB_UnloadScene unloadScene = 6;
240
- PB_SetPosition setPosition = 7;
241
- google.protobuf.Empty reset = 8;
242
- PB_CreateUIScene createUIScene = 9;
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
- string url = 1;
702
+ string url = 1;
710
703
  }
711
704
 
712
705
  message PB_OpenNFTDialog {
713
- string assetContractAddress = 1;
714
- string tokenId = 2;
715
- string comment = 3;
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 AvatarAnchorPoint {
10
- AAP_POSITION = 0;
11
- AAP_NAME_TAG = 1;
12
- AAP_LEFT_HAND = 2;
13
- AAP_RIGHT_HAND = 3;
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
- AvatarAnchorPoint anchor_point_id = 2;
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 AvatarModifier {
11
- AM_HIDE_AVATARS = 0;
12
- AM_DISABLE_PASSPORTS = 1;
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 AvatarModifier modifiers = 3;
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/camera_mode_value.proto";
6
+ import "decentraland/sdk/components/common/camera_type.proto";
7
7
 
8
8
  message PBCameraMode {
9
- common.CameraModeValue mode = 1;
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.CameraModeValue mode = 2;
13
+ common.CameraType mode = 2;
12
14
  }
@@ -0,0 +1,8 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components.common;
4
+
5
+ enum CameraType {
6
+ CT_FIRST_PERSON = 0;
7
+ CT_THIRD_PERSON = 1;
8
+ }
@@ -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
+ }
@@ -2,10 +2,10 @@ syntax = "proto3";
2
2
 
3
3
  package decentraland.sdk.components.common;
4
4
 
5
- enum TextAlign {
6
- TA_CENTER = 0;
7
- TA_LEFT = 1;
8
- TA_RIGHT = 2;
5
+ enum TextAlignMode {
6
+ TAM_CENTER = 0;
7
+ TAM_LEFT = 1;
8
+ TAM_RIGHT = 2;
9
9
  }
10
10
 
11
11
  enum Font {
@@ -14,25 +14,25 @@ enum TextureWrapMode {
14
14
  TWM_MIRROR_ONCE = 3;
15
15
  }
16
16
 
17
- enum FilterMode {
18
- FM_POINT = 0;
19
- FM_BILINEAR = 1;
20
- FM_TRILINEAR = 2;
17
+ enum TextureFilterMode {
18
+ TFM_POINT = 0;
19
+ TFM_BILINEAR = 1;
20
+ TFM_TRILINEAR = 2;
21
21
  }
22
22
 
23
- enum TransparencyMode {
24
- TM_OPAQUE = 0;
25
- TM_ALPHA_TEST = 1;
26
- TM_ALPHA_BLEND = 2;
27
- TM_ALPHA_TEST_AND_ALPHA_BLEND = 3;
28
- TM_AUTO = 4;
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 FilterMode filter_mode = 3; // default = FilterMode.Bilinear
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 TransparencyMode transparency_mode = 10; // default = TransparencyMode.Auto
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 PictureFrameStyle {
11
- PFS_CLASSIC = 0;
12
- PFS_BAROQUE_ORNAMENT = 1;
13
- PFS_DIAMOND_ORNAMENT = 2;
14
- PFS_MINIMAL_WIDE = 3;
15
- PFS_MINIMAL_GREY = 4;
16
- PFS_BLOCKY = 5;
17
- PFS_GOLD_EDGES = 6;
18
- PFS_GOLD_CARVED = 7;
19
- PFS_GOLD_WIDE = 8;
20
- PFS_GOLD_ROUNDED = 9;
21
- PFS_METAL_MEDIUM = 10;
22
- PFS_METAL_WIDE = 11;
23
- PFS_METAL_SLIM = 12;
24
- PFS_METAL_ROUNDED = 13;
25
- PFS_PINS = 14;
26
- PFS_MINIMAL_BLACK = 15;
27
- PFS_MINIMAL_WHITE = 16;
28
- PFS_TAPE = 17;
29
- PFS_WOOD_SLIM = 18;
30
- PFS_WOOD_WIDE = 19;
31
- PFS_WOOD_TWIGS = 20;
32
- PFS_CANVAS = 21;
33
- PFS_NONE = 22;
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 PBNFTShape {
36
+ message PBNftShape {
37
37
  string src = 1;
38
- optional PictureFrameStyle style = 2; // default = PictureFrameStyle.Classic
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.ActionButton button = 1; // default=ActionButton.ANY
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/raycast_result.proto";
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.ActionButton button = 1; // identifier of the input
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
- import "decentraland/common/colors.proto";
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
- import "decentraland/common/colors.proto";
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.TextAlign text_align = 3; // default='center'
14
+ optional common.TextAlignMode text_align = 3; // default='center'
14
15
  optional common.Font font = 4; // default=0
15
- optional int32 font_size = 5; // default=10
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
- YGP_STATIC = 0;
11
- YGP_RELATIVE = 1;
12
- YGP_ABSOLUTE = 2;
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
- }
@@ -1,8 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.sdk.components.common;
4
-
5
- enum CameraModeValue {
6
- CMV_FIRST_PERSON = 0;
7
- CMV_THIRD_PERSON = 1;
8
- }