@etothepii/satisfactory-file-parser 3.3.1 → 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 (383) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/GUIDE.md +11 -7
  3. package/README.md +4 -4
  4. package/build/index.d.ts +112 -102
  5. package/build/index.d.ts.map +1 -1
  6. package/build/index.js +42 -40
  7. package/build/index.js.map +1 -1
  8. package/build/parser/byte/binary-readable.interface.d.ts +1 -0
  9. package/build/parser/byte/binary-readable.interface.d.ts.map +1 -1
  10. package/build/parser/byte/binary-readable.interface.js.map +1 -1
  11. package/build/parser/byte/byte-reader.class.d.ts +1 -0
  12. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  13. package/build/parser/byte/byte-reader.class.js +6 -2
  14. package/build/parser/byte/byte-reader.class.js.map +1 -1
  15. package/build/parser/byte/byte-writer.class.d.ts +1 -0
  16. package/build/parser/byte/byte-writer.class.d.ts.map +1 -1
  17. package/build/parser/byte/byte-writer.class.js +6 -0
  18. package/build/parser/byte/byte-writer.class.js.map +1 -1
  19. package/build/parser/context/context-reader.d.ts +1 -1
  20. package/build/parser/context/context-reader.d.ts.map +1 -1
  21. package/build/parser/context/context-reader.js.map +1 -1
  22. package/build/parser/context/context-writer.d.ts +1 -1
  23. package/build/parser/context/context-writer.d.ts.map +1 -1
  24. package/build/parser/context/context-writer.js.map +1 -1
  25. package/build/parser/context/hierarchical-version-context.d.ts +11 -0
  26. package/build/parser/context/hierarchical-version-context.d.ts.map +1 -0
  27. package/build/parser/context/hierarchical-version-context.js +24 -0
  28. package/build/parser/context/hierarchical-version-context.js.map +1 -0
  29. package/build/parser/context/{context.d.ts → reader-writer-context.d.ts} +5 -3
  30. package/build/parser/context/reader-writer-context.d.ts.map +1 -0
  31. package/build/parser/context/{context.js → reader-writer-context.js} +1 -1
  32. package/build/parser/context/reader-writer-context.js.map +1 -0
  33. package/build/parser/parser.d.ts.map +1 -1
  34. package/build/parser/parser.js +29 -15
  35. package/build/parser/parser.js.map +1 -1
  36. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts +4 -2
  37. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts.map +1 -1
  38. package/build/parser/satisfactory/blueprint/blueprint-config-version.js +4 -2
  39. package/build/parser/satisfactory/blueprint/blueprint-config-version.js.map +1 -1
  40. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts +4 -5
  41. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts.map +1 -1
  42. package/build/parser/satisfactory/blueprint/blueprint-config.js +16 -14
  43. package/build/parser/satisfactory/blueprint/blueprint-config.js.map +1 -1
  44. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts +2 -0
  45. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts.map +1 -1
  46. package/build/parser/satisfactory/blueprint/blueprint-header.js +18 -2
  47. package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -1
  48. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  49. package/build/parser/satisfactory/blueprint/blueprint-reader.js +6 -2
  50. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  51. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  52. package/build/parser/satisfactory/blueprint/blueprint-writer.js +5 -2
  53. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  54. package/build/parser/satisfactory/save/data-blob.d.ts +17 -0
  55. package/build/parser/satisfactory/save/data-blob.d.ts.map +1 -0
  56. package/build/parser/satisfactory/save/data-blob.js +137 -0
  57. package/build/parser/satisfactory/save/data-blob.js.map +1 -0
  58. package/build/parser/satisfactory/save/level.d.ts +5 -10
  59. package/build/parser/satisfactory/save/level.d.ts.map +1 -1
  60. package/build/parser/satisfactory/save/level.js +52 -180
  61. package/build/parser/satisfactory/save/level.js.map +1 -1
  62. package/build/parser/satisfactory/save/satisfactory-save-header.d.ts.map +1 -1
  63. package/build/parser/satisfactory/save/satisfactory-save-header.js +5 -3
  64. package/build/parser/satisfactory/save/satisfactory-save-header.js.map +1 -1
  65. package/build/parser/satisfactory/save/satisfactory-save.d.ts +3 -1
  66. package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -1
  67. package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -1
  68. package/build/parser/satisfactory/save/save-body-chunks.js +2 -2
  69. package/build/parser/satisfactory/save/save-body-chunks.js.map +1 -1
  70. package/build/parser/satisfactory/save/save-custom-version.d.ts +8 -2
  71. package/build/parser/satisfactory/save/save-custom-version.d.ts.map +1 -1
  72. package/build/parser/satisfactory/save/save-custom-version.js +8 -2
  73. package/build/parser/satisfactory/save/save-custom-version.js.map +1 -1
  74. package/build/parser/satisfactory/save/save-reader.d.ts +2 -2
  75. package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -1
  76. package/build/parser/satisfactory/save/save-reader.js +16 -13
  77. package/build/parser/satisfactory/save/save-reader.js.map +1 -1
  78. package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -1
  79. package/build/parser/satisfactory/save/save-writer.js +4 -1
  80. package/build/parser/satisfactory/save/save-writer.js.map +1 -1
  81. package/build/parser/satisfactory/save/save.types.d.ts +1 -1
  82. package/build/parser/satisfactory/save/save.types.d.ts.map +1 -1
  83. package/build/parser/satisfactory/save/save.types.js.map +1 -1
  84. package/build/parser/satisfactory/save/toc-blob.d.ts +18 -0
  85. package/build/parser/satisfactory/save/toc-blob.d.ts.map +1 -0
  86. package/build/parser/satisfactory/save/toc-blob.js +97 -0
  87. package/build/parser/satisfactory/save/toc-blob.js.map +1 -0
  88. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +4 -0
  89. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  90. package/build/parser/satisfactory/types/objects/SaveObject.js +19 -5
  91. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  92. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -4
  93. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  94. package/build/parser/satisfactory/types/property/PropertiesList.js +73 -114
  95. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  96. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +9 -12
  97. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -1
  98. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +12 -7
  99. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
  100. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +10 -5
  101. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  102. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -23
  103. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  104. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +12 -7
  105. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  106. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +37 -34
  107. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  108. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +9 -5
  109. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  110. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +15 -23
  111. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  112. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +10 -5
  113. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  114. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +17 -23
  115. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  116. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +9 -5
  117. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  118. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +15 -23
  119. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  120. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +9 -5
  121. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/Int64Property.js +15 -23
  123. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  124. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +8 -4
  125. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  126. package/build/parser/satisfactory/types/property/generic/Int8Property.js +11 -20
  127. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  128. package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts +20 -0
  129. package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts.map +1 -0
  130. package/build/parser/satisfactory/types/property/generic/IntProperty.js +25 -0
  131. package/build/parser/satisfactory/types/property/generic/IntProperty.js.map +1 -0
  132. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts +21 -0
  133. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts.map +1 -0
  134. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js +26 -0
  135. package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js.map +1 -0
  136. package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts +20 -0
  137. package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts.map +1 -0
  138. package/build/parser/satisfactory/types/property/generic/NameProperty.js +25 -0
  139. package/build/parser/satisfactory/types/property/generic/NameProperty.js.map +1 -0
  140. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +9 -5
  141. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  142. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +15 -23
  143. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  144. package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts +20 -0
  145. package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts.map +1 -0
  146. package/build/parser/satisfactory/types/property/generic/SingleProperty.js +25 -0
  147. package/build/parser/satisfactory/types/property/generic/SingleProperty.js.map +1 -0
  148. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +9 -5
  149. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  150. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +15 -23
  151. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  152. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +9 -5
  153. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  154. package/build/parser/satisfactory/types/property/generic/StrProperty.js +15 -23
  155. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  156. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +9 -5
  157. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  158. package/build/parser/satisfactory/types/property/generic/TextProperty.js +38 -45
  159. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  160. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +9 -5
  161. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  162. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +15 -23
  163. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  164. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +9 -5
  165. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  166. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +14 -22
  167. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  168. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +9 -5
  169. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  170. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +14 -22
  171. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  172. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts +15 -0
  173. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts.map +1 -0
  174. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js +129 -0
  175. package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js.map +1 -0
  176. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts +55 -0
  177. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts.map +1 -0
  178. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js +24 -0
  179. package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js.map +1 -0
  180. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts +20 -0
  181. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts.map +1 -0
  182. package/build/parser/satisfactory/types/property/generic/{MapProperty.js → containers/MapProperty.js} +52 -61
  183. package/build/parser/satisfactory/types/property/generic/containers/MapProperty.js.map +1 -0
  184. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts +14 -0
  185. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts.map +1 -0
  186. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js +90 -0
  187. package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js.map +1 -0
  188. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts +34 -0
  189. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts.map +1 -0
  190. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js +17 -0
  191. package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js.map +1 -0
  192. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts +59 -0
  193. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts.map +1 -0
  194. package/build/parser/satisfactory/types/property/generic/{StructProperty.js → containers/StructProperty.js} +61 -84
  195. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.js.map +1 -0
  196. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +2 -0
  197. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -1
  198. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +14 -5
  199. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -1
  200. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -1
  201. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -1
  202. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +2 -2
  203. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -1
  204. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts +4 -2
  205. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts.map +1 -1
  206. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js +4 -2
  207. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js.map +1 -1
  208. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +4 -4
  209. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  210. package/build/parser/satisfactory/types/structs/GUIDInfo.js +6 -6
  211. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  212. package/build/parser/satisfactory/types/structs/SaveBodyValidation.d.ts.map +1 -1
  213. package/build/parser/satisfactory/types/structs/SaveBodyValidation.js +0 -2
  214. package/build/parser/satisfactory/types/structs/SaveBodyValidation.js.map +1 -1
  215. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +1 -1
  216. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -1
  217. package/build/parser/satisfactory/types/structs/SoftObjectReference.js +2 -2
  218. package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -1
  219. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts +12 -0
  220. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts.map +1 -0
  221. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js +21 -0
  222. package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js.map +1 -0
  223. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts +11 -0
  224. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts.map +1 -0
  225. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js +22 -0
  226. package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js.map +1 -0
  227. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts +14 -0
  228. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts.map +1 -0
  229. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js +24 -0
  230. package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js.map +1 -0
  231. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts +12 -0
  232. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts.map +1 -0
  233. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js +22 -0
  234. package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js.map +1 -0
  235. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts +11 -0
  236. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts.map +1 -0
  237. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js +18 -0
  238. package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js.map +1 -0
  239. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts +11 -0
  240. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts.map +1 -0
  241. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js +38 -0
  242. package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js.map +1 -0
  243. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts +30 -0
  244. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts.map +1 -0
  245. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js +182 -0
  246. package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js.map +1 -0
  247. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts +11 -0
  248. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts.map +1 -0
  249. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js +26 -0
  250. package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js.map +1 -0
  251. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts +17 -0
  252. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts.map +1 -0
  253. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js +27 -0
  254. package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js.map +1 -0
  255. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts +11 -0
  256. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts.map +1 -0
  257. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js +21 -0
  258. package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js.map +1 -0
  259. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts +12 -0
  260. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts.map +1 -0
  261. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js +22 -0
  262. package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js.map +1 -0
  263. package/build/parser/stream/reworked/readable-stream-parser.d.ts +2 -3
  264. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  265. package/build/parser/stream/reworked/readable-stream-parser.js +82 -44
  266. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  267. package/build/parser/unreal-engine/ETextHistoryType.d.ts +17 -0
  268. package/build/parser/unreal-engine/ETextHistoryType.d.ts.map +1 -0
  269. package/build/parser/unreal-engine/ETextHistoryType.js +21 -0
  270. package/build/parser/unreal-engine/ETextHistoryType.js.map +1 -0
  271. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts +24 -0
  272. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts.map +1 -0
  273. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js +29 -0
  274. package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js.map +1 -0
  275. package/package.json +3 -3
  276. package/build/parser/context/context.d.ts.map +0 -1
  277. package/build/parser/context/context.js.map +0 -1
  278. package/build/parser/file.types.d.ts +0 -14
  279. package/build/parser/file.types.d.ts.map +0 -1
  280. package/build/parser/file.types.js +0 -8
  281. package/build/parser/file.types.js.map +0 -1
  282. package/build/parser/satisfactory/save/level.class.d.ts +0 -29
  283. package/build/parser/satisfactory/save/level.class.d.ts.map +0 -1
  284. package/build/parser/satisfactory/save/level.class.js +0 -204
  285. package/build/parser/satisfactory/save/level.class.js.map +0 -1
  286. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +0 -22
  287. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +0 -1
  288. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +0 -127
  289. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +0 -1
  290. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +0 -14
  291. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +0 -1
  292. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +0 -23
  293. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +0 -1
  294. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +0 -14
  295. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +0 -1
  296. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +0 -23
  297. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +0 -1
  298. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +0 -14
  299. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +0 -1
  300. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +0 -23
  301. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +0 -1
  302. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +0 -14
  303. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +0 -1
  304. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +0 -23
  305. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +0 -1
  306. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +0 -14
  307. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +0 -1
  308. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +0 -23
  309. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +0 -1
  310. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +0 -14
  311. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +0 -1
  312. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +0 -23
  313. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +0 -1
  314. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +0 -14
  315. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +0 -1
  316. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +0 -23
  317. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +0 -1
  318. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +0 -15
  319. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +0 -1
  320. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +0 -23
  321. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +0 -1
  322. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +0 -15
  323. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +0 -1
  324. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +0 -23
  325. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +0 -1
  326. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +0 -14
  327. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +0 -1
  328. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +0 -23
  329. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +0 -1
  330. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +0 -26
  331. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +0 -1
  332. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +0 -75
  333. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +0 -1
  334. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +0 -15
  335. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +0 -1
  336. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +0 -23
  337. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +0 -1
  338. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +0 -16
  339. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +0 -1
  340. package/build/parser/satisfactory/types/property/generic/Int32Property.js +0 -33
  341. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +0 -1
  342. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +0 -25
  343. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +0 -1
  344. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +0 -1
  345. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +0 -14
  346. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +0 -1
  347. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +0 -23
  348. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +0 -1
  349. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +0 -15
  350. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +0 -1
  351. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +0 -23
  352. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +0 -1
  353. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +0 -15
  354. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +0 -1
  355. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +0 -75
  356. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +0 -1
  357. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +0 -14
  358. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +0 -1
  359. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +0 -23
  360. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +0 -1
  361. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +0 -14
  362. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +0 -1
  363. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +0 -42
  364. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +0 -1
  365. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +0 -14
  366. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +0 -1
  367. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +0 -23
  368. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +0 -1
  369. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +0 -60
  370. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +0 -1
  371. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +0 -1
  372. package/build/parser/satisfactory/types/structs/GUID.d.ts +0 -8
  373. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +0 -1
  374. package/build/parser/satisfactory/types/structs/GUID.js +0 -22
  375. package/build/parser/satisfactory/types/structs/GUID.js.map +0 -1
  376. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts +0 -6
  377. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts.map +0 -1
  378. package/build/parser/stream/reworked/save-stream-json-stringifier.js +0 -35
  379. package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +0 -1
  380. package/build/parser/stream/reworked/save-stream-writer.class.d.ts +0 -28
  381. package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +0 -1
  382. package/build/parser/stream/reworked/save-stream-writer.class.js +0 -84
  383. package/build/parser/stream/reworked/save-stream-writer.class.js.map +0 -1
