@etothepii/satisfactory-file-parser 2.0.1 → 2.1.2

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 (593) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/GUIDE.md +81 -0
  3. package/README.md +86 -41
  4. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  5. package/build/parser/satisfactory/blueprint/blueprint-reader.js +5 -6
  6. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  7. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  8. package/build/parser/satisfactory/blueprint/blueprint-writer.js +3 -4
  9. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  10. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -2
  11. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
  12. package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
  13. package/build/parser/satisfactory/edit/edit-constants.d.ts +4 -0
  14. package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
  15. package/build/parser/satisfactory/edit/edit-constants.js +4 -0
  16. package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
  17. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  18. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +6 -4
  19. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -1
  20. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +10 -19
  21. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
  22. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -1
  23. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +3 -5
  24. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -1
  25. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -1
  26. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +3 -5
  27. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -1
  28. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -1
  29. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +3 -5
  30. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -1
  31. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -1
  32. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +3 -5
  33. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -1
  34. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -1
  35. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +3 -5
  36. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -1
  37. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -1
  38. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +3 -5
  39. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -1
  40. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -1
  41. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +3 -5
  42. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -1
  43. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -1
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +3 -5
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -1
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -1
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +3 -5
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -1
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -1
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +3 -5
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -1
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -1
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +10 -7
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -1
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -1
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +3 -5
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -1
  58. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +9 -8
  59. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  60. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +18 -18
  61. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  62. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +9 -8
  63. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  64. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +18 -19
  65. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  66. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +9 -8
  67. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  68. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +18 -18
  69. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  70. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +9 -11
  71. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  72. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +18 -19
  73. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  74. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +9 -8
  75. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  76. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +18 -18
  77. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  78. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +9 -8
  79. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  80. package/build/parser/satisfactory/types/property/generic/Int32Property.js +18 -18
  81. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  82. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +9 -8
  83. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  84. package/build/parser/satisfactory/types/property/generic/Int64Property.js +18 -18
  85. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  86. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +9 -8
  87. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  88. package/build/parser/satisfactory/types/property/generic/Int8Property.js +18 -18
  89. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  90. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +7 -5
  91. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  92. package/build/parser/satisfactory/types/property/generic/MapProperty.js +22 -20
  93. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  94. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +9 -8
  95. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  96. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +18 -18
  97. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  98. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +1 -1
  99. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -1
  100. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +5 -7
  101. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -1
  102. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -1
  103. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +3 -5
  104. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -1
  105. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -1
  106. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +3 -5
  107. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -1
  108. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -1
  109. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +3 -5
  110. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -1
  111. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -1
  112. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +3 -5
  113. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -1
  114. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +9 -8
  115. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  116. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +20 -20
  117. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  118. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +9 -8
  119. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  120. package/build/parser/satisfactory/types/property/generic/StrProperty.js +18 -18
  121. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +9 -8
  123. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  124. package/build/parser/satisfactory/types/property/generic/StructProperty.js +21 -19
  125. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  126. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +9 -8
  127. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  128. package/build/parser/satisfactory/types/property/generic/TextProperty.js +18 -18
  129. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  130. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +9 -8
  131. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  132. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +18 -18
  133. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  134. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +9 -8
  135. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  136. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +18 -18
  137. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  138. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +9 -8
  139. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  140. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +18 -18
  141. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  142. package/docs/assets/highlight.css +7 -0
  143. package/docs/assets/navigation.js +1 -1
  144. package/docs/assets/search.js +1 -1
  145. package/docs/classes/BlueprintConfigReader.html +3 -3
  146. package/docs/classes/BlueprintConfigWriter.html +3 -3
  147. package/docs/classes/BlueprintReader.html +3 -3
  148. package/docs/classes/BlueprintWriter.html +3 -3
  149. package/docs/classes/CompressionLibraryError.html +2 -2
  150. package/docs/classes/CorruptSaveError.html +2 -2
  151. package/docs/classes/Parser.html +6 -6
  152. package/docs/classes/ParserError.html +2 -2
  153. package/docs/classes/ReadableStreamParser.html +2 -2
  154. package/docs/classes/SatisfactorySave.html +2 -2
  155. package/docs/classes/SaveComponent.html +2 -2
  156. package/docs/classes/SaveEntity.html +2 -2
  157. package/docs/classes/SaveObject.html +2 -2
  158. package/docs/classes/SaveReader.html +3 -3
  159. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  160. package/docs/classes/SaveStreamWriter.html +2 -2
  161. package/docs/classes/SaveWriter.html +3 -3
  162. package/docs/classes/TimeoutError.html +2 -2
  163. package/docs/classes/UnimplementedError.html +2 -2
  164. package/docs/classes/UnsupportedVersionError.html +2 -2
  165. package/docs/functions/AbstractBaseProperty.Create.html +1 -0
  166. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -1
  167. package/docs/functions/ArrayProperty.Parse.html +1 -1
  168. package/docs/functions/ArrayProperty.Serialize.html +1 -1
  169. package/docs/functions/BoolArrayProperty.Parse.html +1 -1
  170. package/docs/functions/BoolArrayProperty.Serialize.html +1 -1
  171. package/docs/functions/BoolProperty.CalcOverhead.html +1 -0
  172. package/docs/functions/BoolProperty.Parse.html +1 -0
  173. package/docs/functions/BoolProperty.ReadValue.html +1 -0
  174. package/docs/functions/BoolProperty.Serialize.html +1 -0
  175. package/docs/functions/BoolProperty.SerializeValue.html +1 -0
  176. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  177. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  178. package/docs/functions/ByteArrayProperty.Parse.html +1 -1
  179. package/docs/functions/ByteArrayProperty.Serialize.html +1 -1
  180. package/docs/functions/ByteProperty.CalcOverhead.html +1 -0
  181. package/docs/functions/ByteProperty.Parse.html +1 -0
  182. package/docs/functions/ByteProperty.ReadValue.html +1 -0
  183. package/docs/functions/ByteProperty.Serialize.html +1 -0
  184. package/docs/functions/ByteProperty.SerializeValue.html +1 -0
  185. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  186. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  187. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  188. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  189. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  190. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  191. package/docs/functions/DoubleArrayProperty.Parse.html +1 -1
  192. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -1
  193. package/docs/functions/DoubleProperty.CalcOverhead.html +1 -0
  194. package/docs/functions/DoubleProperty.Parse.html +1 -0
  195. package/docs/functions/DoubleProperty.ReadValue.html +1 -0
  196. package/docs/functions/DoubleProperty.Serialize.html +1 -0
  197. package/docs/functions/DoubleProperty.SerializeValue.html +1 -0
  198. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  199. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  200. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  201. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  202. package/docs/functions/EnumArrayProperty.Parse.html +1 -1
  203. package/docs/functions/EnumArrayProperty.Serialize.html +1 -1
  204. package/docs/functions/EnumProperty.CalcOverhead.html +1 -0
  205. package/docs/functions/EnumProperty.Parse.html +1 -0
  206. package/docs/functions/EnumProperty.ReadValue.html +1 -0
  207. package/docs/functions/EnumProperty.Serialize.html +1 -0
  208. package/docs/functions/EnumProperty.SerializeValue.html +1 -0
  209. package/docs/functions/FICFrameRange.Parse.html +1 -1
  210. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  211. package/docs/functions/FloatArrayProperty.Parse.html +1 -1
  212. package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
  213. package/docs/functions/FloatProperty.CalcOverhead.html +1 -0
  214. package/docs/functions/FloatProperty.Parse.html +1 -0
  215. package/docs/functions/FloatProperty.ReadValue.html +1 -0
  216. package/docs/functions/FloatProperty.Serialize.html +1 -0
  217. package/docs/functions/FloatProperty.SerializeValue.html +1 -0
  218. package/docs/functions/GUID.read.html +1 -1
  219. package/docs/functions/GUID.write.html +1 -1
  220. package/docs/functions/GUIDInfo.read.html +1 -1
  221. package/docs/functions/GUIDInfo.write.html +1 -1
  222. package/docs/functions/Int32ArrayProperty.Parse.html +1 -1
  223. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
  224. package/docs/functions/Int32Property.CalcOverhead.html +1 -0
  225. package/docs/functions/Int32Property.Parse.html +1 -0
  226. package/docs/functions/Int32Property.ReadValue.html +1 -0
  227. package/docs/functions/Int32Property.Serialize.html +1 -0
  228. package/docs/functions/Int32Property.SerializeValue.html +1 -0
  229. package/docs/functions/Int32SetProperty.Parse.html +1 -1
  230. package/docs/functions/Int32SetProperty.Serialize.html +1 -1
  231. package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
  232. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
  233. package/docs/functions/Int64Property.CalcOverhead.html +1 -0
  234. package/docs/functions/Int64Property.Parse.html +1 -0
  235. package/docs/functions/Int64Property.ReadValue.html +1 -0
  236. package/docs/functions/Int64Property.Serialize.html +1 -0
  237. package/docs/functions/Int64Property.SerializeValue.html +1 -0
  238. package/docs/functions/Int8Property.CalcOverhead.html +1 -0
  239. package/docs/functions/Int8Property.Parse.html +1 -0
  240. package/docs/functions/Int8Property.ReadValue.html +1 -0
  241. package/docs/functions/Int8Property.Serialize.html +1 -0
  242. package/docs/functions/Int8Property.SerializeValue.html +1 -0
  243. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  244. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  245. package/docs/functions/Level.ReadLevel.html +1 -1
  246. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  247. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  248. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  249. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  250. package/docs/functions/Level.SerializeLevel.html +1 -1
  251. package/docs/functions/MD5Hash.read.html +1 -1
  252. package/docs/functions/MD5Hash.write.html +1 -1
  253. package/docs/functions/MapProperty.CalcOverhead.html +1 -0
  254. package/docs/functions/MapProperty.Parse.html +1 -0
  255. package/docs/functions/MapProperty.Serialize.html +1 -0
  256. package/docs/functions/ObjectArrayProperty.Parse.html +1 -1
  257. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -1
  258. package/docs/functions/ObjectProperty.CalcOverhead.html +1 -0
  259. package/docs/functions/ObjectProperty.Parse.html +1 -0
  260. package/docs/functions/ObjectProperty.ReadValue.html +1 -0
  261. package/docs/functions/ObjectProperty.Serialize.html +1 -0
  262. package/docs/functions/ObjectProperty.SerializeValue.html +1 -0
  263. package/docs/functions/ObjectReference.read.html +1 -1
  264. package/docs/functions/ObjectReference.write.html +1 -1
  265. package/docs/functions/ObjectSetProperty.Parse.html +1 -1
  266. package/docs/functions/ObjectSetProperty.Serialize.html +1 -1
  267. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  268. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  269. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  270. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  271. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  272. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  273. package/docs/functions/PropertiesList.ParseList.html +1 -1
  274. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  275. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  276. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  277. package/docs/functions/SetProperty.CalcOverhead.html +1 -1
  278. package/docs/functions/SetProperty.Parse.html +1 -1
  279. package/docs/functions/SetProperty.Serialize.html +1 -1
  280. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -1
  281. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -1
  282. package/docs/functions/SoftObjectReference.read.html +1 -1
  283. package/docs/functions/SoftObjectReference.write.html +1 -1
  284. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  285. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  286. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  287. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  288. package/docs/functions/StrArrayProperty.Parse.html +1 -1
  289. package/docs/functions/StrArrayProperty.Serialize.html +1 -1
  290. package/docs/functions/StrProperty.CalcOverhead.html +1 -0
  291. package/docs/functions/StrProperty.Parse.html +1 -0
  292. package/docs/functions/StrProperty.ReadValue.html +1 -0
  293. package/docs/functions/StrProperty.Serialize.html +1 -0
  294. package/docs/functions/StrProperty.SerializeValue.html +1 -0
  295. package/docs/functions/StrSetProperty.Parse.html +1 -1
  296. package/docs/functions/StrSetProperty.Serialize.html +1 -1
  297. package/docs/functions/StructArrayProperty.Parse.html +1 -1
  298. package/docs/functions/StructArrayProperty.Serialize.html +1 -1
  299. package/docs/functions/StructProperty.CalcOverhead.html +1 -0
  300. package/docs/functions/StructProperty.Parse.html +1 -0
  301. package/docs/functions/StructProperty.ParseValue.html +1 -0
  302. package/docs/functions/StructProperty.Serialize.html +1 -0
  303. package/docs/functions/StructProperty.SerializeValue.html +1 -0
  304. package/docs/functions/StructSetProperty.Parse.html +1 -1
  305. package/docs/functions/StructSetProperty.Serialize.html +1 -1
  306. package/docs/functions/TextArrayProperty.Parse.html +1 -1
  307. package/docs/functions/TextArrayProperty.Serialize.html +1 -1
  308. package/docs/functions/TextProperty.CalcOverhead.html +1 -0
  309. package/docs/functions/TextProperty.Parse.html +1 -0
  310. package/docs/functions/TextProperty.ReadValue.html +1 -0
  311. package/docs/functions/TextProperty.Serialize.html +1 -0
  312. package/docs/functions/TextProperty.SerializeValue.html +1 -0
  313. package/docs/functions/Transform.Parse.html +1 -1
  314. package/docs/functions/Transform.ParseF.html +1 -1
  315. package/docs/functions/Transform.Serialize.html +1 -1
  316. package/docs/functions/Transform.SerializeF.html +1 -1
  317. package/docs/functions/Uint32Property.CalcOverhead.html +1 -0
  318. package/docs/functions/Uint32Property.Parse.html +1 -0
  319. package/docs/functions/Uint32Property.ReadValue.html +1 -0
  320. package/docs/functions/Uint32Property.Serialize.html +1 -0
  321. package/docs/functions/Uint32Property.SerializeValue.html +1 -0
  322. package/docs/functions/Uint32SetProperty.Parse.html +1 -1
  323. package/docs/functions/Uint32SetProperty.Serialize.html +1 -1
  324. package/docs/functions/Uint64Property.CalcOverhead.html +1 -0
  325. package/docs/functions/Uint64Property.Parse.html +1 -0
  326. package/docs/functions/Uint64Property.ReadValue.html +1 -0
  327. package/docs/functions/Uint64Property.Serialize.html +1 -0
  328. package/docs/functions/Uint64Property.SerializeValue.html +1 -0
  329. package/docs/functions/Uint8Property.CalcOverhead.html +1 -0
  330. package/docs/functions/Uint8Property.Parse.html +1 -0
  331. package/docs/functions/Uint8Property.ReadValue.html +1 -0
  332. package/docs/functions/Uint8Property.Serialize.html +1 -0
  333. package/docs/functions/Uint8Property.SerializeValue.html +1 -0
  334. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  335. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  336. package/docs/functions/col4.ParseBGRA.html +1 -1
  337. package/docs/functions/col4.ParseRGBA.html +1 -1
  338. package/docs/functions/col4.SerializeBGRA.html +1 -1
  339. package/docs/functions/col4.SerializeRGBA.html +1 -1
  340. package/docs/functions/isArrayProperty.html +1 -1
  341. package/docs/functions/isBoolArrayProperty.html +1 -1
  342. package/docs/functions/isBoolProperty.html +1 -1
  343. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  344. package/docs/functions/isByteArrayProperty.html +1 -1
  345. package/docs/functions/isByteProperty.html +1 -1
  346. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  347. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  348. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  349. package/docs/functions/isDoubleArrayProperty.html +1 -1
  350. package/docs/functions/isDoubleProperty.html +1 -1
  351. package/docs/functions/isEmptySpecialProperties.html +1 -1
  352. package/docs/functions/isEnumArrayProperty.html +1 -1
  353. package/docs/functions/isEnumProperty.html +1 -1
  354. package/docs/functions/isFloatArrayProperty.html +1 -1
  355. package/docs/functions/isFloatProperty.html +1 -1
  356. package/docs/functions/isInt32ArrayProperty.html +1 -1
  357. package/docs/functions/isInt32Property.html +1 -1
  358. package/docs/functions/isInt32SetProperty.html +1 -1
  359. package/docs/functions/isInt64ArrayProperty.html +1 -1
  360. package/docs/functions/isInt64Property.html +1 -1
  361. package/docs/functions/isInt8Property.html +1 -1
  362. package/docs/functions/isMapProperty.html +1 -1
  363. package/docs/functions/isObjectArrayProperty.html +1 -1
  364. package/docs/functions/isObjectProperty.html +1 -1
  365. package/docs/functions/isObjectSetProperty.html +1 -1
  366. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  367. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  368. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  369. package/docs/functions/isSaveComponent.html +1 -1
  370. package/docs/functions/isSaveEntity.html +1 -1
  371. package/docs/functions/isSetProperty.html +1 -1
  372. package/docs/functions/isSoftObjectArrayProperty.html +1 -1
  373. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  374. package/docs/functions/isStrArrayProperty.html +1 -1
  375. package/docs/functions/isStrProperty.html +1 -1
  376. package/docs/functions/isStrSetProperty.html +1 -1
  377. package/docs/functions/isStructArrayProperty.html +1 -1
  378. package/docs/functions/isStructProperty.html +1 -1
  379. package/docs/functions/isStructSetProperty.html +1 -1
  380. package/docs/functions/isTextArrayProperty.html +1 -1
  381. package/docs/functions/isTextProperty.html +1 -1
  382. package/docs/functions/isUInt64Property.html +1 -1
  383. package/docs/functions/isUint32Property.html +1 -1
  384. package/docs/functions/isUint32SetProperty.html +1 -1
  385. package/docs/functions/isUint8Property.html +1 -1
  386. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  387. package/docs/functions/vec2.Parse.html +1 -1
  388. package/docs/functions/vec2.ParseF.html +1 -1
  389. package/docs/functions/vec2.Serialize.html +1 -1
  390. package/docs/functions/vec2.SerializeF.html +1 -1
  391. package/docs/functions/vec3.Parse.html +1 -1
  392. package/docs/functions/vec3.ParseF.html +1 -1
  393. package/docs/functions/vec3.ParseInt.html +1 -1
  394. package/docs/functions/vec3.Serialize.html +1 -1
  395. package/docs/functions/vec3.SerializeF.html +1 -1
  396. package/docs/functions/vec3.SerializeInt.html +1 -1
  397. package/docs/functions/vec3.add.html +1 -1
  398. package/docs/functions/vec3.length.html +1 -1
  399. package/docs/functions/vec3.mult.html +1 -1
  400. package/docs/functions/vec3.norm.html +1 -1
  401. package/docs/functions/vec3.sub.html +1 -1
  402. package/docs/functions/vec4.Parse.html +1 -1
  403. package/docs/functions/vec4.ParseF.html +1 -1
  404. package/docs/functions/vec4.Serialize.html +1 -1
  405. package/docs/functions/vec4.SerializeF.html +1 -1
  406. package/docs/hierarchy.html +1 -1
  407. package/docs/index.html +24 -29
  408. package/docs/interfaces/Blueprint.html +2 -2
  409. package/docs/interfaces/BlueprintConfig.html +2 -2
  410. package/docs/interfaces/ModData.html +2 -2
  411. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  412. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  413. package/docs/interfaces/SaveComponentHeader.html +2 -2
  414. package/docs/interfaces/SaveEntityHeader.html +2 -2
  415. package/docs/interfaces/SaveObjectHeader.html +2 -2
  416. package/docs/modules/AbstractBaseProperty.html +2 -0
  417. package/docs/modules/ArrayProperty.html +1 -1
  418. package/docs/modules/BoolArrayProperty.html +1 -1
  419. package/docs/modules/BoolProperty.html +6 -0
  420. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  421. package/docs/modules/ByteArrayProperty.html +1 -1
  422. package/docs/modules/ByteProperty.html +6 -0
  423. package/docs/modules/CircuitSpecialProperties.html +1 -1
  424. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  425. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  426. package/docs/modules/DoubleArrayProperty.html +1 -1
  427. package/docs/modules/DoubleProperty.html +6 -0
  428. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  429. package/docs/modules/EmptySpecialProperties.html +1 -1
  430. package/docs/modules/EnumArrayProperty.html +1 -1
  431. package/docs/modules/EnumProperty.html +6 -0
  432. package/docs/modules/FICFrameRange.html +1 -1
  433. package/docs/modules/FloatArrayProperty.html +1 -1
  434. package/docs/modules/FloatProperty.html +6 -0
  435. package/docs/modules/GUID.html +1 -1
  436. package/docs/modules/GUIDInfo.html +1 -1
  437. package/docs/modules/Int32ArrayProperty.html +1 -1
  438. package/docs/modules/Int32Property.html +6 -0
  439. package/docs/modules/Int32SetProperty.html +1 -1
  440. package/docs/modules/Int64ArrayProperty.html +1 -1
  441. package/docs/modules/Int64Property.html +6 -0
  442. package/docs/modules/Int8Property.html +6 -0
  443. package/docs/modules/Level.html +1 -1
  444. package/docs/modules/MD5Hash.html +1 -1
  445. package/docs/modules/MapProperty.html +4 -0
  446. package/docs/modules/ObjectArrayProperty.html +1 -1
  447. package/docs/modules/ObjectProperty.html +6 -0
  448. package/docs/modules/ObjectReference.html +1 -1
  449. package/docs/modules/ObjectSetProperty.html +1 -1
  450. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  451. package/docs/modules/PlayerSpecialProperties.html +1 -1
  452. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  453. package/docs/modules/PropertiesList.html +1 -1
  454. package/docs/modules/SetProperty.html +1 -1
  455. package/docs/modules/SoftObjectArrayProperty.html +1 -1
  456. package/docs/modules/SoftObjectReference.html +1 -1
  457. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  458. package/docs/modules/SpecialProperties.html +1 -1
  459. package/docs/modules/StrArrayProperty.html +1 -1
  460. package/docs/modules/StrProperty.html +6 -0
  461. package/docs/modules/StrSetProperty.html +1 -1
  462. package/docs/modules/StructArrayProperty.html +1 -1
  463. package/docs/modules/StructProperty.html +6 -0
  464. package/docs/modules/StructSetProperty.html +1 -1
  465. package/docs/modules/TextArrayProperty.html +1 -1
  466. package/docs/modules/TextProperty.html +6 -0
  467. package/docs/modules/Transform.html +1 -1
  468. package/docs/modules/Uint32Property.html +6 -0
  469. package/docs/modules/Uint32SetProperty.html +1 -1
  470. package/docs/modules/Uint64Property.html +6 -0
  471. package/docs/modules/Uint8Property.html +6 -0
  472. package/docs/modules/VehicleSpecialProperties.html +1 -1
  473. package/docs/modules/col4.html +1 -1
  474. package/docs/modules/vec2.html +1 -1
  475. package/docs/modules/vec3.html +1 -1
  476. package/docs/modules/vec4.html +1 -1
  477. package/docs/modules.html +37 -20
  478. package/docs/types/AbstractBaseProperty-1.html +1 -0
  479. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
  480. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  481. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  482. package/docs/types/BasicStructPropertyValue.html +1 -1
  483. package/docs/types/BlueprintHeader.html +1 -1
  484. package/docs/types/BoolArrayProperty-1.html +1 -1
  485. package/docs/types/BoolProperty-1.html +1 -0
  486. package/docs/types/BoxStructPropertyValue.html +1 -1
  487. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  488. package/docs/types/BuildableTypeInstance.html +1 -1
  489. package/docs/types/ByteArrayProperty-1.html +1 -1
  490. package/docs/types/ByteProperty-1.html +1 -0
  491. package/docs/types/BytePropertyValue.html +1 -1
  492. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  493. package/docs/types/ClientIdentityInfo.html +1 -1
  494. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  495. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  496. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  497. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  498. package/docs/types/DoubleArrayProperty-1.html +1 -1
  499. package/docs/types/DoubleProperty-1.html +1 -0
  500. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  501. package/docs/types/EmptySpecialProperties-1.html +1 -1
  502. package/docs/types/EnumArrayProperty-1.html +1 -1
  503. package/docs/types/EnumProperty-1.html +1 -0
  504. package/docs/types/FICFrameRange-1.html +1 -1
  505. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  506. package/docs/types/FloatArrayProperty-1.html +1 -1
  507. package/docs/types/FloatProperty-1.html +1 -0
  508. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  509. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  510. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  511. package/docs/types/GUID-1.html +1 -1
  512. package/docs/types/GUIDInfo-1.html +1 -1
  513. package/docs/types/Int32ArrayProperty-1.html +1 -1
  514. package/docs/types/Int32Property-1.html +1 -0
  515. package/docs/types/Int32SetProperty-1.html +1 -1
  516. package/docs/types/Int64ArrayProperty-1.html +1 -1
  517. package/docs/types/Int64Property-1.html +1 -0
  518. package/docs/types/Int8Property-1.html +1 -0
  519. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  520. package/docs/types/Level-1.html +1 -1
  521. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  522. package/docs/types/MD5Hash-1.html +1 -1
  523. package/docs/types/MapProperty-1.html +1 -0
  524. package/docs/types/ObjectArrayProperty-1.html +1 -1
  525. package/docs/types/ObjectProperty-1.html +1 -0
  526. package/docs/types/ObjectReference-1.html +1 -1
  527. package/docs/types/ObjectSetProperty-1.html +1 -1
  528. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  529. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  530. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  531. package/docs/types/PropertiesMap.html +1 -1
  532. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  533. package/docs/types/RoughSaveVersion.html +1 -1
  534. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
  535. package/docs/types/SoftObjectArrayProperty-1.html +1 -1
  536. package/docs/types/SoftObjectReference-1.html +1 -1
  537. package/docs/types/SpecialDroneAction.html +1 -1
  538. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  539. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  540. package/docs/types/StrArrayProperty-1.html +1 -1
  541. package/docs/types/StrProperty-1.html +1 -0
  542. package/docs/types/StrSetProperty-1.html +1 -1
  543. package/docs/types/StructArrayProperty-1.html +1 -1
  544. package/docs/types/StructProperty-1.html +1 -0
  545. package/docs/types/StructSetProperty-1.html +1 -1
  546. package/docs/types/TextArrayProperty-1.html +1 -1
  547. package/docs/types/TextProperty-1.html +1 -0
  548. package/docs/types/TextPropertyValue.html +1 -1
  549. package/docs/types/Transform-1.html +1 -1
  550. package/docs/types/Uint32Property-1.html +1 -0
  551. package/docs/types/Uint32SetProperty-1.html +1 -1
  552. package/docs/types/Uint64Property-1.html +1 -0
  553. package/docs/types/Uint8Property-1.html +1 -0
  554. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  555. package/docs/types/col4-1.html +1 -1
  556. package/docs/types/vec2-1.html +1 -1
  557. package/docs/types/vec3-1.html +1 -1
  558. package/docs/types/vec4-1.html +1 -1
  559. package/docs/variables/EDIT.html +1 -1
  560. package/package.json +2 -2
  561. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts +0 -23
  562. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts.map +0 -1
  563. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js +0 -172
  564. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js.map +0 -1
  565. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts +0 -26
  566. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts.map +0 -1
  567. package/build/parser/satisfactory/types/property/generic/BasicProperty.js +0 -29
  568. package/build/parser/satisfactory/types/property/generic/BasicProperty.js.map +0 -1
  569. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts +0 -13
  570. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts.map +0 -1
  571. package/build/parser/satisfactory/types/property/generic/SetProperty.js +0 -95
  572. package/build/parser/satisfactory/types/property/generic/SetProperty.js.map +0 -1
  573. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts +0 -55
  574. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts.map +0 -1
  575. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js +0 -3
  576. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js.map +0 -1
  577. package/docs/classes/AbstractBaseProperty.html +0 -7
  578. package/docs/classes/BoolProperty.html +0 -13
  579. package/docs/classes/ByteProperty.html +0 -13
  580. package/docs/classes/DoubleProperty.html +0 -13
  581. package/docs/classes/EnumProperty.html +0 -13
  582. package/docs/classes/FloatProperty.html +0 -13
  583. package/docs/classes/Int32Property.html +0 -13
  584. package/docs/classes/Int64Property.html +0 -13
  585. package/docs/classes/Int8Property.html +0 -13
  586. package/docs/classes/MapProperty.html +0 -17
  587. package/docs/classes/ObjectProperty.html +0 -13
  588. package/docs/classes/StrProperty.html +0 -13
  589. package/docs/classes/StructProperty.html +0 -18
  590. package/docs/classes/TextProperty.html +0 -13
  591. package/docs/classes/Uint32Property.html +0 -13
  592. package/docs/classes/Uint64Property.html +0 -13
  593. package/docs/classes/Uint8Property.html +0 -13
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SoftObjectArrayProperty = exports.isSoftObjectArrayProperty = void 0;
4
+ const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
4
5
  const SoftObjectProperty_1 = require("../SoftObjectProperty");
