@dcl/ecs 1.0.0-20220525130536.commit-7f8e347 → 1.0.0-20220601102612.commit-8b31ac4

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 (185) hide show
  1. package/dist/Math.d.ts +2 -0
  2. package/dist/Math.js +2 -0
  3. package/dist/built-in-types/ArrayType.d.ts +3 -1
  4. package/dist/built-in-types/ArrayType.js +4 -6
  5. package/dist/built-in-types/EcsType.d.ts +3 -1
  6. package/dist/built-in-types/EcsType.js +1 -3
  7. package/dist/built-in-types/MapType.d.ts +9 -1
  8. package/dist/built-in-types/MapType.js +4 -6
  9. package/dist/built-in-types/Optional.d.ts +3 -1
  10. package/dist/built-in-types/Optional.js +4 -6
  11. package/dist/built-in-types/basic/Boolean.d.ts +3 -1
  12. package/dist/built-in-types/basic/Boolean.js +4 -5
  13. package/dist/built-in-types/basic/Enum.d.ts +3 -1
  14. package/dist/built-in-types/basic/Enum.js +4 -6
  15. package/dist/built-in-types/basic/Float.d.ts +6 -1
  16. package/dist/built-in-types/basic/Float.js +8 -6
  17. package/dist/built-in-types/basic/Integer.d.ts +12 -1
  18. package/dist/built-in-types/basic/Integer.js +16 -16
  19. package/dist/built-in-types/basic/String.d.ts +6 -1
  20. package/dist/built-in-types/basic/String.js +8 -6
  21. package/dist/built-in-types/index.d.ts +0 -1
  22. package/dist/built-in-types/index.js +9 -26
  23. package/dist/built-in-types/typing.d.ts +0 -1
  24. package/dist/built-in-types/typing.js +1 -3
  25. package/dist/components/generated/AudioSource.d.ts +1 -5
  26. package/dist/components/generated/AudioSource.js +11 -9
  27. package/dist/components/generated/AudioStream.d.ts +1 -5
  28. package/dist/components/generated/AudioStream.js +11 -9
  29. package/dist/components/generated/BoxShape.d.ts +1 -5
  30. package/dist/components/generated/BoxShape.js +11 -9
  31. package/dist/components/generated/CylinderShape.d.ts +1 -5
  32. package/dist/components/generated/CylinderShape.js +11 -9
  33. package/dist/components/generated/PlaneShape.d.ts +1 -5
  34. package/dist/components/generated/PlaneShape.js +11 -9
  35. package/dist/components/generated/SphereShape.d.ts +1 -5
  36. package/dist/components/generated/SphereShape.js +11 -9
  37. package/dist/components/generated/index.d.ts +6 -7
  38. package/dist/components/generated/index.js +7 -35
  39. package/dist/components/generated/pb/AudioSource.d.ts +0 -7
  40. package/dist/components/generated/pb/AudioSource.js +9 -30
  41. package/dist/components/generated/pb/AudioStream.d.ts +0 -7
  42. package/dist/components/generated/pb/AudioStream.js +9 -30
  43. package/dist/components/generated/pb/BoxShape.d.ts +0 -7
  44. package/dist/components/generated/pb/BoxShape.js +9 -30
  45. package/dist/components/generated/pb/CylinderShape.d.ts +0 -7
  46. package/dist/components/generated/pb/CylinderShape.js +9 -30
  47. package/dist/components/generated/pb/PlaneShape.d.ts +0 -7
  48. package/dist/components/generated/pb/PlaneShape.js +9 -30
  49. package/dist/components/generated/pb/SphereShape.d.ts +0 -7
  50. package/dist/components/generated/pb/SphereShape.js +9 -30
  51. package/dist/components/index.d.ts +11 -13
  52. package/dist/components/index.js +4 -23
  53. package/dist/components/legacy/Transform.d.ts +6 -5
  54. package/dist/components/legacy/Transform.js +8 -12
  55. package/dist/components/legacy/index.d.ts +8 -13
  56. package/dist/components/legacy/index.js +6 -11
  57. package/dist/components/legacy/types.d.ts +0 -1
  58. package/dist/components/legacy/types.js +2 -6
  59. package/dist/components/types.d.ts +0 -1
  60. package/dist/components/types.js +2 -6
  61. package/dist/engine/component.d.ts +11 -3
  62. package/dist/engine/component.js +6 -11
  63. package/dist/engine/entity-utils.d.ts +0 -1
  64. package/dist/engine/entity-utils.js +3 -7
  65. package/dist/engine/entity.d.ts +3 -1
  66. package/dist/engine/entity.js +4 -9
  67. package/dist/engine/index.d.ts +5 -22
  68. package/dist/engine/index.js +10 -14
  69. package/dist/engine/types.d.ts +13 -7
  70. package/dist/engine/types.js +1 -3
  71. package/dist/engine/utils.d.ts +2 -2
  72. package/dist/engine/utils.js +2 -8
  73. package/dist/index.d.ts +2 -1
  74. package/dist/index.js +3 -18
  75. package/dist/{components/definitions → proto-definitions}/AudioSource.proto +0 -0
  76. package/dist/{components/definitions → proto-definitions}/AudioStream.proto +0 -0
  77. package/dist/{components/definitions → proto-definitions}/BoxShape.proto +0 -0
  78. package/dist/{components/definitions → proto-definitions}/CylinderShape.proto +0 -0
  79. package/dist/{components/definitions → proto-definitions}/PlaneShape.proto +0 -0
  80. package/dist/{components/definitions → proto-definitions}/README.md +0 -0
  81. package/dist/{components/definitions → proto-definitions}/SphereShape.proto +0 -0
  82. package/dist/{components/definitions → proto-definitions}/Transform.md +0 -0
  83. package/dist/serialization/ByteBuffer/index.d.ts +3 -1
  84. package/dist/serialization/ByteBuffer/index.js +1 -6
  85. package/dist/serialization/crdt/componentOperation.d.ts +0 -1
  86. package/dist/serialization/crdt/componentOperation.js +7 -14
  87. package/dist/serialization/wireMessage.d.ts +0 -1
  88. package/dist/serialization/wireMessage.js +3 -7
  89. package/dist/systems/crdt/index.d.ts +0 -1
  90. package/dist/systems/crdt/index.js +22 -30
  91. package/dist/systems/crdt/transport.d.ts +0 -1
  92. package/dist/systems/crdt/transport.js +1 -6
  93. package/dist/systems/crdt/types.d.ts +0 -1
  94. package/dist/systems/crdt/types.js +1 -3
  95. package/dist/systems/crdt/utils.d.ts +0 -1
  96. package/dist/systems/crdt/utils.js +3 -7
  97. package/package.json +5 -4
  98. package/dist/built-in-types/ArrayType.d.ts.map +0 -1
  99. package/dist/built-in-types/ArrayType.js.map +0 -1
  100. package/dist/built-in-types/EcsType.d.ts.map +0 -1
  101. package/dist/built-in-types/EcsType.js.map +0 -1
  102. package/dist/built-in-types/MapType.d.ts.map +0 -1
  103. package/dist/built-in-types/MapType.js.map +0 -1
  104. package/dist/built-in-types/Optional.d.ts.map +0 -1
  105. package/dist/built-in-types/Optional.js.map +0 -1
  106. package/dist/built-in-types/basic/Boolean.d.ts.map +0 -1
  107. package/dist/built-in-types/basic/Boolean.js.map +0 -1
  108. package/dist/built-in-types/basic/Enum.d.ts.map +0 -1
  109. package/dist/built-in-types/basic/Enum.js.map +0 -1
  110. package/dist/built-in-types/basic/Float.d.ts.map +0 -1
  111. package/dist/built-in-types/basic/Float.js.map +0 -1
  112. package/dist/built-in-types/basic/Integer.d.ts.map +0 -1
  113. package/dist/built-in-types/basic/Integer.js.map +0 -1
  114. package/dist/built-in-types/basic/String.d.ts.map +0 -1
  115. package/dist/built-in-types/basic/String.js.map +0 -1
  116. package/dist/built-in-types/index.d.ts.map +0 -1
  117. package/dist/built-in-types/index.js.map +0 -1
  118. package/dist/built-in-types/typing.d.ts.map +0 -1
  119. package/dist/built-in-types/typing.js.map +0 -1
  120. package/dist/components/generated/AudioSource.d.ts.map +0 -1
  121. package/dist/components/generated/AudioSource.js.map +0 -1
  122. package/dist/components/generated/AudioStream.d.ts.map +0 -1
  123. package/dist/components/generated/AudioStream.js.map +0 -1
  124. package/dist/components/generated/BoxShape.d.ts.map +0 -1
  125. package/dist/components/generated/BoxShape.js.map +0 -1
  126. package/dist/components/generated/CylinderShape.d.ts.map +0 -1
  127. package/dist/components/generated/CylinderShape.js.map +0 -1
  128. package/dist/components/generated/PlaneShape.d.ts.map +0 -1
  129. package/dist/components/generated/PlaneShape.js.map +0 -1
  130. package/dist/components/generated/SphereShape.d.ts.map +0 -1
  131. package/dist/components/generated/SphereShape.js.map +0 -1
  132. package/dist/components/generated/index.d.ts.map +0 -1
  133. package/dist/components/generated/index.js.map +0 -1
  134. package/dist/components/generated/pb/AudioSource.d.ts.map +0 -1
  135. package/dist/components/generated/pb/AudioSource.js.map +0 -1
  136. package/dist/components/generated/pb/AudioStream.d.ts.map +0 -1
  137. package/dist/components/generated/pb/AudioStream.js.map +0 -1
  138. package/dist/components/generated/pb/BoxShape.d.ts.map +0 -1
  139. package/dist/components/generated/pb/BoxShape.js.map +0 -1
  140. package/dist/components/generated/pb/CylinderShape.d.ts.map +0 -1
  141. package/dist/components/generated/pb/CylinderShape.js.map +0 -1
  142. package/dist/components/generated/pb/PlaneShape.d.ts.map +0 -1
  143. package/dist/components/generated/pb/PlaneShape.js.map +0 -1
  144. package/dist/components/generated/pb/SphereShape.d.ts.map +0 -1
  145. package/dist/components/generated/pb/SphereShape.js.map +0 -1
  146. package/dist/components/index.d.ts.map +0 -1
  147. package/dist/components/index.js.map +0 -1
  148. package/dist/components/legacy/Transform.d.ts.map +0 -1
  149. package/dist/components/legacy/Transform.js.map +0 -1
  150. package/dist/components/legacy/index.d.ts.map +0 -1
  151. package/dist/components/legacy/index.js.map +0 -1
  152. package/dist/components/legacy/types.d.ts.map +0 -1
  153. package/dist/components/legacy/types.js.map +0 -1
  154. package/dist/components/types.d.ts.map +0 -1
  155. package/dist/components/types.js.map +0 -1
  156. package/dist/ecs.api.json +0 -204
  157. package/dist/engine/component.d.ts.map +0 -1
  158. package/dist/engine/component.js.map +0 -1
  159. package/dist/engine/entity-utils.d.ts.map +0 -1
  160. package/dist/engine/entity-utils.js.map +0 -1
  161. package/dist/engine/entity.d.ts.map +0 -1
  162. package/dist/engine/entity.js.map +0 -1
  163. package/dist/engine/index.d.ts.map +0 -1
  164. package/dist/engine/index.js.map +0 -1
  165. package/dist/engine/types.d.ts.map +0 -1
  166. package/dist/engine/types.js.map +0 -1
  167. package/dist/engine/utils.d.ts.map +0 -1
  168. package/dist/engine/utils.js.map +0 -1
  169. package/dist/index.d.ts.map +0 -1
  170. package/dist/index.js.map +0 -1
  171. package/dist/serialization/ByteBuffer/index.d.ts.map +0 -1
  172. package/dist/serialization/ByteBuffer/index.js.map +0 -1
  173. package/dist/serialization/crdt/componentOperation.d.ts.map +0 -1
  174. package/dist/serialization/crdt/componentOperation.js.map +0 -1
  175. package/dist/serialization/wireMessage.d.ts.map +0 -1
  176. package/dist/serialization/wireMessage.js.map +0 -1
  177. package/dist/systems/crdt/index.d.ts.map +0 -1
  178. package/dist/systems/crdt/index.js.map +0 -1
  179. package/dist/systems/crdt/transport.d.ts.map +0 -1
  180. package/dist/systems/crdt/transport.js.map +0 -1
  181. package/dist/systems/crdt/types.d.ts.map +0 -1
  182. package/dist/systems/crdt/types.js.map +0 -1
  183. package/dist/systems/crdt/utils.d.ts.map +0 -1
  184. package/dist/systems/crdt/utils.js.map +0 -1
  185. package/dist/tsdoc-metadata.json +0 -11