@@ -1,33 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Int64Property = exports.isInt64Property = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
- const isInt64Property = (property) => !Array.isArray(property) && property.type === 'Int64Property';
4
+ const isInt64Property = (property) => !Array.isArray(property) && property.propertyTagType.name === 'Int64Property';
7
5
  exports.isInt64Property = isInt64Property;
8
6
  var Int64Property;
9
7
  (function (Int64Property) {
10
- Int64Property.Parse = (reader, ueType, index = 0) => {
11
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
12
- const value = Int64Property.ReadValue(reader);
13
- return {
14
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
- type: 'Int64Property',
16
- value,
17
- };
18
- };
19
- Int64Property.ReadValue = (reader) => {
8
+ function Parse(reader, property) {
9
+ property.value = ReadValue(reader);
10
+ }
11
+ Int64Property.Parse = Parse;
12
+ function ReadValue(reader) {
20
13
  return reader.readInt64().toString();
21
- };
22
- Int64Property.CalcOverhead = (property) => {
23
- return 1;
24
- };
25
- Int64Property.Serialize = (writer, property) => {
26
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
27
- Int64Property.SerializeValue(writer, property.value);
28
- };
29
- Int64Property.SerializeValue = (writer, value) => {
14
+ }
15
+ Int64Property.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
17
+ SerializeValue(writer, property.value);
18
+ }
19
+ Int64Property.Serialize = Serialize;
20
+ function SerializeValue(writer, value) {
30
21
  writer.writeInt64(BigInt(value));
31
- };
22
+ }
23
+ Int64Property.SerializeValue = SerializeValue;
32
24
  })(Int64Property || (exports.Int64Property = Int64Property = {}));