5
6
  const isSoftObjectArrayProperty = (property) => !Array.isArray(property) && property.type === 'SoftObjectArrayProperty';
6
7
  exports.isSoftObjectArrayProperty = isSoftObjectArrayProperty;
@@ -9,13 +10,10 @@ var SoftObjectArrayProperty;
9
10
  SoftObjectArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
11
  const values = new Array(elementCount).fill(0).map(() => SoftObjectProperty_1.SoftObjectProperty.ReadValue(reader));
11
12
  return {
13
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
12
14
  type: 'SoftObjectArrayProperty',
13
- index,
14
- ueType,
15
15
  subtype,
16
- values,
17
- guidInfo: undefined,
18
- name: ''
16
+ values
19
17
  };
20
18
  };
21
19
  SoftObjectArrayProperty.Serialize = (writer, property) => {
@@ -1 +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"]}
1
+ {"version":3,"file":"SoftObjectArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.ts"],"names":[],"mappings":";;;AAGA,kEAA+D;AAC/D,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,CAgBvC;AAhBD,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;QAE/F,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,yBAAyB;YAC/B,OAAO;YACP,MAAM;SACyB,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,EAhBgB,uBAAuB,uCAAvB,uBAAuB,QAgBvC","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\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'SoftObjectArrayProperty',\n subtype,\n values\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"]}
@@ -1 +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"}
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,gBASxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,gBAAgB,KAAG,IAE1E,CAAA;CACJ"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StrArrayProperty = exports.isStrArrayProperty = void 0;
4
+ const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
4
5
  const StrProperty_1 = require("../StrProperty");
