@etothepii/satisfactory-file-parser 1.0.3 → 2.0.1

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 (590) hide show
  1. package/.github/workflows/tests.yml +24 -0
  2. package/CHANGELOG.md +88 -0
  3. package/LICENCE.md +1 -1
  4. package/README.md +6 -74
  5. package/build/index.d.ts +31 -4
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +31 -4
  8. package/build/index.js.map +1 -1
  9. package/build/parser/byte/byte-reader.class.d.ts +1 -1
  10. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  11. package/build/parser/byte/byte-reader.class.js +4 -4
  12. package/build/parser/byte/byte-reader.class.js.map +1 -1
  13. package/build/parser/parser.d.ts +1 -1
  14. package/build/parser/parser.d.ts.map +1 -1
  15. package/build/parser/parser.js +1 -1
  16. package/build/parser/parser.js.map +1 -1
  17. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  18. package/build/parser/satisfactory/save/level.class.js +3 -1
  19. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  20. package/build/parser/satisfactory/save/object-references-list.d.ts +2 -2
  21. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
  22. package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
  23. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +3 -3
  24. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  25. package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
  26. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  27. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -6
  28. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  29. package/build/parser/satisfactory/types/property/PropertiesList.js +16 -19
  30. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  31. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +21 -0
  32. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
  33. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +23 -0
  34. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
  35. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
  36. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
  37. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
  38. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
  39. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
  40. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
  41. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +25 -0
  42. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
  43. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +25 -0
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +25 -0
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +25 -0
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +25 -0
  58. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
  59. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
  60. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
  61. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +25 -0
  62. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
  63. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
  64. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
  65. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +25 -0
  66. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
  67. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
  68. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
  69. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +25 -0
  70. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
  71. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
  72. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
  73. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +25 -0
  74. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
  75. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
  76. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
  77. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +25 -0
  78. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
  79. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
  80. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
  81. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +72 -0
  82. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
  83. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
  84. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
  85. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +25 -0
  86. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
  87. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +3 -3
  88. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  89. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +3 -3
  90. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  91. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +3 -3
  92. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  93. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +3 -3
  94. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  95. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +3 -3
  96. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  97. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +3 -3
  98. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  99. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +3 -3
  100. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  101. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +3 -3
  102. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  103. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +3 -3
  104. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  105. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +3 -3
  106. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  107. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +3 -3
  108. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  109. package/build/parser/satisfactory/types/property/generic/Int32Property.js +3 -3
  110. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  111. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +3 -3
  112. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  113. package/build/parser/satisfactory/types/property/generic/Int64Property.js +3 -3
  114. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  115. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +3 -3
  116. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  117. package/build/parser/satisfactory/types/property/generic/Int8Property.js +3 -3
  118. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  119. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +3 -3
  120. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  121. package/build/parser/satisfactory/types/property/generic/MapProperty.js +3 -3
  122. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  123. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +3 -3
  124. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  125. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +3 -3
  126. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  127. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
  128. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
  129. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +25 -0
  130. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
  131. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
  132. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
  133. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +25 -0
  134. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
  135. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
  136. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
  137. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
  138. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
  139. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
  140. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
  141. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +25 -0
  142. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
  143. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
  144. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
  145. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +45 -0
  146. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
  147. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
  148. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
  149. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +25 -0
  150. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
  151. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +3 -3
  152. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  153. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +3 -3
  154. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  155. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +3 -3
  156. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  157. package/build/parser/satisfactory/types/property/generic/StrProperty.js +3 -3
  158. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  159. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +4 -4
  160. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  161. package/build/parser/satisfactory/types/property/generic/StructProperty.js +10 -10
  162. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  163. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +3 -3
  164. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  165. package/build/parser/satisfactory/types/property/generic/TextProperty.js +3 -3
  166. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  167. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +3 -3
  168. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  169. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +3 -3
  170. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  171. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +3 -3
  172. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  173. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +3 -3
  174. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  175. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +3 -3
  176. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  177. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +3 -3
  178. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  179. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
  180. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
  181. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
  182. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
  183. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
  184. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
  185. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
  186. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
  187. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
  188. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
  189. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
  190. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
  191. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
  192. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
  193. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
  194. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
  195. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
  196. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
  197. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
  198. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
  199. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
  200. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
  201. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
  202. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
  203. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
  204. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
  205. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
  206. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
  207. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
  208. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
  209. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
  210. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
  211. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
  212. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
  213. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
  214. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
  215. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
  216. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
  217. package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
  218. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
  219. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
  220. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
  221. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
  222. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
  223. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
  224. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  225. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +2 -21
  226. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  227. package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
  228. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
  229. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
  230. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +2 -2
  231. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  232. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  233. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +2 -2
  234. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
  235. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
  236. package/build/parser/satisfactory/types/structs/Transform.d.ts +3 -3
  237. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
  238. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
  239. package/build/parser/satisfactory/types/structs/col4.d.ts +3 -3
  240. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
  241. package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
  242. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
  243. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
  244. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
  245. package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
  246. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
  247. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
  248. package/build/parser/satisfactory/types/structs/vec3.d.ts +4 -4
  249. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
  250. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
  251. package/build/parser/satisfactory/types/structs/vec4.d.ts +3 -3
  252. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
  253. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
  254. package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
  255. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  256. package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
  257. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  258. package/docs/assets/navigation.js +1 -1
  259. package/docs/assets/search.js +1 -1
  260. package/docs/classes/AbstractBaseProperty.html +5 -4
  261. package/docs/classes/BlueprintConfigReader.html +5 -4
  262. package/docs/classes/BlueprintConfigWriter.html +3 -3
  263. package/docs/classes/BlueprintReader.html +5 -4
  264. package/docs/classes/BlueprintWriter.html +3 -3
  265. package/docs/classes/BoolProperty.html +3 -3
  266. package/docs/classes/ByteProperty.html +3 -3
  267. package/docs/classes/CompressionLibraryError.html +2 -2
  268. package/docs/classes/CorruptSaveError.html +2 -2
  269. package/docs/classes/DoubleProperty.html +3 -3
  270. package/docs/classes/EnumProperty.html +3 -3
  271. package/docs/classes/FloatProperty.html +3 -3
  272. package/docs/classes/Int32Property.html +3 -3
  273. package/docs/classes/Int64Property.html +3 -3
  274. package/docs/classes/Int8Property.html +3 -3
  275. package/docs/classes/MapProperty.html +3 -3
  276. package/docs/classes/ObjectProperty.html +3 -3
  277. package/docs/classes/Parser.html +7 -7
  278. package/docs/classes/ParserError.html +2 -2
  279. package/docs/classes/ReadableStreamParser.html +3 -3
  280. package/docs/classes/SatisfactorySave.html +2 -2
  281. package/docs/classes/SaveComponent.html +2 -2
  282. package/docs/classes/SaveEntity.html +2 -2
  283. package/docs/classes/SaveObject.html +14 -0
  284. package/docs/classes/SaveReader.html +5 -4
  285. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  286. package/docs/classes/SaveStreamWriter.html +2 -2
  287. package/docs/classes/SaveWriter.html +3 -3
  288. package/docs/classes/StrProperty.html +3 -3
  289. package/docs/classes/StructProperty.html +4 -4
  290. package/docs/classes/TextProperty.html +3 -3
  291. package/docs/classes/TimeoutError.html +2 -2
  292. package/docs/classes/Uint32Property.html +3 -3
  293. package/docs/classes/Uint64Property.html +3 -3
  294. package/docs/classes/Uint8Property.html +3 -3
  295. package/docs/classes/UnimplementedError.html +2 -2
  296. package/docs/classes/UnsupportedVersionError.html +2 -2
  297. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
  298. package/docs/functions/ArrayProperty.Parse.html +1 -0
  299. package/docs/functions/ArrayProperty.Serialize.html +1 -0
  300. package/docs/functions/BoolArrayProperty.Parse.html +1 -0
  301. package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
  302. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -0
  303. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
  304. package/docs/functions/ByteArrayProperty.Parse.html +1 -0
  305. package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
  306. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
  307. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
  308. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
  309. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
  310. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
  311. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
  312. package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
  313. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
  314. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  315. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  316. package/docs/functions/EmptySpecialProperties.Parse.html +1 -0
  317. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
  318. package/docs/functions/EnumArrayProperty.Parse.html +1 -0
  319. package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
  320. package/docs/functions/FICFrameRange.Parse.html +1 -1
  321. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  322. package/docs/functions/FloatArrayProperty.Parse.html +1 -0
  323. package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
  324. package/docs/functions/GUID.read.html +1 -1
  325. package/docs/functions/GUID.write.html +1 -1
  326. package/docs/functions/GUIDInfo.read.html +1 -1
  327. package/docs/functions/GUIDInfo.write.html +1 -1
  328. package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
  329. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
  330. package/docs/functions/Int32SetProperty.Parse.html +1 -0
  331. package/docs/functions/Int32SetProperty.Serialize.html +1 -0
  332. package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
  333. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
  334. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  335. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  336. package/docs/functions/Level.ReadLevel.html +1 -1
  337. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  338. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  339. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  340. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  341. package/docs/functions/Level.SerializeLevel.html +1 -1
  342. package/docs/functions/MD5Hash.read.html +1 -1
  343. package/docs/functions/MD5Hash.write.html +1 -1
  344. package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
  345. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
  346. package/docs/functions/ObjectReference.read.html +1 -1
  347. package/docs/functions/ObjectReference.write.html +1 -1
  348. package/docs/functions/ObjectSetProperty.Parse.html +1 -0
  349. package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
  350. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -0
  351. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
  352. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
  353. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
  354. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
  355. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
  356. package/docs/functions/PropertiesList.ParseList.html +1 -1
  357. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  358. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  359. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  360. package/docs/functions/SetProperty.CalcOverhead.html +1 -0
  361. package/docs/functions/SetProperty.Parse.html +1 -0
  362. package/docs/functions/SetProperty.Serialize.html +1 -0
  363. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
  364. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
  365. package/docs/functions/SoftObjectReference.read.html +1 -1
  366. package/docs/functions/SoftObjectReference.write.html +1 -1
  367. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -0
  368. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
  369. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  370. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  371. package/docs/functions/StrArrayProperty.Parse.html +1 -0
  372. package/docs/functions/StrArrayProperty.Serialize.html +1 -0
  373. package/docs/functions/StrSetProperty.Parse.html +1 -0
  374. package/docs/functions/StrSetProperty.Serialize.html +1 -0
  375. package/docs/functions/StructArrayProperty.Parse.html +1 -0
  376. package/docs/functions/StructArrayProperty.Serialize.html +1 -0
  377. package/docs/functions/StructSetProperty.Parse.html +1 -0
  378. package/docs/functions/StructSetProperty.Serialize.html +1 -0
  379. package/docs/functions/TextArrayProperty.Parse.html +1 -0
  380. package/docs/functions/TextArrayProperty.Serialize.html +1 -0
  381. package/docs/functions/Transform.Parse.html +1 -1
  382. package/docs/functions/Transform.ParseF.html +1 -1
  383. package/docs/functions/Transform.Serialize.html +1 -1
  384. package/docs/functions/Transform.SerializeF.html +1 -1
  385. package/docs/functions/Uint32SetProperty.Parse.html +1 -0
  386. package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
  387. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -0
  388. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
  389. package/docs/functions/col4.ParseBGRA.html +1 -1
  390. package/docs/functions/col4.ParseRGBA.html +1 -1
  391. package/docs/functions/col4.SerializeBGRA.html +1 -1
  392. package/docs/functions/col4.SerializeRGBA.html +1 -1
  393. package/docs/functions/isArrayProperty.html +1 -1
  394. package/docs/functions/isBoolArrayProperty.html +1 -0
  395. package/docs/functions/isBoolProperty.html +1 -1
  396. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -0
  397. package/docs/functions/isByteArrayProperty.html +1 -0
  398. package/docs/functions/isByteProperty.html +1 -1
  399. package/docs/functions/isCircuitSpecialProperties.html +1 -0
  400. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
  401. package/docs/functions/isConveyorSpecialProperties.html +1 -0
  402. package/docs/functions/isDoubleArrayProperty.html +1 -0
  403. package/docs/functions/isDoubleProperty.html +1 -1
  404. package/docs/functions/isEmptySpecialProperties.html +1 -0
  405. package/docs/functions/isEnumArrayProperty.html +1 -0
  406. package/docs/functions/isEnumProperty.html +1 -1
  407. package/docs/functions/isFloatArrayProperty.html +1 -0
  408. package/docs/functions/isFloatProperty.html +1 -1
  409. package/docs/functions/isInt32ArrayProperty.html +1 -0
  410. package/docs/functions/isInt32Property.html +1 -1
  411. package/docs/functions/isInt32SetProperty.html +1 -0
  412. package/docs/functions/isInt64ArrayProperty.html +1 -0
  413. package/docs/functions/isInt64Property.html +1 -1
  414. package/docs/functions/isInt8Property.html +1 -1
  415. package/docs/functions/isMapProperty.html +1 -1
  416. package/docs/functions/isObjectArrayProperty.html +1 -0
  417. package/docs/functions/isObjectProperty.html +1 -1
  418. package/docs/functions/isObjectSetProperty.html +1 -0
  419. package/docs/functions/isObjectsListSpecialProperties.html +1 -0
  420. package/docs/functions/isPlayerSpecialProperties.html +1 -0
  421. package/docs/functions/isPowerLineSpecialProperties.html +1 -0
  422. package/docs/functions/isSaveComponent.html +1 -1
  423. package/docs/functions/isSaveEntity.html +1 -1
  424. package/docs/functions/isSetProperty.html +1 -1
  425. package/docs/functions/isSoftObjectArrayProperty.html +1 -0
  426. package/docs/functions/isSpecialDroneActionProperties.html +1 -0
  427. package/docs/functions/isStrArrayProperty.html +1 -0
  428. package/docs/functions/isStrProperty.html +1 -1
  429. package/docs/functions/isStrSetProperty.html +1 -0
  430. package/docs/functions/isStructArrayProperty.html +1 -0
  431. package/docs/functions/isStructProperty.html +1 -1
  432. package/docs/functions/isStructSetProperty.html +1 -0
  433. package/docs/functions/isTextArrayProperty.html +1 -0
  434. package/docs/functions/isTextProperty.html +1 -1
  435. package/docs/functions/isUInt64Property.html +1 -1
  436. package/docs/functions/isUint32Property.html +1 -1
  437. package/docs/functions/isUint32SetProperty.html +1 -0
  438. package/docs/functions/isUint8Property.html +1 -1
  439. package/docs/functions/isVehicleSpecialProperties.html +1 -0
  440. package/docs/functions/vec2.Parse.html +1 -1
  441. package/docs/functions/vec2.ParseF.html +1 -1
  442. package/docs/functions/vec2.Serialize.html +1 -1
  443. package/docs/functions/vec2.SerializeF.html +1 -1
  444. package/docs/functions/vec3.Parse.html +1 -1
  445. package/docs/functions/vec3.ParseF.html +1 -1
  446. package/docs/functions/vec3.ParseInt.html +1 -1
  447. package/docs/functions/vec3.Serialize.html +1 -1
  448. package/docs/functions/vec3.SerializeF.html +1 -1
  449. package/docs/functions/vec3.SerializeInt.html +1 -1
  450. package/docs/functions/vec3.add.html +1 -1
  451. package/docs/functions/vec3.length.html +1 -1
  452. package/docs/functions/vec3.mult.html +1 -1
  453. package/docs/functions/vec3.norm.html +1 -1
  454. package/docs/functions/vec3.sub.html +1 -1
  455. package/docs/functions/vec4.Parse.html +1 -1
  456. package/docs/functions/vec4.ParseF.html +1 -1
  457. package/docs/functions/vec4.Serialize.html +1 -1
  458. package/docs/functions/vec4.SerializeF.html +1 -1
  459. package/docs/hierarchy.html +1 -1
  460. package/docs/index.html +5 -56
  461. package/docs/interfaces/Blueprint.html +2 -2
  462. package/docs/interfaces/BlueprintConfig.html +2 -2
  463. package/docs/interfaces/ModData.html +2 -2
  464. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  465. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  466. package/docs/interfaces/SaveComponentHeader.html +2 -2
  467. package/docs/interfaces/SaveEntityHeader.html +2 -2
  468. package/docs/interfaces/SaveObjectHeader.html +4 -0
  469. package/docs/modules/ArrayProperty.html +5 -0
  470. package/docs/modules/BoolArrayProperty.html +3 -0
  471. package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
  472. package/docs/modules/ByteArrayProperty.html +3 -0
  473. package/docs/modules/CircuitSpecialProperties.html +3 -0
  474. package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
  475. package/docs/modules/ConveyorSpecialProperties.html +3 -0
  476. package/docs/modules/DoubleArrayProperty.html +3 -0
  477. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  478. package/docs/modules/EmptySpecialProperties.html +3 -0
  479. package/docs/modules/EnumArrayProperty.html +3 -0
  480. package/docs/modules/FICFrameRange.html +1 -1
  481. package/docs/modules/FloatArrayProperty.html +3 -0
  482. package/docs/modules/GUID.html +1 -1
  483. package/docs/modules/GUIDInfo.html +1 -1
  484. package/docs/modules/Int32ArrayProperty.html +3 -0
  485. package/docs/modules/Int32SetProperty.html +3 -0
  486. package/docs/modules/Int64ArrayProperty.html +3 -0
  487. package/docs/modules/Level.html +1 -1
  488. package/docs/modules/MD5Hash.html +1 -1
  489. package/docs/modules/ObjectArrayProperty.html +3 -0
  490. package/docs/modules/ObjectReference.html +1 -1
  491. package/docs/modules/ObjectSetProperty.html +3 -0
  492. package/docs/modules/ObjectsListSpecialProperties.html +3 -0
  493. package/docs/modules/PlayerSpecialProperties.html +3 -0
  494. package/docs/modules/PowerLineSpecialProperties.html +3 -0
  495. package/docs/modules/PropertiesList.html +1 -1
  496. package/docs/modules/SetProperty.html +5 -0
  497. package/docs/modules/SoftObjectArrayProperty.html +3 -0
  498. package/docs/modules/SoftObjectReference.html +1 -1
  499. package/docs/modules/SpecialDroneActionProperties.html +3 -0
  500. package/docs/modules/SpecialProperties.html +2 -1
  501. package/docs/modules/StrArrayProperty.html +3 -0
  502. package/docs/modules/StrSetProperty.html +3 -0
  503. package/docs/modules/StructArrayProperty.html +3 -0
  504. package/docs/modules/StructSetProperty.html +3 -0
  505. package/docs/modules/TextArrayProperty.html +3 -0
  506. package/docs/modules/Transform.html +1 -1
  507. package/docs/modules/Uint32SetProperty.html +3 -0
  508. package/docs/modules/VehicleSpecialProperties.html +3 -0
  509. package/docs/modules/col4.html +1 -1
  510. package/docs/modules/vec2.html +1 -1
  511. package/docs/modules/vec3.html +1 -1
  512. package/docs/modules/vec4.html +1 -1
  513. package/docs/modules.html +87 -11
  514. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
  515. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  516. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  517. package/docs/types/BasicStructPropertyValue.html +1 -1
  518. package/docs/types/BlueprintHeader.html +1 -1
  519. package/docs/types/BoolArrayProperty-1.html +1 -0
  520. package/docs/types/BoxStructPropertyValue.html +1 -1
  521. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
  522. package/docs/types/BuildableTypeInstance.html +1 -1
  523. package/docs/types/ByteArrayProperty-1.html +1 -0
  524. package/docs/types/BytePropertyValue.html +1 -1
  525. package/docs/types/CircuitSpecialProperties-1.html +1 -0
  526. package/docs/types/ClientIdentityInfo.html +1 -1
  527. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
  528. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  529. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  530. package/docs/types/ConveyorSpecialProperties-1.html +1 -0
  531. package/docs/types/DoubleArrayProperty-1.html +1 -0
  532. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  533. package/docs/types/EmptySpecialProperties-1.html +1 -0
  534. package/docs/types/EnumArrayProperty-1.html +1 -0
  535. package/docs/types/FICFrameRange-1.html +1 -1
  536. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  537. package/docs/types/FloatArrayProperty-1.html +1 -0
  538. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  539. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  540. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  541. package/docs/types/GUID-1.html +1 -1
  542. package/docs/types/GUIDInfo-1.html +1 -1
  543. package/docs/types/Int32ArrayProperty-1.html +1 -0
  544. package/docs/types/Int32SetProperty-1.html +1 -0
  545. package/docs/types/Int64ArrayProperty-1.html +1 -0
  546. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  547. package/docs/types/Level-1.html +1 -1
  548. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  549. package/docs/types/MD5Hash-1.html +1 -1
  550. package/docs/types/ObjectArrayProperty-1.html +1 -0
  551. package/docs/types/ObjectReference-1.html +1 -1
  552. package/docs/types/ObjectSetProperty-1.html +1 -0
  553. package/docs/types/ObjectsListSpecialProperties-1.html +1 -0
  554. package/docs/types/PlayerSpecialProperties-1.html +1 -0
  555. package/docs/types/PowerLineSpecialProperties-1.html +1 -0
  556. package/docs/types/PropertiesMap.html +1 -1
  557. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  558. package/docs/types/RoughSaveVersion.html +1 -1
  559. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
  560. package/docs/types/SoftObjectArrayProperty-1.html +1 -0
  561. package/docs/types/SoftObjectReference-1.html +1 -1
  562. package/docs/types/SpecialDroneAction.html +1 -0
  563. package/docs/types/SpecialDroneActionProperties-1.html +1 -0
  564. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
  565. package/docs/types/StrArrayProperty-1.html +1 -0
  566. package/docs/types/StrSetProperty-1.html +1 -0
  567. package/docs/types/StructArrayProperty-1.html +1 -0
  568. package/docs/types/StructSetProperty-1.html +1 -0
  569. package/docs/types/TextArrayProperty-1.html +1 -0
  570. package/docs/types/TextPropertyValue.html +1 -1
  571. package/docs/types/Transform-1.html +1 -1
  572. package/docs/types/Uint32SetProperty-1.html +1 -0
  573. package/docs/types/VehicleSpecialProperties-1.html +1 -0
  574. package/docs/types/col4-1.html +1 -1
  575. package/docs/types/vec2-1.html +1 -1
  576. package/docs/types/vec3-1.html +1 -1
  577. package/docs/types/vec4-1.html +1 -1
  578. package/docs/variables/EDIT.html +1 -1
  579. package/package.json +2 -2
  580. package/LICENSE +0 -21
  581. package/docs/classes/AbstractProperty.html +0 -4
  582. package/docs/classes/ArrayProperty.html +0 -13
  583. package/docs/classes/BasicProperty.html +0 -7
  584. package/docs/classes/SetProperty.html +0 -12
  585. package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
  586. package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
  587. package/docs/types/EmptySpecialProperties.html +0 -1
  588. package/docs/types/PlayerSpecialProperties.html +0 -1
  589. package/docs/types/PowerLineSpecialProperties.html +0 -1
  590. package/docs/types/SpecialAnyProperties.html +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SoftObjectArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,yBAAyB,aAAc,GAAG,KAAG,QAAQ,IAAI,uBAAkG,CAAC;AAEzK,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG;IACzD,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IAE9B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,uBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,uBAAuB,KAAG,IAEjF,CAAA;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SoftObjectArrayProperty = exports.isSoftObjectArrayProperty = void 0;