33
25
  //# sourceMappingURL=Int64Property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Int64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9H,QAAA,eAAe,mBAA+G;AAO3I,IAAiB,aAAa,CA6B7B;AA7BD,WAAiB,aAAa;IAEb,mBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAiB,EAAE;QAC7F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,eAAe;YACrB,KAAK;SACgB,CAAC;IAC9B,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAqB,EAAU,EAAE;QACvD,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC,CAAA;IAEY,0BAAY,GAAG,CAAC,QAAuB,EAAU,EAAE;QAC5D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAqB,EAAE,QAAuB,EAAQ,EAAE;QAC9E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,4BAAc,GAAG,CAAC,MAAqB,EAAE,KAAa,EAAQ,EAAE;QACzE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,CAAC,CAAA;AACL,CAAC,EA7BgB,aAAa,6BAAb,aAAa,QA6B7B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt64Property = (property: any): property is Int64Property => !Array.isArray(property) && property.type === 'Int64Property';\n\nexport type Int64Property = AbstractBaseProperty & {\n type: 'Int64Property';\n value: string;\n};\n\nexport namespace Int64Property {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number = 0): Int64Property => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'Int64Property',\n value,\n } satisfies Int64Property;\n }\n\n export const ReadValue = (reader: ContextReader): string => {\n return reader.readInt64().toString();\n }\n\n export const CalcOverhead = (property: Int64Property): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: Int64Property): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, value: string): void => {\n writer.writeInt64(BigInt(value));\n }\n}\n"]}