package/dist/Math.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { DEG2RAD, double, Epsilon, float, FloatArray, ISize, Nullable, Orientation, Quaternion, RAD2DEG, Space, ToGammaSpace, ToLinearSpace, Vector3, DeepReadonly } from '@dcl/ecs-math';
2
+ export { DEG2RAD, double, Epsilon, float, FloatArray, ISize, Nullable, Orientation, Quaternion, RAD2DEG, Space, ToGammaSpace, ToLinearSpace, Vector3, DeepReadonly };
package/dist/Math.js ADDED
@@ -0,0 +1,2 @@
1
+ import { DEG2RAD, Epsilon, Orientation, Quaternion, RAD2DEG, Space, ToGammaSpace, ToLinearSpace, Vector3 } from '@dcl/ecs-math';
2
+ export { DEG2RAD, Epsilon, Orientation, Quaternion, RAD2DEG, Space, ToGammaSpace, ToLinearSpace, Vector3 };
@@ -1,3 +1,5 @@
1
1
  import { EcsType } from './EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
3
- //# sourceMappingURL=ArrayType.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArrayType = void 0;
4
- function ArrayType(type) {
1
+ /**
2
+ * @public
3
+ */
4
+ export function ArrayType(type) {
5
5
  return {
6
6
  serialize(value, builder) {
7
7
  builder.writeUint32(value.length);
@@ -19,5 +19,3 @@ function ArrayType(type) {
19
19
  }
20
20
  };
21
21
  }
22
- exports.ArrayType = ArrayType;
23
- //# sourceMappingURL=ArrayType.js.map
@@ -1,6 +1,8 @@
1
1
  import { ByteBuffer } from '../serialization/ByteBuffer';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare type EcsType<T = any> = {
3
6
  serialize(value: T, builder: ByteBuffer): void;
4
7
  deserialize(reader: ByteBuffer): T;
5
8
  };
6
- //# sourceMappingURL=EcsType.d.ts.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=EcsType.js.map
1
+ export {};
@@ -1,10 +1,18 @@
1
1
  import { EcsType } from './EcsType';
2
2
  import { ToOptional } from './typing';
3
+ /**
4
+ * @public
5
+ */
3
6
  export interface Spec {
4
7
  [key: string]: EcsType;
5
8
  }
9
+ /**
10
+ * @public
11
+ */
6
12
  export declare type Result<T extends Spec> = ToOptional<{
7
13
  [K in keyof T]: T[K] extends EcsType ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? Result<T[K]> : never;
8
14
  }>;
15
+ /**
16
+ * @public
17
+ */
9
18
  export declare function MapType<T extends Spec>(spec: T): EcsType<Result<T>>;
10
- //# sourceMappingURL=MapType.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MapType = void 0;
4
- function MapType(spec) {
1
+ /**
2
+ * @public
3
+ */
4
+ export function MapType(spec) {
5
5
  return {
6
6
  serialize(value, builder) {
7
7
  for (const key in spec) {
@@ -20,5 +20,3 @@ function MapType(spec) {
20
20
  }
21
21
  };
22
22
  }
23
- exports.MapType = MapType;
24
- //# sourceMappingURL=MapType.js.map
@@ -1,3 +1,5 @@
1
1
  import { EcsType } from './EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare function Optional<T>(spec: EcsType<T>): EcsType<T | undefined>;
3
- //# sourceMappingURL=Optional.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Optional = void 0;
4
- function Optional(spec) {
1
+ /**
2
+ * @public
3
+ */
4
+ export function Optional(spec) {
5
5
  return {
6
6
  serialize(value, builder) {
7
7
  if (value) {
@@ -20,5 +20,3 @@ function Optional(spec) {
20
20
  }
21
21
  };
22
22
  }
23
- exports.Optional = Optional;
24
- //# sourceMappingURL=Optional.js.map
@@ -1,3 +1,5 @@
1
1
  import { EcsType } from '../EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare const Boolean: EcsType<boolean>;
3
- //# sourceMappingURL=Boolean.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Boolean = void 0;
4
- exports.Boolean = {
1
+ /**
2
+ * @public
3
+ */
4
+ export const Boolean = {
5
5
  serialize(value, builder) {
6
6
  builder.writeInt8(value ? 1 : 0);
7
7
  },
@@ -9,4 +9,3 @@ exports.Boolean = {
9
9
  return reader.readInt8() === 1;
10
10
  }
11
11
  };
12
- //# sourceMappingURL=Boolean.js.map
@@ -1,3 +1,5 @@
1
1
  import { EcsType } from '../EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare function Enum<T>(type: EcsType<any>): EcsType<T>;
3
- //# sourceMappingURL=Enum.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Enum = void 0;
4
- function Enum(type) {
1
+ /**
2
+ * @public
3
+ */
4
+ export function Enum(type) {
5
5
  return {
6
6
  serialize(value, builder) {
7
7
  type.serialize(value, builder);
@@ -11,5 +11,3 @@ function Enum(type) {
11
11
  }
12
12
  };
13
13
  }
14
- exports.Enum = Enum;
15
- //# sourceMappingURL=Enum.js.map
@@ -1,4 +1,9 @@
1
1
  import { EcsType } from '../EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare const Float32: EcsType<number>;
6
+ /**
7
+ * @public
8
+ */
3
9
  export declare const Float64: EcsType<number>;
4
- //# sourceMappingURL=Float.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Float64 = exports.Float32 = void 0;
4
- exports.Float32 = {
1
+ /**
2
+ * @public
3
+ */
4
+ export const Float32 = {
5
5
  serialize(value, builder) {
6
6
  builder.writeFloat32(value);
7
7
  },
@@ -9,7 +9,10 @@ exports.Float32 = {
9
9
  return reader.readFloat32();
10
10
  }
11
11
  };
12
- exports.Float64 = {
12
+ /**
13
+ * @public
14
+ */
15
+ export const Float64 = {
13
16
  serialize(value, builder) {
14
17
  builder.writeFloat64(value);
15
18
  },
@@ -17,4 +20,3 @@ exports.Float64 = {
17
20
  return reader.readFloat64();
18
21
  }
19
22
  };
20
- //# sourceMappingURL=Float.js.map
@@ -1,6 +1,17 @@
1
1
  import { EcsType } from '../EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare const Int64: EcsType<number>;
6
+ /**
7
+ * @public
8
+ */
3
9
  export declare const Int32: EcsType<number>;
10
+ /**
11
+ * @public
12
+ */
4
13
  export declare const Int16: EcsType<number>;
14
+ /**
15
+ * @public
16
+ */
5
17
  export declare const Int8: EcsType<number>;
6
- //# sourceMappingURL=Integer.d.ts.map
@@ -1,15 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Int8 = exports.Int16 = exports.Int32 = exports.Int64 = void 0;
4
- // export const BigInt64: EcsType<bigint> = {
5
- // serialize(value: bigint, builder: ByteBuffer): void {
6
- // builder.writeInt64(value)
7
- // },
8
- // deserialize(reader: ByteBuffer): bigint {
9
- // return reader.readInt64()
10
- // }
11
- // }
12
- exports.Int64 = {
1
+ /**
2
+ * @public
3
+ */
4
+ export const Int64 = {
13
5
  serialize(value, builder) {
14
6
  builder.writeInt64(BigInt(value));
15
7
  },
@@ -17,7 +9,10 @@ exports.Int64 = {
17
9
  return Number(reader.readInt64());
18
10
  }
19
11
  };
20
- exports.Int32 = {
12
+ /**
13
+ * @public
14
+ */
15
+ export const Int32 = {
21
16
  serialize(value, builder) {
22
17
  builder.writeInt32(value);
23
18
  },
@@ -25,7 +20,10 @@ exports.Int32 = {
25
20
  return reader.readInt32();
26
21
  }
27
22
  };
28
- exports.Int16 = {
23
+ /**
24
+ * @public
25
+ */
26
+ export const Int16 = {
29
27
  serialize(value, builder) {
30
28
  builder.writeInt16(value);
31
29
  },
@@ -33,7 +31,10 @@ exports.Int16 = {
33
31
  return reader.readInt16();
34
32
  }
35
33
  };
36
- exports.Int8 = {
34
+ /**
35
+ * @public
36
+ */
37
+ export const Int8 = {
37
38
  serialize(value, builder) {
38
39
  builder.writeInt8(value);
39
40
  },
@@ -41,4 +42,3 @@ exports.Int8 = {
41
42
  return reader.readInt8();
42
43
  }
43
44
  };
44
- //# sourceMappingURL=Integer.js.map
@@ -1,4 +1,9 @@
1
1
  import { EcsType } from '../EcsType';
2
+ /**
3
+ * @public
4
+ */
2
5
  export declare const FlatString: EcsType<string>;
6
+ /**
7
+ * @public
8
+ */
3
9
  export declare const String: EcsType<string>;
4
- //# sourceMappingURL=String.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.String = exports.FlatString = void 0;
4
- exports.FlatString = {
1
+ /**
2
+ * @public
3
+ */
4
+ export const FlatString = {
5
5
  serialize(value, builder) {
6
6
  builder.writeBuffer(new TextEncoder().encode(value));
7
7
  },
@@ -9,5 +9,7 @@ exports.FlatString = {
9
9
  return new TextDecoder().decode(reader.readBuffer());
10
10
  }
11
11
  };
12
- exports.String = exports.FlatString;
13
- //# sourceMappingURL=String.js.map
12
+ /**
13
+ * @public
14
+ */
15
+ export const String = FlatString;
@@ -7,4 +7,3 @@ export * from './basic/Float';
7
7
  export * from './basic/String';
8
8
  export * from './basic/Enum';
9
9
  export * from './basic/Boolean';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1,26 +1,9 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./EcsType"), exports);
18
- __exportStar(require("./MapType"), exports);
19
- __exportStar(require("./ArrayType"), exports);
20
- __exportStar(require("./Optional"), exports);
21
- __exportStar(require("./basic/Integer"), exports);
22
- __exportStar(require("./basic/Float"), exports);
23
- __exportStar(require("./basic/String"), exports);
24
- __exportStar(require("./basic/Enum"), exports);
25
- __exportStar(require("./basic/Boolean"), exports);
26
- //# sourceMappingURL=index.js.map
1
+ export * from './EcsType';
2
+ export * from './MapType';
3
+ export * from './ArrayType';
4
+ export * from './Optional';
5
+ export * from './basic/Integer';
6
+ export * from './basic/Float';
7
+ export * from './basic/String';
8
+ export * from './basic/Enum';
9
+ export * from './basic/Boolean';
@@ -14,4 +14,3 @@ declare type OnlyNonUndefinedTypes<T> = {
14
14
  };
15
15
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
16
16
  export {};
17
- //# sourceMappingURL=typing.d.ts.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=typing.js.map
1
+ export {};
@@ -1,5 +1 @@
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
1
+ export {};
@@ -1,17 +1,19 @@
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 = {
1
+ import { PBAudioSource } from './pb/AudioSource';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 20;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const AudioSource = {
7
10
  serialize(value, builder) {
8
- const writer = AudioSource_1.PBAudioSource.encode(value);
11
+ const writer = PBAudioSource.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return AudioSource_1.PBAudioSource.decode(buf, buf.length);
17
+ return PBAudioSource.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=AudioSource.js.map
@@ -1,5 +1 @@
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
1
+ export {};
@@ -1,17 +1,19 @@
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 = {
1
+ import { PBAudioStream } from './pb/AudioStream';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 21;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const AudioStream = {
7
10
  serialize(value, builder) {
8
- const writer = AudioStream_1.PBAudioStream.encode(value);
11
+ const writer = PBAudioStream.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return AudioStream_1.PBAudioStream.decode(buf, buf.length);
17
+ return PBAudioStream.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=AudioStream.js.map
@@ -1,5 +1 @@
1
- import { EcsType } from '../../built-in-types/EcsType';
2
- import { PBBoxShape } from './pb/BoxShape';
3
- export declare const COMPONENT_ID = 13;
4
- export declare const BoxShape: EcsType<PBBoxShape>;
5
- //# sourceMappingURL=BoxShape.d.ts.map
1
+ export {};
@@ -1,17 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoxShape = exports.COMPONENT_ID = void 0;
4
- const BoxShape_1 = require("./pb/BoxShape");
5
- exports.COMPONENT_ID = 13;
6
- exports.BoxShape = {
1
+ import { PBBoxShape } from './pb/BoxShape';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 13;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const BoxShape = {
7
10
  serialize(value, builder) {
8
- const writer = BoxShape_1.PBBoxShape.encode(value);
11
+ const writer = PBBoxShape.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return BoxShape_1.PBBoxShape.decode(buf, buf.length);
17
+ return PBBoxShape.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=BoxShape.js.map
@@ -1,5 +1 @@
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
1
+ export {};
@@ -1,17 +1,19 @@
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 = {
1
+ import { PBCylinderShape } from './pb/CylinderShape';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 17;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const CylinderShape = {
7
10
  serialize(value, builder) {
8
- const writer = CylinderShape_1.PBCylinderShape.encode(value);
11
+ const writer = PBCylinderShape.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return CylinderShape_1.PBCylinderShape.decode(buf, buf.length);
17
+ return PBCylinderShape.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=CylinderShape.js.map
@@ -1,5 +1 @@
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
1
+ export {};
@@ -1,17 +1,19 @@
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 = {
1
+ import { PBPlaneShape } from './pb/PlaneShape';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 14;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const PlaneShape = {
7
10
  serialize(value, builder) {
8
- const writer = PlaneShape_1.PBPlaneShape.encode(value);
11
+ const writer = PBPlaneShape.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return PlaneShape_1.PBPlaneShape.decode(buf, buf.length);
17
+ return PBPlaneShape.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=PlaneShape.js.map
@@ -1,5 +1 @@
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
1
+ export {};
@@ -1,17 +1,19 @@
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 = {
1
+ import { PBSphereShape } from './pb/SphereShape';
2
+ /**
3
+ * @internal
4
+ */
5
+ export const COMPONENT_ID = 15;
6
+ /**
7
+ * @internal
8
+ */
9
+ export const SphereShape = {
7
10
  serialize(value, builder) {
8
- const writer = SphereShape_1.PBSphereShape.encode(value);
11
+ const writer = PBSphereShape.encode(value);
9
12
  const buffer = new Uint8Array(writer.finish(), 0, writer.len);
10
13
  builder.writeBuffer(buffer);
11
14
  },
12
15
  deserialize(reader) {
13
16
  const buf = reader.readBuffer();
14
- return SphereShape_1.PBSphereShape.decode(buf, buf.length);
17
+ return PBSphereShape.decode(buf, buf.length);
15
18
  }
16
19
  };
17
- //# sourceMappingURL=SphereShape.js.map
@@ -1,10 +1,9 @@
1
1
  import type { IEngine } from '../../engine/types';
2
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>>;
5
- BoxShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/BoxShape").PBBoxShape>>;
6
- CylinderShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/CylinderShape").PBCylinderShape>>;
7
- PlaneShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/PlaneShape").PBPlaneShape>>;
8
- SphereShape: import("../../engine/component").ComponentDefinition<import("../../built-in-types").EcsType<import("./pb/SphereShape").PBSphereShape>>;
3
+ AudioSource: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/AudioSource").PBAudioSource>>;
4
+ AudioStream: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/AudioStream").PBAudioStream>>;
5
+ BoxShape: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/BoxShape").PBBoxShape>>;
6
+ CylinderShape: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/CylinderShape").PBCylinderShape>>;
7
+ PlaneShape: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/PlaneShape").PBPlaneShape>>;
8
+ SphereShape: import("../..").ComponentDefinition<import("../..").EcsType<import("./pb/SphereShape").PBSphereShape>>;
9
9
  };
10
- //# sourceMappingURL=index.d.ts.map