@etothepii/satisfactory-file-parser 3.3.0 → 4.0.0

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 (895) hide show
  1. package/.vscode/settings.json +6 -0
  2. package/CHANGELOG.md +35 -4
  3. package/GUIDE.md +11 -7
  4. package/README.md +8 -6
  5. package/build/index.d.ts +112 -101
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +43 -40
  8. package/build/index.js.map +1 -1
  9. package/build/parser/byte/binary-readable.interface.d.ts +1 -0
  10. package/build/parser/byte/binary-readable.interface.d.ts.map +1 -1
  11. package/build/parser/byte/binary-readable.interface.js.map +1 -1
  12. package/build/parser/byte/byte-reader.class.d.ts +1 -0
  13. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  14. package/build/parser/byte/byte-reader.class.js +6 -2
  15. package/build/parser/byte/byte-reader.class.js.map +1 -1
  16. package/build/parser/byte/byte-writer.class.d.ts +1 -0
  17. package/build/parser/byte/byte-writer.class.d.ts.map +1 -1
  18. package/build/parser/byte/byte-writer.class.js +6 -0
  19. package/build/parser/byte/byte-writer.class.js.map +1 -1
  20. package/build/parser/context/context-reader.d.ts +1 -1
  21. package/build/parser/context/context-reader.d.ts.map +1 -1
  22. package/build/parser/context/context-reader.js.map +1 -1
  23. package/build/parser/context/context-writer.d.ts +1 -1
  24. package/build/parser/context/context-writer.d.ts.map +1 -1
  25. package/build/parser/context/context-writer.js.map +1 -1
  26. package/build/parser/context/hierarchical-version-context.d.ts +11 -0
  27. package/build/parser/context/hierarchical-version-context.d.ts.map +1 -0
  28. package/build/parser/context/hierarchical-version-context.js +24 -0
  29. package/build/parser/context/hierarchical-version-context.js.map +1 -0
  30. package/build/parser/context/{context.d.ts → reader-writer-context.d.ts} +5 -3
  31. package/build/parser/context/reader-writer-context.d.ts.map +1 -0
  32. package/build/parser/context/{context.js → reader-writer-context.js} +1 -1
  33. package/build/parser/context/reader-writer-context.js.map +1 -0
  34. package/build/parser/parser.d.ts.map +1 -1
  35. package/build/parser/parser.js +36 -20
  36. package/build/parser/parser.js.map +1 -1
  37. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts +4 -2
  38. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts.map +1 -1
  39. package/build/parser/satisfactory/blueprint/blueprint-config-version.js +4 -2
  40. package/build/parser/satisfactory/blueprint/blueprint-config-version.js.map +1 -1
  41. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts +4 -5
  42. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts.map +1 -1
  43. package/build/parser/satisfactory/blueprint/blueprint-config.js +16 -14
  44. package/build/parser/satisfactory/blueprint/blueprint-config.js.map +1 -1
  45. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts +2 -0
  46. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts.map +1 -1
  47. package/build/parser/satisfactory/blueprint/blueprint-header.js +18 -2
  48. package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -1
  49. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  50. package/build/parser/satisfactory/blueprint/blueprint-reader.js +6 -2
  51. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  52. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  53. package/build/parser/satisfactory/blueprint/blueprint-writer.js +5 -2
  54. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  55. package/build/parser/satisfactory/save/data-blob.d.ts +17 -0
  56. package/build/parser/satisfactory/save/data-blob.d.ts.map +1 -0
  57. package/build/parser/satisfactory/save/data-blob.js +137 -0
  58. package/build/parser/satisfactory/save/data-blob.js.map +1 -0
  59. package/build/parser/satisfactory/save/level.d.ts +5 -10
  60. package/build/parser/satisfactory/save/level.d.ts.map +1 -1
  61. package/build/parser/satisfactory/save/level.js +52 -180
  62. package/build/parser/satisfactory/save/level.js.map +1 -1
  63. package/build/parser/satisfactory/save/satisfactory-save-header.d.ts.map +1 -1
  64. package/build/parser/satisfactory/save/satisfactory-save-header.js +5 -3
  65. package/build/parser/satisfactory/save/satisfactory-save-header.js.map +1 -1
  66. package/build/parser/satisfactory/save/satisfactory-save.d.ts +3 -1
  67. package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -1
  68. package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -1
  69. package/build/parser/satisfactory/save/save-body-chunks.js +2 -2
  70. package/build/parser/satisfactory/save/save-body-chunks.js.map +1 -1
  71. package/build/parser/satisfactory/save/save-custom-version.d.ts +8 -2
  72. package/build/parser/satisfactory/save/save-custom-version.d.ts.map +1 -1
  73. package/build/parser/satisfactory/save/save-custom-version.js +8 -2
  74. package/build/parser/satisfactory/save/save-custom-version.js.map +1 -1
  75. package/build/parser/satisfactory/save/save-reader.d.ts +2 -2
  76. package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -1
  77. package/build/parser/satisfactory/save/save-reader.js +16 -13
  78. package/build/parser/satisfactory/save/save-reader.js.map +1 -1
  79. package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -1
  80. package/build/parser/satisfactory/save/save-writer.js +4 -1
  81. package/build/parser/satisfactory/save/save-writer.js.map +1 -1
  82. package/build/parser/satisfactory/save/save.types.d.ts +1 -1
  83. package/build/parser/satisfactory/save/save.types.d.ts.map +1 -1
  84. package/build/parser/satisfactory/save/save.types.js.map +1 -1
  85. package/build/parser/satisfactory/save/toc-blob.d.ts +18 -0
  86. package/build/parser/satisfactory/save/toc-blob.d.ts.map +1 -0
  87. package/build/parser/satisfactory/save/toc-blob.js +97 -0
  88. package/build/parser/satisfactory/save/toc-blob.js.map +1 -0
  89. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +4 -0
  90. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  91. package/build/parser/satisfactory/types/objects/SaveObject.js +19 -5
  92. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  93. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -4
  94. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  95. package/build/parser/satisfactory/types/property/PropertiesList.js +73 -114
  96. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  97. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +9 -12
  98. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -1
  99. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +12 -7
  100. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
  101. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +10 -5
  102. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  103. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -23
  104. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  105. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +12 -7
  106. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  107. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +37 -34
  108. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  109. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +9 -5
  110. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  111. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +15 -23
  112. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  113. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +10 -5
  114. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  115. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +17 -23
  116. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  117. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +9 -5
  118. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  119. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +15 -23
  120. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  121. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +9 -5
  122. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  123. package/build/parser/satisfactory/types/property/generic/Int64Property.js +15 -23
  124. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  125. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +8 -4
  126. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  127. package/build/parser/satisfactory/types/property/generic/Int8Property.js +11 -20
  128. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  129. package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts +20 -0
  130. package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts.map +1 -0
  131. package/build/parser/satisfactory/types/property/generic/IntProperty.js +25 -0
  132. package/build/parser/satisfactory/types/property/generic/IntProperty.js.map +1 -0
  133. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts +21 -0
  134. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts.map +1 -0
  135. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js +26 -0
  136. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js.map +1 -0
  137. package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts +20 -0
  138. package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts.map +1 -0
  139. package/build/parser/satisfactory/types/property/generic/NameProperty.js +25 -0
  140. package/build/parser/satisfactory/types/property/generic/NameProperty.js.map +1 -0
  141. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +9 -5
  142. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  143. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +15 -23
  144. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  145. package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts +20 -0
  146. package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts.map +1 -0
  147. package/build/parser/satisfactory/types/property/generic/SingleProperty.js +25 -0
  148. package/build/parser/satisfactory/types/property/generic/SingleProperty.js.map +1 -0
  149. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +9 -5
  150. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  151. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +15 -23
  152. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  153. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +9 -5
  154. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  155. package/build/parser/satisfactory/types/property/generic/StrProperty.js +15 -23
  156. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  157. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +9 -5
  158. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  159. package/build/parser/satisfactory/types/property/generic/TextProperty.js +38 -45
  160. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  161. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +9 -5
  162. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  163. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +15 -23
  164. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  165. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +9 -5
  166. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  167. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +14 -22
  168. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  169. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +9 -5
  170. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  171. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +14 -22
  172. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  173. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts +15 -0
  174. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts.map +1 -0
  175. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js +129 -0
  176. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js.map +1 -0
  177. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts +55 -0
  178. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts.map +1 -0
  179. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js +24 -0
  180. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js.map +1 -0
  181. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts +20 -0
  182. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts.map +1 -0
  183. package/build/parser/satisfactory/types/property/generic/{MapProperty.js → containers/MapProperty.js} +52 -61
  184. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.js.map +1 -0
  185. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts +14 -0
  186. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts.map +1 -0
  187. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js +90 -0
  188. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js.map +1 -0
  189. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts +34 -0
  190. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts.map +1 -0
  191. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js +17 -0
  192. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js.map +1 -0
  193. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts +59 -0
  194. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts.map +1 -0
  195. package/build/parser/satisfactory/types/property/generic/{StructProperty.js → containers/StructProperty.js} +69 -82
  196. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.js.map +1 -0
  197. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +2 -0
  198. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -1
  199. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +14 -5
  200. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -1
  201. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -1
  202. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -1
  203. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +2 -2
  204. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -1
  205. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts +4 -2
  206. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts.map +1 -1
  207. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js +4 -2
  208. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js.map +1 -1
  209. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +4 -4
  210. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  211. package/build/parser/satisfactory/types/structs/GUIDInfo.js +6 -6
  212. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  213. package/build/parser/satisfactory/types/structs/SaveBodyValidation.d.ts.map +1 -1
  214. package/build/parser/satisfactory/types/structs/SaveBodyValidation.js +0 -2
  215. package/build/parser/satisfactory/types/structs/SaveBodyValidation.js.map +1 -1
  216. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +1 -1
  217. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -1
  218. package/build/parser/satisfactory/types/structs/SoftObjectReference.js +2 -2
  219. package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -1
  220. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts +12 -0
  221. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts.map +1 -0
  222. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js +21 -0
  223. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js.map +1 -0
  224. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts +11 -0
  225. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts.map +1 -0
  226. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js +22 -0
  227. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js.map +1 -0
  228. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts +14 -0
  229. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts.map +1 -0
  230. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js +24 -0
  231. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js.map +1 -0
  232. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts +12 -0
  233. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts.map +1 -0
  234. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js +22 -0
  235. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js.map +1 -0
  236. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts +11 -0
  237. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts.map +1 -0
  238. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js +18 -0
  239. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js.map +1 -0
  240. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts +11 -0
  241. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts.map +1 -0
  242. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js +38 -0
  243. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js.map +1 -0
  244. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts +30 -0
  245. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts.map +1 -0
  246. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js +182 -0
  247. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js.map +1 -0
  248. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts +11 -0
  249. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts.map +1 -0
  250. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js +26 -0
  251. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js.map +1 -0
  252. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts +17 -0
  253. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts.map +1 -0
  254. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js +27 -0
  255. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js.map +1 -0
  256. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts +11 -0
  257. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts.map +1 -0
  258. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js +21 -0
  259. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js.map +1 -0
  260. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts +12 -0
  261. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts.map +1 -0
  262. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js +22 -0
  263. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js.map +1 -0
  264. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.d.ts +22 -0
  265. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.d.ts.map +1 -0
  266. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.js +40 -0
  267. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.js.map +1 -0
  268. package/build/parser/stream/reworked/readable-stream-parser.d.ts +2 -3
  269. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  270. package/build/parser/stream/reworked/readable-stream-parser.js +90 -50
  271. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  272. package/build/parser/unreal-engine/ETextHistoryType.d.ts +17 -0
  273. package/build/parser/unreal-engine/ETextHistoryType.d.ts.map +1 -0
  274. package/build/parser/unreal-engine/ETextHistoryType.js +21 -0
  275. package/build/parser/unreal-engine/ETextHistoryType.js.map +1 -0
  276. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts +24 -0
  277. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts.map +1 -0
  278. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js +29 -0
  279. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js.map +1 -0
  280. package/docs/assets/navigation.js +1 -1
  281. package/docs/assets/search.js +1 -1
  282. package/docs/classes/BlueprintConfigReader.html +4 -4
  283. package/docs/classes/BlueprintReader.html +4 -4
  284. package/docs/classes/CompressionLibraryError.html +27 -6
  285. package/docs/classes/ContextReader.html +4 -4
  286. package/docs/classes/ContextWriter.html +4 -4
  287. package/docs/classes/CorruptBlueprintError.html +27 -6
  288. package/docs/classes/CorruptSaveError.html +27 -6
  289. package/docs/classes/Parser.html +6 -6
  290. package/docs/classes/ParserError.html +27 -6
  291. package/docs/classes/ReadableStreamParser.html +2 -2
  292. package/docs/classes/SatisfactorySave.html +2 -2
  293. package/docs/classes/SaveComponent.html +2 -2
  294. package/docs/classes/SaveEntity.html +2 -2
  295. package/docs/classes/SaveObject.html +2 -2
  296. package/docs/classes/SaveReader.html +4 -4
  297. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  298. package/docs/classes/SaveStreamWriter.html +2 -2
  299. package/docs/classes/SaveWriter.html +4 -4
  300. package/docs/classes/TimeoutError.html +27 -6
  301. package/docs/classes/UnimplementedError.html +27 -6
  302. package/docs/classes/UnsupportedVersionError.html +27 -6
  303. package/docs/enums/Alignment.html +2 -2
  304. package/docs/enums/BlueprintConfigVersion.html +2 -2
  305. package/docs/enums/BlueprintHeaderVersion.html +2 -2
  306. package/docs/enums/CompressionAlgorithmCode.html +2 -2
  307. package/docs/enums/FactoryGameCustomVersion.html +2 -2
  308. package/docs/enums/RuntimeBuildableInstanceDataVersion.html +2 -2
  309. package/docs/enums/SaveCustomVersion.html +10 -10
  310. package/docs/enums/SaveHeaderType.html +2 -2
  311. package/docs/functions/AbstractBaseProperty.Create.html +1 -1
  312. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -1
  313. package/docs/functions/ArrayProperty.Parse.html +1 -1
  314. package/docs/functions/ArrayProperty.Serialize.html +1 -1
  315. package/docs/functions/BlueprintConfig.Parse.html +1 -1
  316. package/docs/functions/BlueprintConfig.Serialize.html +1 -1
  317. package/docs/functions/BlueprintHeader.Parse.html +1 -1
  318. package/docs/functions/BlueprintHeader.Serialize.html +1 -1
  319. package/docs/functions/BoolArrayProperty.Parse.html +1 -1
  320. package/docs/functions/BoolArrayProperty.Serialize.html +1 -1
  321. package/docs/functions/BoolProperty.CalcOverhead.html +1 -1
  322. package/docs/functions/BoolProperty.Parse.html +1 -1
  323. package/docs/functions/BoolProperty.ReadValue.html +1 -1
  324. package/docs/functions/BoolProperty.Serialize.html +1 -1
  325. package/docs/functions/BoolProperty.SerializeValue.html +1 -1
  326. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  327. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  328. package/docs/functions/BuildableTypeInstance.Parse.html +1 -1
  329. package/docs/functions/BuildableTypeInstance.Serialize.html +1 -1
  330. package/docs/functions/ByteArrayProperty.Parse.html +1 -1
  331. package/docs/functions/ByteArrayProperty.Serialize.html +1 -1
  332. package/docs/functions/ByteProperty.CalcOverhead.html +1 -1
  333. package/docs/functions/ByteProperty.Parse.html +1 -1
  334. package/docs/functions/ByteProperty.ReadValue.html +1 -1
  335. package/docs/functions/ByteProperty.Serialize.html +1 -1
  336. package/docs/functions/ByteProperty.SerializeValue.html +1 -1
  337. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  338. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  339. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  340. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  341. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  342. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  343. package/docs/functions/DoubleArrayProperty.Parse.html +1 -1
  344. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -1
  345. package/docs/functions/DoubleProperty.CalcOverhead.html +1 -1
  346. package/docs/functions/DoubleProperty.Parse.html +1 -1
  347. package/docs/functions/DoubleProperty.ReadValue.html +1 -1
  348. package/docs/functions/DoubleProperty.Serialize.html +1 -1
  349. package/docs/functions/DoubleProperty.SerializeValue.html +1 -1
  350. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  351. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  352. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  353. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  354. package/docs/functions/EnumArrayProperty.Parse.html +1 -1
  355. package/docs/functions/EnumArrayProperty.Serialize.html +1 -1
  356. package/docs/functions/EnumProperty.CalcOverhead.html +1 -1
  357. package/docs/functions/EnumProperty.Parse.html +1 -1
  358. package/docs/functions/EnumProperty.ReadValue.html +1 -1
  359. package/docs/functions/EnumProperty.Serialize.html +1 -1
  360. package/docs/functions/EnumProperty.SerializeValue.html +1 -1
  361. package/docs/functions/FClientIdentityInfo.read.html +1 -1
  362. package/docs/functions/FClientIdentityInfo.write.html +1 -1
  363. package/docs/functions/FColor.read.html +1 -1
  364. package/docs/functions/FColor.write.html +1 -1
  365. package/docs/functions/FGDynamicStruct.Parse.html +1 -1
  366. package/docs/functions/FGDynamicStruct.Serialize.html +1 -1
  367. package/docs/functions/FICFrameRange.read.html +1 -1
  368. package/docs/functions/FICFrameRange.write.html +1 -1
  369. package/docs/functions/FINGPUT1BufferPixel.read.html +1 -1
  370. package/docs/functions/FINGPUT1BufferPixel.write.html +1 -1
  371. package/docs/functions/FINItemStateFileSystem.IsFINItemStateFileSystem.html +1 -1
  372. package/docs/functions/FINItemStateFileSystem.read.html +1 -1
  373. package/docs/functions/FINItemStateFileSystem.write.html +1 -1
  374. package/docs/functions/FINNetworkTrace.read.html +1 -1
  375. package/docs/functions/FINNetworkTrace.write.html +1 -1
  376. package/docs/functions/FLBBalancerIndexing.read.html +1 -1
  377. package/docs/functions/FLBBalancerIndexing.write.html +1 -1
  378. package/docs/functions/FLinearColor.read.html +1 -1
  379. package/docs/functions/FLinearColor.write.html +1 -1
  380. package/docs/functions/FloatArrayProperty.Parse.html +1 -1
  381. package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
  382. package/docs/functions/FloatProperty.CalcOverhead.html +1 -1
  383. package/docs/functions/FloatProperty.Parse.html +1 -1
  384. package/docs/functions/FloatProperty.ReadValue.html +1 -1
  385. package/docs/functions/FloatProperty.Serialize.html +1 -1
  386. package/docs/functions/FloatProperty.SerializeValue.html +1 -1
  387. package/docs/functions/GUID.read.html +1 -1
  388. package/docs/functions/GUID.write.html +1 -1
  389. package/docs/functions/GUIDInfo.read.html +1 -1
  390. package/docs/functions/GUIDInfo.write.html +1 -1
  391. package/docs/functions/Int32ArrayProperty.Parse.html +1 -1
  392. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
  393. package/docs/functions/Int32Property.CalcOverhead.html +1 -1
  394. package/docs/functions/Int32Property.Parse.html +1 -1
  395. package/docs/functions/Int32Property.ReadValue.html +1 -1
  396. package/docs/functions/Int32Property.Serialize.html +1 -1
  397. package/docs/functions/Int32Property.SerializeValue.html +1 -1
  398. package/docs/functions/Int32SetProperty.Parse.html +1 -1
  399. package/docs/functions/Int32SetProperty.Serialize.html +1 -1
  400. package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
  401. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
  402. package/docs/functions/Int64Property.CalcOverhead.html +1 -1
  403. package/docs/functions/Int64Property.Parse.html +1 -1
  404. package/docs/functions/Int64Property.ReadValue.html +1 -1
  405. package/docs/functions/Int64Property.Serialize.html +1 -1
  406. package/docs/functions/Int64Property.SerializeValue.html +1 -1
  407. package/docs/functions/Int8Property.CalcOverhead.html +1 -1
  408. package/docs/functions/Int8Property.Parse.html +1 -1
  409. package/docs/functions/Int8Property.ReadValue.html +1 -1
  410. package/docs/functions/Int8Property.Serialize.html +1 -1
  411. package/docs/functions/Int8Property.SerializeValue.html +1 -1
  412. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  413. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  414. package/docs/functions/Level.ReadLevel.html +1 -1
  415. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  416. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  417. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  418. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  419. package/docs/functions/Level.SerializeLevel.html +1 -1
  420. package/docs/functions/LevelToDestroyedActorsMap.read.html +1 -1
  421. package/docs/functions/LevelToDestroyedActorsMap.write.html +1 -1
  422. package/docs/functions/MD5Hash.read.html +1 -1
  423. package/docs/functions/MD5Hash.write.html +1 -1
  424. package/docs/functions/MapProperty.CalcOverhead.html +1 -1
  425. package/docs/functions/MapProperty.Parse.html +1 -1
  426. package/docs/functions/MapProperty.Serialize.html +1 -1
  427. package/docs/functions/ObjectArrayProperty.Parse.html +1 -1
  428. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -1
  429. package/docs/functions/ObjectProperty.CalcOverhead.html +1 -1
  430. package/docs/functions/ObjectProperty.Parse.html +1 -1
  431. package/docs/functions/ObjectProperty.ReadValue.html +1 -1
  432. package/docs/functions/ObjectProperty.Serialize.html +1 -1
  433. package/docs/functions/ObjectProperty.SerializeValue.html +1 -1
  434. package/docs/functions/ObjectReference.IsEqual.html +1 -1
  435. package/docs/functions/ObjectReference.read.html +1 -1
  436. package/docs/functions/ObjectReference.write.html +1 -1
  437. package/docs/functions/ObjectSetProperty.Parse.html +1 -1
  438. package/docs/functions/ObjectSetProperty.Serialize.html +1 -1
  439. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  440. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  441. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  442. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  443. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  444. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  445. package/docs/functions/PropertiesList.ParseList.html +1 -1
  446. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  447. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  448. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  449. package/docs/functions/SatisfactorySaveHeader.Parse.html +1 -1
  450. package/docs/functions/SatisfactorySaveHeader.Serialize.html +1 -1
  451. package/docs/functions/SaveBodyChunks.CompressDataIntoChunks.html +1 -1
  452. package/docs/functions/SaveBodyChunks.DecompressChunks.html +1 -1
  453. package/docs/functions/SaveBodyValidation.Parse.html +1 -1
  454. package/docs/functions/SaveBodyValidation.Serialize.html +1 -1
  455. package/docs/functions/SetProperty.CalcOverhead.html +1 -1
  456. package/docs/functions/SetProperty.Parse.html +1 -1
  457. package/docs/functions/SetProperty.Serialize.html +1 -1
  458. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -1
  459. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -1
  460. package/docs/functions/SoftObjectProperty.CalcOverhead.html +1 -0
  461. package/docs/functions/SoftObjectProperty.Parse.html +1 -0
  462. package/docs/functions/SoftObjectProperty.ReadValue.html +1 -0
  463. package/docs/functions/SoftObjectProperty.Serialize.html +1 -0
  464. package/docs/functions/SoftObjectProperty.SerializeValue.html +1 -0
  465. package/docs/functions/SoftObjectReference.read.html +1 -1
  466. package/docs/functions/SoftObjectReference.write.html +1 -1
  467. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  468. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  469. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  470. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  471. package/docs/functions/StrArrayProperty.Parse.html +1 -1
  472. package/docs/functions/StrArrayProperty.Serialize.html +1 -1
  473. package/docs/functions/StrProperty.CalcOverhead.html +1 -1
  474. package/docs/functions/StrProperty.Parse.html +1 -1
  475. package/docs/functions/StrProperty.ReadValue.html +1 -1
  476. package/docs/functions/StrProperty.Serialize.html +1 -1
  477. package/docs/functions/StrProperty.SerializeValue.html +1 -1
  478. package/docs/functions/StrSetProperty.Parse.html +1 -1
  479. package/docs/functions/StrSetProperty.Serialize.html +1 -1
  480. package/docs/functions/StructArrayProperty.Parse.html +1 -1
  481. package/docs/functions/StructArrayProperty.Serialize.html +1 -1
  482. package/docs/functions/StructProperty.CalcOverhead.html +1 -1
  483. package/docs/functions/StructProperty.Parse.html +1 -1
  484. package/docs/functions/StructProperty.ParseValue.html +1 -1
  485. package/docs/functions/StructProperty.Serialize.html +1 -1
  486. package/docs/functions/StructProperty.SerializeValue.html +1 -1
  487. package/docs/functions/StructSetProperty.Parse.html +1 -1
  488. package/docs/functions/StructSetProperty.Serialize.html +1 -1
  489. package/docs/functions/TextArrayProperty.Parse.html +1 -1
  490. package/docs/functions/TextArrayProperty.Serialize.html +1 -1
  491. package/docs/functions/TextProperty.CalcOverhead.html +1 -1
  492. package/docs/functions/TextProperty.Parse.html +1 -1
  493. package/docs/functions/TextProperty.ReadValue.html +1 -1
  494. package/docs/functions/TextProperty.Serialize.html +1 -1
  495. package/docs/functions/TextProperty.SerializeValue.html +1 -1
  496. package/docs/functions/Transform.Parse.html +1 -1
  497. package/docs/functions/Transform.ParseF.html +1 -1
  498. package/docs/functions/Transform.Serialize.html +1 -1
  499. package/docs/functions/Transform.SerializeF.html +1 -1
  500. package/docs/functions/Uint32Property.CalcOverhead.html +1 -1
  501. package/docs/functions/Uint32Property.Parse.html +1 -1
  502. package/docs/functions/Uint32Property.ReadValue.html +1 -1
  503. package/docs/functions/Uint32Property.Serialize.html +1 -1
  504. package/docs/functions/Uint32Property.SerializeValue.html +1 -1
  505. package/docs/functions/Uint32SetProperty.Parse.html +1 -1
  506. package/docs/functions/Uint32SetProperty.Serialize.html +1 -1
  507. package/docs/functions/Uint64Property.CalcOverhead.html +1 -1
  508. package/docs/functions/Uint64Property.Parse.html +1 -1
  509. package/docs/functions/Uint64Property.ReadValue.html +1 -1
  510. package/docs/functions/Uint64Property.Serialize.html +1 -1
  511. package/docs/functions/Uint64Property.SerializeValue.html +1 -1
  512. package/docs/functions/Uint8Property.CalcOverhead.html +1 -1
  513. package/docs/functions/Uint8Property.Parse.html +1 -1
  514. package/docs/functions/Uint8Property.ReadValue.html +1 -1
  515. package/docs/functions/Uint8Property.Serialize.html +1 -1
  516. package/docs/functions/Uint8Property.SerializeValue.html +1 -1
  517. package/docs/functions/VehiclePhysicsData.Parse.html +1 -1
  518. package/docs/functions/VehiclePhysicsData.Serialize.html +1 -1
  519. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  520. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  521. package/docs/functions/col4.ParseBGRA.html +1 -1
  522. package/docs/functions/col4.ParseRGBA.html +1 -1
  523. package/docs/functions/col4.SerializeBGRA.html +1 -1
  524. package/docs/functions/col4.SerializeRGBA.html +1 -1
  525. package/docs/functions/isArrayProperty.html +1 -1
  526. package/docs/functions/isBoolArrayProperty.html +1 -1
  527. package/docs/functions/isBoolProperty.html +1 -1
  528. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  529. package/docs/functions/isByteArrayProperty.html +1 -1
  530. package/docs/functions/isByteProperty.html +1 -1
  531. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  532. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  533. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  534. package/docs/functions/isDoubleArrayProperty.html +1 -1
  535. package/docs/functions/isDoubleProperty.html +1 -1
  536. package/docs/functions/isEmptySpecialProperties.html +1 -1
  537. package/docs/functions/isEnumArrayProperty.html +1 -1
  538. package/docs/functions/isEnumProperty.html +1 -1
  539. package/docs/functions/isFloatArrayProperty.html +1 -1
  540. package/docs/functions/isFloatProperty.html +1 -1
  541. package/docs/functions/isInt32ArrayProperty.html +1 -1
  542. package/docs/functions/isInt32Property.html +1 -1
  543. package/docs/functions/isInt32SetProperty.html +1 -1
  544. package/docs/functions/isInt64ArrayProperty.html +1 -1
  545. package/docs/functions/isInt64Property.html +1 -1
  546. package/docs/functions/isInt8Property.html +1 -1
  547. package/docs/functions/isMapProperty.html +1 -1
  548. package/docs/functions/isObjectArrayProperty.html +1 -1
  549. package/docs/functions/isObjectProperty.html +1 -1
  550. package/docs/functions/isObjectSetProperty.html +1 -1
  551. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  552. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  553. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  554. package/docs/functions/isSaveComponent.html +1 -1
  555. package/docs/functions/isSaveEntity.html +1 -1
  556. package/docs/functions/isSetProperty.html +1 -1
  557. package/docs/functions/isSoftObjectArrayProperty.html +1 -1
  558. package/docs/functions/isSoftObjectProperty.html +1 -0
  559. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  560. package/docs/functions/isStrArrayProperty.html +1 -1
  561. package/docs/functions/isStrProperty.html +1 -1
  562. package/docs/functions/isStrSetProperty.html +1 -1
  563. package/docs/functions/isStructArrayProperty.html +1 -1
  564. package/docs/functions/isStructProperty.html +1 -1
  565. package/docs/functions/isStructSetProperty.html +1 -1
  566. package/docs/functions/isTextArrayProperty.html +1 -1
  567. package/docs/functions/isTextProperty.html +1 -1
  568. package/docs/functions/isUInt64Property.html +1 -1
  569. package/docs/functions/isUint32Property.html +1 -1
  570. package/docs/functions/isUint32SetProperty.html +1 -1
  571. package/docs/functions/isUint8Property.html +1 -1
  572. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  573. package/docs/functions/vec2.Parse.html +1 -1
  574. package/docs/functions/vec2.ParseF.html +1 -1
  575. package/docs/functions/vec2.Serialize.html +1 -1
  576. package/docs/functions/vec2.SerializeF.html +1 -1
  577. package/docs/functions/vec3.Parse.html +1 -1
  578. package/docs/functions/vec3.ParseF.html +1 -1
  579. package/docs/functions/vec3.ParseInt.html +1 -1
  580. package/docs/functions/vec3.Serialize.html +1 -1
  581. package/docs/functions/vec3.SerializeF.html +1 -1
  582. package/docs/functions/vec3.SerializeInt.html +1 -1
  583. package/docs/functions/vec3.add.html +1 -1
  584. package/docs/functions/vec3.length.html +1 -1
  585. package/docs/functions/vec3.mult.html +1 -1
  586. package/docs/functions/vec3.norm.html +1 -1
  587. package/docs/functions/vec3.sub.html +1 -1
  588. package/docs/functions/vec4.Parse.html +1 -1
  589. package/docs/functions/vec4.ParseF.html +1 -1
  590. package/docs/functions/vec4.Serialize.html +1 -1
  591. package/docs/functions/vec4.SerializeF.html +1 -1
  592. package/docs/index.html +3 -2
  593. package/docs/interfaces/Blueprint.html +2 -2
  594. package/docs/interfaces/BlueprintConfig-1.html +2 -2
  595. package/docs/interfaces/SaveComponentHeader.html +2 -2
  596. package/docs/interfaces/SaveEntityHeader.html +2 -2
  597. package/docs/interfaces/SaveObjectHeader.html +2 -2
  598. package/docs/modules/AbstractBaseProperty.html +1 -1
  599. package/docs/modules/ArrayProperty.html +1 -1
  600. package/docs/modules/BlueprintConfig.html +1 -1
  601. package/docs/modules/BlueprintHeader.html +1 -1
  602. package/docs/modules/BoolArrayProperty.html +1 -1
  603. package/docs/modules/BoolProperty.html +1 -1
  604. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  605. package/docs/modules/BuildableTypeInstance.html +1 -1
  606. package/docs/modules/ByteArrayProperty.html +1 -1
  607. package/docs/modules/ByteProperty.html +1 -1
  608. package/docs/modules/CircuitSpecialProperties.html +1 -1
  609. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  610. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  611. package/docs/modules/DoubleArrayProperty.html +1 -1
  612. package/docs/modules/DoubleProperty.html +1 -1
  613. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  614. package/docs/modules/EmptySpecialProperties.html +1 -1
  615. package/docs/modules/EnumArrayProperty.html +1 -1
  616. package/docs/modules/EnumProperty.html +1 -1
  617. package/docs/modules/FClientIdentityInfo.html +1 -1
  618. package/docs/modules/FColor.html +1 -1
  619. package/docs/modules/FGDynamicStruct.html +1 -1
  620. package/docs/modules/FICFrameRange.html +1 -1
  621. package/docs/modules/FINGPUT1BufferPixel.html +1 -1
  622. package/docs/modules/FINItemStateFileSystem.html +1 -1
  623. package/docs/modules/FINNetworkTrace.html +1 -1
  624. package/docs/modules/FLBBalancerIndexing.html +1 -1
  625. package/docs/modules/FLinearColor.html +1 -1
  626. package/docs/modules/FloatArrayProperty.html +1 -1
  627. package/docs/modules/FloatProperty.html +1 -1
  628. package/docs/modules/GUID.html +1 -1
  629. package/docs/modules/GUIDInfo.html +1 -1
  630. package/docs/modules/Int32ArrayProperty.html +1 -1
  631. package/docs/modules/Int32Property.html +1 -1
  632. package/docs/modules/Int32SetProperty.html +1 -1
  633. package/docs/modules/Int64ArrayProperty.html +1 -1
  634. package/docs/modules/Int64Property.html +1 -1
  635. package/docs/modules/Int8Property.html +1 -1
  636. package/docs/modules/Level.html +1 -1
  637. package/docs/modules/LevelToDestroyedActorsMap.html +1 -1
  638. package/docs/modules/MD5Hash.html +1 -1
  639. package/docs/modules/MapProperty.html +1 -1
  640. package/docs/modules/ObjectArrayProperty.html +1 -1
  641. package/docs/modules/ObjectProperty.html +1 -1
  642. package/docs/modules/ObjectReference.html +1 -1
  643. package/docs/modules/ObjectSetProperty.html +1 -1
  644. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  645. package/docs/modules/PlayerSpecialProperties.html +1 -1
  646. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  647. package/docs/modules/PropertiesList.html +1 -1
  648. package/docs/modules/SatisfactorySaveHeader.html +1 -1
  649. package/docs/modules/SaveBodyChunks.html +1 -1
  650. package/docs/modules/SaveBodyValidation.html +1 -1
  651. package/docs/modules/SetProperty.html +1 -1
  652. package/docs/modules/SoftObjectArrayProperty.html +1 -1
  653. package/docs/modules/SoftObjectProperty.html +6 -0
  654. package/docs/modules/SoftObjectReference.html +1 -1
  655. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  656. package/docs/modules/SpecialProperties.html +1 -1
  657. package/docs/modules/StrArrayProperty.html +1 -1
  658. package/docs/modules/StrProperty.html +1 -1
  659. package/docs/modules/StrSetProperty.html +1 -1
  660. package/docs/modules/StructArrayProperty.html +1 -1
  661. package/docs/modules/StructProperty.html +1 -1
  662. package/docs/modules/StructSetProperty.html +1 -1
  663. package/docs/modules/TextArrayProperty.html +1 -1
  664. package/docs/modules/TextProperty.html +1 -1
  665. package/docs/modules/Transform.html +1 -1
  666. package/docs/modules/Uint32Property.html +1 -1
  667. package/docs/modules/Uint32SetProperty.html +1 -1
  668. package/docs/modules/Uint64Property.html +1 -1
  669. package/docs/modules/Uint8Property.html +1 -1
  670. package/docs/modules/VehiclePhysicsData.html +1 -1
  671. package/docs/modules/VehicleSpecialProperties.html +1 -1
  672. package/docs/modules/col4.html +1 -1
  673. package/docs/modules/vec2.html +1 -1
  674. package/docs/modules/vec3.html +1 -1
  675. package/docs/modules/vec4.html +1 -1
  676. package/docs/modules.html +3 -0
  677. package/docs/types/AbstractBaseProperty-1.html +1 -1
  678. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
  679. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  680. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  681. package/docs/types/BasicStructPropertyValue.html +1 -1
  682. package/docs/types/BlueprintHeader-1.html +1 -1
  683. package/docs/types/BlueprintReaderWriterContext.html +1 -1
  684. package/docs/types/BoolArrayProperty-1.html +1 -1
  685. package/docs/types/BoolProperty-1.html +1 -1
  686. package/docs/types/BoxStructPropertyValue.html +1 -1
  687. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  688. package/docs/types/BuildableTypeInstance-1.html +1 -1
  689. package/docs/types/ByteArrayProperty-1.html +1 -1
  690. package/docs/types/ByteProperty-1.html +1 -1
  691. package/docs/types/BytePropertyValue.html +1 -1
  692. package/docs/types/ChunkCompressionInfo.html +1 -1
  693. package/docs/types/ChunkSummary.html +1 -1
  694. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  695. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  696. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  697. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  698. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  699. package/docs/types/DoubleArrayProperty-1.html +1 -1
  700. package/docs/types/DoubleProperty-1.html +1 -1
  701. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  702. package/docs/types/EmptySpecialProperties-1.html +1 -1
  703. package/docs/types/EnumArrayProperty-1.html +1 -1
  704. package/docs/types/EnumProperty-1.html +1 -1
  705. package/docs/types/FClientIdentityInfo-1.html +1 -1
  706. package/docs/types/FColor-1.html +1 -1
  707. package/docs/types/FGDynamicStruct-1.html +1 -1
  708. package/docs/types/FICFrameRange-1.html +1 -1
  709. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  710. package/docs/types/FINGPUT1BufferPixel-1.html +1 -1
  711. package/docs/types/FINItemStateFileSystem-1.html +1 -1
  712. package/docs/types/FINNetworkTrace-1.html +1 -1
  713. package/docs/types/FLBBalancerIndexing-1.html +1 -1
  714. package/docs/types/FLinearColor-1.html +1 -1
  715. package/docs/types/FloatArrayProperty-1.html +1 -1
  716. package/docs/types/FloatProperty-1.html +1 -1
  717. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  718. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  719. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  720. package/docs/types/GUID-1.html +1 -1
  721. package/docs/types/GUIDInfo-1.html +1 -1
  722. package/docs/types/Grids.html +1 -1
  723. package/docs/types/Int32ArrayProperty-1.html +1 -1
  724. package/docs/types/Int32Property-1.html +1 -1
  725. package/docs/types/Int32SetProperty-1.html +1 -1
  726. package/docs/types/Int64ArrayProperty-1.html +1 -1
  727. package/docs/types/Int64Property-1.html +1 -1
  728. package/docs/types/Int8Property-1.html +1 -1
  729. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  730. package/docs/types/Level-1.html +1 -1
  731. package/docs/types/LevelToDestroyedActorsMap-1.html +1 -1
  732. package/docs/types/Levels.html +1 -1
  733. package/docs/types/MAP_STRUCT_PROXY.html +1 -1
  734. package/docs/types/MD5Hash-1.html +1 -1
  735. package/docs/types/MapProperty-1.html +1 -1
  736. package/docs/types/ModData.html +1 -1
  737. package/docs/types/ObjectArrayProperty-1.html +1 -1
  738. package/docs/types/ObjectProperty-1.html +1 -1
  739. package/docs/types/ObjectReference-1.html +1 -1
  740. package/docs/types/ObjectSetProperty-1.html +1 -1
  741. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  742. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  743. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  744. package/docs/types/PropertiesMap.html +1 -1
  745. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  746. package/docs/types/ReaderWriterContext.html +1 -1
  747. package/docs/types/RoughSaveVersion.html +1 -1
  748. package/docs/types/SatisfactoryModMetadata.html +1 -1
  749. package/docs/types/SatisfactorySaveHeader-1.html +1 -1
  750. package/docs/types/SaveBodyChunks-1.html +1 -1
  751. package/docs/types/SaveBodyValidation-1.html +1 -1
  752. package/docs/types/SaveReaderWriterContext.html +1 -1
  753. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
  754. package/docs/types/SoftObjectArrayProperty-1.html +1 -1
  755. package/docs/types/SoftObjectProperty-1.html +1 -0
  756. package/docs/types/SoftObjectReference-1.html +1 -1
  757. package/docs/types/SpecialDroneAction.html +1 -1
  758. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  759. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  760. package/docs/types/StrArrayProperty-1.html +1 -1
  761. package/docs/types/StrProperty-1.html +1 -1
  762. package/docs/types/StrSetProperty-1.html +1 -1
  763. package/docs/types/StructArrayProperty-1.html +1 -1
  764. package/docs/types/StructProperty-1.html +1 -1
  765. package/docs/types/StructSetProperty-1.html +1 -1
  766. package/docs/types/TextArrayProperty-1.html +1 -1
  767. package/docs/types/TextProperty-1.html +1 -1
  768. package/docs/types/TextPropertyValue.html +1 -1
  769. package/docs/types/Transform-1.html +1 -1
  770. package/docs/types/Uint32Property-1.html +1 -1
  771. package/docs/types/Uint32SetProperty-1.html +1 -1
  772. package/docs/types/Uint64Property-1.html +1 -1
  773. package/docs/types/Uint8Property-1.html +1 -1
  774. package/docs/types/VehiclePhysicsData-1.html +1 -1
  775. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  776. package/docs/types/col4-1.html +1 -1
  777. package/docs/types/vec2-1.html +1 -1
  778. package/docs/types/vec3-1.html +1 -1
  779. package/docs/types/vec4-1.html +1 -1
  780. package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -1
  781. package/docs/variables/EDIT.html +1 -1
  782. package/docs/variables/FINItemStateFileSystem.ExactStructReference.html +1 -1
  783. package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -1
  784. package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -1
  785. package/jsr.json +1 -1
  786. package/package.json +6 -5
  787. package/tsconfig.test.json +13 -0
  788. package/build/parser/context/context.d.ts.map +0 -1
  789. package/build/parser/context/context.js.map +0 -1
  790. package/build/parser/file.types.d.ts +0 -14
  791. package/build/parser/file.types.d.ts.map +0 -1
  792. package/build/parser/file.types.js +0 -8
  793. package/build/parser/file.types.js.map +0 -1
  794. package/build/parser/satisfactory/save/level.class.d.ts +0 -29
  795. package/build/parser/satisfactory/save/level.class.d.ts.map +0 -1
  796. package/build/parser/satisfactory/save/level.class.js +0 -204
  797. package/build/parser/satisfactory/save/level.class.js.map +0 -1
  798. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +0 -22
  799. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +0 -1
  800. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +0 -127
  801. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +0 -1
  802. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +0 -14
  803. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +0 -1
  804. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +0 -23
  805. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +0 -1
  806. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +0 -14
  807. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +0 -1
  808. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +0 -23
  809. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +0 -1
  810. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +0 -14
  811. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +0 -1
  812. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +0 -23
  813. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +0 -1
  814. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +0 -14
  815. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +0 -1
  816. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +0 -23
  817. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +0 -1
  818. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +0 -14
  819. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +0 -1
  820. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +0 -23
  821. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +0 -1
  822. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +0 -14
  823. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +0 -1
  824. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +0 -23
  825. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +0 -1
  826. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +0 -14
  827. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +0 -1
  828. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +0 -23
  829. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +0 -1
  830. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +0 -15
  831. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +0 -1
  832. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +0 -23
  833. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +0 -1
  834. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +0 -15
  835. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +0 -1
  836. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +0 -23
  837. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +0 -1
  838. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +0 -14
  839. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +0 -1
  840. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +0 -23
  841. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +0 -1
  842. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +0 -26
  843. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +0 -1
  844. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +0 -75
  845. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +0 -1
  846. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +0 -15
  847. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +0 -1
  848. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +0 -23
  849. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +0 -1
  850. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +0 -16
  851. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +0 -1
  852. package/build/parser/satisfactory/types/property/generic/Int32Property.js +0 -33
  853. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +0 -1
  854. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +0 -25
  855. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +0 -1
  856. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +0 -1
  857. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +0 -14
  858. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +0 -1
  859. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +0 -23
  860. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +0 -1
  861. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +0 -15
  862. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +0 -1
  863. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +0 -23
  864. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +0 -1
  865. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +0 -15
  866. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +0 -1
  867. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +0 -75
  868. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +0 -1
  869. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +0 -14
  870. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +0 -1
  871. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +0 -23
  872. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +0 -1
  873. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +0 -14
  874. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +0 -1
  875. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +0 -42
  876. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +0 -1
  877. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +0 -14
  878. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +0 -1
  879. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +0 -23
  880. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +0 -1
  881. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +0 -59
  882. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +0 -1
  883. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +0 -1
  884. package/build/parser/satisfactory/types/structs/GUID.d.ts +0 -8
  885. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +0 -1
  886. package/build/parser/satisfactory/types/structs/GUID.js +0 -22
  887. package/build/parser/satisfactory/types/structs/GUID.js.map +0 -1
  888. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts +0 -6
  889. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts.map +0 -1
  890. package/build/parser/stream/reworked/save-stream-json-stringifier.js +0 -35
  891. package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +0 -1
  892. package/build/parser/stream/reworked/save-stream-writer.class.d.ts +0 -28
  893. package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +0 -1
  894. package/build/parser/stream/reworked/save-stream-writer.class.js +0 -84
  895. package/build/parser/stream/reworked/save-stream-writer.class.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,yEAAsE;AACtE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAClE,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CAqT9B;AArTD,WAAiB,cAAc;IAEjB,wBAAS,GAAG,CAAC,MAAqB,EAAiB,EAAE;QAEjE,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,IAAI,YAAY,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/C,OAAO,YAAY,KAAK,MAAM,EAAE,CAAC;YAEhC,MAAM,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YAGhF,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;oBAC9C,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAyB,CAAC,CAAC;gBAC/E,CAAC;gBACA,UAAU,CAAC,YAAY,CAA4B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAC3E,CAAC;iBAAM,CAAC;gBACP,UAAU,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;YAC3C,CAAC;YAED,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC;QAED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CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAAiD,EAAG,QAAkD,CAAC,OAAO,CAAC,CAAC;gBACpJ,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAiD,CAAC,CAAC;gBACjF,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EArTgB,cAAc,8BAAd,cAAc,QAqT9B","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { ParserError } from '../../../error/parser.error';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';\nimport { ArrayProperty } from './generic/ArrayProperty/ArrayProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: ContextReader): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (writer: ContextWriter, properties: PropertiesMap): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: ContextReader, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\t\tlet overhead = 0;\n\n\t\tlet subtype = '';\n\n\t\ttry {\n\t\t\tswitch (propertyType) {\n\t\t\t\tcase 'BoolProperty':\n\t\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ByteProperty':\n\t\t\t\t\tconst type = reader.readString();\n\t\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty, type);\n\t\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index, type);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Int8Property':\n\t\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tcase 'UInt8Property':\n\t\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'IntProperty':\n\t\t\t\tcase 'Int32Property':\n\t\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'UInt32Property':\n\t\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Int64Property':\n\t\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'UInt64Property':\n\t\t\t\t\toverhead = Uint64Property.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SingleProperty':\n\t\t\t\tcase 'FloatProperty':\n\t\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'DoubleProperty':\n\t\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'StrProperty':\n\t\t\t\tcase 'NameProperty':\n\t\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ObjectProperty':\n\t\t\t\tcase 'InterfaceProperty':\n\t\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SoftObjectProperty':\n\t\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'EnumProperty':\n\t\t\t\t\tconst name = reader.readString();\n\t\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty, name);\n\t\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, name, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'StructProperty':\n\t\t\t\t\tsubtype = reader.readString();\n\t\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty, subtype);\n\t\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize, subtype);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ArrayProperty':\n\t\t\t\t\tsubtype = reader.readString();\n\t\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty, subtype);\n\t\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, binarySize, subtype);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'MapProperty':\n\t\t\t\t\tconst keyType = reader.readString();\n\t\t\t\t\tconst valueType = reader.readString();\n\t\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty, keyType, valueType);\n\t\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, binarySize, keyType, valueType);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'TextProperty':\n\t\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SetProperty':\n\t\t\t\t\tsubtype = reader.readString();\n\t\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty, subtype);\n\t\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName, subtype);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}, at byte position ${reader.getBufferPosition()}`);\n\t\t\t}\n\n\t\t\tcurrentProperty.name = propertyName;\n\n\t\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\t\tif (readBytes !== binarySize) {\n\t\t\t\tthrow new ParserError('ParserError', `Property possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (reader.context.throwErrors) {\n\t\t\t\tthrow error;\n\t\t\t} else {\n\n\t\t\t\t// we inform about the error and dump the calculated byte content of the property.\n\t\t\t\tconsole.warn(error);\n\t\t\t\tconsole.warn(`property ${propertyName} of type ${propertyType} is therefore dumped as raw bytes.`);\n\n\t\t\t\treader.skipBytes(before - reader.getBufferPosition());\n\t\t\t\t(currentProperty as AbstractBaseProperty).rawBytes = Array.from(reader.readBytes(binarySize + overhead));\n\t\t\t}\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ContextWriter, property: AbstractBaseProperty): void => {\n\n\t\t// in case we have a property that we could not parse before.\n\t\tif (property.rawBytes !== undefined) {\n\t\t\twriter.writeBytesArray(property.rawBytes);\n\t\t\treturn;\n\t\t}\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty, (property as ByteProperty).value.type);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Uint64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Uint64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty, (property as EnumProperty).value.name);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty, (property as StructProperty).subtype);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty.AvailableArrayPropertyTypes, (property as ArrayProperty.AvailableArrayPropertyTypes).subtype);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty, (property as MapProperty).keyType, (property as MapProperty).valueType);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty.AvailableSetPropertyTypes, (property as SetProperty.AvailableSetPropertyTypes).subtype);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
1
+ {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAC1D,iEAA8D;AAC9D,yEAAqF;AACrF,yDAAsD;AACtD,yDAAsD;AACtD,sEAAmE;AACnE,kEAA+D;AAC/D,kEAA+D;AAC/D,wEAAqE;AACrE,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,mEAAgE;AAChE,uDAAoD;AACpD,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,qEAAkE;AAClE,uDAAoD;AACpD,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CAiQ9B;AAjQD,WAAiB,cAAc;IAE9B,SAAgB,SAAS,CAAC,MAAqB;QAE9C,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,IAAI,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAChE,OAAO,cAAc,KAAK,IAAI,EAAE,CAAC;YAGhC,IAAI,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;gBACrC,IAAI,CAAC,K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BAC7D,MAAM;YAEP,KAAK,oBAAoB;gBACxB,uCAAkB,CAAC,SAAS,CAAC,MAAM,EAAE,QAA8B,CAAC,CAAC;gBACrE,MAAM;YAEP,KAAK,cAAc;gBAClB,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,gBAAgB;gBACpB,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,QAA0B,CAAC,CAAC;gBAC7D,MAAM;YAEP,KAAK,eAAe;gBACnB,6BAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAAyB,CAAC,CAAC;gBAC3D,MAAM;YAEP,KAAK,aAAa;gBACjB,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAuB,CAAC,CAAC;gBACvD,MAAM;YAEP,KAAK,cAAc;gBAClB,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAuB,CAAC,CAAC;gBACvD,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAnGe,sCAAuB,0BAmGtC,CAAA;AACF,CAAC,EAjQgB,cAAc,8BAAd,cAAc,QAiQ9B","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { ParserError } from '../../../error/parser.error';\nimport { FPropertyTag } from '../structs/binary/FPropertyTag';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { ArrayProperty } from './generic/containers/ArrayProperty';\nimport { MapProperty } from './generic/containers/MapProperty';\nimport { SetProperty } from './generic/containers/SetProperty';\nimport { StructProperty } from './generic/containers/StructProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { InterfaceProperty } from './generic/InterfaceProperty';\nimport { IntProperty } from './generic/IntProperty';\nimport { NameProperty } from './generic/NameProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SingleProperty } from './generic/SingleProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport function ParseList(reader: ContextReader): PropertiesMap {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet parsedProperty = PropertiesList.ParseSingleProperty(reader);\n\t\twhile (parsedProperty !== null) {\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[parsedProperty.name]) {\n\t\t\t\tif (!Array.isArray(properties[parsedProperty.name])) {\n\t\t\t\t\tproperties[parsedProperty.name] = [properties[parsedProperty.name] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[parsedProperty.name] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[parsedProperty.name] = parsedProperty;\n\t\t\t}\n\n\t\t\tparsedProperty = PropertiesList.ParseSingleProperty(reader);\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport function SerializeList(writer: ContextWriter, properties: PropertiesMap): void {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport function ParseSingleProperty(reader: ContextReader): AbstractBaseProperty | null {\n\n\t\t// read tag and merge it into our property. since some values actually are in the tag.\n\t\tconst tag = FPropertyTag.read(reader);\n\t\tif (tag.propertyName === 'None') {\n\t\t\treturn null;\n\t\t}\n\t\tlet property = AbstractBaseProperty.CreateFromTag(tag);\n\n\t\t// read property value\n\t\tconst before = reader.getBufferPosition();\n\t\ttry {\n\t\t\tswitch (property.propertyTagType.name) {\n\t\t\t\tcase 'BoolProperty':\n\t\t\t\t\tBoolProperty.Parse(reader, property as BoolProperty, tag);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ByteProperty':\n\t\t\t\t\tByteProperty.Parse(reader, property as ByteProperty, tag);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Int8Property':\n\t\t\t\t\tInt8Property.Parse(reader, property as Int8Property);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'UInt8Property':\n\t\t\t\t\tUint8Property.Parse(reader, property as Uint8Property);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'IntProperty':\n\t\t\t\t\tIntProperty.Parse(reader, property as IntProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'UInt32Property':\n\t\t\t\t\tUint32Property.Parse(reader, property as Uint32Property);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'Int64Property':\n\t\t\t\t\tInt64Property.Parse(reader, property as Int64Property);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'UInt64Property':\n\t\t\t\t\tUint64Property.Parse(reader, property as Uint64Property);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SingleProperty':\n\t\t\t\t\tSingleProperty.Parse(reader, property as SingleProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'FloatProperty':\n\t\t\t\t\tFloatProperty.Parse(reader, property as FloatProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'DoubleProperty':\n\t\t\t\t\tDoubleProperty.Parse(reader, property as DoubleProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'StrProperty':\n\t\t\t\t\tStrProperty.Parse(reader, property as StrProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'NameProperty':\n\t\t\t\t\tNameProperty.Parse(reader, property as NameProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ObjectProperty':\n\t\t\t\t\tObjectProperty.Parse(reader, property as ObjectProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'InterfaceProperty':\n\t\t\t\t\tInterfaceProperty.Parse(reader, property as InterfaceProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SoftObjectProperty':\n\t\t\t\t\tSoftObjectProperty.Parse(reader, property as SoftObjectProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'EnumProperty':\n\t\t\t\t\tEnumProperty.Parse(reader, property as EnumProperty, tag);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'StructProperty':\n\t\t\t\t\tStructProperty.Parse(reader, property as StructProperty, tag);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'ArrayProperty':\n\t\t\t\t\tArrayProperty.Parse(reader, tag, property as ArrayProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'MapProperty':\n\t\t\t\t\tMapProperty.Parse(reader, property as MapProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'TextProperty':\n\t\t\t\t\tTextProperty.Parse(reader, property as TextProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'SetProperty':\n\t\t\t\t\tSetProperty.Parse(reader, property as SetProperty);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(`Unimplemented type ${property.propertyTagType.name}, at byte position ${reader.getBufferPosition()}`);\n\t\t\t}\n\n\n\t\t\tconst readBytes = reader.getBufferPosition() - before;\n\t\t\tif (readBytes !== tag.binarySize) {\n\t\t\t\tthrow new ParserError('ParserError', `Property possibly corrupt. Read ${readBytes} bytes for ${property.propertyTagType.name} ${property.name}, but ${tag.binarySize} bytes were indicated.`);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (reader.context.throwErrors) {\n\t\t\t\tthrow error;\n\t\t\t} else {\n\n\t\t\t\t// we inform about the error and dump the calculated byte content of the property.\n\t\t\t\tconsole.warn(`property ${tag.propertyName} of type ${property.propertyTagType.name} is therefore dumped as raw bytes.`);\n\n\t\t\t\treader.skipBytes(before - reader.getBufferPosition());\n\t\t\t\t(property as AbstractBaseProperty).rawBytes = Array.from(reader.readBytes(tag.binarySize));\n\t\t\t}\n\t\t}\n\n\t\treturn property;\n\t}\n\n\texport function SerializeSingleProperty(writer: ContextWriter, property: AbstractBaseProperty): void {\n\n\t\t// in case we have a property that we could not parse before.\n\t\tif (property.rawBytes !== undefined) {\n\t\t\twriter.writeBytesArray(property.rawBytes);\n\t\t\treturn;\n\t\t}\n\n\t\t// separate proeprty into tag\n\t\tconst { binarySizeLocation } = FPropertyTag.writeFromProperty(writer, property);\n\n\n\t\tconst start = writer.getBufferPosition();\n\t\tswitch (property.propertyTagType.name) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\t\tIntProperty.Serialize(writer, property as IntProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\tUint64Property.Serialize(writer, property as Uint64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.propertyTagType.name}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(binarySizeLocation, start);\n\t}\n}\n\n"]}
@@ -1,24 +1,21 @@
1
- import { GUIDInfo } from '../../structs/GUIDInfo';
1
+ import { FPropertyTag } from '../../structs/binary/FPropertyTag';
2
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
3
+ import { GUID } from '../../structs/binary/GUID';
2
4
  export type PropertiesMap = {
3
5
  [name: string]: (AbstractBaseProperty & any) | (AbstractBaseProperty & any)[];
4
6
  };
5
- type AbstractBasePropertyOptions = {
6
- type: string;
7
- ueType: string;
8
- name?: string;
9
- guidInfo?: GUIDInfo;
10
- index?: number;
11
- };
12
7
  export type AbstractBaseProperty = {
8
+ [key: string]: any;
13
9
  type: string;
14
- ueType: string;
15
10
  name: string;
11
+ propertyTagType: FPropertyTagNode;
16
12
  index?: number;
17
- guidInfo?: GUIDInfo;
13
+ flags?: number;
14
+ propertyGuid?: GUID;
15
+ structGuid?: GUID;
18
16
  rawBytes?: number[];
19
17
  };
20
18
  export declare namespace AbstractBaseProperty {
21
- const Create: (options: AbstractBasePropertyOptions) => AbstractBaseProperty;
19
+ function CreateFromTag(tag: FPropertyTag): AbstractBaseProperty;
22
20
  }
23
- export {};
24
21
  //# sourceMappingURL=AbstractBaseProperty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractBaseProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,EAAE,CAAC;CAC9E,CAAC;AAUF,KAAK,2BAA2B,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAUF,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,oBAAoB,CAAC;IAC9B,MAAM,MAAM,YAAa,2BAA2B,KAAG,oBAS7D,CAAC;CACF"}
1
+ {"version":3,"file":"AbstractBaseProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,MAAM,MAAM,aAAa,GAAG;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,EAAE,CAAC;CAC9E,CAAC;AAUF,MAAM,MAAM,oBAAoB,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,gBAAgB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,oBAAoB,CAAC;IAIrC,SAAgB,aAAa,CAAC,GAAG,EAAE,YAAY,GAAG,oBAAoB,CAUrE;CACD"}
@@ -3,12 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractBaseProperty = void 0;
4
4
  var AbstractBaseProperty;
5
5
  (function (AbstractBaseProperty) {
6
- AbstractBaseProperty.Create = (options) => ({
7
- type: options.type,
8
- ueType: options.ueType,
9
- name: (options.name !== undefined && options.name !== null) ? options.name : '',
10
- ...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),
11
- ...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})
12
- });
6
+ function CreateFromTag(tag) {
7
+ return {
8
+ type: tag.propertyTagType.name,
9
+ name: tag.propertyName,
10
+ propertyTagType: tag.propertyTagType,
11
+ ...(tag.index && tag.index !== 0 && { index: tag.index }),
12
+ ...(tag.propertyGuid !== undefined && tag.propertyGuid.some(number => number !== 0) && { propertyGuid: tag.propertyGuid }),
13
+ ...(tag.structGuid !== undefined && tag.structGuid.some(number => number !== 0) && { structGuid: tag.structGuid }),
14
+ ...(tag.flags !== undefined && tag.flags !== 0 && { flags: tag.flags }),
15
+ };
16
+ }
17
+ AbstractBaseProperty.CreateFromTag = CreateFromTag;
13
18
  })(AbstractBaseProperty || (exports.AbstractBaseProperty = AbstractBaseProperty = {}));
14
19
  //# sourceMappingURL=AbstractBaseProperty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractBaseProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":";;;AAwCA,IAAiB,oBAAoB,CAWpC;AAXD,WAAiB,oBAAoB;IACvB,2BAAM,GAAG,CAAC,OAAoC,EAAwB,EAAE,CAAC,CACrF;QACC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC/E,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnH,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAG5E,CAAA,CAAC;AACH,CAAC,EAXgB,oBAAoB,oCAApB,oBAAoB,QAWpC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: (AbstractBaseProperty & any) | (AbstractBaseProperty & any)[];\n};\n\n\n/**\n * @param type denotes the parser's internal type.\n * @param ueType denotes the type like Unreal Engine calls it, like IntProperty. Several UE Types can be mapped to a single type in the parsers view.\n * @param name property name\n * @param guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @param index index of a property, in case it is part of an array (NOT to confuse with ArrayProperty).\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tname?: string;\n\tguidInfo?: GUIDInfo;\n\tindex?: number;\n};\n\n/**\n * @param type denotes the parser's internal type.\n * @param ueType denotes the type like Unreal Engine calls it, like IntProperty. Several UE Types can be mapped to a single type in the parsers view.\n * @param name property name\n * @param guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @param index index of a property, in case it is part of an array (NOT to confuse with ArrayProperty).\n * @param rawBytes if the property could not be parsed, it fills the rawBytes array instead.\n */\nexport type AbstractBaseProperty = {\n\ttype: string;\n\tueType: string;\n\tname: string;\n\tindex?: number;\n\tguidInfo?: GUIDInfo;\n\trawBytes?: number[];\n};\n\nexport namespace AbstractBaseProperty {\n\texport const Create = (options: AbstractBasePropertyOptions): AbstractBaseProperty => (\n\t\t{\n\t\t\ttype: options.type,\n\t\t\tueType: options.ueType,\n\t\t\tname: (options.name !== undefined && options.name !== null) ? options.name : '',\n\t\t\t...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),\n\t\t\t...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})\n\n\t\t} satisfies AbstractBaseProperty\n\t);\n}"]}
1
+ {"version":3,"file":"AbstractBaseProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":";;;AA6BA,IAAiB,oBAAoB,CAepC;AAfD,WAAiB,oBAAoB;IAIpC,SAAgB,aAAa,CAAC,GAAiB;QAC9C,OAAO;YACN,IAAI,EAAE,GAAG,CAAC,eAAe,CAAC,IAAI;YAC9B,IAAI,EAAE,GAAG,CAAC,YAAY;YACtB,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;YACzD,GAAG,CAAC,GAAG,CAAC,YAAY,KAAK,SAAS,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC;YAC1H,GAAG,CAAC,GAAG,CAAC,UAAU,KAAK,SAAS,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;YAClH,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,SAAS,IAAI,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;SACxC,CAAA;IACjC,CAAC;IAVe,kCAAa,gBAU5B,CAAA;AACF,CAAC,EAfgB,oBAAoB,oCAApB,oBAAoB,QAepC","sourcesContent":["import { FPropertyTag } from '../../structs/binary/FPropertyTag';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { GUID } from '../../structs/binary/GUID';\n\n\nexport type PropertiesMap = {\n\t[name: string]: (AbstractBaseProperty & any) | (AbstractBaseProperty & any)[];\n};\n\n/**\n * @propertyTagType present in late 1.1 saves and later. more precisely describes the \"type\" of property than just the \"type\" field.\n * @type denotes the property type, which maps 1:1 now with parser types. \"ueType\" was removed.\n * @name property name\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array (NOT to confuse with ArrayProperty).\n * @rawBytes if the property could not be parsed, it fills the rawBytes array instead.\n */\nexport type AbstractBaseProperty = {\n\t[key: string]: any;\n\ttype: string;\n\tname: string;\n\tpropertyTagType: FPropertyTagNode;\n\tindex?: number;\n\tflags?: number;\n\tpropertyGuid?: GUID;\n\tstructGuid?: GUID;\n\trawBytes?: number[];\n};\n\nexport namespace AbstractBaseProperty {\n\t/**\n\t * creates a basic property with all metadata from the tag. but without value yet.\n\t */\n\texport function CreateFromTag(tag: FPropertyTag): AbstractBaseProperty {\n\t\treturn {\n\t\t\ttype: tag.propertyTagType.name,\n\t\t\tname: tag.propertyName,\n\t\t\tpropertyTagType: tag.propertyTagType,\n\t\t\t...(tag.index && tag.index !== 0 && { index: tag.index }),\n\t\t\t...(tag.propertyGuid !== undefined && tag.propertyGuid.some(number => number !== 0) && { propertyGuid: tag.propertyGuid }),\n\t\t\t...(tag.structGuid !== undefined && tag.structGuid.some(number => number !== 0) && { structGuid: tag.structGuid }),\n\t\t\t...(tag.flags !== undefined && tag.flags !== 0 && { flags: tag.flags }),\n\t\t} satisfies AbstractBaseProperty\n\t}\n}"]}
@@ -1,16 +1,21 @@
1
1
  import { ContextReader } from '../../../../context/context-reader';
2
2
  import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTag } from '../../structs/binary/FPropertyTag';
4
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
3
5
  import { AbstractBaseProperty } from './AbstractBaseProperty';
4
6
  export declare const isBoolProperty: (property: any) => property is BoolProperty;
5
7
  export type BoolProperty = AbstractBaseProperty & {
6
8
  type: 'BoolProperty';
9
+ propertyTagType: {
10
+ name: 'BoolProperty';
11
+ children: FPropertyTagNode[];
12
+ };
7
13
  value: boolean;
8
14
  };
9
15
  export declare namespace BoolProperty {
10
- const Parse: (reader: ContextReader, ueType: string, index?: number) => BoolProperty;
11
- const ReadValue: (reader: ContextReader) => boolean;
12
- const CalcOverhead: (property: BoolProperty) => number;
13
- const Serialize: (writer: ContextWriter, property: BoolProperty) => void;
14
- const SerializeValue: (writer: ContextWriter, value: boolean) => void;
16
+ function Parse(reader: ContextReader, property: BoolProperty, tag: FPropertyTag): void;
17
+ function ReadValue(reader: ContextReader): boolean;
18
+ function Serialize(writer: ContextWriter, property: BoolProperty): void;
19
+ function SerializeValue(writer: ContextWriter, value: boolean): void;
15
20
  }
16
21
  //# 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,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,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;I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AAG,OAAO,CAExD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAE7E;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAE1E;CACJ"}
@@ -1,33 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BoolProperty = exports.isBoolProperty = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
- const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
4
+ const FPropertyTag_1 = require("../../structs/binary/FPropertyTag");
5
+ const isBoolProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'BoolProperty';
7
6
  exports.isBoolProperty = isBoolProperty;
8
7
  var BoolProperty;
9
8
  (function (BoolProperty) {
10
- BoolProperty.Parse = (reader, ueType, index = 0) => {
11
- const value = BoolProperty.ReadValue(reader);
12
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
13
- return {
14
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
- type: 'BoolProperty',
16
- value
17
- };
18
- };
19
- BoolProperty.ReadValue = (reader) => {
9
+ function Parse(reader, property, tag) {
10
+ if (FPropertyTag_1.FPropertyTag.IsCompletePropertyTagType(reader)) {
11
+ property.value = (tag.flags & 0x10) === 1;
12
+ }
13
+ else {
14
+ property.value = tag.boolValue;
15
+ }
16
+ }
17
+ BoolProperty.Parse = Parse;
18
+ function ReadValue(reader) {
20
19
  return reader.readByte() > 0;
21
- };
22
- BoolProperty.CalcOverhead = (property) => {
23
- return 1 + 1;
24
- };
25
- BoolProperty.Serialize = (writer, property) => {
26
- BoolProperty.SerializeValue(writer, property.value);
27
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
28
- };
29
- BoolProperty.SerializeValue = (writer, value) => {
20
+ }
21
+ BoolProperty.ReadValue = ReadValue;
22
+ function Serialize(writer, property) {
23
+ }
24
+ BoolProperty.Serialize = Serialize;
25
+ function SerializeValue(writer, value) {
30
26
  writer.writeByte(value ? 1 : 0);
31
- };
27
+ }
28
+ BoolProperty.SerializeValue = SerializeValue;
32
29
  })(BoolProperty || (exports.BoolProperty = BoolProperty = {}));
33
30
  //# 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;AAOxI,IAAiB,YAAY,CA6B5B;AA7BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC5F,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,MAAqB,EAAW,EAAE;QACxD,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,MAAqB,EAAE,QAAsB,EAAQ,EAAE;QAC7E,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,MAAqB,EAAE,KAAc,EAAQ,EAAE;QAC1E,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 { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader, 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: ContextReader): 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: ContextWriter, property: BoolProperty): void => {\n SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n export const SerializeValue = (writer: ContextWriter, 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,oEAAiE;AAK1D,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3I,QAAA,cAAc,kBAA6H;AAQxJ,IAAiB,YAAY,CAqB5B;AArBD,WAAiB,YAAY;IAEzB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAsB,EAAE,GAAiB;QAClF,IAAI,2BAAY,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAAC;YACjD,QAAQ,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,KAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACJ,QAAQ,CAAC,KAAK,GAAG,GAAG,CAAC,SAAU,CAAC;QACpC,CAAC;IACL,CAAC;IANe,kBAAK,QAMpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAFe,sBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAsB;IAEvE,CAAC;IAFe,sBAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAc;QAChE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IAFe,2BAAc,iBAE7B,CAAA;AACL,CAAC,EArBgB,YAAY,4BAAZ,YAAY,QAqB5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTag } from '../../structs/binary/FPropertyTag';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isBoolProperty = (property: any): property is BoolProperty => !Array.isArray(property) && property.propertyTagType.name === 'BoolProperty';\n\nexport type BoolProperty = AbstractBaseProperty & {\n type: 'BoolProperty';\n propertyTagType: { name: 'BoolProperty', children: FPropertyTagNode[] };\n value: boolean;\n};\n\nexport namespace BoolProperty {\n\n export function Parse(reader: ContextReader, property: BoolProperty, tag: FPropertyTag): void {\n if (FPropertyTag.IsCompletePropertyTagType(reader)) {\n property.value = (tag.flags! & 0x10) === 1;\n } else {\n property.value = tag.boolValue!;\n }\n }\n\n export function ReadValue(reader: ContextReader): boolean {\n return reader.readByte() > 0;\n }\n\n export function Serialize(writer: ContextWriter, property: BoolProperty): void {\n // done. value is written in tag.\n }\n\n export function SerializeValue(writer: ContextWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
@@ -1,20 +1,25 @@
1
1
  import { ContextReader } from '../../../../context/context-reader';
2
2
  import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTag } from '../../structs/binary/FPropertyTag';
4
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
3
5
  import { AbstractBaseProperty } from './AbstractBaseProperty';
4
6
  export declare const isByteProperty: (property: any) => property is ByteProperty;
5
7
  export type ByteProperty = AbstractBaseProperty & {
6
8
  type: 'ByteProperty';
9
+ propertyTagType: {
10
+ name: 'ByteProperty';
11
+ children: FPropertyTagNode[];
12
+ };
7
13
  value: BytePropertyValue;
8
14
  };
9
15
  export declare namespace ByteProperty {
10
- const Parse: (reader: ContextReader, ueType: string, index: number | undefined, type: string) => ByteProperty;
11
- const ReadValue: (reader: ContextReader) => number;
12
- const CalcOverhead: (property: ByteProperty, type: string) => number;
13
- const Serialize: (writer: ContextWriter, property: ByteProperty) => void;
14
- const SerializeValue: (writer: ContextWriter, value: number) => void;
16
+ function Parse(reader: ContextReader, property: ByteProperty, tag: FPropertyTag): void;
17
+ function ReadValue(reader: ContextReader): number;
18
+ function Serialize(writer: ContextWriter, property: ByteProperty): void;
19
+ function SerializeValue(writer: ContextWriter, value: number): void;
15
20
  }
16
21
  export type BytePropertyValue = {
17
- type: string;
18
- value: string | number;
22
+ type?: string;
23
+ value: number | string;
19
24
  };
20
25
  //# sourceMappingURL=ByteProperty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,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,iBAAiB,CAAC;CAC5B,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,SAAS,MAAM,oBAAY,MAAM,KAAG,YAuB9F,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,MAEjD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,QAAQ,MAAM,KAAG,MAEnE,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,YAAY,KAAG,IAUzE,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,MAAM,KAAG,IAErE,CAAA;CACJ;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4F,CAAC;AAExJ,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,eAAe,EAAE;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAA;KAAE,CAAC;IACxE,KAAK,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAE1B,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,GAAG,IAAI,CAmB5F;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAEvD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAU7E;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzE;CACJ;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
@@ -1,51 +1,54 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ByteProperty = exports.isByteProperty = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
- const isByteProperty = (property) => !Array.isArray(property) && property.type === 'ByteProperty';
4
+ const FPropertyTag_1 = require("../../structs/binary/FPropertyTag");
5
+ const isByteProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'ByteProperty';
7
6
  exports.isByteProperty = isByteProperty;
8
7
  var ByteProperty;
9
8
  (function (ByteProperty) {
10
- ByteProperty.Parse = (reader, ueType, index = 0, type) => {
11
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
12
- let value;
13
- if (type === 'None') {
14
- value = {
15
- type,
16
- value: ByteProperty.ReadValue(reader)
9
+ function Parse(reader, property, tag) {
10
+ if (FPropertyTag_1.FPropertyTag.IsCompletePropertyTagType(reader)) {
11
+ property.value = {
12
+ value: reader.readUint8()
17
13
  };
18
14
  }
19
15
  else {
20
- value = {
21
- type,
22
- value: reader.readString()
23
- };
16
+ if (tag.byteValueEnumName === 'None') {
17
+ property.value = {
18
+ type: tag.byteValueEnumName,
19
+ value: ReadValue(reader)
20
+ };
21
+ }
22
+ else {
23
+ property.value = {
24
+ type: tag.byteValueEnumName,
25
+ value: reader.readString()
26
+ };
27
+ }
24
28
  }
25
- return {
26
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
27
- type: 'ByteProperty',
28
- value
29
- };
30
- };
31
- ByteProperty.ReadValue = (reader) => {
29
+ }
30
+ ByteProperty.Parse = Parse;
31
+ function ReadValue(reader) {
32
32
  return reader.readByte();
33
- };
34
- ByteProperty.CalcOverhead = (property, type) => {
35
- return type.length + 5 + 1;
36
- };
37
- ByteProperty.Serialize = (writer, property) => {
38
- writer.writeString(property.value.type);
39
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
40
- if (property.value.type === 'None') {
41
- ByteProperty.SerializeValue(writer, property.value.value);
33
+ }
34
+ ByteProperty.ReadValue = ReadValue;
35
+ function Serialize(writer, property) {
36
+ if (FPropertyTag_1.FPropertyTag.IsCompletePropertyTagType(writer)) {
37
+ SerializeValue(writer, property.value.value);
42
38
  }
43
39
  else {
44
- writer.writeString(property.value.value);
40
+ if (property.value.type === 'None') {
41
+ SerializeValue(writer, property.value.value);
42
+ }
43
+ else {
44
+ writer.writeString(property.value.value);
45
+ }
45
46
  }
46
- };
47
- ByteProperty.SerializeValue = (writer, value) => {
47
+ }
48
+ ByteProperty.Serialize = Serialize;
49
+ function SerializeValue(writer, value) {
48
50
  writer.writeByte(value);
49
- };
51
+ }
52
+ ByteProperty.SerializeValue = SerializeValue;
50
53
  })(ByteProperty || (exports.ByteProperty = ByteProperty = {}));
51
54
  //# 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;AAOxI,IAAiB,YAAY,CAkD5B;AAlDD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAE,IAAY,EAAgB,EAAE;QAE1G,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvC,IAAI,KAAK,CAAC;QACV,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YAClB,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,aAAA,SAAS,CAAC,MAAM,CAAC;aAC3B,CAAC;QACN,CAAC;aACI,CAAC;YACF,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE;aAC7B,CAAC;QACN,CAAC;QAED,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,MAAqB,EAAU,EAAE;QACvD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAE,IAAY,EAAU,EAAE;QACzE,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAqB,EAAE,QAAsB,EAAQ,EAAE;QAC7E,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,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,MAAqB,EAAE,KAAa,EAAQ,EAAE;QACzE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAA;AACL,CAAC,EAlDgB,YAAY,4BAAZ,YAAY,QAkD5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader, ueType: string, index: number = 0, type: string): ByteProperty => {\n\n const guidInfo = GUIDInfo.read(reader);\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: ContextReader): number => {\n return reader.readByte();\n }\n\n export const CalcOverhead = (property: ByteProperty, type: string): number => {\n return type.length + 5 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, 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: ContextWriter, 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,oEAAiE;AAK1D,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3I,QAAA,cAAc,kBAA6H;AAQxJ,IAAiB,YAAY,CA0C5B;AA1CD,WAAiB,YAAY;IAEzB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAsB,EAAE,GAAiB;QAElF,IAAI,2BAAY,CAAC,yBAAyB,CAAC,MAAM,CAAC,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C,CAAC;IAC5B,CAAC;IAFe,2BAAc,iBAE7B,CAAA;AACL,CAAC,EA1CgB,YAAY,4BAAZ,YAAY,QA0C5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTag } from '../../structs/binary/FPropertyTag';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isByteProperty = (property: any): property is ByteProperty => !Array.isArray(property) && property.propertyTagType.name === 'ByteProperty';\n\nexport type ByteProperty = AbstractBaseProperty & {\n type: 'ByteProperty';\n propertyTagType: { name: 'ByteProperty', children: FPropertyTagNode[] };\n value: BytePropertyValue;\n};\n\nexport namespace ByteProperty {\n\n export function Parse(reader: ContextReader, property: ByteProperty, tag: FPropertyTag): void {\n\n if (FPropertyTag.IsCompletePropertyTagType(reader)) {\n property.value = {\n value: reader.readUint8()\n }\n } else {\n if (tag.byteValueEnumName === 'None') {\n property.value = {\n type: tag.byteValueEnumName,\n value: ReadValue(reader)\n };\n } else {\n property.value = {\n type: tag.byteValueEnumName,\n value: reader.readString()\n };\n }\n }\n }\n\n export function ReadValue(reader: ContextReader): number {\n return reader.readByte();\n }\n\n export function Serialize(writer: ContextWriter, property: ByteProperty): void {\n if (FPropertyTag.IsCompletePropertyTagType(writer)) {\n SerializeValue(writer, property.value.value as number);\n } else {\n if (property.value.type === 'None') {\n SerializeValue(writer, property.value.value as number);\n } else {\n writer.writeString(property.value.value as string);\n }\n }\n }\n\n export function SerializeValue(writer: ContextWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type?: string;\n value: number | string;\n};\n\n"]}
@@ -1,16 +1,20 @@
1
1
  import { ContextReader } from '../../../../context/context-reader';
2
2
  import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
3
4
  import { AbstractBaseProperty } from './AbstractBaseProperty';
4
5
  export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
5
6
  export type DoubleProperty = AbstractBaseProperty & {
6
7
  type: 'DoubleProperty';
8
+ propertyTagType: {
9
+ name: 'DoubleProperty';
10
+ children: FPropertyTagNode[];
11
+ };
7
12
  value: number;
8
13
  };
9
14
  export declare namespace DoubleProperty {
10
- const Parse: (reader: ContextReader, ueType: string, index?: number) => DoubleProperty;
11
- const ReadValue: (reader: ContextReader) => number;
12
- const CalcOverhead: (property: DoubleProperty) => number;
13
- const Serialize: (writer: ContextWriter, property: DoubleProperty) => void;
14
- const SerializeValue: (writer: ContextWriter, value: number) => void;
15
+ function Parse(reader: ContextReader, property: DoubleProperty): void;
16
+ function ReadValue(reader: ContextReader): number;
17
+ function Serialize(writer: ContextWriter, property: DoubleProperty): void;
18
+ function SerializeValue(writer: ContextWriter, value: number): void;
15
19
  }
16
20
  //# 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,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgF,CAAC;AAE9I,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAErB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,cAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,MAEjD,CAAA;IAEM,MAAM,YAAY,aAAc,cAAc,KAAG,MAEvD,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,cAAc,KAAG,IAG3E,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,MAAM,KAAG,IAErE,CAAA;CACJ"}
1
+ {"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgG,CAAC;AAE9J,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,gBAAgB,CAAC;IACvB,eAAe,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAA;KAAE,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAE5B,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAE3E;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAEvD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAE/E;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzE;CACJ"}
@@ -1,33 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DoubleProperty = exports.isDoubleProperty = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
- const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
4
+ const isDoubleProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'DoubleProperty';
7
5
  exports.isDoubleProperty = isDoubleProperty;
8
6
  var DoubleProperty;
9
7
  (function (DoubleProperty) {
10
- DoubleProperty.Parse = (reader, ueType, index = 0) => {
11
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
12
- const value = DoubleProperty.ReadValue(reader);
13
- return {
14
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
- type: 'DoubleProperty',
16
- value
17
- };
18
- };
19
- DoubleProperty.ReadValue = (reader) => {
8
+ function Parse(reader, property) {
9
+ property.value = ReadValue(reader);
10
+ }
11
+ DoubleProperty.Parse = Parse;
12
+ function ReadValue(reader) {
20
13
  return reader.readDouble();
21
- };
22
- DoubleProperty.CalcOverhead = (property) => {
23
- return 1;
24
- };
25
- DoubleProperty.Serialize = (writer, property) => {
26
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
27
- DoubleProperty.SerializeValue(writer, property.value);
28
- };
29
- DoubleProperty.SerializeValue = (writer, value) => {
14
+ }
15
+ DoubleProperty.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
17
+ SerializeValue(writer, property.value);
18
+ }
19
+ DoubleProperty.Serialize = Serialize;
20
+ function SerializeValue(writer, value) {
30
21
  writer.writeDouble(value);
31
- };
22
+ }
23
+ DoubleProperty.SerializeValue = SerializeValue;
32
24
  })(DoubleProperty || (exports.DoubleProperty = DoubleProperty = {}));
33
25
  //# 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,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context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader, 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: ContextReader): number => {\n return reader.readDouble();\n }\n\n export const CalcOverhead = (property: DoubleProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: DoubleProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, 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":";;;AAMO,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjJ,QAAA,gBAAgB,oBAAiI;AAQ9J,IAAiB,cAAc,CAiB9B;AAjBD,WAAiB,cAAc;IAE3B,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAwB;QACjE,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAFe,oBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAFe,wBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAwB;QACrE,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,wBAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAa;QAC/D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAFe,6BAAc,iBAE7B,CAAA;AACL,CAAC,EAjBgB,cAAc,8BAAd,cAAc,QAiB9B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isDoubleProperty = (property: any): property is DoubleProperty => !Array.isArray(property) && property.propertyTagType.name === 'DoubleProperty';\n\nexport type DoubleProperty = AbstractBaseProperty & {\n type: 'DoubleProperty';\n propertyTagType: { name: 'DoubleProperty', children: FPropertyTagNode[] };\n value: number;\n};\n\nexport namespace DoubleProperty {\n\n export function Parse(reader: ContextReader, property: DoubleProperty): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): number {\n return reader.readDouble();\n }\n\n export function Serialize(writer: ContextWriter, property: DoubleProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}