@dcl/protocol 1.0.0-3324030843.commit-dbdd12a → 1.0.0-3338184295.commit-c785923

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.
@@ -17,14 +17,6 @@ export interface PullCRDTRequest {
17
17
  sceneNumber: number;
18
18
  }
19
19
 
20
- /**
21
- * CRDTStreamRequest is deprecated
22
- *
23
- * @deprecated
24
- */
25
- export interface CRDTStreamRequest {
26
- }
27
-
28
20
  function createBaseCRDTManyMessages(): CRDTManyMessages {
29
21
  return { sceneId: "", payload: new Uint8Array(), sceneNumber: 0 };
30
22
  }
@@ -190,45 +182,6 @@ export const PullCRDTRequest = {
190
182
  },
191
183
  };
192
184
 
193
- function createBaseCRDTStreamRequest(): CRDTStreamRequest {
194
- return {};
195
- }
196
-
197
- export const CRDTStreamRequest = {
198
- encode(_: CRDTStreamRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
199
- return writer;
200
- },
201
-
202
- decode(input: _m0.Reader | Uint8Array, length?: number): CRDTStreamRequest {
203
- const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
204
- let end = length === undefined ? reader.len : reader.pos + length;
205
- const message = createBaseCRDTStreamRequest();
206
- while (reader.pos < end) {
207
- const tag = reader.uint32();
208
- switch (tag >>> 3) {
209
- default:
210
- reader.skipType(tag & 7);
211
- break;
212
- }
213
- }
214
- return message;
215
- },
216
-
217
- fromJSON(_: any): CRDTStreamRequest {
218
- return {};
219
- },
220
-
221
- toJSON(_: CRDTStreamRequest): unknown {
222
- const obj: any = {};
223
- return obj;
224
- },
225
-
226
- fromPartial<I extends Exact<DeepPartial<CRDTStreamRequest>, I>>(_: I): CRDTStreamRequest {
227
- const message = createBaseCRDTStreamRequest();
228
- return message;
229
- },
230
- };
231
-
232
185
  export type CRDTServiceDefinition = typeof CRDTServiceDefinition;
233
186
  export const CRDTServiceDefinition = {
234
187
  name: "CRDTService",
@@ -250,15 +203,6 @@ export const CRDTServiceDefinition = {
250
203
  responseStream: false,
251
204
  options: {},
252
205
  },
253
- /** CrdtNotificationStream is deprecated */
254
- crdtNotificationStream: {
255
- name: "CrdtNotificationStream",
256
- requestType: CRDTStreamRequest,
257
- requestStream: false,
258
- responseType: CRDTManyMessages,
259
- responseStream: true,
260
- options: {},
261
- },
262
206
  },
263
207
  } as const;
264
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-3324030843.commit-dbdd12a",
3
+ "version": "1.0.0-3338184295.commit-c785923",
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": "dbdd12a364661eb50a83edba45316b0e97dfed67"
28
+ "commit": "c78592328dbeb2c9c725a05cd325a8e432a554ad"
29
29
  }
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+ package decentraland.common;
3
+
4
+ enum TextureWrapMode {
5
+ TWM_REPEAT = 0;
6
+ TWM_CLAMP = 1;
7
+ TWM_MIRROR = 2;
8
+ TWM_MIRROR_ONCE = 3;
9
+ }
10
+
11
+ enum TextureFilterMode {
12
+ TFM_POINT = 0;
13
+ TFM_BILINEAR = 1;
14
+ TFM_TRILINEAR = 2;
15
+ }
16
+
17
+ message Texture {
18
+ string src = 1;
19
+ optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
20
+ optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
21
+ }
22
+
23
+ message AvatarTexture {
24
+ string user_id = 1;
25
+ optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
26
+ optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
27
+ }
28
+
29
+ message TextureUnion {
30
+ oneof tex {
31
+ Texture texture = 1; // default = null
32
+ AvatarTexture avatar_texture = 2; // default = null
33
+ }
34
+ }
@@ -15,14 +15,7 @@ message PullCRDTRequest {
15
15
  int32 scene_number = 3;
16
16
  }
17
17
 
18
- // CRDTStreamRequest is deprecated
19
- message CRDTStreamRequest {
20
- option deprecated = true;
21
- }
22
-
23
18
  service CRDTService {
24
19
  rpc SendCrdt(CRDTManyMessages) returns (CRDTResponse){}
25
20
  rpc PullCrdt(PullCRDTRequest) returns (CRDTManyMessages) {}
26
- // CrdtNotificationStream is deprecated
27
- rpc CrdtNotificationStream(CRDTStreamRequest) returns (stream CRDTManyMessages) {}
28
21
  }
@@ -3,23 +3,11 @@ syntax = "proto3";
3
3
  package decentraland.sdk.components;
4
4
 
5
5
  import "decentraland/common/colors.proto";
6
+ import "decentraland/common/texture.proto";
6
7
  import "decentraland/sdk/components/common/id.proto";
7
8
 
8
9
  option (common.ecs_component_id) = 1017;
9
10
 
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
11
  enum MaterialTransparencyMode {
24
12
  MTM_OPAQUE = 0;
25
13
  MTM_ALPHA_TEST = 1;
@@ -29,19 +17,14 @@ enum MaterialTransparencyMode {
29
17
  }
30
18
 
31
19
  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
20
+ optional decentraland.common.TextureUnion texture = 1; // default = null
21
+
39
22
  optional float alpha_test = 2; // default = 0.5. range value: from 0 to 1
40
23
  optional bool cast_shadows = 3; // default = true
41
24
 
42
- optional Texture alpha_texture = 4; // default = null
43
- optional Texture emissive_texture = 5; // default = null
44
- optional Texture bump_texture = 6; // default = null
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
45
28
 
46
29
  optional decentraland.common.Color3 albedo_color = 7; // default = white;
47
30
  optional decentraland.common.Color3 emissive_color = 8; // default = black;