5
6
  const isStrArrayProperty = (property) => !Array.isArray(property) && property.type === 'StrArrayProperty';
6
7
  exports.isStrArrayProperty = isStrArrayProperty;
@@ -9,13 +10,10 @@ var StrArrayProperty;
9
10
  StrArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
11
  const values = new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader));
11
12
  return {
13
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
12
14
  type: 'StrArrayProperty',
13
- index,
14
- ueType,
15
15
  subtype,
16
- values,
17
- guidInfo: undefined,
18
- name: ''
16
+ values
19
17
  };
20
18
  };
21
19
  StrArrayProperty.Serialize = (writer, property) => {
@@ -1 +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"]}
1
+ {"version":3,"file":"StrArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,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,CAgBhC;AAhBD,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;QAExF,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,kBAAkB;YACxB,OAAO;YACP,MAAM;SACkB,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,EAhBgB,gBAAgB,gCAAhB,gBAAgB,QAgBhC","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\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StrArrayProperty',\n subtype,\n values\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"]}
@@ -1 +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"}
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,mBAyDxH,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"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StructArrayProperty = exports.isStructArrayProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../../structs/GUIDInfo");
5
+ const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
5
6
  const StructProperty_1 = require("../StructProperty");
6
7
  const isStructArrayProperty = (property) => !Array.isArray(property) && property.type === 'StructArrayProperty';
