@dcl/ecs 7.1.12-4982571416.commit-0b87aa7 → 7.1.12-4982829389.commit-f2f84bd

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.
@@ -22,6 +22,15 @@ export interface Vector2 {
22
22
  x: number;
23
23
  y: number;
24
24
  }
25
+ /**
26
+ * @public
27
+ */
28
+ export interface Quaternion {
29
+ x: number;
30
+ y: number;
31
+ z: number;
32
+ w: number;
33
+ }
25
34
  /**
26
35
  * @public
27
36
  */
@@ -43,3 +52,10 @@ export declare namespace Vector2 {
43
52
  function encode(message: Vector2, writer?: _m0.Writer): _m0.Writer;
44
53
  function decode(input: _m0.Reader | Uint8Array, length?: number): Vector2;
45
54
  }
55
+ /**
56
+ * @public
57
+ */
58
+ export declare namespace Quaternion {
59
+ function encode(message: Quaternion, writer?: _m0.Writer): _m0.Writer;
60
+ function decode(input: _m0.Reader | Uint8Array, length?: number): Quaternion;
61
+ }
@@ -160,3 +160,68 @@ export var Vector2;
160
160
  }
161
161
  Vector2.decode = decode;
162
162
  })(Vector2 || (Vector2 = {}));
163
+ function createBaseQuaternion() {
164
+ return { x: 0, y: 0, z: 0, w: 0 };
165
+ }
166
+ /**
167
+ * @public
168
+ */
169
+ export var Quaternion;
170
+ (function (Quaternion) {
171
+ function encode(message, writer = _m0.Writer.create()) {
172
+ if (message.x !== 0) {
173
+ writer.uint32(13).float(message.x);
174
+ }
175
+ if (message.y !== 0) {
176
+ writer.uint32(21).float(message.y);
177
+ }
178
+ if (message.z !== 0) {
179
+ writer.uint32(29).float(message.z);
180
+ }
181
+ if (message.w !== 0) {
182
+ writer.uint32(37).float(message.w);
183
+ }
184
+ return writer;
185
+ }
186
+ Quaternion.encode = encode;
187
+ function decode(input, length) {
188
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
189
+ let end = length === undefined ? reader.len : reader.pos + length;
190
+ const message = createBaseQuaternion();
191
+ while (reader.pos < end) {
192
+ const tag = reader.uint32();
193
+ switch (tag >>> 3) {
194
+ case 1:
195
+ if (tag !== 13) {
196
+ break;
197
+ }
198
+ message.x = reader.float();
199
+ continue;
200
+ case 2:
201
+ if (tag !== 21) {
202
+ break;
203
+ }
204
+ message.y = reader.float();
205
+ continue;
206
+ case 3:
207
+ if (tag !== 29) {
208
+ break;
209
+ }
210
+ message.z = reader.float();
211
+ continue;
212
+ case 4:
213
+ if (tag !== 37) {
214
+ break;
215
+ }
216
+ message.w = reader.float();
217
+ continue;
218
+ }
219
+ if ((tag & 7) === 4 || tag === 0) {
220
+ break;
221
+ }
222
+ reader.skipType(tag & 7);
223
+ }
224
+ return message;
225
+ }
226
+ Quaternion.decode = decode;
227
+ })(Quaternion || (Quaternion = {}));
@@ -32,8 +32,8 @@ export declare const enum NftFrameType {
32
32
  /**
33
33
  * The NftShape component renders a framed picture from an NFT. It supports PNG, JPEG and GIF files.
34
34
  *
35
- * The `src` field is the URI of the NFT, which includes its parent contract and index, using
36
- * the `https:` or `ethereum:` schemes.
35
+ * The `urn` field is the URI of the NFT, and must follow the format 'urn:decentraland:<CHAIN>:<CONTRACT_STANDARD>:<CONTRACT_ADDRESS>:<TOKEN_ID>'
36
+ * Example: 'urn:decentraland:ethereum:erc721:0x00000000:123'
37
37
  *
38
38
  * The picture frame can have several different styles, plus a background color for images that have
39
39
  * transparent pixels.
@@ -43,7 +43,7 @@ export declare const enum NftFrameType {
43
43
  */
44
44
  export interface PBNftShape {
45
45
  /** the URI of the NFT */
46
- src: string;
46
+ urn: string;
47
47
  /** the frame style (default NFT_CLASSIC) */
48
48
  style?: NftFrameType | undefined;
49
49
  /** RGB background (default [0.6404918, 0.611472, 0.8584906]) */
@@ -33,7 +33,7 @@ export var NftFrameType;
33
33
  NftFrameType[NftFrameType["NFT_NONE"] = 22] = "NFT_NONE";
34
34
  })(NftFrameType || (NftFrameType = {}));
35
35
  function createBasePBNftShape() {
36
- return { src: "", style: undefined, color: undefined };
36
+ return { urn: "", style: undefined, color: undefined };
37
37
  }
38
38
  /**
39
39
  * @public
@@ -41,8 +41,8 @@ function createBasePBNftShape() {
41
41
  export var PBNftShape;
42
42
  (function (PBNftShape) {
43
43
  function encode(message, writer = _m0.Writer.create()) {
44
- if (message.src !== "") {
45
- writer.uint32(10).string(message.src);
44
+ if (message.urn !== "") {
45
+ writer.uint32(10).string(message.urn);
46
46
  }
47
47
  if (message.style !== undefined) {
48
48
  writer.uint32(16).int32(message.style);
@@ -64,7 +64,7 @@ export var PBNftShape;
64
64
  if (tag !== 10) {
65
65
  break;
66
66
  }
67
- message.src = reader.string();
67
+ message.urn = reader.string();
68
68
  continue;
69
69
  case 2:
70
70
  if (tag !== 16) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.1.12-4982571416.commit-0b87aa7",
4
+ "version": "7.1.12-4982829389.commit-f2f84bd",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "dependencies": {
8
- "@dcl/js-runtime": "7.1.12-4982571416.commit-0b87aa7"
8
+ "@dcl/js-runtime": "7.1.12-4982829389.commit-f2f84bd"
9
9
  },
10
10
  "files": [
11
11
  "dist",
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "types": "./dist/index.d.ts",
36
36
  "typings": "./dist/index.d.ts",
37
- "commit": "0b87aa748eb15b71ae76fc44a287b12b913d1eff"
37
+ "commit": "f2f84bd7a277521e6591143207cf0bf64565a944"
38
38
  }