@dcl/ecs 1.0.0-20220511175240.commit-459bc31 → 1.0.0-20220525093820.commit-c20b8cd

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 (98) hide show
  1. package/dist/components/definitions/AudioSource.proto +16 -0
  2. package/dist/components/definitions/AudioStream.proto +13 -0
  3. package/dist/components/definitions/ConeShape.proto +15 -0
  4. package/dist/components/definitions/CylinderShape.proto +15 -0
  5. package/dist/components/definitions/PlaneShape.proto +14 -0
  6. package/dist/components/definitions/SphereShape.proto +13 -0
  7. package/dist/components/generated/AudioSource.d.ts +5 -0
  8. package/dist/components/generated/AudioSource.d.ts.map +1 -0
  9. package/dist/components/generated/AudioSource.js +17 -0
  10. package/dist/components/generated/AudioSource.js.map +1 -0
  11. package/dist/components/generated/AudioStream.d.ts +5 -0
  12. package/dist/components/generated/AudioStream.d.ts.map +1 -0
  13. package/dist/components/generated/AudioStream.js +17 -0
  14. package/dist/components/generated/AudioStream.js.map +1 -0
  15. package/dist/components/generated/ConeShape.d.ts +5 -0
  16. package/dist/components/generated/ConeShape.d.ts.map +1 -0
  17. package/dist/components/generated/ConeShape.js +17 -0
  18. package/dist/components/generated/ConeShape.js.map +1 -0
  19. package/dist/components/generated/CylinderShape.d.ts +5 -0
  20. package/dist/components/generated/CylinderShape.d.ts.map +1 -0
  21. package/dist/components/generated/CylinderShape.js +17 -0
  22. package/dist/components/generated/CylinderShape.js.map +1 -0
  23. package/dist/components/generated/PlaneShape.d.ts +5 -0
  24. package/dist/components/generated/PlaneShape.d.ts.map +1 -0
  25. package/dist/components/generated/PlaneShape.js +17 -0
  26. package/dist/components/generated/PlaneShape.js.map +1 -0
  27. package/dist/components/generated/SphereShape.d.ts +5 -0
  28. package/dist/components/generated/SphereShape.d.ts.map +1 -0
  29. package/dist/components/generated/SphereShape.js +17 -0
  30. package/dist/components/generated/SphereShape.js.map +1 -0
  31. package/dist/components/generated/index.d.ts +8 -2
  32. package/dist/components/generated/index.d.ts.map +1 -1
  33. package/dist/components/generated/index.js +13 -1
  34. package/dist/components/generated/index.js.map +1 -1
  35. package/dist/components/generated/pb/AudioSource.d.ts +15 -0
  36. package/dist/components/generated/pb/AudioSource.d.ts.map +1 -0
  37. package/dist/components/generated/pb/AudioSource.js +95 -0
  38. package/dist/components/generated/pb/AudioSource.js.map +1 -0
  39. package/dist/components/generated/pb/AudioStream.d.ts +12 -0
  40. package/dist/components/generated/pb/AudioStream.d.ts.map +1 -0
  41. package/dist/components/generated/pb/AudioStream.js +70 -0
  42. package/dist/components/generated/pb/AudioStream.js.map +1 -0
  43. package/dist/components/generated/pb/ConeShape.d.ts +14 -0
  44. package/dist/components/generated/pb/ConeShape.d.ts.map +1 -0
  45. package/dist/components/generated/pb/ConeShape.js +88 -0
  46. package/dist/components/generated/pb/ConeShape.js.map +1 -0
  47. package/dist/components/generated/pb/CylinderShape.d.ts +14 -0
  48. package/dist/components/generated/pb/CylinderShape.d.ts.map +1 -0
  49. package/dist/components/generated/pb/CylinderShape.js +88 -0
  50. package/dist/components/generated/pb/CylinderShape.js.map +1 -0
  51. package/dist/components/generated/pb/PlaneShape.d.ts +13 -0
  52. package/dist/components/generated/pb/PlaneShape.d.ts.map +1 -0
  53. package/dist/components/generated/pb/PlaneShape.js +91 -0
  54. package/dist/components/generated/pb/PlaneShape.js.map +1 -0
  55. package/dist/components/generated/pb/SphereShape.d.ts +12 -0
  56. package/dist/components/generated/pb/SphereShape.d.ts.map +1 -0
  57. package/dist/components/generated/pb/SphereShape.js +70 -0
  58. package/dist/components/generated/pb/SphereShape.js.map +1 -0
  59. package/dist/components/index.d.ts +8 -2
  60. package/dist/components/index.d.ts.map +1 -1
  61. package/dist/components/index.js.map +1 -1
  62. package/dist/components/legacy/index.d.ts +8 -2
  63. package/dist/components/legacy/index.d.ts.map +1 -1
  64. package/dist/components/legacy/index.js.map +1 -1
  65. package/dist/ecs.api.json +2 -216
  66. package/dist/engine/index.d.ts +2 -20
  67. package/dist/engine/index.d.ts.map +1 -1
  68. package/dist/engine/index.js +2 -5
  69. package/dist/engine/index.js.map +1 -1
  70. package/dist/engine/types.d.ts +18 -0
  71. package/dist/engine/types.d.ts.map +1 -1
  72. package/dist/engine/utils.d.ts.map +1 -1
  73. package/dist/engine/utils.js.map +1 -1
  74. package/dist/serialization/ByteBuffer/index.d.ts +12 -4
  75. package/dist/serialization/ByteBuffer/index.d.ts.map +1 -1
  76. package/dist/serialization/ByteBuffer/index.js +20 -6
  77. package/dist/serialization/ByteBuffer/index.js.map +1 -1
  78. package/dist/serialization/crdt/componentOperation.d.ts +3 -3
  79. package/dist/serialization/crdt/componentOperation.d.ts.map +1 -1
  80. package/dist/serialization/crdt/componentOperation.js +4 -4
  81. package/dist/serialization/crdt/componentOperation.js.map +1 -1
  82. package/dist/systems/crdt/index.d.ts +2 -7
  83. package/dist/systems/crdt/index.d.ts.map +1 -1
  84. package/dist/systems/crdt/index.js +116 -82
  85. package/dist/systems/crdt/index.js.map +1 -1
  86. package/dist/systems/crdt/transport.d.ts +8 -1
  87. package/dist/systems/crdt/transport.d.ts.map +1 -1
  88. package/dist/systems/crdt/transport.js +22 -4
  89. package/dist/systems/crdt/transport.js.map +1 -1
  90. package/dist/systems/crdt/types.d.ts +11 -0
  91. package/dist/systems/crdt/types.d.ts.map +1 -0
  92. package/dist/systems/crdt/types.js +3 -0
  93. package/dist/systems/crdt/types.js.map +1 -0
  94. package/dist/systems/crdt/utils.d.ts +2 -4
  95. package/dist/systems/crdt/utils.d.ts.map +1 -1
  96. package/dist/systems/crdt/utils.js +10 -9
  97. package/dist/systems/crdt/utils.js.map +1 -1
  98. package/package.json +2 -2
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=20;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBAudioSource {
10
+ bool playing = 1;
11
+ float volume = 2;
12
+ bool loop = 3;
13
+ float pitch = 4;
14
+ int32 playedAtTimestamp = 5;
15
+ string audioClipUrl = 6;
16
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=21;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBAudioStream {
10
+ bool playing = 1;
11
+ float volume = 2;
12
+ string url = 3;
13
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=16;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBConeShape {
10
+ bool with_collisions = 1;
11
+ bool is_pointer_blocker = 2;
12
+ bool visible = 3;
13
+ float radiusTop = 4;
14
+ float radiusBottom = 5;
15
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=17;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBCylinderShape {
10
+ bool with_collisions = 1;
11
+ bool is_pointer_blocker = 2;
12
+ bool visible = 3;
13
+ float radiusTop = 4;
14
+ float radiusBottom = 5;
15
+ }
@@ -0,0 +1,14 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=14;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBPlaneShape {
10
+ bool with_collisions = 1;
11
+ bool is_pointer_blocker = 2;
12
+ bool visible = 3;
13
+ repeated float uvs = 4;
14
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+
3
+ // ComponentDefinition.ComponentID=15;
4
+ // This parameter is processed by the tool
5
+
6
+ package decentraland.ecs;
7
+ option csharp_namespace = "DCL.ECSComponents";
8
+
9
+ message PBSphereShape {
10
+ bool with_collisions = 1;
11
+ bool is_pointer_blocker = 2;
12
+ bool visible = 3;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBAudioSource } from './pb/AudioSource';
3
+ export declare const COMPONENT_ID = 20;
4
+ export declare const AudioSource: EcsType<PBAudioSource>;
5
+ //# sourceMappingURL=AudioSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioSource.d.ts","sourceRoot":"","sources":["../../../src/components/generated/AudioSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CAU9C,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AudioSource = exports.COMPONENT_ID = void 0;
4
+ const AudioSource_1 = require("./pb/AudioSource");
5
+ exports.COMPONENT_ID = 20;
6
+ exports.AudioSource = {
7
+ serialize(value, builder) {
8
+ const writer = AudioSource_1.PBAudioSource.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return AudioSource_1.PBAudioSource.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=AudioSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioSource.js","sourceRoot":"","sources":["../../../src/components/generated/AudioSource.ts"],"names":[],"mappings":";;;AAEA,kDAAgD;AAEnC,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,WAAW,GAA2B;IACjD,SAAS,CAAC,KAAoB,EAAE,OAAmB;QACjD,MAAM,MAAM,GAAG,2BAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC1C,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,2BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBAudioStream } from './pb/AudioStream';
3
+ export declare const COMPONENT_ID = 21;
4
+ export declare const AudioStream: EcsType<PBAudioStream>;
5
+ //# sourceMappingURL=AudioStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioStream.d.ts","sourceRoot":"","sources":["../../../src/components/generated/AudioStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CAU9C,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AudioStream = exports.COMPONENT_ID = void 0;
4
+ const AudioStream_1 = require("./pb/AudioStream");
5
+ exports.COMPONENT_ID = 21;
6
+ exports.AudioStream = {
7
+ serialize(value, builder) {
8
+ const writer = AudioStream_1.PBAudioStream.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return AudioStream_1.PBAudioStream.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=AudioStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioStream.js","sourceRoot":"","sources":["../../../src/components/generated/AudioStream.ts"],"names":[],"mappings":";;;AAEA,kDAAgD;AAEnC,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,WAAW,GAA2B;IACjD,SAAS,CAAC,KAAoB,EAAE,OAAmB;QACjD,MAAM,MAAM,GAAG,2BAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC1C,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,2BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBConeShape } from './pb/ConeShape';
3
+ export declare const COMPONENT_ID = 16;
4
+ export declare const ConeShape: EcsType<PBConeShape>;
5
+ //# sourceMappingURL=ConeShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConeShape.d.ts","sourceRoot":"","sources":["../../../src/components/generated/ConeShape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,WAAW,CAU1C,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConeShape = exports.COMPONENT_ID = void 0;
4
+ const ConeShape_1 = require("./pb/ConeShape");
5
+ exports.COMPONENT_ID = 16;
6
+ exports.ConeShape = {
7
+ serialize(value, builder) {
8
+ const writer = ConeShape_1.PBConeShape.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return ConeShape_1.PBConeShape.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=ConeShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConeShape.js","sourceRoot":"","sources":["../../../src/components/generated/ConeShape.ts"],"names":[],"mappings":";;;AAEA,8CAA4C;AAE/B,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,SAAS,GAAyB;IAC7C,SAAS,CAAC,KAAkB,EAAE,OAAmB;QAC/C,MAAM,MAAM,GAAG,uBAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACxC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,uBAAW,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5C,CAAC;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBCylinderShape } from './pb/CylinderShape';
3
+ export declare const COMPONENT_ID = 17;
4
+ export declare const CylinderShape: EcsType<PBCylinderShape>;
5
+ //# sourceMappingURL=CylinderShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CylinderShape.d.ts","sourceRoot":"","sources":["../../../src/components/generated/CylinderShape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,eAAe,CAUlD,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CylinderShape = exports.COMPONENT_ID = void 0;
4
+ const CylinderShape_1 = require("./pb/CylinderShape");
5
+ exports.COMPONENT_ID = 17;
6
+ exports.CylinderShape = {
7
+ serialize(value, builder) {
8
+ const writer = CylinderShape_1.PBCylinderShape.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return CylinderShape_1.PBCylinderShape.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=CylinderShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CylinderShape.js","sourceRoot":"","sources":["../../../src/components/generated/CylinderShape.ts"],"names":[],"mappings":";;;AAEA,sDAAoD;AAEvC,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,aAAa,GAA6B;IACrD,SAAS,CAAC,KAAsB,EAAE,OAAmB;QACnD,MAAM,MAAM,GAAG,+BAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC5C,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,+BAAe,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBPlaneShape } from './pb/PlaneShape';
3
+ export declare const COMPONENT_ID = 14;
4
+ export declare const PlaneShape: EcsType<PBPlaneShape>;
5
+ //# sourceMappingURL=PlaneShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaneShape.d.ts","sourceRoot":"","sources":["../../../src/components/generated/PlaneShape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,YAAY,CAU5C,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlaneShape = exports.COMPONENT_ID = void 0;
4
+ const PlaneShape_1 = require("./pb/PlaneShape");
5
+ exports.COMPONENT_ID = 14;
6
+ exports.PlaneShape = {
7
+ serialize(value, builder) {
8
+ const writer = PlaneShape_1.PBPlaneShape.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return PlaneShape_1.PBPlaneShape.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=PlaneShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaneShape.js","sourceRoot":"","sources":["../../../src/components/generated/PlaneShape.ts"],"names":[],"mappings":";;;AAEA,gDAA8C;AAEjC,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,UAAU,GAA0B;IAC/C,SAAS,CAAC,KAAmB,EAAE,OAAmB;QAChD,MAAM,MAAM,GAAG,yBAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACzC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,yBAAY,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7C,CAAC;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { EcsType } from '../../built-in-types/EcsType';
2
+ import { PBSphereShape } from './pb/SphereShape';
3
+ export declare const COMPONENT_ID = 15;
4
+ export declare const SphereShape: EcsType<PBSphereShape>;
5
+ //# sourceMappingURL=SphereShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SphereShape.d.ts","sourceRoot":"","sources":["../../../src/components/generated/SphereShape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,YAAY,KAAK,CAAA;AAE9B,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,aAAa,CAU9C,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SphereShape = exports.COMPONENT_ID = void 0;
4
+ const SphereShape_1 = require("./pb/SphereShape");
5
+ exports.COMPONENT_ID = 15;
6
+ exports.SphereShape = {
7
+ serialize(value, builder) {
8
+ const writer = SphereShape_1.PBSphereShape.encode(value);
9
+ const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
+ builder.writeBuffer(buffer);
11
+ },
12
+ deserialize(reader) {
13
+ const buf = reader.readBuffer();
14
+ return SphereShape_1.PBSphereShape.decode(buf, buf.length);
15
+ }
16
+ };
17
+ //# sourceMappingURL=SphereShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SphereShape.js","sourceRoot":"","sources":["../../../src/components/generated/SphereShape.ts"],"names":[],"mappings":";;;AAEA,kDAAgD;AAEnC,QAAA,YAAY,GAAG,EAAE,CAAA;AAEjB,QAAA,WAAW,GAA2B;IACjD,SAAS,CAAC,KAAoB,EAAE,OAAmB;QACjD,MAAM,MAAM,GAAG,2BAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC1C,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;QAC7D,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7B,CAAC;IACD,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAC/B,OAAO,2BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC9C,CAAC;CACF,CAAA"}
@@ -1,5 +1,11 @@
1
- import { Engine } from '../../engine';
2
- export declare function defineProtocolBufferComponents({ defineComponent }: Pick<Engine, 'defineComponent'>): {
1
+ import type { IEngine } from '../../engine/types';
2
+ export declare function defineProtocolBufferComponents({ defineComponent }: Pick<IEngine, 'defineComponent'>): {
3
+ AudioSource: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/AudioSource").PBAudioSource>>;
4
+ AudioStream: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/AudioStream").PBAudioStream>>;
3
5
  BoxShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/BoxShape").PBBoxShape>>;
6
+ ConeShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/ConeShape").PBConeShape>>;
7
+ CylinderShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/CylinderShape").PBCylinderShape>>;
8
+ PlaneShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/PlaneShape").PBPlaneShape>>;
9
+ SphereShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/SphereShape").PBSphereShape>>;
4
10
  };
5
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/generated/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,wBAAgB,8BAA8B,CAAC,EAC7C,eAAe,EAChB,EAAE,IAAI,CAAC,MAAM,EAAE,iBAAiB,CAAC;;EAIjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/generated/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,wBAAgB,8BAA8B,CAAC,EAC7C,eAAe,EAChB,EAAE,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC;;;;;;;;EAsBlC"}
@@ -24,10 +24,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.defineProtocolBufferComponents = void 0;
27
+ const AudioSource = __importStar(require("./AudioSource"));
28
+ const AudioStream = __importStar(require("./AudioStream"));
27
29
  const BoxShape = __importStar(require("./BoxShape"));
30
+ const ConeShape = __importStar(require("./ConeShape"));
31
+ const CylinderShape = __importStar(require("./CylinderShape"));
32
+ const PlaneShape = __importStar(require("./PlaneShape"));
33
+ const SphereShape = __importStar(require("./SphereShape"));
28
34
  function defineProtocolBufferComponents({ defineComponent }) {
29
35
  return {
30
- BoxShape: defineComponent(BoxShape.COMPONENT_ID, BoxShape.BoxShape)
36
+ AudioSource: defineComponent(AudioSource.COMPONENT_ID, AudioSource.AudioSource),
37
+ AudioStream: defineComponent(AudioStream.COMPONENT_ID, AudioStream.AudioStream),
38
+ BoxShape: defineComponent(BoxShape.COMPONENT_ID, BoxShape.BoxShape),
39
+ ConeShape: defineComponent(ConeShape.COMPONENT_ID, ConeShape.ConeShape),
40
+ CylinderShape: defineComponent(CylinderShape.COMPONENT_ID, CylinderShape.CylinderShape),
41
+ PlaneShape: defineComponent(PlaneShape.COMPONENT_ID, PlaneShape.PlaneShape),
42
+ SphereShape: defineComponent(SphereShape.COMPONENT_ID, SphereShape.SphereShape)
31
43
  };
32
44
  }
33
45
  exports.defineProtocolBufferComponents = defineProtocolBufferComponents;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsC;AAGtC,SAAgB,8BAA8B,CAAC,EAC7C,eAAe,EACiB;IAChC,OAAO;QACL,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC;KACpE,CAAA;AACH,CAAC;AAND,wEAMC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA4C;AAC5C,2DAA4C;AAC5C,qDAAsC;AACtC,uDAAwC;AACxC,+DAAgD;AAChD,yDAA0C;AAC1C,2DAA4C;AAG5C,SAAgB,8BAA8B,CAAC,EAC7C,eAAe,EACkB;IACjC,OAAO;QACL,WAAW,EAAE,eAAe,CAC1B,WAAW,CAAC,YAAY,EACxB,WAAW,CAAC,WAAW,CACxB;QACD,WAAW,EAAE,eAAe,CAC1B,WAAW,CAAC,YAAY,EACxB,WAAW,CAAC,WAAW,CACxB;QACD,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC;QACnE,SAAS,EAAE,eAAe,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC;QACvE,aAAa,EAAE,eAAe,CAC5B,aAAa,CAAC,YAAY,EAC1B,aAAa,CAAC,aAAa,CAC5B;QACD,UAAU,EAAE,eAAe,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC;QAC3E,WAAW,EAAE,eAAe,CAC1B,WAAW,CAAC,YAAY,EACxB,WAAW,CAAC,WAAW,CACxB;KACF,CAAA;AACH,CAAC;AAxBD,wEAwBC"}
@@ -0,0 +1,15 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.ecs";
3
+ export interface PBAudioSource {
4
+ playing: boolean;
5
+ volume: number;
6
+ loop: boolean;
7
+ pitch: number;
8
+ playedAtTimestamp: number;
9
+ audioClipUrl: string;
10
+ }
11
+ export declare const PBAudioSource: {
12
+ encode(message: PBAudioSource, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PBAudioSource;
14
+ };
15
+ //# sourceMappingURL=AudioSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioSource.d.ts","sourceRoot":"","sources":["../../../../src/components/generated/pb/AudioSource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAaD,eAAO,MAAM,aAAa;oBAEb,aAAa,WACd,IAAI,MAAM,GACjB,IAAI,MAAM;kBAsBC,IAAI,MAAM,GAAG,UAAU,gCAAoB,aAAa;CAgCvE,CAAC"}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PBAudioSource = exports.protobufPackage = void 0;
27
+ /* eslint-disable */
28
+ const _m0 = __importStar(require("protobufjs/minimal"));
29
+ exports.protobufPackage = "decentraland.ecs";
30
+ function createBasePBAudioSource() {
31
+ return {
32
+ playing: false,
33
+ volume: 0,
34
+ loop: false,
35
+ pitch: 0,
36
+ playedAtTimestamp: 0,
37
+ audioClipUrl: "",
38
+ };
39
+ }
40
+ exports.PBAudioSource = {
41
+ encode(message, writer = _m0.Writer.create()) {
42
+ if (message.playing === true) {
43
+ writer.uint32(8).bool(message.playing);
44
+ }
45
+ if (message.volume !== 0) {
46
+ writer.uint32(21).float(message.volume);
47
+ }
48
+ if (message.loop === true) {
49
+ writer.uint32(24).bool(message.loop);
50
+ }
51
+ if (message.pitch !== 0) {
52
+ writer.uint32(37).float(message.pitch);
53
+ }
54
+ if (message.playedAtTimestamp !== 0) {
55
+ writer.uint32(40).int32(message.playedAtTimestamp);
56
+ }
57
+ if (message.audioClipUrl !== "") {
58
+ writer.uint32(50).string(message.audioClipUrl);
59
+ }
60
+ return writer;
61
+ },
62
+ decode(input, length) {
63
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
64
+ let end = length === undefined ? reader.len : reader.pos + length;
65
+ const message = createBasePBAudioSource();
66
+ while (reader.pos < end) {
67
+ const tag = reader.uint32();
68
+ switch (tag >>> 3) {
69
+ case 1:
70
+ message.playing = reader.bool();
71
+ break;
72
+ case 2:
73
+ message.volume = reader.float();
74
+ break;
75
+ case 3:
76
+ message.loop = reader.bool();
77
+ break;
78
+ case 4:
79
+ message.pitch = reader.float();
80
+ break;
81
+ case 5:
82
+ message.playedAtTimestamp = reader.int32();
83
+ break;
84
+ case 6:
85
+ message.audioClipUrl = reader.string();
86
+ break;
87
+ default:
88
+ reader.skipType(tag & 7);
89
+ break;
90
+ }
91
+ }
92
+ return message;
93
+ },
94
+ };
95
+ //# sourceMappingURL=AudioSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioSource.js","sourceRoot":"","sources":["../../../../src/components/generated/pb/AudioSource.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.ecs";
3
+ export interface PBAudioStream {
4
+ playing: boolean;
5
+ volume: number;
6
+ url: string;
7
+ }
8
+ export declare const PBAudioStream: {
9
+ encode(message: PBAudioStream, writer?: _m0.Writer): _m0.Writer;
10
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PBAudioStream;
11
+ };
12
+ //# sourceMappingURL=AudioStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioStream.d.ts","sourceRoot":"","sources":["../../../../src/components/generated/pb/AudioStream.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAMD,eAAO,MAAM,aAAa;oBAEb,aAAa,WACd,IAAI,MAAM,GACjB,IAAI,MAAM;kBAaC,IAAI,MAAM,GAAG,UAAU,gCAAoB,aAAa;CAuBvE,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PBAudioStream = exports.protobufPackage = void 0;
27
+ /* eslint-disable */
28
+ const _m0 = __importStar(require("protobufjs/minimal"));
29
+ exports.protobufPackage = "decentraland.ecs";
30
+ function createBasePBAudioStream() {
31
+ return { playing: false, volume: 0, url: "" };
32
+ }
33
+ exports.PBAudioStream = {
34
+ encode(message, writer = _m0.Writer.create()) {
35
+ if (message.playing === true) {
36
+ writer.uint32(8).bool(message.playing);
37
+ }
38
+ if (message.volume !== 0) {
39
+ writer.uint32(21).float(message.volume);
40
+ }
41
+ if (message.url !== "") {
42
+ writer.uint32(26).string(message.url);
43
+ }
44
+ return writer;
45
+ },
46
+ decode(input, length) {
47
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
48
+ let end = length === undefined ? reader.len : reader.pos + length;
49
+ const message = createBasePBAudioStream();
50
+ while (reader.pos < end) {
51
+ const tag = reader.uint32();
52
+ switch (tag >>> 3) {
53
+ case 1:
54
+ message.playing = reader.bool();
55
+ break;
56
+ case 2:
57
+ message.volume = reader.float();
58
+ break;
59
+ case 3:
60
+ message.url = reader.string();
61
+ break;
62
+ default:
63
+ reader.skipType(tag & 7);
64
+ break;
65
+ }
66
+ }
67
+ return message;
68
+ },
69
+ };
70
+ //# sourceMappingURL=AudioStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioStream.js","sourceRoot":"","sources":["../../../../src/components/generated/pb/AudioStream.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,wDAA0C;AAE7B,QAAA,eAAe,GAAG,kBAAkB,CAAC;AAQlD,SAAS,uBAAuB;IAC9B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AAChD,CAAC;AAEY,QAAA,aAAa,GAAG;IAC3B,MAAM,CACJ,OAAsB,EACtB,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAExC,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE;YAC5B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACxC;QACD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;SACzC;QACD,IAAI,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE;YACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACvC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;YACvB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,QAAQ,GAAG,KAAK,CAAC,EAAE;gBACjB,KAAK,CAAC;oBACJ,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;oBAChC,MAAM;gBACR,KAAK,CAAC;oBACJ,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;oBAChC,MAAM;gBACR,KAAK,CAAC;oBACJ,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBAC9B,MAAM;gBACR;oBACE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACT;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.ecs";
3
+ export interface PBConeShape {
4
+ withCollisions: boolean;
5
+ isPointerBlocker: boolean;
6
+ visible: boolean;
7
+ radiusTop: number;
8
+ radiusBottom: number;
9
+ }
10
+ export declare const PBConeShape: {
11
+ encode(message: PBConeShape, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PBConeShape;
13
+ };
14
+ //# sourceMappingURL=ConeShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConeShape.d.ts","sourceRoot":"","sources":["../../../../src/components/generated/pb/ConeShape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAYD,eAAO,MAAM,WAAW;oBAEX,WAAW,WACZ,IAAI,MAAM,GACjB,IAAI,MAAM;kBAmBC,IAAI,MAAM,GAAG,UAAU,gCAAoB,WAAW;CA6BrE,CAAC"}