7
8
  exports.isStructArrayProperty = isStructArrayProperty;
@@ -33,7 +34,12 @@ var StructArrayProperty;
33
34
  }
34
35
  const before = reader.getBufferPosition();
35
36
  const values = new Array(elementCount).fill(0).map(() => {
36
- const struct = new StructProperty_1.StructProperty(allStructType, allUEType, allIndex, allGuid);
37
+ const struct = {
38
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index: allIndex, ueType: allUEType, guidInfo: allGuid, type: '' }),
39
+ type: 'StructProperty',
40
+ subtype: allStructType,
41
+ value: { values: [] }
42
+ };
37
43
  struct.value = StructProperty_1.StructProperty.ParseValue(reader, allStructType, binarySize);
38
44
  return struct;
39
45
  });
@@ -42,14 +48,11 @@ var StructArrayProperty;
42
48
  throw new Error('possibly corrupt in array of struct.');
43
49
  }
44
50
  return {
51
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
45
52
  type: 'StructArrayProperty',
46
- index,
47
- ueType,
48
- subtype,
49
- values,
50
53
  structValueFields,
51
- guidInfo: undefined,
52
- name: ''
54
+ subtype,
55
+ values
53
56
  };
54
57
  };
55
58
  StructArrayProperty.Serialize = (writer, property) => {
@@ -1 +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;IAEnB,yBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAuB,EAAE;QAE3I,MAAM,IAAI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O,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"]}
1
+ {"version":3,"file":"StructArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,kEAA+D;AAC/D,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,CAiFnC;AAjFD,WAAiB,mBAAmB;IAEnB,yBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAuB,EAAE;QAE3I,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEpC,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEtC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,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,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,EAjFgB,mBAAmB,mCAAnB,mBAAmB,QAiFnC","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: StructProperty = {\n ...AbstractBaseProperty.Create({ index: allIndex, ueType: allUEType, guidInfo: allGuid, type: '' }),\n type: 'StructProperty',\n subtype: allStructType,\n value: { values: [] }\n };\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 ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StructArrayProperty',\n structValueFields,\n subtype,\n values\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"]}
@@ -1 +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"}
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,iBASxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextArrayProperty = exports.isTextArrayProperty = void 0;
4
+ const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
4
5
  const TextProperty_1 = require("../TextProperty");