1
+ {"version":3,"file":"Int64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":";;;AAKO,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9I,QAAA,eAAe,mBAA+H;AAQ3J,IAAiB,aAAa,CAiB7B;AAjBD,WAAiB,aAAa;IAE1B,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAuB;QAChE,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAFe,mBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAFe,uBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAuB;QACpE,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,uBAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAa;QAC/D,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,CAAC;IAFe,4BAAc,iBAE7B,CAAA;AACL,CAAC,EAjBgB,aAAa,6BAAb,aAAa,QAiB7B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt64Property = (property: any): property is Int64Property => !Array.isArray(property) && property.propertyTagType.name === 'Int64Property';\n\nexport type Int64Property = AbstractBaseProperty & {\n type: 'Int64Property';\n propertyTagType: { name: 'Int64Property', children: FPropertyTagNode[] };\n value: string;\n};\n\nexport namespace Int64Property {\n\n export function Parse(reader: ContextReader, property: Int64Property): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): string {\n return reader.readInt64().toString();\n }\n\n export function Serialize(writer: ContextWriter, property: Int64Property): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: string): void {\n writer.writeInt64(BigInt(value));\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 isInt8Property: (property: any) => property is Int8Property;
5
6
  export type Int8Property = AbstractBaseProperty & {
6
7
  type: 'Int8Property';
8
+ propertyTagType: {
9
+ name: 'Int8Property';
10
+ children: FPropertyTagNode[];
11
+ };
7
12
  value: number;
8
13
  };
9
14
  export declare namespace Int8Property {
10
- const Parse: (reader: ContextReader, ueType: string, index?: number) => Int8Property;
11
- const ReadValue: (reader: ContextReader) => number;
12
- const CalcOverhead: (property: Int8Property) => number;
13
- const Serialize: (writer: ContextWriter, property: Int8Property) => void;
15
+ function Parse(reader: ContextReader, property: Int8Property): void;
16
+ function ReadValue(reader: ContextReader): number;
17
+ function Serialize(writer: ContextWriter, property: Int8Property): void;
14
18
  const SerializeValue: (writer: ContextWriter, value: number) => void;
15
19
  }
16
20
  //# sourceMappingURL=Int8Property.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Int8Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.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;AAE9D,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,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,YAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,MAEjD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,YAAY,KAAG,IAGzE,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,MAAM,KAAG,IAErE,CAAA;CACJ"}
1
+ {"version":3,"file":"Int8Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.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;AAE9D,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,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAE1B,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAEzE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAEvD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAE7E;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,MAAM,KAAG,IAErE,CAAA;CACJ"}
@@ -1,31 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Int8Property = exports.isInt8Property = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
- const isInt8Property = (property) => !Array.isArray(property) && property.type === 'Int8Property';
4
+ const isInt8Property = (property) => !Array.isArray(property) && property.propertyTagType.name === 'Int8Property';
7
5
  exports.isInt8Property = isInt8Property;
8
6
  var Int8Property;
9
7
  (function (Int8Property) {
10
- Int8Property.Parse = (reader, ueType, index = 0) => {
11
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
12
- const value = Int8Property.ReadValue(reader);
13
- return {
14
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
- type: 'Int8Property',
16
- value,
17
- };
18
- };
19
- Int8Property.ReadValue = (reader) => {
8
+ function Parse(reader, property) {
9
+ property.value = ReadValue(reader);
10
+ }
11
+ Int8Property.Parse = Parse;
12
+ function ReadValue(reader) {
20
13
  return reader.readInt8();
21
- };
22
- Int8Property.CalcOverhead = (property) => {
23
- return 1;
24
- };
25
- Int8Property.Serialize = (writer, property) => {
26
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
14
+ }
15
+ Int8Property.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
27
17
  Int8Property.SerializeValue(writer, property.value);
28
- };
18
+ }
19
+ Int8Property.Serialize = Serialize;
29
20
  Int8Property.SerializeValue = (writer, value) => {
30
21
  writer.writeInt8(value);
31
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Int8Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAOxI,IAAiB,YAAY,CA6B5B;AA7BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC5F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,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,EAAU,EAAE;QAC3D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAqB,EAAE,QAAsB,EAAQ,EAAE;QAC7E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAqB,EAAE,KAAa,EAAQ,EAAE;QACzE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,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\nexport const isInt8Property = (property: any): property is Int8Property => !Array.isArray(property) && property.type === 'Int8Property';\n\nexport type Int8Property = AbstractBaseProperty & {\n type: 'Int8Property';\n value: number;\n};\n\nexport namespace Int8Property {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number = 0): Int8Property => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'Int8Property',\n value,\n } satisfies Int8Property;\n }\n\n export const ReadValue = (reader: ContextReader): number => {\n return reader.readInt8();\n }\n\n export const CalcOverhead = (property: Int8Property): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: Int8Property): 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.writeInt8(value);\n }\n}\n"]}
1
+ {"version":3,"file":"Int8Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.ts"],"names":[],"mappings":";;;AAKO,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,CAiB5B;AAjBD,WAAiB,YAAY;IAEzB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAsB;QAC/D,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAFe,kBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAFe,sBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAsB;QACnE,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,sBAAS,YAExB,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAqB,EAAE,KAAa,EAAQ,EAAE;QACzE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAA;AACL,CAAC,EAjBgB,YAAY,4BAAZ,YAAY,QAiB5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt8Property = (property: any): property is Int8Property => !Array.isArray(property) && property.propertyTagType.name === 'Int8Property';\n\nexport type Int8Property = AbstractBaseProperty & {\n type: 'Int8Property';\n propertyTagType: { name: 'Int8Property', children: FPropertyTagNode[] };\n value: number;\n};\n\nexport namespace Int8Property {\n\n export function Parse(reader: ContextReader, property: Int8Property): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): number {\n return reader.readInt8();\n }\n\n export function Serialize(writer: ContextWriter, property: Int8Property): void {\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, value: number): void => {\n writer.writeInt8(value);\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isIntProperty: (property: any) => property is IntProperty;
6
+ export type IntProperty = AbstractBaseProperty & {
7
+ type: 'IntProperty';
8
+ propertyTagType: {
9
+ name: 'IntProperty';
10
+ children: FPropertyTagNode[];
11
+ };
12
+ value: number;
13
+ };
14
+ export declare namespace IntProperty {
15
+ function Parse(reader: ContextReader, property: IntProperty): void;
16
+ function ReadValue(reader: ContextReader): number;
17
+ function Serialize(writer: ContextWriter, property: IntProperty): void;
18
+ function SerializeValue(writer: ContextWriter, value: number): void;
19
+ }
20
+ //# sourceMappingURL=IntProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/IntProperty.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;AAE9D,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0F,CAAC;AAErJ,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG;IAC7C,IAAI,EAAE,aAAa,CAAC;IACpB,eAAe,EAAE;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAA;KAAE,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,WAAW,CAAC;IAEzB,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CAExE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAEvD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CAE5E;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzE;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntProperty = exports.isIntProperty = void 0;
4
+ const isIntProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'IntProperty';
5
+ exports.isIntProperty = isIntProperty;
6
+ var IntProperty;
7
+ (function (IntProperty) {
8
+ function Parse(reader, property) {
9
+ property.value = ReadValue(reader);
10
+ }
11
+ IntProperty.Parse = Parse;
12
+ function ReadValue(reader) {
13
+ return reader.readInt32();
14
+ }
15
+ IntProperty.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
17
+ SerializeValue(writer, property.value);
18
+ }
19
+ IntProperty.Serialize = Serialize;
20
+ function SerializeValue(writer, value) {
21
+ writer.writeInt32(value);
22
+ }
23
+ IntProperty.SerializeValue = SerializeValue;
24
+ })(IntProperty || (exports.IntProperty = IntProperty = {}));
25
+ //# sourceMappingURL=IntProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/IntProperty.ts"],"names":[],"mappings":";;;AAKO,MAAM,aAAa,GAAG,CAAC,QAAa,EAA2B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,aAAa,CAAC;AAAxI,QAAA,aAAa,iBAA2H;AAQrJ,IAAiB,WAAW,CAiB3B;AAjBD,WAAiB,WAAW;IAExB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAqB;QAC9D,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAFe,iBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAFe,qBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAqB;QAClE,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,qBAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAa;QAC/D,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAFe,0BAAc,iBAE7B,CAAA;AACL,CAAC,EAjBgB,WAAW,2BAAX,WAAW,QAiB3B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isIntProperty = (property: any): property is IntProperty => !Array.isArray(property) && property.propertyTagType.name === 'IntProperty';\n\nexport type IntProperty = AbstractBaseProperty & {\n type: 'IntProperty';\n propertyTagType: { name: 'IntProperty', children: FPropertyTagNode[] };\n value: number;\n};\n\nexport namespace IntProperty {\n\n export function Parse(reader: ContextReader, property: IntProperty): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): number {\n return reader.readInt32();\n }\n\n export function Serialize(writer: ContextWriter, property: IntProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: number): void {\n writer.writeInt32(value);\n }\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
4
+ import { ObjectReference } from '../../structs/ObjectReference';
5
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
6
+ export declare const isInterfaceProperty: (property: any) => property is InterfaceProperty;
7
+ export type InterfaceProperty = AbstractBaseProperty & {
8
+ type: 'InterfaceProperty';
9
+ propertyTagType: {
10
+ name: 'InterfaceProperty';
11
+ children: FPropertyTagNode[];
12
+ };
13
+ value: ObjectReference;
14
+ };
15
+ export declare namespace InterfaceProperty {
16
+ function Parse(reader: ContextReader, property: InterfaceProperty): void;
17
+ function ReadValue(reader: ContextReader): ObjectReference;
18
+ function Serialize(writer: ContextWriter, property: InterfaceProperty): void;
19
+ function SerializeValue(writer: ContextWriter, value: ObjectReference): void;
20
+ }
21
+ //# sourceMappingURL=InterfaceProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterfaceProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/InterfaceProperty.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,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsG,CAAC;AAEvK,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,eAAe,EAAE;QAAE,IAAI,EAAE,mBAAmB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAA;KAAE,CAAC;IAC7E,KAAK,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAE/B,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAE9E;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe,CAEhE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAElF;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAElF;CACJ"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InterfaceProperty = exports.isInterfaceProperty = void 0;
4
+ const ObjectReference_1 = require("../../structs/ObjectReference");
5
+ const isInterfaceProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'InterfaceProperty';
6
+ exports.isInterfaceProperty = isInterfaceProperty;
7
+ var InterfaceProperty;
8
+ (function (InterfaceProperty) {
9
+ function Parse(reader, property) {
10
+ property.value = ReadValue(reader);
11
+ }
12
+ InterfaceProperty.Parse = Parse;
13
+ function ReadValue(reader) {
14
+ return ObjectReference_1.ObjectReference.read(reader);
15
+ }
16
+ InterfaceProperty.ReadValue = ReadValue;
17
+ function Serialize(writer, property) {
18
+ SerializeValue(writer, property.value);
19
+ }
20
+ InterfaceProperty.Serialize = Serialize;
21
+ function SerializeValue(writer, value) {
22
+ ObjectReference_1.ObjectReference.write(writer, value);
23
+ }
24
+ InterfaceProperty.SerializeValue = SerializeValue;
25
+ })(InterfaceProperty || (exports.InterfaceProperty = InterfaceProperty = {}));
26
+ //# sourceMappingURL=InterfaceProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterfaceProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/InterfaceProperty.ts"],"names":[],"mappings":";;;AAGA,mEAAgE;AAGzD,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1J,QAAA,mBAAmB,uBAAuI;AAQvK,IAAiB,iBAAiB,CAiBjC;AAjBD,WAAiB,iBAAiB;IAE9B,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAA2B;QACpE,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAFe,uBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAFe,2BAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAA2B;QACxE,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,2BAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAsB;QACxE,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAFe,gCAAc,iBAE7B,CAAA;AACL,CAAC,EAjBgB,iBAAiB,iCAAjB,iBAAiB,QAiBjC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInterfaceProperty = (property: any): property is InterfaceProperty => !Array.isArray(property) && property.propertyTagType.name === 'InterfaceProperty';\n\nexport type InterfaceProperty = AbstractBaseProperty & {\n type: 'InterfaceProperty';\n propertyTagType: { name: 'InterfaceProperty', children: FPropertyTagNode[] };\n value: ObjectReference;\n};\n\nexport namespace InterfaceProperty {\n\n export function Parse(reader: ContextReader, property: InterfaceProperty): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): ObjectReference {\n return ObjectReference.read(reader);\n }\n\n export function Serialize(writer: ContextWriter, property: InterfaceProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: ObjectReference): void {\n ObjectReference.write(writer, value);\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isNameProperty: (property: any) => property is NameProperty;
6
+ export type NameProperty = AbstractBaseProperty & {
7
+ type: 'NameProperty';
8
+ propertyTagType: {
9
+ name: 'NameProperty';
10
+ children: FPropertyTagNode[];
11
+ };
12
+ value: string;
13
+ };
14
+ export declare namespace NameProperty {
15
+ function Parse(reader: ContextReader, currentProperty: NameProperty): void;
16
+ function ReadValue(reader: ContextReader): string;
17
+ function Serialize(writer: ContextWriter, property: NameProperty): void;
18
+ function SerializeValue(writer: ContextWriter, value: string): void;
19
+ }
20
+ //# sourceMappingURL=NameProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NameProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/NameProperty.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;AAE9D,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,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAE1B,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,GAAG,IAAI,CAEhF;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAEvD;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAE7E;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzE;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NameProperty = exports.isNameProperty = void 0;
4
+ const isNameProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'NameProperty';
5
+ exports.isNameProperty = isNameProperty;
6
+ var NameProperty;
7
+ (function (NameProperty) {
8
+ function Parse(reader, currentProperty) {
9
+ currentProperty.value = ReadValue(reader);
10
+ }
11
+ NameProperty.Parse = Parse;
12
+ function ReadValue(reader) {
13
+ return reader.readString();
14
+ }
15
+ NameProperty.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
17
+ SerializeValue(writer, property.value);
18
+ }
19
+ NameProperty.Serialize = Serialize;
20
+ function SerializeValue(writer, value) {
21
+ writer.writeString(value);
22
+ }
23
+ NameProperty.SerializeValue = SerializeValue;
24
+ })(NameProperty || (exports.NameProperty = NameProperty = {}));
25
+ //# sourceMappingURL=NameProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NameProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/NameProperty.ts"],"names":[],"mappings":";;;AAKO,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,CAiB5B;AAjBD,WAAiB,YAAY;IAEzB,SAAgB,KAAK,CAAC,MAAqB,EAAE,eAA6B;QACtE,eAAe,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAFe,kBAAK,QAEpB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB;QAC3C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAFe,sBAAS,YAExB,CAAA;IAED,SAAgB,SAAS,CAAC,MAAqB,EAAE,QAAsB;QACnE,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAFe,sBAAS,YAExB,CAAA;IAED,SAAgB,cAAc,CAAC,MAAqB,EAAE,KAAa;QAC/D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAFe,2BAAc,iBAE7B,CAAA;AACL,CAAC,EAjBgB,YAAY,4BAAZ,YAAY,QAiB5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isNameProperty = (property: any): property is NameProperty => !Array.isArray(property) && property.propertyTagType.name === 'NameProperty';\n\nexport type NameProperty = AbstractBaseProperty & {\n type: 'NameProperty';\n propertyTagType: { name: 'NameProperty', children: FPropertyTagNode[] };\n value: string;\n};\n\nexport namespace NameProperty {\n\n export function Parse(reader: ContextReader, currentProperty: NameProperty): void {\n currentProperty.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): string {\n return reader.readString();\n }\n\n export function Serialize(writer: ContextWriter, property: NameProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
@@ -1,17 +1,21 @@
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 { ObjectReference } from '../../structs/ObjectReference';
4
5
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
6
  export declare const isObjectProperty: (property: any) => property is ObjectProperty;