4
+ const SoftObjectProperty_1 = require("../SoftObjectProperty");
5
+ const isSoftObjectArrayProperty = (property) => !Array.isArray(property) && property.type === 'SoftObjectArrayProperty';
6
+ exports.isSoftObjectArrayProperty = isSoftObjectArrayProperty;
7
+ var SoftObjectArrayProperty;
8
+ (function (SoftObjectArrayProperty) {
9
+ SoftObjectArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
+ const values = new Array(elementCount).fill(0).map(() => SoftObjectProperty_1.SoftObjectProperty.ReadValue(reader));
11
+ return {
12
+ type: 'SoftObjectArrayProperty',
13
+ index,
14
+ ueType,
15
+ subtype,
16
+ values,
17
+ guidInfo: undefined,
18
+ name: ''
19
+ };
20
+ };
21
+ SoftObjectArrayProperty.Serialize = (writer, property) => {
22
+ property.values.forEach(value => SoftObjectProperty_1.SoftObjectProperty.SerializeValue(writer, value));
23
+ };
24
+ })(SoftObjectArrayProperty || (exports.SoftObjectArrayProperty = SoftObjectArrayProperty = {}));
25
+ //# sourceMappingURL=SoftObjectArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SoftObjectArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.ts"],"names":[],"mappings":";;;AAIA,8DAA2D;AAEpD,MAAM,yBAAyB,GAAG,CAAC,QAAa,EAAuC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,yBAAyB,CAAC;AAA5J,QAAA,yBAAyB,6BAAmI;AAQzK,IAAiB,uBAAuB,CAkBvC;AAlBD,WAAiB,uBAAuB;IAEvB,6BAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAA2B,EAAE;QAC/I,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,uCAAkB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/F,OAAO;YACH,IAAI,EAAE,yBAAyB;YAC/B,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACuB,CAAC;IACxC,CAAC,CAAA;IAEY,iCAAS,GAAG,CAAC,MAAkB,EAAE,QAAiC,EAAQ,EAAE;QACrF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,uCAAkB,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACvF,CAAC,CAAA;AACL,CAAC,EAlBgB,uBAAuB,uCAAvB,uBAAuB,QAkBvC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { SoftObjectReference } from '../../../structs/SoftObjectReference';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { SoftObjectProperty } from '../SoftObjectProperty';\n\nexport const isSoftObjectArrayProperty = (property: any): property is SoftObjectArrayProperty => !Array.isArray(property) && property.type === 'SoftObjectArrayProperty';\n\nexport type SoftObjectArrayProperty = AbstractBaseProperty & {\n type: 'SoftObjectArrayProperty';\n subtype: string;\n values: SoftObjectReference[];\n};\n\nexport namespace SoftObjectArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): SoftObjectArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => SoftObjectProperty.ReadValue(reader));\n return {\n type: 'SoftObjectArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies SoftObjectArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: SoftObjectArrayProperty): void => {\n property.values.forEach(value => SoftObjectProperty.SerializeValue(writer, value));\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
4
+ export declare const isStrArrayProperty: (property: any) => property is StrArrayProperty;
5
+ export type StrArrayProperty = AbstractBaseProperty & {
6
+ type: 'StrArrayProperty';
7
+ subtype: string;
8
+ values: string[];
9
+ };
10
+ export declare namespace StrArrayProperty {
11
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => StrArrayProperty;
12
+ const Serialize: (writer: ByteWriter, property: StrArrayProperty) => void;
13
+ }
14
+ //# sourceMappingURL=StrArrayProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,kBAAkB,aAAc,GAAG,KAAG,QAAQ,IAAI,gBAAoF,CAAC;AAEpJ,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IAClD,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,gBAAgB,CAAC;IAEvB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,gBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,gBAAgB,KAAG,IAE1E,CAAA;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StrArrayProperty = exports.isStrArrayProperty = void 0;
4
+ const StrProperty_1 = require("../StrProperty");
5
+ const isStrArrayProperty = (property) => !Array.isArray(property) && property.type === 'StrArrayProperty';
6
+ exports.isStrArrayProperty = isStrArrayProperty;
7
+ var StrArrayProperty;
8
+ (function (StrArrayProperty) {
9
+ StrArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
+ const values = new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader));
11
+ return {
12
+ type: 'StrArrayProperty',
13
+ index,
14
+ ueType,
15
+ subtype,
16
+ values,
17
+ guidInfo: undefined,
18
+ name: ''
19
+ };
20
+ };
21
+ StrArrayProperty.Serialize = (writer, property) => {
22
+ property.values.forEach(value => StrProperty_1.StrProperty.SerializeValue(writer, value));
23
+ };
24
+ })(StrArrayProperty || (exports.StrArrayProperty = StrArrayProperty = {}));
25
+ //# sourceMappingURL=StrArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.ts"],"names":[],"mappings":";;;AAGA,gDAA6C;AAEtC,MAAM,kBAAkB,GAAG,CAAC,QAAa,EAAgC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,kBAAkB,CAAC;AAAvI,QAAA,kBAAkB,sBAAqH;AAQpJ,IAAiB,gBAAgB,CAkBhC;AAlBD,WAAiB,gBAAgB;IAEhB,sBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAoB,EAAE;QACxI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACxF,OAAO;YACH,IAAI,EAAE,kBAAkB;YACxB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACgB,CAAC;IACjC,CAAC,CAAA;IAEY,0BAAS,GAAG,CAAC,MAAkB,EAAE,QAA0B,EAAQ,EAAE;QAC9E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAA;AACL,CAAC,EAlBgB,gBAAgB,gCAAhB,gBAAgB,QAkBhC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StrProperty } from '../StrProperty';\n\nexport const isStrArrayProperty = (property: any): property is StrArrayProperty => !Array.isArray(property) && property.type === 'StrArrayProperty';\n\nexport type StrArrayProperty = AbstractBaseProperty & {\n type: 'StrArrayProperty';\n subtype: string;\n values: string[];\n};\n\nexport namespace StrArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StrArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader));\n return {\n type: 'StrArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies StrArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StrArrayProperty): void => {\n property.values.forEach(value => StrProperty.SerializeValue(writer, value));\n }\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { GUIDInfo } from '../../../structs/GUIDInfo';
4
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
5
+ import { StructProperty } from '../StructProperty';
6
+ export declare const isStructArrayProperty: (property: any) => property is StructArrayProperty;
7
+ export type StructArrayProperty = AbstractBaseProperty & {
8
+ type: 'StructArrayProperty';
9
+ subtype: string;
10
+ values: StructProperty[];
11
+ structValueFields: ArrayPropertyStructValueFields;
12
+ };
13
+ export declare namespace StructArrayProperty {
14
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => StructArrayProperty;
15
+ const Serialize: (writer: ByteWriter, property: StructArrayProperty) => void;
16
+ }
17
+ export type ArrayPropertyStructValueFields = {
18
+ allStructType: string;
19
+ allIndex?: number;
20
+ allGuid: GUIDInfo;
21
+ allUnk1?: number;
22
+ allUnk2?: number;
23
+ allUnk3?: number;
24
+ allUnk4?: number;
25
+ };
26
+ //# sourceMappingURL=StructArrayProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,qBAAqB,aAAc,GAAG,KAAG,QAAQ,IAAI,mBAA0F,CAAC;AAE7J,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG;IACrD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,iBAAiB,EAAE,8BAA8B,CAAC;CACrD,CAAC;AAEF,yBAAiB,mBAAmB,CAAC;IAE1B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,mBAuDxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,mBAAmB,KAAG,IAmB7E,CAAA;CACJ;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StructArrayProperty = exports.isStructArrayProperty = void 0;
4
+ const GUIDInfo_1 = require("../../../structs/GUIDInfo");
5
+ const StructProperty_1 = require("../StructProperty");
6
+ const isStructArrayProperty = (property) => !Array.isArray(property) && property.type === 'StructArrayProperty';
7
+ exports.isStructArrayProperty = isStructArrayProperty;
8
+ var StructArrayProperty;
9
+ (function (StructArrayProperty) {
10
+ StructArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
11
+ const name = reader.readString();
12
+ const allUEType = reader.readString();
13
+ const binarySize = reader.readInt32();
14
+ const allIndex = reader.readInt32();
15
+ const allStructType = reader.readString();
16
+ const allGuid = GUIDInfo_1.GUIDInfo.read(reader);
17
+ const allUnk1 = reader.readInt32();
18
+ const allUnk2 = reader.readInt32();
19
+ const allUnk3 = reader.readInt32();
20
+ const allUnk4 = reader.readInt32();
21
+ const structValueFields = { allStructType, allIndex: allIndex > 0 ? allIndex : undefined, allGuid };
22
+ if (allUnk1 !== 0) {
23
+ structValueFields.allUnk1 = allUnk1;
24
+ }
25
+ if (allUnk2 !== 0) {
26
+ structValueFields.allUnk2 = allUnk2;
27
+ }
28
+ if (allUnk3 !== 0) {
29
+ structValueFields.allUnk3 = allUnk3;
30
+ }
31
+ if (allUnk4 !== 0) {
32
+ structValueFields.allUnk4 = allUnk4;
33
+ }
34
+ const before = reader.getBufferPosition();
35
+ const values = new Array(elementCount).fill(0).map(() => {
36
+ const struct = new StructProperty_1.StructProperty(allStructType, allUEType, allIndex, allGuid);
37
+ struct.value = StructProperty_1.StructProperty.ParseValue(reader, allStructType, binarySize);
38
+ return struct;
39
+ });
40
+ const readBytes = reader.getBufferPosition() - before;
41
+ if (readBytes !== binarySize) {
42
+ throw new Error('possibly corrupt in array of struct.');
43
+ }
44
+ return {
45
+ type: 'StructArrayProperty',
46
+ index,
47
+ ueType,
48
+ subtype,
49
+ values,
50
+ structValueFields,
51
+ guidInfo: undefined,
52
+ name: ''
53
+ };
54
+ };
55
+ StructArrayProperty.Serialize = (writer, property) => {
56
+ writer.writeString(property.name);
57
+ writer.writeString(property.subtype);
58
+ const lenIndicator = writer.getBufferPosition();
59
+ writer.writeInt32(0);
60
+ writer.writeInt32(property.structValueFields.allIndex ?? 0);
61
+ writer.writeString(property.structValueFields.allStructType);
62
+ GUIDInfo_1.GUIDInfo.write(writer, property.structValueFields.allGuid);
63
+ writer.writeInt32(property.structValueFields.allUnk1 ?? 0);
64
+ writer.writeInt32(property.structValueFields.allUnk2 ?? 0);
65
+ writer.writeInt32(property.structValueFields.allUnk3 ?? 0);
66
+ writer.writeInt32(property.structValueFields.allUnk4 ?? 0);
67
+ const before = writer.getBufferPosition();
68
+ property.values.forEach(v => StructProperty_1.StructProperty.SerializeValue(writer, property.structValueFields.allStructType, v.value));
69
+ writer.writeBinarySizeFromPosition(lenIndicator, before);
70
+ };
71
+ })(StructArrayProperty || (exports.StructArrayProperty = StructArrayProperty = {}));
72
+ //# sourceMappingURL=StructArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AAErD,sDAAmD;AAE5C,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAmC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAAhJ,QAAA,qBAAqB,yBAA2H;AAS7J,IAAiB,mBAAmB,CA+EnC;AA/ED,WAAiB,mBAAmB;IAEn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M,EAAE,QAAQ,CAAC,iBAAkB,CAAC,OAAO,CAAC,CAAA;QAE3D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAE5D,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC1C,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACxH,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAA;AACL,CAAC,EA/EgB,mBAAmB,mCAAnB,mBAAmB,QA+EnC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StructProperty } from '../StructProperty';\n\nexport const isStructArrayProperty = (property: any): property is StructArrayProperty => !Array.isArray(property) && property.type === 'StructArrayProperty';\n\nexport type StructArrayProperty = AbstractBaseProperty & {\n type: 'StructArrayProperty';\n subtype: string;\n values: StructProperty[];\n structValueFields: ArrayPropertyStructValueFields;\n};\n\nexport namespace StructArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StructArrayProperty => {\n\n const name = reader.readString(); // Same as currentProperty.name\n const allUEType = reader.readString(); // StructProperty\n\n const binarySize = reader.readInt32(); // structureSize\n const allIndex = reader.readInt32(); // Since ArrayProperty itself has an index already, this was never observed to be anything else than 0.\n\n const allStructType = reader.readString();\n const allGuid = GUIDInfo.read(reader);\n\n const allUnk1 = reader.readInt32();\n const allUnk2 = reader.readInt32();\n const allUnk3 = reader.readInt32();\n const allUnk4 = reader.readInt32();\n\n const structValueFields: ArrayPropertyStructValueFields = { allStructType, allIndex: allIndex > 0 ? allIndex : undefined, allGuid };\n if (allUnk1 !== 0) {\n structValueFields.allUnk1 = allUnk1;\n }\n if (allUnk2 !== 0) {\n structValueFields.allUnk2 = allUnk2;\n }\n if (allUnk3 !== 0) {\n structValueFields.allUnk3 = allUnk3;\n }\n if (allUnk4 !== 0) {\n structValueFields.allUnk4 = allUnk4;\n }\n\n\n const before = reader.getBufferPosition();\n const values = new Array(elementCount).fill(0).map(() => {\n\n const struct = new StructProperty(allStructType, allUEType, allIndex, allGuid);\n\n // we do NOT assign individual unk's here. Since they are only serialized always on ArrayProperty's Level once for all elements.\n struct.value = StructProperty.ParseValue(reader, allStructType, binarySize);\n return struct;\n });\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== binarySize) {\n throw new Error('possibly corrupt in array of struct.');\n }\n\n return {\n type: 'StructArrayProperty',\n index,\n ueType,\n subtype,\n values,\n structValueFields,\n guidInfo: undefined,\n name: ''\n } satisfies StructArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StructArrayProperty): void => {\n writer.writeString(property.name);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex ?? 0);\n\n writer.writeString(property.structValueFields!.allStructType);\n GUIDInfo.write(writer, property.structValueFields!.allGuid)\n\n writer.writeInt32(property.structValueFields!.allUnk1 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk2 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk3 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk4 ?? 0);\n\n const before = writer.getBufferPosition();\n property.values.forEach(v => StructProperty.SerializeValue(writer, property.structValueFields!.allStructType, v.value));\n writer.writeBinarySizeFromPosition(lenIndicator, before);\n }\n}\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex?: number;\n allGuid: GUIDInfo;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
4
+ import { TextPropertyValue } from '../TextProperty';
5
+ export declare const isTextArrayProperty: (property: any) => property is TextArrayProperty;
6
+ export type TextArrayProperty = AbstractBaseProperty & {
7
+ type: 'TextArrayProperty';
8
+ subtype: string;
9
+ values: TextPropertyValue[];
10
+ };
11
+ export declare namespace TextArrayProperty {
12
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => TextArrayProperty;
13
+ const Serialize: (writer: ByteWriter, property: TextArrayProperty) => void;
14
+ }
15
+ //# sourceMappingURL=TextArrayProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAElE,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,iBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextArrayProperty = exports.isTextArrayProperty = void 0;
4
+ const TextProperty_1 = require("../TextProperty");
5
+ const isTextArrayProperty = (property) => !Array.isArray(property) && property.type === 'TextArrayProperty';
6
+ exports.isTextArrayProperty = isTextArrayProperty;
7
+ var TextArrayProperty;
8
+ (function (TextArrayProperty) {
9
+ TextArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
+ const values = new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader));
11
+ return {
12
+ type: 'TextArrayProperty',
13
+ index,
14
+ ueType,
15
+ subtype,
16
+ values,
17
+ guidInfo: undefined,
18
+ name: ''
19
+ };
20
+ };
21
+ TextArrayProperty.Serialize = (writer, property) => {
22
+ property.values.forEach(value => TextProperty_1.TextProperty.SerializeValue(writer, value));
23
+ };
24
+ })(TextArrayProperty || (exports.TextArrayProperty = TextArrayProperty = {}));
25
+ //# sourceMappingURL=TextArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":";;;AAGA,kDAAkE;AAE3D,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAkBjC;AAlBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACzI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,2BAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACzF,OAAO;YACH,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACiB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC,CAAA;AACL,CAAC,EAlBgB,iBAAiB,iCAAjB,iBAAiB,QAkBjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { TextProperty, TextPropertyValue } from '../TextProperty';\n\nexport const isTextArrayProperty = (property: any): property is TextArrayProperty => !Array.isArray(property) && property.type === 'TextArrayProperty';\n\nexport type TextArrayProperty = AbstractBaseProperty & {\n type: 'TextArrayProperty';\n subtype: string;\n values: TextPropertyValue[];\n};\n\nexport namespace TextArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): TextArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader));\n return {\n type: 'TextArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies TextArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: TextArrayProperty): void => {\n property.values.forEach(value => TextProperty.SerializeValue(writer, value));\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isBoolProperty: (property: BasicProperty) => property is BoolProperty;
6
- export declare class BoolProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isBoolProperty: (property: any) => property is BoolProperty;
6
+ export declare class BoolProperty extends AbstractBaseProperty {
7
7
  value: boolean;
8
8
  constructor(value: boolean, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): BoolProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"BoolProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa,SAAQ,aAAa;IAExB,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,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K,EAAE,OAAO,GAAG,IAAI;CAGzE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BoolProperty = exports.isBoolProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isBoolProperty = (property) => property.type === 'BoolProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
7
7
  exports.isBoolProperty = isBoolProperty;
8
- class BoolProperty extends BasicProperty_1.BasicProperty {
8
+ class BoolProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'BoolProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'BoolProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAc,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAS;IAEjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAc;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isBoolProperty = (property: BasicProperty): property is BoolProperty => property.type === 'BoolProperty';\n\nexport class BoolProperty extends BasicProperty {\n\n constructor(public value: boolean, ueType: string = 'BoolProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'BoolProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty {\n const value = BoolProperty.ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n return new BoolProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): boolean {\n return reader.readByte() > 0;\n }\n\n public static CalcOverhead(property: BoolProperty): number {\n return 1 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: BoolProperty): void {\n BoolProperty.SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n public static SerializeValue(writer: ByteWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
1
+ {"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAc,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAS;IAEjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAc;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isBoolProperty = (property: any): property is BoolProperty => !Array.isArray(property) && property.type === 'BoolProperty';\n\nexport class BoolProperty extends AbstractBaseProperty {\n\n constructor(public value: boolean, ueType: string = 'BoolProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'BoolProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty {\n const value = BoolProperty.ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n return new BoolProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): boolean {\n return reader.readByte() > 0;\n }\n\n public static CalcOverhead(property: BoolProperty): number {\n return 1 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: BoolProperty): void {\n BoolProperty.SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n public static SerializeValue(writer: ByteWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isByteProperty: (property: BasicProperty) => property is ByteProperty;
6
- export declare class ByteProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isByteProperty: (property: any) => property is ByteProperty;
6
+ export declare class ByteProperty extends AbstractBaseProperty {
7
7
  value: BytePropertyValue;
8
8
  constructor(value: BytePropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): ByteProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa,SAAQ,aAAa;IAExB,KAAK,EAAE,iBAAiB;gBAAxB,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIjH,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAwB9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAA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AAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ByteProperty = exports.isByteProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isByteProperty = (property) => property.type === 'ByteProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isByteProperty = (property) => !Array.isArray(property) && property.type === 'ByteProperty';
7
7
  exports.isByteProperty = isByteProperty;
8
- class ByteProperty extends BasicProperty_1.BasicProperty {
8
+ class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'ByteProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'ByteProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAwB,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC3H,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAmB;IAE3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QAEzE,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAGvC,IAAI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ArDD,oCAqDC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isByteProperty = (property: BasicProperty): property is ByteProperty => property.type === 'ByteProperty';\n\nexport class ByteProperty extends BasicProperty {\n\n constructor(public value: BytePropertyValue, ueType: string = 'ByteProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ByteProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ByteProperty.ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n const property = new ByteProperty(value, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readByte();\n }\n\n public static CalcOverhead(property: ByteProperty): number {\n return property.value.type.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ByteProperty): void {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n ByteProperty.SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
1
+ {"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAA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CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACxE,CAAC;aACI,CAAC;YACF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AArDD,oCAqDC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isByteProperty = (property: any): property is ByteProperty => !Array.isArray(property) && property.type === 'ByteProperty';\n\nexport class ByteProperty extends AbstractBaseProperty {\n\n constructor(public value: BytePropertyValue, ueType: string = 'ByteProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ByteProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ByteProperty.ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n const property = new ByteProperty(value, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readByte();\n }\n\n public static CalcOverhead(property: ByteProperty): number {\n return property.value.type.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ByteProperty): void {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n ByteProperty.SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isDoubleProperty: (property: BasicProperty) => property is DoubleProperty;
6
- export declare class DoubleProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
6
+ export declare class DoubleProperty extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): DoubleProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,gBAAgB,aAAc,aAAa,KAAG,QAAQ,IAAI,cAAoD,CAAC;AAE5H,qBAAa,cAAe,SAAQ,aAAa;IAE1B,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAo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AAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DoubleProperty = exports.isDoubleProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isDoubleProperty = (property) => property.type === 'DoubleProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
7
7
  exports.isDoubleProperty = isDoubleProperty;
8
- class DoubleProperty extends BasicProperty_1.BasicProperty {
8
+ class DoubleProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'DoubleProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'DoubleProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,gBAAgB,GAAG,CAAC,QAAuB,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAA/G,QAAA,gBAAgB,oBAA+F;AAE5H,MAAa,cAAe,SAAQ,6BAAa;IAE7C,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isDoubleProperty = (property: BasicProperty): property is DoubleProperty => property.type === 'DoubleProperty';\n\nexport class DoubleProperty extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'DoubleProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'DoubleProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = DoubleProperty.ReadValue(reader);\n return new DoubleProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readDouble();\n }\n\n public static CalcOverhead(property: DoubleProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: DoubleProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n DoubleProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}
1
+ {"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAE9I,MAAa,cAAe,SAAQ,2CAAoB;IAEpD,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isDoubleProperty = (property: any): property is DoubleProperty => !Array.isArray(property) && property.type === 'DoubleProperty';\n\nexport class DoubleProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'DoubleProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'DoubleProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = DoubleProperty.ReadValue(reader);\n return new DoubleProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readDouble();\n }\n\n public static CalcOverhead(property: DoubleProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: DoubleProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n DoubleProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isEnumProperty: (property: BasicProperty) => property is EnumProperty;
6
- export declare class EnumProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isEnumProperty: (property: any) => property is EnumProperty;
6
+ export declare class EnumProperty extends AbstractBaseProperty {
7
7
  value: {
8
8
  name: string;
9
9
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa,SAAQ,aAAa;IAExB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE;gBAAvC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIhI,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAS9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAM3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
1
+ {"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,qBAAa,YAAa,SAAQ,oBAAoB;IAE/B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE;gBAAvC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIhI,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAS9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAM3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnumProperty = exports.isEnumProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isEnumProperty = (property) => property.type === 'EnumProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isEnumProperty = (property) => !Array.isArray(property) && property.type === 'EnumProperty';
7
7
  exports.isEnumProperty = isEnumProperty;
8
- class EnumProperty extends BasicProperty_1.BasicProperty {
8
+ class EnumProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'EnumProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'EnumProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAuC,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC1I,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAkC;IAE1D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,IAAI,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AAhCD,oCAgCC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isEnumProperty = (property: BasicProperty): property is EnumProperty => property.type === 'EnumProperty';\n\nexport class EnumProperty extends BasicProperty {\n\n constructor(public value: { name: string; value: string; }, ueType: string = 'EnumProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'EnumProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = EnumProperty.ReadValue(reader);\n\n const property = new EnumProperty({ name, value }, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: EnumProperty): number {\n return property.value.name.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: EnumProperty): void {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n EnumProperty.SerializeValue(writer, property.value.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
1
+ {"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAuC,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC1I,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAkC;IAE1D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,IAAI,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AAhCD,oCAgCC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isEnumProperty = (property: any): property is EnumProperty => !Array.isArray(property) && property.type === 'EnumProperty';\n\nexport class EnumProperty extends AbstractBaseProperty {\n\n constructor(public value: { name: string; value: string; }, ueType: string = 'EnumProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'EnumProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = EnumProperty.ReadValue(reader);\n\n const property = new EnumProperty({ name, value }, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: EnumProperty): number {\n return property.value.name.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: EnumProperty): void {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n EnumProperty.SerializeValue(writer, property.value.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isFloatProperty: (property: BasicProperty) => property is FloatProperty;
6
- export declare class FloatProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isFloatProperty: (property: any) => property is FloatProperty;
6
+ export declare class FloatProperty extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): FloatProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"FloatProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,aAAc,aAAa,KAAG,QAAQ,IAAI,aAAkD,CAAC;AAEzH,qBAAa,aAAc,SAAQ,aAAa;IAEzB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KA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CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FloatProperty = exports.isFloatProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isFloatProperty = (property) => property.type === 'FloatProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isFloatProperty = (property) => !Array.isArray(property) && property.type === 'FloatProperty';
7
7
  exports.isFloatProperty = isFloatProperty;
8
- class FloatProperty extends BasicProperty_1.BasicProperty {
8
+ class FloatProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'FloatProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'FloatProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,eAAe,GAAG,CAAC,QAAuB,EAA6B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA5G,QAAA,eAAe,mBAA6F;AAEzH,MAAa,aAAc,SAAQ,6BAAa;IAE5C,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isFloatProperty = (property: BasicProperty): property is FloatProperty => property.type === 'FloatProperty';\n\nexport class FloatProperty extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'FloatProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'FloatProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = FloatProperty.ReadValue(reader);\n return new FloatProperty(value, ueType, guidInfo, index);\n }\n\n public static CalcOverhead(property: FloatProperty): number {\n return 1;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readFloat32();\n }\n\n public static Serialize(writer: ByteWriter, property: FloatProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n FloatProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
1
+ {"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9H,QAAA,eAAe,mBAA+G;AAE3I,MAAa,aAAc,SAAQ,2CAAoB;IAEnD,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isFloatProperty = (property: any): property is FloatProperty => !Array.isArray(property) && property.type === 'FloatProperty';\n\nexport class FloatProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'FloatProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'FloatProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = FloatProperty.ReadValue(reader);\n return new FloatProperty(value, ueType, guidInfo, index);\n }\n\n public static CalcOverhead(property: FloatProperty): number {\n return 1;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readFloat32();\n }\n\n public static Serialize(writer: ByteWriter, property: FloatProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n FloatProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isInt32Property: (property: BasicProperty) => property is Int32Property;
6
- export declare class Int32Property extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isInt32Property: (property: any) => property is Int32Property;
6
+ export declare class Int32Property extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): Int32Property;
@@ -1 +1 @@
1
- {"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,aAAc,aAAa,KAAG,QAAQ,IAAI,aAAkD,CAAC;AAEzH,qBAAa,aAAc,SAAQ,aAAa;IAEzB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIrG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
1
+ {"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,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