5
6
  const isTextArrayProperty = (property) => !Array.isArray(property) && property.type === 'TextArrayProperty';
6
7
  exports.isTextArrayProperty = isTextArrayProperty;
@@ -9,13 +10,10 @@ var TextArrayProperty;
9
10
  TextArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
11
  const values = new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader));
11
12
  return {
13
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
12
14
  type: 'TextArrayProperty',
13
- index,
14
- ueType,
15
15
  subtype,
16
- values,
17
- guidInfo: undefined,
18
- name: ''
16
+ values
19
17
  };
20
18
  };
21
19
  TextArrayProperty.Serialize = (writer, property) => {
@@ -1 +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
+ {"version":3,"file":"TextArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,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,CAgBjC;AAhBD,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;QAEzF,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,mBAAmB;YACzB,OAAO;YACP,MAAM;SACmB,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,EAhBgB,iBAAiB,iCAAjB,iBAAiB,QAgBjC","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\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'TextArrayProperty',\n subtype,\n values\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,15 +1,16 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { GUIDInfo } from '../../structs/GUIDInfo';
4
3
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
4
  export declare const isBoolProperty: (property: any) => property is BoolProperty;
6
- export declare class BoolProperty extends AbstractBaseProperty {
5
+ export type BoolProperty = AbstractBaseProperty & {
6
+ type: 'BoolProperty';
7
7
  value: boolean;
8
- constructor(value: boolean, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): BoolProperty;
10
- static ReadValue(reader: BinaryReadable): boolean;
11
- static CalcOverhead(property: BoolProperty): number;
12
- static Serialize(writer: ByteWriter, property: BoolProperty): void;
13
- static SerializeValue(writer: ByteWriter, value: boolean): void;
8
+ };
9
+ export declare namespace BoolProperty {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => BoolProperty;
11
+ const ReadValue: (reader: BinaryReadable) => boolean;
12
+ const CalcOverhead: (property: BoolProperty) => number;
13
+ const Serialize: (writer: ByteWriter, property: BoolProperty) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: boolean) => void;
14
15
  }
15
16
  //# sourceMappingURL=BoolProperty.d.ts.map
@@ -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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,qBAAa,YAAa,SAAQ,oBAAoB;IAE/B,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAM9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO;WAI1C,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;CAGzE"}
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;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,YASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,OAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAGtE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,OAAO,KAAG,IAEnE,CAAA;CACJ"}
@@ -5,29 +5,29 @@ const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
5
  const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
6
  const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
7
7
  exports.isBoolProperty = isBoolProperty;
8
- class BoolProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
- constructor(value, ueType = 'BoolProperty', guidInfo = undefined, index = 0) {
10
- super({ type: 'BoolProperty', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var BoolProperty;
9
+ (function (BoolProperty) {
10
+ BoolProperty.Parse = (reader, ueType, index = 0) => {
14
11
  const value = BoolProperty.ReadValue(reader);
15
12
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
16
- return new BoolProperty(value, ueType, guidInfo, index);
17
- }
18
- static ReadValue(reader) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'BoolProperty',
16
+ value
17
+ };
18
+ };
19
+ BoolProperty.ReadValue = (reader) => {
19
20
  return reader.readByte() > 0;
20
- }
21
- static CalcOverhead(property) {
21
+ };
22
+ BoolProperty.CalcOverhead = (property) => {
22
23
  return 1 + 1;
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ BoolProperty.Serialize = (writer, property) => {
25
26
  BoolProperty.SerializeValue(writer, property.value);
26
27
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ BoolProperty.SerializeValue = (writer, value) => {
29
30
  writer.writeByte(value ? 1 : 0);
30
- }
31
- }
32
- exports.BoolProperty = BoolProperty;
31
+ };
32
+ })(BoolProperty || (exports.BoolProperty = BoolProperty = {}));
33
33
  //# sourceMappingURL=BoolProperty.js.map
@@ -1 +1 @@
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
+ {"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;AAOxI,IAAiB,YAAY,CA6B5B;AA7BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC7F,MAAM,KAAK,GAAG,aAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,cAAc;YACpB,KAAK;SACe,CAAC;IAC7B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAsB,EAAW,EAAE;QACzD,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAU,EAAE;QAC3D,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAkB,EAAE,QAAsB,EAAQ,EAAE;QAC1E,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAc,EAAQ,EAAE;QACvE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAA;AACL,CAAC,EA7BgB,YAAY,4BAAZ,YAAY,QA6B5B","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 type BoolProperty = AbstractBaseProperty & {\n type: 'BoolProperty';\n value: boolean;\n};\n\nexport namespace BoolProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty => {\n const value = ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'BoolProperty',\n value\n } satisfies BoolProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): boolean => {\n return reader.readByte() > 0;\n }\n\n export const CalcOverhead = (property: BoolProperty): number => {\n return 1 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: BoolProperty): void => {\n SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: boolean): void => {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
@@ -1,16 +1,17 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { GUIDInfo } from '../../structs/GUIDInfo';
4
3
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
4
  export declare const isByteProperty: (property: any) => property is ByteProperty;
6
- export declare class ByteProperty extends AbstractBaseProperty {
5
+ export type ByteProperty = AbstractBaseProperty & {
6
+ type: 'ByteProperty';
7
7
  value: BytePropertyValue;
8
- constructor(value: BytePropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): ByteProperty;
10
- static ReadValue(reader: BinaryReadable): number;
11
- static CalcOverhead(property: ByteProperty): number;
12
- static Serialize(writer: ByteWriter, property: ByteProperty): void;
13
- static SerializeValue(writer: ByteWriter, value: number): void;
8
+ };
9
+ export declare namespace ByteProperty {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => ByteProperty;
11
+ const ReadValue: (reader: BinaryReadable) => number;
12
+ const CalcOverhead: (property: ByteProperty) => number;
13
+ const Serialize: (writer: ByteWriter, property: ByteProperty) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: number) => void;
14
15
  }
15
16
  export type BytePropertyValue = {
16
17
  type: string;
@@ -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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,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AY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAUtE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
@@ -5,12 +5,9 @@ const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
5
  const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
6
  const isByteProperty = (property) => !Array.isArray(property) && property.type === 'ByteProperty';
7
7
  exports.isByteProperty = isByteProperty;
8
- class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
- constructor(value, ueType = 'ByteProperty', guidInfo = undefined, index = 0) {
10
- super({ type: 'ByteProperty', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var ByteProperty;
9
+ (function (ByteProperty) {
10
+ ByteProperty.Parse = (reader, ueType, index = 0) => {
14
11
  const type = reader.readString();
15
12
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
16
13
  let value;
@@ -26,16 +23,19 @@ class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
26
23
  value: reader.readString()
27
24
  };
28
25
  }
29
- const property = new ByteProperty(value, ueType, guidInfo, index);
30
- return property;
31
- }
32
- static ReadValue(reader) {
26
+ return {
27
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
28
+ type: 'ByteProperty',
29
+ value
30
+ };
31
+ };
32
+ ByteProperty.ReadValue = (reader) => {
33
33
  return reader.readByte();
34
- }
35
- static CalcOverhead(property) {
34
+ };
35
+ ByteProperty.CalcOverhead = (property) => {
36
36
  return property.value.type.length + 5 + 1;
37
- }
38
- static Serialize(writer, property) {
37
+ };
38
+ ByteProperty.Serialize = (writer, property) => {
39
39
  writer.writeString(property.value.type);
40
40
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
41
41
  if (property.value.type === 'None') {
@@ -44,10 +44,9 @@ class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
44
44
  else {
45
45
  writer.writeString(property.value.value);
46
46
  }
47
- }
48
- static SerializeValue(writer, value) {
47
+ };
48
+ ByteProperty.SerializeValue = (writer, value) => {
49
49
  writer.writeByte(value);
50
- }
51
- }
52
- exports.ByteProperty = ByteProperty;
50
+ };
51
+ })(ByteProperty || (exports.ByteProperty = ByteProperty = {}));
53
52
  //# sourceMappingURL=ByteProperty.js.map
@@ -1 +1 @@
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,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,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,KAAK,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AqDC","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
+ {"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,K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AE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QAC3D,CAAC;aACI,CAAC;YACF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAA;AACL,CAAC,EApDgB,YAAY,4BAAZ,YAAY,QAoD5B","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 type ByteProperty = AbstractBaseProperty & {\n type: 'ByteProperty';\n value: BytePropertyValue;\n};\n\nexport namespace ByteProperty {\n\n export const 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: ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'ByteProperty',\n value\n } satisfies ByteProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readByte();\n }\n\n export const CalcOverhead = (property: ByteProperty): number => {\n return property.value.type.length + 5 + 1;\n }\n\n export const 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 SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n export const 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,15 +1,16 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { GUIDInfo } from '../../structs/GUIDInfo';
4
3
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
4
  export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
6
- export declare class DoubleProperty extends AbstractBaseProperty {
5
+ export type DoubleProperty = AbstractBaseProperty & {
6
+ type: 'DoubleProperty';
7
7
  value: number;
8
- constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): DoubleProperty;
10
- static ReadValue(reader: BinaryReadable): number;
11
- static CalcOverhead(property: DoubleProperty): number;
12
- static Serialize(writer: ByteWriter, property: DoubleProperty): void;
13
- static SerializeValue(writer: ByteWriter, value: number): void;
8
+ };
9
+ export declare namespace DoubleProperty {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => DoubleProperty;
11
+ const ReadValue: (reader: BinaryReadable) => number;
12
+ const CalcOverhead: (property: DoubleProperty) => number;
13
+ const Serialize: (writer: ByteWriter, property: DoubleProperty) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: number) => void;
14
15
  }
15
16
  //# sourceMappingURL=DoubleProperty.d.ts.map
@@ -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,MAA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AY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,cAAc,KAAG,MAEvD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,cAAc,KAAG,IAGxE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
@@ -5,29 +5,29 @@ const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
5
  const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
6
  const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
7
7
  exports.isDoubleProperty = isDoubleProperty;
8
- class DoubleProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
- constructor(value, ueType = 'DoubleProperty', guidInfo = undefined, index = 0) {
10
- super({ type: 'DoubleProperty', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var DoubleProperty;
9
+ (function (DoubleProperty) {
10
+ DoubleProperty.Parse = (reader, ueType, index = 0) => {
14
11
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
15
12
  const value = DoubleProperty.ReadValue(reader);
16
- return new DoubleProperty(value, ueType, guidInfo, index);
17
- }
18
- static ReadValue(reader) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'DoubleProperty',
16
+ value
17
+ };
18
+ };
19
+ DoubleProperty.ReadValue = (reader) => {
19
20
  return reader.readDouble();
20
- }
21
- static CalcOverhead(property) {
21
+ };
22
+ DoubleProperty.CalcOverhead = (property) => {
22
23
  return 1;
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ DoubleProperty.Serialize = (writer, property) => {
25
26
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
26
27
  DoubleProperty.SerializeValue(writer, property.value);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ DoubleProperty.SerializeValue = (writer, value) => {
29
30
  writer.writeDouble(value);
30
- }
31
- }
32
- exports.DoubleProperty = DoubleProperty;
31
+ };
32
+ })(DoubleProperty || (exports.DoubleProperty = DoubleProperty = {}));
33
33
  //# sourceMappingURL=DoubleProperty.js.map
@@ -1 +1 @@
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
+ {"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,EAA8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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 type DoubleProperty = AbstractBaseProperty & {\n type: 'DoubleProperty';\n value: number;\n};\n\nexport namespace DoubleProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'DoubleProperty',\n value\n } satisfies DoubleProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readDouble();\n }\n\n export const CalcOverhead = (property: DoubleProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: DoubleProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeDouble(value);\n }\n}\n"]}
@@ -1,21 +1,19 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { GUIDInfo } from '../../structs/GUIDInfo';
4
3
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
4
  export declare const isEnumProperty: (property: any) => property is EnumProperty;
6
- export declare class EnumProperty extends AbstractBaseProperty {
5
+ export type EnumProperty = AbstractBaseProperty & {
6
+ type: 'EnumProperty';
7
7
  value: {
8
8
  name: string;
9
9
  value: string;
10
10
  };
11
- constructor(value: {
12
- name: string;
13
- value: string;
14
- }, ueType?: string, guidInfo?: GUIDInfo, index?: number);
15
- static Parse(reader: BinaryReadable, ueType: string, index?: number): EnumProperty;
16
- static ReadValue(reader: BinaryReadable): string;
17
- static CalcOverhead(property: EnumProperty): number;
18
- static Serialize(writer: ByteWriter, property: EnumProperty): void;
19
- static SerializeValue(writer: ByteWriter, value: string): void;
11
+ };
12
+ export declare namespace EnumProperty {
13
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => EnumProperty;
14
+ const ReadValue: (reader: BinaryReadable) => string;
15
+ const CalcOverhead: (property: EnumProperty) => number;
16
+ const Serialize: (writer: ByteWriter, property: EnumProperty) => void;
17
+ const SerializeValue: (writer: ByteWriter, value: string) => void;
20
18
  }
21
19
  //# sourceMappingURL=EnumProperty.d.ts.map