6
7
  export type ObjectProperty = AbstractBaseProperty & {
7
8
  type: 'ObjectProperty';
9
+ propertyTagType: {
10
+ name: 'ObjectProperty';
11
+ children: FPropertyTagNode[];
12
+ };
8
13
  value: ObjectReference;
9
14
  };
10
15
  export declare namespace ObjectProperty {
11
- const Parse: (reader: ContextReader, ueType: string, index?: number) => ObjectProperty;
12
- const ReadValue: (reader: ContextReader) => ObjectReference;
13
- const CalcOverhead: (property: ObjectProperty) => number;
14
- const Serialize: (writer: ContextWriter, property: ObjectProperty) => void;
15
- const SerializeValue: (writer: ContextWriter, value: ObjectReference) => void;
16
+ function Parse(reader: ContextReader, property: ObjectProperty): void;
17
+ function ReadValue(reader: ContextReader): ObjectReference;
18
+ function Serialize(writer: ContextWriter, property: ObjectProperty): void;
19
+ function SerializeValue(writer: ContextWriter, value: ObjectReference): void;
16
20
  }
17
21
  //# sourceMappingURL=ObjectProperty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,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,eAAe,CAAC;CAC1B,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAErB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,cAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,eAEjD,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,eAAe,KAAG,IAE9E,CAAA;CACJ"}
1
+ {"version":3,"file":"ObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.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,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,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,eAAe,CAAC;CAC1B,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,eAAe,CAEhE;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,eAAe,GAAG,IAAI,CAElF;CACJ"}
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectProperty = exports.isObjectProperty = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
4
  const ObjectReference_1 = require("../../structs/ObjectReference");
6
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
7
- const isObjectProperty = (property) => !Array.isArray(property) && property.type === 'ObjectProperty';
5
+ const isObjectProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'ObjectProperty';
8
6
  exports.isObjectProperty = isObjectProperty;
9
7
  var ObjectProperty;
10
8
  (function (ObjectProperty) {
11
- ObjectProperty.Parse = (reader, ueType, index = 0) => {
12
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
13
- const value = ObjectProperty.ReadValue(reader);
14
- return {
15
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
16
- type: 'ObjectProperty',
17
- value,
18
- };
19
- };
20
- ObjectProperty.ReadValue = (reader) => {
9
+ function Parse(reader, property) {
10
+ property.value = ReadValue(reader);
11
+ }
12
+ ObjectProperty.Parse = Parse;
13
+ function ReadValue(reader) {
21
14
  return ObjectReference_1.ObjectReference.read(reader);
22
- };
23
- ObjectProperty.CalcOverhead = (property) => {
24
- return 1;
25
- };
26
- ObjectProperty.Serialize = (writer, property) => {
27
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
28
- ObjectProperty.SerializeValue(writer, property.value);
29
- };
30
- ObjectProperty.SerializeValue = (writer, value) => {
15
+ }
16
+ ObjectProperty.ReadValue = ReadValue;
17
+ function Serialize(writer, property) {
18
+ SerializeValue(writer, property.value);
19
+ }
20
+ ObjectProperty.Serialize = Serialize;
21
+ function SerializeValue(writer, value) {
31
22
  ObjectReference_1.ObjectReference.write(writer, value);
32
- };
23
+ }
24
+ ObjectProperty.SerializeValue = SerializeValue;
33
25
  })(ObjectProperty || (exports.ObjectProperty = ObjectProperty = {}));
34
26
  //# sourceMappingURL=ObjectProperty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mEAAgE;AAChE,iEAA8D;AAEvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAO9I,IAAiB,cAAc,CA6B9B;AA7BD,WAAiB,cAAc;IAEd,oBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAkB,EAAE;QAC9F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,eAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,gBAAgB;YACtB,KAAK;SACiB,CAAC;IAC/B,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAqB,EAAmB,EAAE;QAChE,OAAO,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC,CAAA;IAEY,2BAAY,GAAG,CAAC,QAAwB,EAAU,EAAE;QAC7D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAqB,EAAE,QAAwB,EAAQ,EAAE;QAC/E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,eAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,6BAAc,GAAG,CAAC,MAAqB,EAAE,KAAsB,EAAQ,EAAE;QAClF,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC,CAAA;AACL,CAAC,EA7BgB,cAAc,8BAAd,cAAc,QA6B9B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isObjectProperty = (property: any): property is ObjectProperty => !Array.isArray(property) && property.type === 'ObjectProperty';\n\nexport type ObjectProperty = AbstractBaseProperty & {\n type: 'ObjectProperty';\n value: ObjectReference;\n};\n\nexport namespace ObjectProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number = 0): ObjectProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'ObjectProperty',\n value,\n } satisfies ObjectProperty;\n }\n\n export const ReadValue = (reader: ContextReader): ObjectReference => {\n return ObjectReference.read(reader);\n }\n\n export const CalcOverhead = (property: ObjectProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: ObjectProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, value: ObjectReference): void => {\n ObjectReference.write(writer, value);\n }\n}\n"]}
1
+ {"version":3,"file":"ObjectProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.ts"],"names":[],"mappings":";;;AAGA,mEAAgE;AAGzD,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,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,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,KAAsB;QACxE,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,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 { ObjectReference } from '../../structs/ObjectReference';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isObjectProperty = (property: any): property is ObjectProperty => !Array.isArray(property) && property.propertyTagType.name === 'ObjectProperty';\n\nexport type ObjectProperty = AbstractBaseProperty & {\n type: 'ObjectProperty';\n propertyTagType: { name: 'ObjectProperty', children: FPropertyTagNode[] };\n value: ObjectReference;\n};\n\nexport namespace ObjectProperty {\n\n export function Parse(reader: ContextReader, property: ObjectProperty): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): ObjectReference {\n return ObjectReference.read(reader);\n }\n\n export function Serialize(writer: ContextWriter, property: ObjectProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: ObjectReference): void {\n ObjectReference.write(writer, value);\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FPropertyTagNode } from '../../structs/binary/FPropertyTagNode';
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isSingleProperty: (property: any) => property is SingleProperty;
6
+ export type SingleProperty = AbstractBaseProperty & {
7
+ type: 'SingleProperty';
8
+ propertyTagType: {
9
+ name: 'SingleProperty';
10
+ children: FPropertyTagNode[];
11
+ };
12
+ value: number;
13
+ };
14
+ export declare namespace SingleProperty {
15
+ function Parse(reader: ContextReader, property: SingleProperty): void;
16
+ function ReadValue(reader: ContextReader): number;
17
+ function Serialize(writer: ContextWriter, property: SingleProperty): void;
18
+ function SerializeValue(writer: ContextWriter, value: number): void;
19
+ }
20
+ //# sourceMappingURL=SingleProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SingleProperty.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;AAE9D,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"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SingleProperty = exports.isSingleProperty = void 0;
4
+ const isSingleProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'SingleProperty';
5
+ exports.isSingleProperty = isSingleProperty;
6
+ var SingleProperty;
7
+ (function (SingleProperty) {
8
+ function Parse(reader, property) {
9
+ property.value = ReadValue(reader);
10
+ }
11
+ SingleProperty.Parse = Parse;
12
+ function ReadValue(reader) {
13
+ return reader.readFloat32();
14
+ }
15
+ SingleProperty.ReadValue = ReadValue;
16
+ function Serialize(writer, property) {
17
+ SerializeValue(writer, property.value);
18
+ }
19
+ SingleProperty.Serialize = Serialize;
20
+ function SerializeValue(writer, value) {
21
+ writer.writeFloat32(value);
22
+ }
23
+ SingleProperty.SerializeValue = SerializeValue;
24
+ })(SingleProperty || (exports.SingleProperty = SingleProperty = {}));
25
+ //# sourceMappingURL=SingleProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SingleProperty.ts"],"names":[],"mappings":";;;AAKO,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,WAAW,EAAE,CAAC;IAChC,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,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,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\nexport const isSingleProperty = (property: any): property is SingleProperty => !Array.isArray(property) && property.propertyTagType.name === 'SingleProperty';\n\nexport type SingleProperty = AbstractBaseProperty & {\n type: 'SingleProperty';\n propertyTagType: { name: 'SingleProperty', children: FPropertyTagNode[] };\n value: number;\n};\n\nexport namespace SingleProperty {\n\n export function Parse(reader: ContextReader, property: SingleProperty): void {\n property.value = ReadValue(reader);\n }\n\n export function ReadValue(reader: ContextReader): number {\n return reader.readFloat32();\n }\n\n export function Serialize(writer: ContextWriter, property: SingleProperty): void {\n SerializeValue(writer, property.value);\n }\n\n export function SerializeValue(writer: ContextWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
@@ -1,17 +1,21 @@
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 { SoftObjectReference } from '../../structs/SoftObjectReference';
4
5
  import { AbstractBaseProperty } from './AbstractBaseProperty';
5
6
  export declare const isSoftObjectProperty: (property: any) => property is SoftObjectProperty;
6
7
  export type SoftObjectProperty = AbstractBaseProperty & {
7
8
  type: 'SoftObjectProperty';
9
+ propertyTagType: {
10
+ name: 'SoftObjectProperty';
11
+ children: FPropertyTagNode[];
12
+ };
8
13
  value: SoftObjectReference;
9
14
  };
10
15
  export declare namespace SoftObjectProperty {
11
- const Parse: (reader: ContextReader, ueType: string, index?: number) => SoftObjectProperty;
12
- const ReadValue: (reader: ContextReader) => SoftObjectReference;
13
- const CalcOverhead: (property: SoftObjectProperty) => number;
14
- const Serialize: (writer: ContextWriter, property: SoftObjectProperty) => void;
15
- const SerializeValue: (writer: ContextWriter, value: SoftObjectReference) => void;
16
+ function Parse(reader: ContextReader, property: SoftObjectProperty): void;
17
+ function ReadValue(reader: ContextReader): SoftObjectReference;
18
+ function Serialize(writer: ContextWriter, property: SoftObjectProperty): void;
19
+ function SerializeValue(writer: ContextWriter, value: SoftObjectReference): void;
16
20
  }
17
21
  //# sourceMappingURL=SoftObjectProperty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SoftObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SoftObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,aAAc,GAAG,KAAG,QAAQ,IAAI,kBAAwF,CAAC;AAE1J,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACpD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,mBAAmB,CAAC;CAC9B,CAAC;AAEF,yBAAiB,kBAAkB,CAAC;IAGzB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,kBAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,mBAEjD,CAAA;IAEM,MAAM,YAAY,aAAc,kBAAkB,KAAG,MAE3D,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,kBAAkB,KAAG,IAG/E,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,mBAAmB,KAAG,IAElF,CAAA;CACJ"}
1
+ {"version":3,"file":"SoftObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SoftObjectProperty.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,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,aAAc,GAAG,KAAG,QAAQ,IAAI,kBAAwG,CAAC;AAE1K,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG;IACpD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,eAAe,EAAE;QAAE,IAAI,EAAE,oBAAoB,CAAC;QAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAA;KAAE,CAAC;IAC9E,KAAK,EAAE,mBAAmB,CAAC;CAC9B,CAAC;AAEF,yBAAiB,kBAAkB,CAAC;IAGhC,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAE/E;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,mBAAmB,CAEpE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAEnF;IAED,SAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAEtF;CACJ"}
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SoftObjectProperty = exports.isSoftObjectProperty = void 0;
4
- const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
4
  const SoftObjectReference_1 = require("../../structs/SoftObjectReference");
6
- const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
7
- const isSoftObjectProperty = (property) => !Array.isArray(property) && property.type === 'SoftObjectProperty';
5
+ const isSoftObjectProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'SoftObjectProperty';
8
6
  exports.isSoftObjectProperty = isSoftObjectProperty;
9
7
  var SoftObjectProperty;
10
8
  (function (SoftObjectProperty) {
11
- SoftObjectProperty.Parse = (reader, ueType, index = 0) => {
12
- const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
13
- const value = SoftObjectProperty.ReadValue(reader);
14
- return {
15
- ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
16
- type: 'SoftObjectProperty',
17
- value,
18
- };
19
- };
20
- SoftObjectProperty.ReadValue = (reader) => {
9
+ function Parse(reader, property) {
10
+ property.value = ReadValue(reader);
11
+ }
12
+ SoftObjectProperty.Parse = Parse;
13
+ function ReadValue(reader) {
21
14
  return SoftObjectReference_1.SoftObjectReference.read(reader);
22
- };
23
- SoftObjectProperty.CalcOverhead = (property) => {
24
- return 1;
25
- };
26
- SoftObjectProperty.Serialize = (writer, property) => {
27
- GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
28
- SoftObjectProperty.SerializeValue(writer, property.value);
29
- };
30
- SoftObjectProperty.SerializeValue = (writer, value) => {
15
+ }
16
+ SoftObjectProperty.ReadValue = ReadValue;
17
+ function Serialize(writer, property) {
18
+ SerializeValue(writer, property.value);
19
+ }
20
+ SoftObjectProperty.Serialize = Serialize;
21
+ function SerializeValue(writer, value) {
31
22
  SoftObjectReference_1.SoftObjectReference.write(writer, value);
32
- };
23
+ }
24
+ SoftObjectProperty.SerializeValue = SerializeValue;
33
25
  })(SoftObjectProperty || (exports.SoftObjectProperty = SoftObjectProperty = {}));
34
26
  //# sourceMappingURL=SoftObjectProperty.js.map