@etothepii/satisfactory-file-parser 0.5.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/README.md +66 -41
  2. package/build/index.d.ts +1 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js +1 -0
  5. package/build/index.js.map +1 -0
  6. package/build/parser/byte/alignment.enum.d.ts +1 -0
  7. package/build/parser/byte/alignment.enum.d.ts.map +1 -0
  8. package/build/parser/byte/alignment.enum.js +1 -0
  9. package/build/parser/byte/alignment.enum.js.map +1 -0
  10. package/build/parser/byte/binary-operable.interface.d.ts +1 -0
  11. package/build/parser/byte/binary-operable.interface.d.ts.map +1 -0
  12. package/build/parser/byte/binary-operable.interface.js +1 -0
  13. package/build/parser/byte/binary-operable.interface.js.map +1 -0
  14. package/build/parser/byte/binary-readable.interface.d.ts +1 -0
  15. package/build/parser/byte/binary-readable.interface.d.ts.map +1 -0
  16. package/build/parser/byte/binary-readable.interface.js +1 -0
  17. package/build/parser/byte/binary-readable.interface.js.map +1 -0
  18. package/build/parser/byte/binary-writable.interface.d.ts +1 -0
  19. package/build/parser/byte/binary-writable.interface.d.ts.map +1 -0
  20. package/build/parser/byte/binary-writable.interface.js +1 -0
  21. package/build/parser/byte/binary-writable.interface.js.map +1 -0
  22. package/build/parser/byte/byte-reader.class.d.ts +1 -0
  23. package/build/parser/byte/byte-reader.class.d.ts.map +1 -0
  24. package/build/parser/byte/byte-reader.class.js +4 -4
  25. package/build/parser/byte/byte-reader.class.js.map +1 -0
  26. package/build/parser/byte/byte-writer.class.d.ts +1 -0
  27. package/build/parser/byte/byte-writer.class.d.ts.map +1 -0
  28. package/build/parser/byte/byte-writer.class.js +1 -0
  29. package/build/parser/byte/byte-writer.class.js.map +1 -0
  30. package/build/parser/error/parser.error.d.ts +1 -0
  31. package/build/parser/error/parser.error.d.ts.map +1 -0
  32. package/build/parser/error/parser.error.js +1 -0
  33. package/build/parser/error/parser.error.js.map +1 -0
  34. package/build/parser/file.types.d.ts +1 -0
  35. package/build/parser/file.types.d.ts.map +1 -0
  36. package/build/parser/file.types.js +1 -0
  37. package/build/parser/file.types.js.map +1 -0
  38. package/build/parser/parser.d.ts +18 -3
  39. package/build/parser/parser.d.ts.map +1 -0
  40. package/build/parser/parser.js +40 -6
  41. package/build/parser/parser.js.map +1 -0
  42. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts +1 -0
  43. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -0
  44. package/build/parser/satisfactory/blueprint/blueprint-reader.js +2 -1
  45. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -0
  46. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts +6 -1
  47. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -0
  48. package/build/parser/satisfactory/blueprint/blueprint-writer.js +7 -4
  49. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -0
  50. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +1 -0
  51. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -0
  52. package/build/parser/satisfactory/blueprint/blueprint.types.js +1 -0
  53. package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -0
  54. package/build/parser/satisfactory/edit/edit-constants.d.ts +1 -0
  55. package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -0
  56. package/build/parser/satisfactory/edit/edit-constants.js +1 -0
  57. package/build/parser/satisfactory/edit/edit-constants.js.map +1 -0
  58. package/build/parser/satisfactory/save/level.class.d.ts +13 -8
  59. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -0
  60. package/build/parser/satisfactory/save/level.class.js +104 -48
  61. package/build/parser/satisfactory/save/level.class.js.map +1 -0
  62. package/build/parser/satisfactory/save/object-references-list.d.ts +8 -0
  63. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -0
  64. package/build/parser/satisfactory/save/object-references-list.js +22 -0
  65. package/build/parser/satisfactory/save/object-references-list.js.map +1 -0
  66. package/build/parser/satisfactory/save/satisfactory-save.d.ts +4 -3
  67. package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -0
  68. package/build/parser/satisfactory/save/satisfactory-save.js +2 -1
  69. package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -0
  70. package/build/parser/satisfactory/save/save-reader.d.ts +11 -3
  71. package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -0
  72. package/build/parser/satisfactory/save/save-reader.js +59 -21
  73. package/build/parser/satisfactory/save/save-reader.js.map +1 -0
  74. package/build/parser/satisfactory/save/save-writer.d.ts +3 -2
  75. package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -0
  76. package/build/parser/satisfactory/save/save-writer.js +12 -12
  77. package/build/parser/satisfactory/save/save-writer.js.map +1 -0
  78. package/build/parser/satisfactory/save/save.types.d.ts +1 -0
  79. package/build/parser/satisfactory/save/save.types.d.ts.map +1 -0
  80. package/build/parser/satisfactory/save/save.types.js +1 -0
  81. package/build/parser/satisfactory/save/save.types.js.map +1 -0
  82. package/build/parser/satisfactory/types/objects/SaveComponent.d.ts +1 -0
  83. package/build/parser/satisfactory/types/objects/SaveComponent.d.ts.map +1 -0
  84. package/build/parser/satisfactory/types/objects/SaveComponent.js +1 -0
  85. package/build/parser/satisfactory/types/objects/SaveComponent.js.map +1 -0
  86. package/build/parser/satisfactory/types/objects/SaveEntity.d.ts +1 -0
  87. package/build/parser/satisfactory/types/objects/SaveEntity.d.ts.map +1 -0
  88. package/build/parser/satisfactory/types/objects/SaveEntity.js +1 -0
  89. package/build/parser/satisfactory/types/objects/SaveEntity.js.map +1 -0
  90. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +1 -0
  91. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -0
  92. package/build/parser/satisfactory/types/objects/SaveObject.js +1 -0
  93. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -0
  94. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +1 -0
  95. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -0
  96. package/build/parser/satisfactory/types/property/PropertiesList.js +1 -0
  97. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -0
  98. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts +1 -0
  99. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts.map +1 -0
  100. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js +3 -2
  101. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js.map +1 -0
  102. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts +1 -0
  103. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts.map +1 -0
  104. package/build/parser/satisfactory/types/property/generic/BasicProperty.js +1 -0
  105. package/build/parser/satisfactory/types/property/generic/BasicProperty.js.map +1 -0
  106. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +1 -0
  107. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -0
  108. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +1 -0
  109. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -0
  110. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +1 -0
  111. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -0
  112. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +1 -0
  113. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -0
  114. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +1 -0
  115. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -0
  116. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +1 -0
  117. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -0
  118. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +1 -0
  119. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -0
  120. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +1 -0
  121. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -0
  122. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +1 -0
  123. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -0
  124. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +1 -0
  125. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -0
  126. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +1 -0
  127. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -0
  128. package/build/parser/satisfactory/types/property/generic/Int32Property.js +1 -0
  129. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -0
  130. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +1 -0
  131. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -0
  132. package/build/parser/satisfactory/types/property/generic/Int64Property.js +1 -0
  133. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -0
  134. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +1 -0
  135. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -0
  136. package/build/parser/satisfactory/types/property/generic/Int8Property.js +1 -0
  137. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -0
  138. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +1 -0
  139. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -0
  140. package/build/parser/satisfactory/types/property/generic/MapProperty.js +1 -0
  141. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -0
  142. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +1 -0
  143. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -0
  144. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +1 -0
  145. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -0
  146. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts +1 -0
  147. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts.map +1 -0
  148. package/build/parser/satisfactory/types/property/generic/SetProperty.js +1 -0
  149. package/build/parser/satisfactory/types/property/generic/SetProperty.js.map +1 -0
  150. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +1 -0
  151. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -0
  152. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +1 -0
  153. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -0
  154. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +1 -0
  155. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -0
  156. package/build/parser/satisfactory/types/property/generic/StrProperty.js +1 -0
  157. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -0
  158. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +1 -0
  159. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -0
  160. package/build/parser/satisfactory/types/property/generic/StructProperty.js +1 -0
  161. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -0
  162. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +1 -0
  163. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -0
  164. package/build/parser/satisfactory/types/property/generic/TextProperty.js +1 -0
  165. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -0
  166. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +1 -0
  167. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -0
  168. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +1 -0
  169. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -0
  170. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +1 -0
  171. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -0
  172. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +1 -0
  173. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -0
  174. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +1 -0
  175. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -0
  176. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +1 -0
  177. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -0
  178. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts +1 -0
  179. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts.map +1 -0
  180. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js +1 -0
  181. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js.map +1 -0
  182. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +1 -0
  183. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -0
  184. package/build/parser/satisfactory/types/property/special/SpecialProperties.js +1 -0
  185. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -0
  186. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -0
  187. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -0
  188. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +1 -0
  189. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -0
  190. package/build/parser/satisfactory/types/structs/GUID.d.ts +1 -0
  191. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -0
  192. package/build/parser/satisfactory/types/structs/GUID.js +1 -0
  193. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -0
  194. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +1 -0
  195. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -0
  196. package/build/parser/satisfactory/types/structs/GUIDInfo.js +1 -0
  197. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -0
  198. package/build/parser/satisfactory/types/structs/MD5Hash.d.ts +1 -0
  199. package/build/parser/satisfactory/types/structs/MD5Hash.d.ts.map +1 -0
  200. package/build/parser/satisfactory/types/structs/MD5Hash.js +1 -0
  201. package/build/parser/satisfactory/types/structs/MD5Hash.js.map +1 -0
  202. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +1 -0
  203. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -0
  204. package/build/parser/satisfactory/types/structs/ObjectReference.js +1 -0
  205. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -0
  206. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +1 -0
  207. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -0
  208. package/build/parser/satisfactory/types/structs/SoftObjectReference.js +1 -0
  209. package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -0
  210. package/build/parser/satisfactory/types/structs/Transform.d.ts +1 -0
  211. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -0
  212. package/build/parser/satisfactory/types/structs/Transform.js +1 -0
  213. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -0
  214. package/build/parser/satisfactory/types/structs/col4.d.ts +1 -0
  215. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -0
  216. package/build/parser/satisfactory/types/structs/col4.js +1 -0
  217. package/build/parser/satisfactory/types/structs/col4.js.map +1 -0
  218. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +1 -0
  219. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -0
  220. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js +1 -0
  221. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -0
  222. package/build/parser/satisfactory/types/structs/vec2.d.ts +1 -0
  223. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -0
  224. package/build/parser/satisfactory/types/structs/vec2.js +1 -0
  225. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -0
  226. package/build/parser/satisfactory/types/structs/vec3.d.ts +1 -0
  227. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -0
  228. package/build/parser/satisfactory/types/structs/vec3.js +1 -0
  229. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -0
  230. package/build/parser/satisfactory/types/structs/vec4.d.ts +1 -0
  231. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -0
  232. package/build/parser/satisfactory/types/structs/vec4.js +1 -0
  233. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -0
  234. package/build/parser/stream/reworked/readable-stream-parser.d.ts +6 -5
  235. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -0
  236. package/build/parser/stream/reworked/readable-stream-parser.js +21 -66
  237. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -0
  238. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts +1 -0
  239. package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts.map +1 -0
  240. package/build/parser/stream/reworked/save-stream-json-stringifier.js +1 -0
  241. package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +1 -0
  242. package/build/parser/stream/reworked/save-stream-writer.class.d.ts +3 -2
  243. package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +1 -0
  244. package/build/parser/stream/reworked/save-stream-writer.class.js +1 -0
  245. package/build/parser/stream/reworked/save-stream-writer.class.js.map +1 -0
  246. package/docs/.nojekyll +1 -0
  247. package/docs/assets/highlight.css +92 -0
  248. package/docs/assets/icons.js +18 -0
  249. package/docs/assets/icons.svg +1 -0
  250. package/docs/assets/main.js +60 -0
  251. package/docs/assets/navigation.js +1 -0
  252. package/docs/assets/search.js +1 -0
  253. package/docs/assets/style.css +1493 -0
  254. package/docs/classes/AbstractBaseProperty.html +6 -0
  255. package/docs/classes/AbstractProperty.html +4 -0
  256. package/docs/classes/ArrayProperty.html +13 -0
  257. package/docs/classes/BasicProperty.html +7 -0
  258. package/docs/classes/BlueprintConfigReader.html +35 -0
  259. package/docs/classes/BlueprintConfigWriter.html +37 -0
  260. package/docs/classes/BlueprintReader.html +36 -0
  261. package/docs/classes/BlueprintWriter.html +40 -0
  262. package/docs/classes/BoolProperty.html +13 -0
  263. package/docs/classes/ByteProperty.html +13 -0
  264. package/docs/classes/CompressionLibraryError.html +11 -0
  265. package/docs/classes/CorruptSaveError.html +11 -0
  266. package/docs/classes/DoubleProperty.html +13 -0
  267. package/docs/classes/EnumProperty.html +13 -0
  268. package/docs/classes/FloatProperty.html +13 -0
  269. package/docs/classes/Int32Property.html +13 -0
  270. package/docs/classes/Int64Property.html +13 -0
  271. package/docs/classes/Int8Property.html +13 -0
  272. package/docs/classes/MapProperty.html +17 -0
  273. package/docs/classes/ObjectProperty.html +13 -0
  274. package/docs/classes/Parser.html +35 -0
  275. package/docs/classes/ParserError.html +11 -0
  276. package/docs/classes/ReadableStreamParser.html +8 -0
  277. package/docs/classes/SatisfactorySave.html +8 -0
  278. package/docs/classes/SaveComponent.html +17 -0
  279. package/docs/classes/SaveEntity.html +23 -0
  280. package/docs/classes/SaveReader.html +43 -0
  281. package/docs/classes/SaveStreamJsonStringifier.html +4 -0
  282. package/docs/classes/SaveStreamWriter.html +16 -0
  283. package/docs/classes/SaveWriter.html +42 -0
  284. package/docs/classes/SetProperty.html +12 -0
  285. package/docs/classes/StrProperty.html +13 -0
  286. package/docs/classes/StructProperty.html +18 -0
  287. package/docs/classes/TextProperty.html +13 -0
  288. package/docs/classes/TimeoutError.html +11 -0
  289. package/docs/classes/Uint32Property.html +13 -0
  290. package/docs/classes/Uint64Property.html +13 -0
  291. package/docs/classes/Uint8Property.html +13 -0
  292. package/docs/classes/UnimplementedError.html +11 -0
  293. package/docs/classes/UnsupportedVersionError.html +11 -0
  294. package/docs/functions/DynamicStructPropertyValue.read.html +1 -0
  295. package/docs/functions/DynamicStructPropertyValue.write.html +1 -0
  296. package/docs/functions/FICFrameRange.Parse.html +1 -0
  297. package/docs/functions/FICFrameRange.Serialize.html +1 -0
  298. package/docs/functions/GUID.read.html +1 -0
  299. package/docs/functions/GUID.write.html +1 -0
  300. package/docs/functions/GUIDInfo.read.html +1 -0
  301. package/docs/functions/GUIDInfo.write.html +1 -0
  302. package/docs/functions/Level.ReadAllObjectContents.html +1 -0
  303. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -0
  304. package/docs/functions/Level.ReadLevel.html +1 -0
  305. package/docs/functions/Level.ReadNObjectContents.html +1 -0
  306. package/docs/functions/Level.ReadNObjectHeaders.html +1 -0
  307. package/docs/functions/Level.SerializeAllObjectContents.html +1 -0
  308. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -0
  309. package/docs/functions/Level.SerializeLevel.html +1 -0
  310. package/docs/functions/MD5Hash.read.html +1 -0
  311. package/docs/functions/MD5Hash.write.html +1 -0
  312. package/docs/functions/ObjectReference.read.html +1 -0
  313. package/docs/functions/ObjectReference.write.html +1 -0
  314. package/docs/functions/PropertiesList.ParseList.html +1 -0
  315. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -0
  316. package/docs/functions/PropertiesList.SerializeList.html +1 -0
  317. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -0
  318. package/docs/functions/SoftObjectReference.read.html +1 -0
  319. package/docs/functions/SoftObjectReference.write.html +1 -0
  320. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -0
  321. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -0
  322. package/docs/functions/Transform.Parse.html +1 -0
  323. package/docs/functions/Transform.ParseF.html +1 -0
  324. package/docs/functions/Transform.Serialize.html +1 -0
  325. package/docs/functions/Transform.SerializeF.html +1 -0
  326. package/docs/functions/col4.ParseBGRA.html +1 -0
  327. package/docs/functions/col4.ParseRGBA.html +1 -0
  328. package/docs/functions/col4.SerializeBGRA.html +1 -0
  329. package/docs/functions/col4.SerializeRGBA.html +1 -0
  330. package/docs/functions/isArrayProperty.html +1 -0
  331. package/docs/functions/isBoolProperty.html +1 -0
  332. package/docs/functions/isByteProperty.html +1 -0
  333. package/docs/functions/isDoubleProperty.html +1 -0
  334. package/docs/functions/isEnumProperty.html +1 -0
  335. package/docs/functions/isFloatProperty.html +1 -0
  336. package/docs/functions/isInt32Property.html +1 -0
  337. package/docs/functions/isInt64Property.html +1 -0
  338. package/docs/functions/isInt8Property.html +1 -0
  339. package/docs/functions/isMapProperty.html +1 -0
  340. package/docs/functions/isObjectProperty.html +1 -0
  341. package/docs/functions/isSaveComponent.html +1 -0
  342. package/docs/functions/isSaveEntity.html +1 -0
  343. package/docs/functions/isSetProperty.html +1 -0
  344. package/docs/functions/isStrProperty.html +1 -0
  345. package/docs/functions/isStructProperty.html +1 -0
  346. package/docs/functions/isTextProperty.html +1 -0
  347. package/docs/functions/isUInt64Property.html +1 -0
  348. package/docs/functions/isUint32Property.html +1 -0
  349. package/docs/functions/isUint8Property.html +1 -0
  350. package/docs/functions/vec2.Parse.html +1 -0
  351. package/docs/functions/vec2.ParseF.html +1 -0
  352. package/docs/functions/vec2.Serialize.html +1 -0
  353. package/docs/functions/vec2.SerializeF.html +1 -0
  354. package/docs/functions/vec3.Parse.html +1 -0
  355. package/docs/functions/vec3.ParseF.html +1 -0
  356. package/docs/functions/vec3.ParseInt.html +1 -0
  357. package/docs/functions/vec3.Serialize.html +1 -0
  358. package/docs/functions/vec3.SerializeF.html +1 -0
  359. package/docs/functions/vec3.SerializeInt.html +1 -0
  360. package/docs/functions/vec3.add.html +1 -0
  361. package/docs/functions/vec3.length.html +1 -0
  362. package/docs/functions/vec3.mult.html +1 -0
  363. package/docs/functions/vec3.norm.html +1 -0
  364. package/docs/functions/vec3.sub.html +1 -0
  365. package/docs/functions/vec4.Parse.html +1 -0
  366. package/docs/functions/vec4.ParseF.html +1 -0
  367. package/docs/functions/vec4.Serialize.html +1 -0
  368. package/docs/functions/vec4.SerializeF.html +1 -0
  369. package/docs/hierarchy.html +1 -0
  370. package/docs/index.html +146 -0
  371. package/docs/interfaces/Blueprint.html +6 -0
  372. package/docs/interfaces/BlueprintConfig.html +6 -0
  373. package/docs/interfaces/ModData.html +4 -0
  374. package/docs/interfaces/SatisfactoryModMetadata.html +4 -0
  375. package/docs/interfaces/SatisfactorySaveHeader.html +18 -0
  376. package/docs/interfaces/SaveComponentHeader.html +5 -0
  377. package/docs/interfaces/SaveEntityHeader.html +7 -0
  378. package/docs/modules/DynamicStructPropertyValue.html +3 -0
  379. package/docs/modules/FICFrameRange.html +3 -0
  380. package/docs/modules/GUID.html +3 -0
  381. package/docs/modules/GUIDInfo.html +3 -0
  382. package/docs/modules/Level.html +9 -0
  383. package/docs/modules/MD5Hash.html +3 -0
  384. package/docs/modules/ObjectReference.html +3 -0
  385. package/docs/modules/PropertiesList.html +5 -0
  386. package/docs/modules/SoftObjectReference.html +3 -0
  387. package/docs/modules/SpecialProperties.html +3 -0
  388. package/docs/modules/Transform.html +5 -0
  389. package/docs/modules/col4.html +5 -0
  390. package/docs/modules/vec2.html +5 -0
  391. package/docs/modules/vec3.html +12 -0
  392. package/docs/modules/vec4.html +5 -0
  393. package/docs/modules.html +123 -0
  394. package/docs/types/ArrayPropertyStructValueFields.html +1 -0
  395. package/docs/types/BasicMultipleStructPropertyValue.html +1 -0
  396. package/docs/types/BasicStructPropertyValue.html +1 -0
  397. package/docs/types/BlueprintHeader.html +1 -0
  398. package/docs/types/BoxStructPropertyValue.html +1 -0
  399. package/docs/types/BuildableSubsystemSpecialProperties.html +1 -0
  400. package/docs/types/BuildableTypeInstance.html +1 -0
  401. package/docs/types/BytePropertyValue.html +1 -0
  402. package/docs/types/ClientIdentityInfo.html +1 -0
  403. package/docs/types/ConveyorChainActorSpecialProperties.html +1 -0
  404. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -0
  405. package/docs/types/ConveyorItemSpecialProperties.html +1 -0
  406. package/docs/types/DynamicStructPropertyValue-1.html +1 -0
  407. package/docs/types/EmptySpecialProperties.html +1 -0
  408. package/docs/types/FICFrameRange-1.html +1 -0
  409. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -0
  410. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -0
  411. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -0
  412. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -0
  413. package/docs/types/GUID-1.html +1 -0
  414. package/docs/types/GUIDInfo-1.html +1 -0
  415. package/docs/types/InventoryItemStructPropertyValue.html +1 -0
  416. package/docs/types/Level-1.html +1 -0
  417. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -0
  418. package/docs/types/MD5Hash-1.html +1 -0
  419. package/docs/types/ObjectReference-1.html +1 -0
  420. package/docs/types/PlayerSpecialProperties.html +1 -0
  421. package/docs/types/PowerLineSpecialProperties.html +1 -0
  422. package/docs/types/PropertiesMap.html +1 -0
  423. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -0
  424. package/docs/types/RoughSaveVersion.html +1 -0
  425. package/docs/types/SoftObjectReference-1.html +1 -0
  426. package/docs/types/SpecialAnyProperties.html +1 -0
  427. package/docs/types/TextPropertyValue.html +1 -0
  428. package/docs/types/Transform-1.html +1 -0
  429. package/docs/types/col4-1.html +1 -0
  430. package/docs/types/vec2-1.html +1 -0
  431. package/docs/types/vec3-1.html +1 -0
  432. package/docs/types/vec4-1.html +1 -0
  433. package/docs/variables/EDIT.html +1 -0
  434. package/package.json +5 -10
  435. package/build/parser/satisfactory/objects/DataFields.d.ts +0 -15
  436. package/build/parser/satisfactory/objects/DataFields.js +0 -491
  437. package/build/parser/satisfactory/objects/GUIDInfo.d.ts +0 -8
  438. package/build/parser/satisfactory/objects/GUIDInfo.js +0 -26
  439. package/build/parser/satisfactory/objects/SaveComponent.d.ts +0 -19
  440. package/build/parser/satisfactory/objects/SaveComponent.js +0 -31
  441. package/build/parser/satisfactory/objects/SaveEntity.d.ts +0 -30
  442. package/build/parser/satisfactory/objects/SaveEntity.js +0 -66
  443. package/build/parser/satisfactory/objects/SaveObject.d.ts +0 -24
  444. package/build/parser/satisfactory/objects/SaveObject.js +0 -33
  445. package/build/parser/satisfactory/objects/property/generic/ArrayProperty.d.ts +0 -21
  446. package/build/parser/satisfactory/objects/property/generic/ArrayProperty.js +0 -169
  447. package/build/parser/satisfactory/objects/property/generic/BasicProperty.d.ts +0 -25
  448. package/build/parser/satisfactory/objects/property/generic/BasicProperty.js +0 -27
  449. package/build/parser/satisfactory/objects/property/generic/BoolProperty.d.ts +0 -13
  450. package/build/parser/satisfactory/objects/property/generic/BoolProperty.js +0 -30
  451. package/build/parser/satisfactory/objects/property/generic/ByteProperty.d.ts +0 -17
  452. package/build/parser/satisfactory/objects/property/generic/ByteProperty.js +0 -50
  453. package/build/parser/satisfactory/objects/property/generic/DoubleProperty.d.ts +0 -13
  454. package/build/parser/satisfactory/objects/property/generic/DoubleProperty.js +0 -30
  455. package/build/parser/satisfactory/objects/property/generic/EnumProperty.d.ts +0 -19
  456. package/build/parser/satisfactory/objects/property/generic/EnumProperty.js +0 -33
  457. package/build/parser/satisfactory/objects/property/generic/FloatProperty.d.ts +0 -13
  458. package/build/parser/satisfactory/objects/property/generic/FloatProperty.js +0 -30
  459. package/build/parser/satisfactory/objects/property/generic/Int32Property.d.ts +0 -13
  460. package/build/parser/satisfactory/objects/property/generic/Int32Property.js +0 -30
  461. package/build/parser/satisfactory/objects/property/generic/Int64Property.d.ts +0 -13
  462. package/build/parser/satisfactory/objects/property/generic/Int64Property.js +0 -30
  463. package/build/parser/satisfactory/objects/property/generic/Int8Property.d.ts +0 -13
  464. package/build/parser/satisfactory/objects/property/generic/Int8Property.js +0 -30
  465. package/build/parser/satisfactory/objects/property/generic/MapProperty.d.ts +0 -21
  466. package/build/parser/satisfactory/objects/property/generic/MapProperty.js +0 -160
  467. package/build/parser/satisfactory/objects/property/generic/ObjectProperty.d.ts +0 -14
  468. package/build/parser/satisfactory/objects/property/generic/ObjectProperty.js +0 -35
  469. package/build/parser/satisfactory/objects/property/generic/SetProperty.d.ts +0 -11
  470. package/build/parser/satisfactory/objects/property/generic/SetProperty.js +0 -92
  471. package/build/parser/satisfactory/objects/property/generic/SoftObjectProperty.d.ts +0 -12
  472. package/build/parser/satisfactory/objects/property/generic/SoftObjectProperty.js +0 -25
  473. package/build/parser/satisfactory/objects/property/generic/StrProperty.d.ts +0 -13
  474. package/build/parser/satisfactory/objects/property/generic/StrProperty.js +0 -30
  475. package/build/parser/satisfactory/objects/property/generic/StructProperty.d.ts +0 -66
  476. package/build/parser/satisfactory/objects/property/generic/StructProperty.js +0 -361
  477. package/build/parser/satisfactory/objects/property/generic/TextProperty.d.ts +0 -29
  478. package/build/parser/satisfactory/objects/property/generic/TextProperty.js +0 -109
  479. package/build/parser/satisfactory/objects/property/generic/Uint32Property.d.ts +0 -13
  480. package/build/parser/satisfactory/objects/property/generic/Uint32Property.js +0 -30
  481. package/build/parser/satisfactory/objects/property/generic/Uint64Property.d.ts +0 -13
  482. package/build/parser/satisfactory/objects/property/generic/Uint64Property.js +0 -30
  483. package/build/parser/satisfactory/objects/property/generic/Uint8Property.d.ts +0 -13
  484. package/build/parser/satisfactory/objects/property/generic/Uint8Property.js +0 -30
  485. package/build/parser/satisfactory/objects/property/special/SpecialAnyProperty.d.ts +0 -52
  486. package/build/parser/satisfactory/objects/property/special/SpecialAnyProperty.js +0 -2
  487. package/build/parser/satisfactory/objects/ue/MD5Hash.d.ts +0 -10
  488. package/build/parser/satisfactory/objects/ue/MD5Hash.js +0 -21
  489. package/build/parser/satisfactory/objects/values/GUID.d.ts +0 -7
  490. package/build/parser/satisfactory/objects/values/GUID.js +0 -21
  491. package/build/parser/satisfactory/objects/values/ObjectReference.d.ts +0 -10
  492. package/build/parser/satisfactory/objects/values/ObjectReference.js +0 -17
  493. package/build/parser/satisfactory/objects/values/SoftObjectReference.d.ts +0 -11
  494. package/build/parser/satisfactory/objects/values/SoftObjectReference.js +0 -19
  495. package/build/parser/satisfactory/structs/util.types.d.ts +0 -60
  496. package/build/parser/satisfactory/structs/util.types.js +0 -147
  497. package/build/parser/satisfactory/types/property/DataFields.d.ts +0 -15
  498. package/build/parser/satisfactory/types/property/DataFields.js +0 -493
  499. package/build/parser/satisfactory/types/property/special/SpecialAnyProperty.d.ts +0 -54
  500. package/build/parser/satisfactory/types/property/special/SpecialAnyProperty.js +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/MapProperty.ts"],"names":[],"mappings":";;;AAEA,yFAAsF;AAEtF,mDAAgD;AAChD,iDAA8C;AAC9C,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,+CAA4C;AAQrC,MAAM,aAAa,GAAG,CAAC,QAAuB,EAA2B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAAtG,QAAA,aAAa,iBAAyF;AAEnH,MAAa,WAAY,SAAQ,6BAAa;IAS1C,YAAmB,OAAe,EAAS,SAAiB,EAAE,MAAc,EAAE,KAAa;QACvF,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAD/B,YAAO,GAAP,OAAO,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAQ;QAPrD,aAAQ,GAAW,CAAC,CAAC;QAErB,aAAQ,GAAW,EAAE,CAAC;QACtB,aAAQ,GAAW,EAAE,CAAC;QAEtB,WAAM,GAAiE,EAAE,CAAC;IAIjF,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,YAAoB,EAAE,YAAoB,EAAE,IAAY,EAAE,SAAiB,aAAa,EAAE,QAAgB,CAAC;QACnJ,MAAM,KAAK,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QACzC,MAAM,QAAQ,GAAG,IAAI,WAAW,CAC5B,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,CAC1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AAa,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACzD,MAAM;gBACV,KAAK,cAAc;oBACf,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACxD,MAAM;gBACV;oBACI,MAAM,IAAI,KAAK,CAAC,kCAAkC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;YAChF,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AAnLD,kCAmLC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { BasicProperty } from './BasicProperty';\nimport { ByteProperty } from './ByteProperty';\nimport { EnumProperty } from './EnumProperty';\nimport { Int32Property } from './Int32Property';\nimport { Int64Property } from './Int64Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { GENERIC_STRUCT_PROPERTY_VALUE } from './StructProperty';\n\n\nexport type MAP_STRUCT_KEY_PROXY = [number, number, number, number, number, number, number, number, number, number, number, number];\nexport type GENERIC_MAP_KEY_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | MAP_STRUCT_KEY_PROXY;\nexport type GENERIC_MAP_VALUE_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE;\n\nexport const isMapProperty = (property: BasicProperty): property is MapProperty => property.type === 'MapProperty';\n\nexport class MapProperty extends BasicProperty {\n\n public modeType: number = 0;\n public modeUnk1: string | undefined;\n public modeUnk2: string = '';\n public modeUnk3: string = '';\n\n public values: [key: GENERIC_MAP_KEY_TYPE, value: GENERIC_MAP_VALUE_TYPE][] = [];\n\n constructor(public keyType: string, public valueType: string, ueType: string, index: number) {\n super({ type: 'MapProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, propertyName: string, buildVersion: number, size: number, ueType: string = 'MapProperty', index: number = 0): MapProperty {\n const start = reader.getBufferPosition();\n const property = new MapProperty(\n reader.readString(), reader.readString(), ueType, index\n );\n\n const unk = reader.readByte(); //0\n property.modeType = reader.readInt32(); //0\n\n const elementCount = reader.readInt32();\n for (let i = 0; i < elementCount; i++) {\n let key: GENERIC_MAP_KEY_TYPE;\n let value: GENERIC_MAP_VALUE_TYPE;\n // buffer position 698975\n switch (property.keyType) {\n case 'StructProperty':\n\n // TODO: extra for the savedata, the structure is specific here\n // don'T ask me why this has this weird form. But maybe it is for maps in general that have Struct as key? So far we only see this in those 2 properties.\n // F4 FF FF FF 26 00 00 00 FF FF FF FF - Save in Release 1.0\n // F5 FF FF FF 27 00 00 00 FF FF FF FF - Save started in U8\n // FD FF FF FF 2B 00 00 00 FF FF FF FF - another Save started in U8\n // 11 00 00 00 EF FF FF FF 02 00 00 00 - Save ported from U5 -> U8\n if (propertyName === 'mSaveData' || propertyName === 'mUnresolvedSaveData') {\n key = Array.from(reader.readBytes(12)) as MAP_STRUCT_KEY_PROXY;\n } else {\n key = DynamicStructPropertyValue.read(reader, 0, property.keyType);\n }\n\n break;\n case 'ObjectProperty':\n key = ObjectProperty.ReadValue(reader);\n break;\n case 'StrProperty':\n case 'NameProperty':\n key = StrProperty.ReadValue(reader);\n break;\n case 'EnumProperty':\n key = EnumProperty.ReadValue(reader);\n break;\n case 'IntProperty':\n case 'Int32Property':\n key = Int32Property.ReadValue(reader);\n break;\n case 'Int64Property':\n key = Int64Property.ReadValue(reader);\n break;\n case 'ByteProperty':\n key = ByteProperty.ReadValue(reader);\n break;\n default:\n throw new Error(`not implemented map key type ${property.keyType}`);\n }\n\n switch (property.valueType) {\n case 'StructProperty':\n value = DynamicStructPropertyValue.read(reader, 0, property.valueType);\n break;\n case 'ObjectProperty':\n value = ObjectProperty.ReadValue(reader);\n break;\n case 'StrProperty':\n case 'NameProperty':\n value = StrProperty.ReadValue(reader);\n break;\n case 'EnumProperty':\n value = EnumProperty.ReadValue(reader);\n break;\n case 'IntProperty':\n case 'Int32Property':\n value = Int32Property.ReadValue(reader);\n break;\n case 'Int64Property':\n value = Int64Property.ReadValue(reader);\n break;\n case 'ByteProperty':\n value = ByteProperty.ReadValue(reader);\n break;\n default:\n throw new Error(`not implemented map value type ${property.valueType}`);\n }\n\n property.values.push([key, value]);\n }\n\n return property;\n }\n\n public static CalcOverhead(property: MapProperty): number {\n return property.keyType.length + 5 + property.valueType.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: MapProperty): void {\n\n writer.writeString(property.keyType);\n writer.writeString(property.valueType);\n\n writer.writeByte(0);\n writer.writeInt32(property.modeType);\n\n writer.writeInt32(property.values.length);\n for (const entry of property.values) {\n\n switch (property.keyType) {\n case 'StructProperty':\n\n if (property.name === 'mSaveData' || property.name === 'mUnresolvedSaveData') {\n writer.writeBytesArray(entry[0] as MAP_STRUCT_KEY_PROXY);\n } else {\n DynamicStructPropertyValue.write(writer, 0, entry[0] as DynamicStructPropertyValue);\n }\n\n break;\n case 'ObjectProperty':\n ObjectProperty.SerializeValue(writer, entry[0] as ObjectReference);\n break;\n case 'StrProperty':\n case 'NameProperty':\n StrProperty.SerializeValue(writer, entry[0] as string);\n break;\n case 'EnumProperty':\n EnumProperty.SerializeValue(writer, entry[0] as string);\n break;\n case 'IntProperty':\n case 'Int32Property':\n Int32Property.SerializeValue(writer, entry[0] as number);\n break;\n case 'Int64Property':\n Int64Property.SerializeValue(writer, entry[0] as string);\n break;\n case 'ByteProperty':\n ByteProperty.SerializeValue(writer, entry[0] as number);\n break;\n default:\n throw new Error(`not implemented map key type ${property.valueType}`);\n }\n\n switch (property.valueType) {\n case 'StructProperty':\n DynamicStructPropertyValue.write(writer, 0, entry[1] as DynamicStructPropertyValue);\n break;\n case 'ObjectProperty':\n ObjectProperty.SerializeValue(writer, entry[1] as ObjectReference);\n break;\n case 'StrProperty':\n case 'NameProperty':\n StrProperty.SerializeValue(writer, entry[1] as string);\n break;\n case 'EnumProperty':\n EnumProperty.SerializeValue(writer, entry[1] as string);\n break;\n case 'IntProperty':\n case 'Int32Property':\n Int32Property.SerializeValue(writer, entry[1] as number);\n break;\n case 'Int64Property':\n Int64Property.SerializeValue(writer, entry[1] as string);\n break;\n case 'ByteProperty':\n ByteProperty.SerializeValue(writer, entry[1] as number);\n break;\n default:\n throw new Error(`not implemented map value type ${property.valueType}`);\n }\n }\n }\n}\n"]}
@@ -13,3 +13,4 @@ export declare class ObjectProperty extends BasicProperty {
13
13
  static Serialize(writer: ByteWriter, property: ObjectProperty): void;
14
14
  static SerializeValue(writer: ByteWriter, value: ObjectReference): void;
15
15
  }
16
+ //# sourceMappingURL=ObjectProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,gBAAgB,aAAc,aAAa,KAAG,QAAQ,IAAI,cAAoD,CAAC;AAE5H,qBAAa,cAAe,SAAQ,aAAa;IAE1B,KAAK,EAAE,eAAe;gBAAtB,KAAK,EAAE,eAAe,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIjH,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,cAAc;WAMhF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,eAAe;WAIlD,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAK7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI;CAGjF"}
@@ -31,3 +31,4 @@ class ObjectProperty extends BasicProperty_1.BasicProperty {
31
31
  }
32
32
  }
33
33
  exports.ObjectProperty = ObjectProperty;
34
+ //# sourceMappingURL=ObjectProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ObjectProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,gBAAgB,GAAG,CAAC,QAAuB,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAA/G,QAAA,gBAAgB,oBAA+F;AAE5H,MAAa,cAAe,SAAQ,6BAAa;IAE7C,YAAmB,KAAsB,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC3H,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAiB;IAEzC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAsB;QACnE,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isObjectProperty = (property: BasicProperty): property is ObjectProperty => property.type === 'ObjectProperty';\n\nexport class ObjectProperty extends BasicProperty {\n\n constructor(public value: ObjectReference, ueType: string = 'ObjectProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ObjectProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ObjectProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = ObjectProperty.ReadValue(reader);\n return new ObjectProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): ObjectReference {\n return ObjectReference.read(reader);\n }\n\n public static CalcOverhead(property: ObjectProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ObjectProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n ObjectProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: ObjectReference): void {\n ObjectReference.write(writer, value);\n }\n}\n"]}
@@ -10,3 +10,4 @@ export declare class SetProperty<T> extends BasicProperty {
10
10
  static CalcOverhead(property: SetProperty<any>): number;
11
11
  static Serialize(writer: ByteWriter, property: SetProperty<any>): void;
12
12
  }
13
+ //# sourceMappingURL=SetProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAoC,CAAC;AAExH,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,aAAa;IAE1B,OAAO,EAAE,MAAM;IAAS,MAAM,EAAE,CAAC,EAAE;gBAAnC,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;WAIvE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC;WA8CpG,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM;WAIhD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CA2ChF"}
@@ -92,3 +92,4 @@ class SetProperty extends BasicProperty_1.BasicProperty {
92
92
  }
93
93
  }
94
94
  exports.SetProperty = SetProperty;
95
+ //# sourceMappingURL=SetProperty.js.map
@@ -0,0 +1 @@
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C,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBACvE,MAAM;YAEV,KAAK,cAAc;gBACf,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBACpE,MAAM;YAEV,KAAK,gBAAgB;gBAEjB,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;oBACxC,OAAO,CAAC,IAAI,CAAC,mEAAmE,CAAC,CAAC;oBAClF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC7D,CAAC;qBAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,IAAI,QAAQ,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;oBACtF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxD,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,KAAK,CAAC,0EAA0E,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;gBAChH,CAAC;gBACD,MAAM;YAGV;gBACI,MAAM,IAAI,KAAK,CAAC,kCAAkC,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;QAC/E,CAAC;IACL,CAAC;CACJ;AAnGD,kCAmGC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUID } from '../../structs/GUID';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\nimport { BasicProperty } from './BasicProperty';\nimport { Int32Property } from './Int32Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { Uint32Property } from './Uint32Property';\n\nexport const isSetProperty = (property: BasicProperty): property is SetProperty<any> => property.type === 'SetProperty';\n\nexport class SetProperty<T> extends BasicProperty {\n\n constructor(public subtype: string, public values: T[], ueType: string, index: number) {\n super({ type: 'SetProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any> {\n\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n reader.skipBytes(4); // 0\n const elementCount = reader.readInt32();\n\n let property: SetProperty<any>;\n switch (subtype) {\n\n case \"UInt32Property\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"IntProperty\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Int32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"ObjectProperty\":\n property = new SetProperty<ObjectReference>(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"NameProperty\":\n property = new SetProperty<string>(subtype, new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"StructProperty\":\n\n if (propertyName === 'mRemovalLocations') {\n property = new SetProperty<vec3>(subtype, new Array(elementCount).fill(0).map(() => vec3.ParseF(reader)), ueType, index);\n }\n\n if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n property = new SetProperty<GUID>(subtype, new Array(elementCount).fill(0).map(() => GUID.read(reader)), ueType, index);\n } else {\n throw new Error(`Not Implemented SetProperty of StructProperty for property ${propertyName}.`);\n }\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${subtype}.`);\n }\n\n return property!;\n }\n\n public static CalcOverhead(property: SetProperty<any>): number {\n return property.subtype.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: SetProperty<any>): void {\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(0);\n writer.writeInt32(property.values.length);\n\n switch (property.subtype) {\n\n case \"IntProperty\":\n case \"Int32Property\":\n property.values.forEach(v => Int32Property.SerializeValue(writer, v));\n break;\n\n case \"UIntProperty\":\n case \"UInt32Property\":\n property.values.forEach(v => Uint32Property.SerializeValue(writer, v));\n break;\n\n case \"ObjectProperty\":\n property.values.forEach(v => ObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"NameProperty\":\n property.values.forEach(v => StrProperty.SerializeValue(writer, v));\n break;\n\n case \"StructProperty\":\n // outdated i guess\n if (property.name === 'mRemovalLocations') {\n console.warn('serializing mRemovalLocations, this is still under investigation.');\n property.values.forEach(v => vec3.SerializeF(writer, v));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values.forEach(v => GUID.write(writer, v));\n } else {\n throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);\n }\n break;\n\n\n default:\n throw new Error(`Not Implemented SetProperty of ${property.subtype}.`);\n }\n }\n}\n"]}
@@ -13,3 +13,4 @@ export declare class SoftObjectProperty extends BasicProperty {
13
13
  static Serialize(writer: ByteWriter, property: SoftObjectProperty): void;
14
14
  static SerializeValue(writer: ByteWriter, value: SoftObjectReference): void;
15
15
  }
16
+ //# sourceMappingURL=SoftObjectProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SoftObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SoftObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,oBAAoB,aAAc,aAAa,KAAG,QAAQ,IAAI,kBAA4D,CAAC;AAExI,qBAAa,kBAAmB,SAAQ,aAAa;IAE9B,KAAK,EAAE,mBAAmB;gBAA1B,KAAK,EAAE,mBAAmB,EAAE,MAAM,GAAE,MAA6B,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIzH,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,kBAAkB;WAMpF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,mBAAmB;WAItD,YAAY,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM;WAIlD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,kBAAkB,GAAG,IAAI;WAKjE,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI;CAGrF"}
@@ -31,3 +31,4 @@ class SoftObjectProperty extends BasicProperty_1.BasicProperty {
31
31
  }
32
32
  }
33
33
  exports.SoftObjectProperty = SoftObjectProperty;
34
+ //# sourceMappingURL=SoftObjectProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SoftObjectProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SoftObjectProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,2EAAwE;AACxE,mDAAgD;AAEzC,MAAM,oBAAoB,GAAG,CAAC,QAAuB,EAAkC,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,oBAAoB,CAAC;AAA3H,QAAA,oBAAoB,wBAAuG;AAExI,MAAa,kBAAmB,SAAQ,6BAAa;IAEjD,YAAmB,KAA0B,EAAE,SAAiB,oBAAoB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACnI,KAAK,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QADhD,UAAK,GAAL,KAAK,CAAqB;IAE7C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,yCAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,yCAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAA4B;QACnD,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAA4B;QACpE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,yCAAmB,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAA0B;QACvE,yCAAmB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;CACJ;AA5BD,gDA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { SoftObjectReference } from '../../structs/SoftObjectReference';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isSoftObjectProperty = (property: BasicProperty): property is SoftObjectProperty => property.type === 'SoftObjectProperty';\n\nexport class SoftObjectProperty extends BasicProperty {\n\n constructor(public value: SoftObjectReference, ueType: string = 'SoftObjectProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'SoftObjectProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): SoftObjectProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = SoftObjectReference.read(reader);\n return new SoftObjectProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): SoftObjectReference {\n return SoftObjectReference.read(reader);\n }\n\n public static CalcOverhead(property: SoftObjectProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: SoftObjectProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n SoftObjectReference.write(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: SoftObjectReference): void {\n SoftObjectReference.write(writer, value);\n }\n}\n"]}
@@ -12,3 +12,4 @@ export declare class StrProperty extends BasicProperty {
12
12
  static Serialize(writer: ByteWriter, property: StrProperty): void;
13
13
  static SerializeValue(writer: ByteWriter, value: string): void;
14
14
  }
15
+ //# sourceMappingURL=StrProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StrProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,QAAQ,IAAI,WAA8C,CAAC;AAEnH,qBAAa,WAAY,SAAQ,aAAa;IAEvB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIrG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;WAM7E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM;WAI3C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI;WAK1D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -30,3 +30,4 @@ class StrProperty extends BasicProperty_1.BasicProperty {
30
30
  }
31
31
  }
32
32
  exports.StrProperty = StrProperty;
33
+ //# sourceMappingURL=StrProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StrProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,aAAa,GAAG,CAAC,QAAuB,EAA2B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAAtG,QAAA,aAAa,iBAAyF;AAEnH,MAAa,WAAY,SAAQ,6BAAa;IAE1C,YAAmB,KAAa,EAAE,SAAiB,aAAa,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC/G,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QADzC,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC5C,OAAO,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAqB;QAC5C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAqB;QAC7D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,WAAW,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,kCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isStrProperty = (property: BasicProperty): property is StrProperty => property.type === 'StrProperty';\n\nexport class StrProperty extends BasicProperty {\n\n constructor(public value: string, ueType: string = 'StrProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'StrProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): StrProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = StrProperty.ReadValue(reader);\n return new StrProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: StrProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: StrProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n StrProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
@@ -58,3 +58,4 @@ export declare class StructProperty extends AbstractBaseProperty {
58
58
  static Serialize(writer: ByteWriter, property: StructProperty): void;
59
59
  static SerializeValue(writer: ByteWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void;
60
60
  }
61
+ //# sourceMappingURL=StructProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAEtF,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGvD,MAAM,MAAM,gCAAgC,GAAG;IAC3C,MAAM,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,KAAK,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,GAAG,EAAE,IAAI,CAAC;IACV,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE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AAE,IAAI,EAAE,MAAM,GAAG,6BAA6B;WAwIhG,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAY7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,6BAA6B,GAAG,IAAI;CA6GhH"}
@@ -258,3 +258,4 @@ class StructProperty extends BasicProperty_1.AbstractBaseProperty {
258
258
  }
259
259
  }
260
260
  exports.StructProperty = StructProperty;
261
+ //# sourceMappingURL=StructProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":";;;AAEA,iEAAkE;AAClE,6CAA0C;AAC1C,yFAAsF;AACtF,8EAA2E;AAC3E,6CAA0C;AAC1C,6CAA0C;AAC1C,mDAAuD;AAiDhD,MAAM,gBAAgB,GAAG,CAAC,QAA8B,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAtH,QAAA,gBAAgB,oBAAsG;AAEnI,MAAa,cAAe,SAAQ,oCAAoB;IASpD,YAAmB,OAAe,EAAE,SAAiB,gBAAgB,EAAE,QAAgB,CAAC,EAAS,OAAO,CAAC;QACrG,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QADxB,YAAO,GAAP,OAAO,CAAQ;QAA+D,SAAI,GAAJ,IAAI,CAAI;QAPlG,UAAK,GAAkC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IAS7D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,KAAa,EAAE,IAAY;QACnF,MAAM,MAAM,GAAG,IAAI,cAAc,CAC7B,MAAM,CAAC,UAAU,EAAE,EACnB,MAAM,EACN,KAAK,EACL,M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,CAAC,eAAe,CAAC,KAAK,CAAC,SAAU,CAAC,YAAY,CAAC,CAAC;gBAC1D,CAAC;gBACD,MAAM;YAEV,KAAK,UAAU;gBACX,KAAK,GAAG,KAAiC,CAAC;gBAC1C,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACjC,MAAM;YAEV,KAAK,YAAY;gBACb,KAAK,GAAG,KAAe,CAAC;gBACxB,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBAC1B,MAAM;YAEV,KAAK,UAAU;gBACX,KAAK,GAAG,KAAe,CAAC;gBACxB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACjC,MAAM;YAGV,KAAK,eAAe;gBAChB,KAAK,GAAG,KAAsB,CAAC;gBAC/B,6BAAa,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBACvC,MAAM;YAEV;gBAEI,KAAK,GAAG,KAAmC,CAAC;gBAC5C,uDAA0B,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;CACJ;AA7TD,wCA6TC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { CorruptSaveError } from '../../../../error/parser.error';\nimport { col4 } from '../../structs/col4';\nimport { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';\nimport { FICFrameRange } from '../../structs/mods/FicsItCam/FICFrameRange';\nimport { vec3 } from '../../structs/vec3';\nimport { vec4 } from '../../structs/vec4';\nimport { AbstractBaseProperty } from './BasicProperty';\n\n\nexport type BasicMultipleStructPropertyValue = {\n values: any;\n};\n\nexport type BasicStructPropertyValue = {\n value: any;\n};\n\nexport type BoxStructPropertyValue = {\n min: vec3;\n max: vec3;\n isValid: boolean;\n};\n\nexport type RailroadTrackPositionStructPropertyValue = {\n root: string;\n instanceName: string;\n offset: number;\n forward: number;\n};\n\nexport type InventoryItemStructPropertyValue = {\n unk1: number;\n itemName: string;\n hasItemState: number;\n itemState?: {\n unk: number;\n pathName: string;\n binarySize: number;\n itemStateRaw: number[];\n };\n};\n\nexport type FICFrameRangeStructPropertyValue = {\n begin: string;\n end: string;\n};\n\nexport type ClientIdentityInfo = {\n offlineId: string;\n accountIds: Record<number, number[]>;\n};\n\nexport type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue |\n InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | ClientIdentityInfo | DynamicStructPropertyValue | col4 | vec3 | vec4 | string;\n\nexport const isStructProperty = (property: AbstractBaseProperty): property is StructProperty => property.type === 'StructProperty';\n\nexport class StructProperty extends AbstractBaseProperty {\n\n public value: GENERIC_STRUCT_PROPERTY_VALUE = { values: {} };\n\n public unk1?: number;\n public unk2?: number;\n public unk3?: number;\n public unk4?: number;\n\n constructor(public subtype: string, ueType: string = 'StructProperty', index: number = 0, public guid = 0) {\n super('StructProperty', ueType, index);\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, size: number): StructProperty {\n const struct = new StructProperty(\n reader.readString(),\n ueType,\n index,\n reader.readInt32()\n );\n\n const unk1 = reader.readInt32();\n if (unk1 !== 0) {\n struct.unk1 = unk1;\n }\n\n const unk2 = reader.readInt32();\n if (unk2 !== 0) {\n struct.unk2 = unk2;\n }\n\n const unk3 = reader.readInt32();\n if (unk3 !== 0) {\n struct.unk3 = unk3;\n }\n\n const unk4 = reader.readByte();\n if (unk4 !== 0) {\n struct.unk4 = unk4;\n }\n\n const before = reader.getBufferPosition();\n struct.value = StructProperty.ParseValue(reader, struct.subtype, size);\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== size) {\n if (size - readBytes === 4) {\n // U8, fine\n reader.skipBytes(size - readBytes);\n } else {\n throw new Error(`possibly corrupt. Read ${readBytes} for StructProperty Content of ${struct.subtype}, but ${size} were indicated.`);\n }\n }\n\n return struct;\n }\n\n public static ParseValue(reader: BinaryReadable, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE {\n\n let value: GENERIC_STRUCT_PROPERTY_VALUE;\n\n switch (subtype) {\n case 'Color':\n value = col4.ParseBGRA(reader);\n break;\n\n case 'IntPoint':\n value = reader.readInt64().toString();\n break;\n\n case 'LinearColor':\n value = col4.ParseRGBA(reader);\n break;\n\n case 'Vector':\n case 'Rotator':\n case 'Vector2D':\n value = (size === 12) ? vec3.ParseF(reader) : vec3.Parse(reader);\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = (size === 16) ? vec4.ParseF(reader) : vec4.Parse(reader);\n break;\n\n case 'Box':\n value = ((size === 25) ? {\n min: vec3.ParseF(reader),\n max: vec3.ParseF(reader),\n isValid: reader.readByte() >= 1\n } : {\n min: vec3.Parse(reader),\n max: vec3.Parse(reader),\n isValid: reader.readByte() >= 1\n }) satisfies BoxStructPropertyValue;\n break;\n\n case 'RailroadTrackPosition':\n value = {\n root: reader.readString(),\n instanceName: reader.readString(),\n offset: reader.readFloat32(),\n forward: reader.readFloat32()\n };\n break;\n\n case 'TimerHandle':\n value = reader.readString();\n break;\n\n case 'Guid':\n value = reader.readString();\n break;\n\n case 'ClientIdentityInfo':\n const offlineId = reader.readString();\n const numAccountIds = reader.readInt32();\n\n const accountIds: Record<number, number[]> = {};\n for (let i = 0; i < numAccountIds; i++) {\n const platformFlagMaybe = reader.readByte(); // 1 for Epic, 6 for steam ? Only seen 1s and 6s so far.\n const idSize = reader.readInt32();\n const accountId = Array.from(reader.readBytes(idSize));\n accountIds[platformFlagMaybe] = accountId;\n }\n\n value = {\n offlineId,\n accountIds\n } satisfies ClientIdentityInfo;\n break;\n\n case 'InventoryItem':\n const before = reader.getBufferPosition();\n\n value = {\n unk1: reader.readInt32(),\n itemName: reader.readString(),\n hasItemState: reader.readInt32(), // this indicates whether more properties follow\n } satisfies InventoryItemStructPropertyValue;\n\n if (value.hasItemState >= 1) {\n const stateUnk = reader.readInt32(); // 0\n const statePathName = reader.readString();\n const stateBinarySize = reader.readInt32();\n const itemStateRaw = Array.from(reader.readBytes(stateBinarySize)); // TODO: learn to parse these properties\n\n value.itemState = {\n unk: stateUnk,\n pathName: statePathName,\n binarySize: stateBinarySize,\n itemStateRaw: itemStateRaw\n };\n }\n\n // some have a 0 here. Only applies to ported saves from U8 i think.\n const bytesLeft = size - (reader.getBufferPosition() - before);\n if (bytesLeft === 0 || (bytesLeft === 4 && reader.readInt32() === 0)) {\n // fine\n } else {\n throw new CorruptSaveError(`save may be corrupt. InventoryItem has weird format that was not seen so far and therefore not implemented. Could be that the save is ported from way before U8.`);\n }\n\n break;\n\n case 'FluidBox':\n value = {\n value: reader.readFloat32()\n };\n break;\n\n case 'SlateBrush':\n value = reader.readString();\n break;\n\n case 'DateTime':\n value = reader.readInt64().toString();\n break;\n\n // MODS\n case 'FICFrameRange': // https://github.com/Panakotta00/FicsIt-Cam/blob/master/Source/FicsItCam/Public/Data/FICTypes.h#35\n value = FICFrameRange.Parse(reader);\n break;\n\n default:\n //TODO: use buildversion\n value = DynamicStructPropertyValue.read(reader, 0, subtype);\n }\n\n return value;\n }\n\n public static CalcOverhead(property: StructProperty): number {\n return property.subtype.length + 5 + 4 + 4 + 4 + 4 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: StructProperty): void {\n writer.writeString(property.subtype);\n writer.writeInt32(property.guid);\n\n writer.writeInt32(property.unk1 ?? 0);\n writer.writeInt32(property.unk2 ?? 0);\n writer.writeInt32(property.unk3 ?? 0);\n writer.writeByte(property.unk4 ?? 0);\n\n StructProperty.SerializeValue(writer, property.subtype, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void {\n\n switch (subtype) {\n case 'Color':\n value = value as col4;\n col4.SerializeBGRA(writer, value);\n break;\n\n case 'IntPoint':\n writer.writeInt64(BigInt(value as string))\n break;\n\n case 'LinearColor':\n value = value as col4;\n col4.SerializeRGBA(writer, value);\n break;\n\n case 'Vector':\n case 'Rotator':\n case 'Vector2D':\n value = value as vec3;\n vec3.Serialize(writer, value);\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = value as vec4;\n vec4.Serialize(writer, value as vec4);\n break;\n\n case 'Box':\n value = value as BoxStructPropertyValue;\n vec3.Serialize(writer, value.min);\n vec3.Serialize(writer, value.max);\n writer.writeByte(value.isValid ? 1 : 0);\n break;\n\n case 'RailroadTrackPosition':\n value = value as RailroadTrackPositionStructPropertyValue;\n writer.writeString(value.root);\n writer.writeString(value.instanceName);\n writer.writeFloat32(value.offset);\n writer.writeFloat32(value.forward);\n break;\n\n case 'TimerHandle':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'Guid':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'ClientIdentityInfo':\n value = value as ClientIdentityInfo;\n writer.writeString(value.offlineId);\n writer.writeInt32(Object.values(value.accountIds).length);\n for (const [platformFlagMaybe, accountId] of Object.entries(value.accountIds)) {\n writer.writeByte(Number(platformFlagMaybe));\n writer.writeInt32(accountId.length);\n writer.writeBytesArray(accountId);\n }\n\n break;\n\n case 'InventoryItem':\n value = value as InventoryItemStructPropertyValue;\n writer.writeInt32(value.unk1);\n writer.writeString(value.itemName);\n writer.writeInt32(value.hasItemState);\n\n if (value.hasItemState >= 1) {\n writer.writeInt32(value.itemState!.unk);\n writer.writeString(value.itemState!.pathName);\n writer.writeInt32(value.itemState!.binarySize);\n writer.writeBytesArray(value.itemState!.itemStateRaw);\n }\n break;\n\n case 'FluidBox':\n value = value as BasicStructPropertyValue;\n writer.writeFloat32(value.value);\n break;\n\n case 'SlateBrush':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'DateTime':\n value = value as string;\n writer.writeInt64(BigInt(value));\n break;\n\n // MODS\n case 'FICFrameRange': // https://github.com/Panakotta00/FicsIt-Cam/blob/master/Source/FicsItCam/Public/Data/FICTypes.h#35\n value = value as FICFrameRange;\n FICFrameRange.Serialize(writer, value);\n break;\n\n default:\n //TODO: use buildversion\n value = value as DynamicStructPropertyValue;\n DynamicStructPropertyValue.write(writer, 0, value);\n }\n }\n}\n\n\n"]}
@@ -28,3 +28,4 @@ export type TextPropertyValue = {
28
28
  transformType?: number;
29
29
  hasCultureInvariantString?: boolean;
30
30
  };
31
+ //# sourceMappingURL=TextProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa,SAAQ,aAAa;IAExB,KAAK,EAAE,iBAAiB;gBAAxB,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIjH,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAM9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB;WA+DpD,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAuDnF;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,iBAAiB,CAAC;KAAE,EAAE,CAAC;IAGrF,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC"}
@@ -109,3 +109,4 @@ class TextProperty extends BasicProperty_1.BasicProperty {
109
109
  }
110
110
  }
111
111
  exports.TextProperty = TextProperty;
112
+ //# sourceMappingURL=TextProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAwB,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC3H,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAmB;IAE3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,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AAC,yBAAyB,EAAE,CAAC;oBAClC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAM,CAAC,CAAC;gBACrC,CAAC;gBACD,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC;CACJ;AA3ID,oCA2IC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isTextProperty = (property: BasicProperty): property is TextProperty => property.type === 'TextProperty';\n\nexport class TextProperty extends BasicProperty {\n\n constructor(public value: TextPropertyValue, ueType: string = 'TextProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'TextProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): TextProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = TextProperty.ReadValue(reader);\n return new TextProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): TextPropertyValue {\n const prop: TextPropertyValue = {\n flags: reader.readInt32(),\n historyType: reader.readByte()\n };\n\n switch (prop.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n prop.namespace = reader.readString();\n prop.key = reader.readString();\n prop.value = reader.readString();\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n prop.sourceFmt = TextProperty.ReadValue(reader);\n\n const argumentsCount = reader.readInt32();\n prop.arguments = [];\n\n for (let i = 0; i < argumentsCount; i++) {\n let currentArgumentsData: any = {};\n currentArgumentsData.name = reader.readString();\n currentArgumentsData.valueType = reader.readByte();\n\n switch (currentArgumentsData.valueType) {\n case 4:\n currentArgumentsData.argumentValue = TextProperty.ReadValue(reader);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n\n prop.arguments.push(currentArgumentsData);\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n prop.sourceText = TextProperty.ReadValue(reader);\n prop.transformType = reader.readByte();\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n prop.hasCultureInvariantString = reader.readInt32() === 1;\n\n if (prop.hasCultureInvariantString) {\n prop.value = reader.readString();\n }\n break;\n\n default:\n throw new Error('Unimplemented historyType `' + prop.historyType);\n }\n\n return prop;\n }\n\n public static CalcOverhead(property: TextProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: TextProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n TextProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: TextPropertyValue): void {\n writer.writeInt32(value.flags);\n writer.writeByte(value.historyType);\n\n\n switch (value.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n writer.writeString(value.namespace!);\n writer.writeString(value.key!);\n writer.writeString(value.value!);\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n TextProperty.SerializeValue(writer, value.sourceFmt!);\n\n writer.writeInt32(value.arguments!.length);\n\n for (const arg of value.arguments!) {\n let currentArgumentsData: any = {};\n writer.writeString(arg.name);\n writer.writeByte(arg.valueType);\n\n switch (arg.valueType) {\n case 4:\n TextProperty.SerializeValue(writer, arg.argumentValue!);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n TextProperty.SerializeValue(writer, value.sourceText!);\n writer.writeByte(value.transformType!);\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n writer.writeInt32(value.hasCultureInvariantString ? 1 : 0);\n\n if (value.hasCultureInvariantString) {\n writer.writeString(value.value!);\n }\n break;\n default:\n throw new Error('Unimplemented historyType `' + value.historyType);\n }\n }\n}\nexport type TextPropertyValue = {\n flags: number;\n historyType: number;\n\n // flag 0\n namespace?: string;\n key?: string;\n value?: string;\n\n // flag 1 + 3\n sourceFmt?: TextPropertyValue;\n arguments?: { name: string; valueType: number; argumentValue: TextPropertyValue; }[];\n\n // flag 10\n sourceText?: TextPropertyValue;\n transformType?: number;\n\n // flag 255, reusing value\n hasCultureInvariantString?: boolean;\n};\n\n"]}
@@ -12,3 +12,4 @@ export declare class Uint32Property extends BasicProperty {
12
12
  static Serialize(writer: ByteWriter, property: Uint32Property): void;
13
13
  static SerializeValue(writer: ByteWriter, value: number): void;
14
14
  }
15
+ //# sourceMappingURL=Uint32Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,gBAAgB,aAAc,aAAa,KAAG,QAAQ,IAAI,cAAoD,CAAC;AAE5H,qBAAa,cAAe,SAAQ,aAAa;IAE1B,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIxG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,cAAc;WAMhF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAK7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -30,3 +30,4 @@ class Uint32Property extends BasicProperty_1.BasicProperty {
30
30
  }
31
31
  }
32
32
  exports.Uint32Property = Uint32Property;
33
+ //# sourceMappingURL=Uint32Property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint32Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint32Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,gBAAgB,GAAG,CAAC,QAAuB,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAA/G,QAAA,gBAAgB,oBAA+F;AAE5H,MAAa,cAAe,SAAQ,6BAAa;IAE7C,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isUint32Property = (property: BasicProperty): property is Uint32Property => property.type === 'UInt32Property';\n\nexport class Uint32Property extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'UInt32Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'UInt32Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Uint32Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Uint32Property.ReadValue(reader);\n return new Uint32Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readUint32();\n }\n\n public static CalcOverhead(property: Uint32Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Uint32Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Uint32Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeUint32(value);\n }\n}\n"]}
@@ -12,3 +12,4 @@ export declare class Uint64Property extends BasicProperty {
12
12
  static Serialize(writer: ByteWriter, property: Uint64Property): void;
13
13
  static SerializeValue(writer: ByteWriter, value: string): void;
14
14
  }
15
+ //# sourceMappingURL=Uint64Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint64Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint64Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,gBAAgB,aAAc,aAAa,KAAG,QAAQ,IAAI,cAAoD,CAAC;AAE5H,qBAAa,cAAe,SAAQ,aAAa;IAE1B,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIxG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,cAAc;WAMhF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAK7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -30,3 +30,4 @@ class Uint64Property extends BasicProperty_1.BasicProperty {
30
30
  }
31
31
  }
32
32
  exports.Uint64Property = Uint64Property;
33
+ //# sourceMappingURL=Uint64Property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint64Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,gBAAgB,GAAG,CAAC,QAAuB,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAA/G,QAAA,gBAAgB,oBAA+F;AAE5H,MAAa,cAAe,SAAQ,6BAAa;IAE7C,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isUInt64Property = (property: BasicProperty): property is Uint64Property => property.type === 'UInt64Property';\n\nexport class Uint64Property extends BasicProperty {\n\n constructor(public value: string, ueType: string = 'UInt64Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'UInt64Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Uint64Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Uint64Property.ReadValue(reader);\n return new Uint64Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readUint64().toString();\n }\n\n public static CalcOverhead(property: Uint64Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Uint64Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Uint64Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeUint64(BigInt(value));\n }\n}\n"]}
@@ -12,3 +12,4 @@ export declare class Uint8Property extends BasicProperty {
12
12
  static Serialize(writer: ByteWriter, property: Uint8Property): void;
13
13
  static SerializeValue(writer: ByteWriter, value: number): void;
14
14
  }
15
+ //# sourceMappingURL=Uint8Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint8Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint8Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,aAAc,aAAa,KAAG,QAAQ,IAAI,aAAkD,CAAC;AAEzH,qBAAa,aAAc,SAAQ,aAAa;IAEzB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -30,3 +30,4 @@ class Uint8Property extends BasicProperty_1.BasicProperty {
30
30
  }
31
31
  }
32
32
  exports.Uint8Property = Uint8Property;
33
+ //# sourceMappingURL=Uint8Property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint8Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Uint8Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,eAAe,GAAG,CAAC,QAAuB,EAA6B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA5G,QAAA,eAAe,mBAA6F;AAEzH,MAAa,aAAc,SAAQ,6BAAa;IAE5C,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isUint8Property = (property: BasicProperty): property is Uint8Property => property.type === 'UInt8Property';\n\nexport class Uint8Property extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'UInt8Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'UInt8Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Uint8Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Uint8Property.ReadValue(reader);\n return new Uint8Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readUint8();\n }\n\n public static CalcOverhead(property: Uint8Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Uint8Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Uint8Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeUint8(value);\n }\n}\n"]}
@@ -52,3 +52,4 @@ export type BuildableSubsystemSpecialProperties = {
52
52
  instances: BuildableTypeInstance[];
53
53
  }[];
54
54
  };
55
+ //# sourceMappingURL=SpecialAnyProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialAnyProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG,0BAA0B,GAAG,uBAAuB,GAAG,mCAAmC,GAAG,mCAAmC,CAAC;AAE7L,MAAM,MAAM,sBAAsB,GAAG,EAEpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC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,GAAG;IAC9C,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;KACtC,EAAE,CAAC;CACP,CAAC"}
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SpecialAnyProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialAnyProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"","sourcesContent":["import { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\n\n\nexport type SpecialAnyProperties = EmptySpecialProperties | PowerLineSpecialProperties | PlayerSpecialProperties | ConveyorChainActorSpecialProperties | BuildableSubsystemSpecialProperties;\n\nexport type EmptySpecialProperties = {\n\n};\n\nexport type PowerLineSpecialProperties = {\n source: ObjectReference;\n target: ObjectReference;\n sourceTranslation?: vec3;\n targetTranslation?: vec3;\n};\n\nexport type PlayerSpecialProperties = {\n flag: number;\n eosData?: string;\n steamPlayerData?: string;\n};\n\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemName: string;\n};\n\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n someCount: number;\n unknownUseBytes: number[];\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n}\n\nexport type ConveyorChainActorSpecialProperties = {\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n unknownInts: [number, number];\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport type BuildableTypeInstance = {\n transform: Transform;\n unknownUseNumbers: [vec2, vec3];\n swatchSlotTypePath: string;\n paintFinishPath: string;\n recipeTypePath: string;\n patternPath: string;\n blueprintProxy: ObjectReference;\n};\n\nexport type BuildableSubsystemSpecialProperties = {\n buildables: {\n typePath: string;\n instances: BuildableTypeInstance[];\n }[];\n};\n"]}
@@ -5,3 +5,4 @@ export declare namespace SpecialProperties {
5
5
  const ParseClassSpecificSpecialProperties: (reader: BinaryReadable, typePath: string, remainingLen: number) => SpecialAnyProperties;
6
6
  const SerializeClassSpecificSpecialProperties: (writer: ByteWriter, typePath: string, property: SpecialAnyProperties) => void;
7
7
  }
8
+ //# sourceMappingURL=SpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKhE,OAAO,EAAsP,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAIlT,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,mCAAmC,WAAY,cAAc,YAAY,MAAM,gBAAgB,MAAM,KAAG,oBA8LpH,CAAA;IAEM,MAAM,uCAAuC,WAAY,UAAU,YAAY,MAAM,YAAY,oBAAoB,KAAG,IA4H9H,CAAA;CACJ"}
@@ -232,3 +232,4 @@ var SpecialProperties;
232
232
  }
233
233
  };
234
234
  })(SpecialProperties || (exports.SpecialProperties = SpecialProperties = {}));
235
+ //# sourceMappingURL=SpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA0C;AAK1C,IAAiB,iBAAiB,CA+TjC;AA/TD,WAAiB,iBAAiB;IAEjB,qDAAmC,GAAG,CAAC,MAAsB,EAAE,QAAgB,E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Q,CAAC,eAAe,CAAC,CAAC;4BAE7C,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;4BACrB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;4BAGpB,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;4BAE5C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;wBAC3D,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,MAAM;QACd,CAAC;IAEL,CAAC,CAAA;AACL,CAAC,EA/TgB,iBAAiB,iCAAjB,iBAAiB,QA+TjC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\nimport { BuildableSubsystemSpecialProperties, BuildableTypeInstance, ConveyorChainActorSpecialProperties, ConveyorChainSegmentSpecialProperties, ConveyorItemSpecialProperties, EmptySpecialProperties, PlayerSpecialProperties, PowerLineSpecialProperties, SpecialAnyProperties } from './SpecialAnyProperties';\n\n\n\nexport namespace SpecialProperties {\n\n export const ParseClassSpecificSpecialProperties = (reader: BinaryReadable, typePath: string, remainingLen: number): SpecialAnyProperties => {\n let property;\n\n const start = reader.getBufferPosition();\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // since U1.0 the conveyor items are now in ConveyorChainActor. Not anymore on the belt itself. so this count of items is always 0.\n reader.readInt32();\n property = {} satisfies EmptySpecialProperties;\n break;\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: ConveyorChainSegmentSpecialProperties[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const someCount = reader.readInt32();\n\n //2, 6*24 + 12 somethings, not always 0\n //4, 12*24 + 12 somethings\n //6, 18*24 + 12 somethings\n //almost looks like GUIDs\n const unknownUseBytes = Array.from(reader.readBytes(someCount * 3 * 24 + 12));\n\n // indices which items of this chain are on this belt.\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n someCount,\n unknownUseBytes,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const unknownInts = [reader.readInt32(), reader.readInt32()] satisfies [number, number];\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: ConveyorItemSpecialProperties[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n reader.readInt32(); //0\n const itemName = reader.readString();\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemName, position });\n }\n\n property = {\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n unknownInts,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n } satisfies ConveyorChainActorSpecialProperties;\n\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n property = {\n source: ObjectReference.read(reader),\n target: ObjectReference.read(reader)\n } as PowerLineSpecialProperties;\n\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n // TODO - i don't know enough about player state yet. need more players.\n property = {} as PlayerSpecialProperties;\n\n // 241 = byte, byte, length? flag, id with length bytes\n property.flag = reader.readByte(); // 241?\n switch (property.flag) {\n case 248: // default EOS\n const eos = reader.readString();\n property.eosData = reader.readString();\n break;\n case 25: // steam!?\n break;\n default:\n break;\n }\n break;\n\n //buildables like foundations are now here\n // Persistent_Level:PersistentLevel.LightweightBuildableSubsystem\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n property = { buildables: [] } as BuildableSubsystemSpecialProperties;\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n reader.readInt32(); //0\n const typePath = reader.readString();\n const count = reader.readInt32();\n\n const instances = [];\n for (let j = 0; j < count; j++) {\n\n const transform = Transform.Parse(reader);\n\n reader.readInt32(); // 0\n\n\n const swatchSlotTypePath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readInt64(); // 0\n\n const patternPath = reader.readString();\n\n //TODO: whatever this is, not sure whether something is gonna be here.\n const zeroes = vec2.Parse(reader);\n const oneZeroOne = vec3.Parse(reader);\n const unknownUseNumbers = [zeroes, oneZeroOne] as [vec2, vec3];\n\n reader.readInt32(); // 0\n\n const paintFinishPath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readBytes(1); // 0\n\n const recipeTypePath = reader.readString();\n\n const blueprintProxy = ObjectReference.read(reader);\n\n instances.push({\n transform,\n unknownUseNumbers,\n swatchSlotTypePath,\n paintFinishPath,\n recipeTypePath,\n patternPath,\n blueprintProxy\n } satisfies BuildableTypeInstance);\n }\n\n property.buildables.push({\n typePath,\n instances\n });\n }\n }\n\n break;\n\n default:\n // ignore / empty. Rest will land in trailing data anyway.\n property = {} satisfies EmptySpecialProperties;\n break;\n }\n\n return property;\n }\n\n export const SerializeClassSpecificSpecialProperties = (writer: ByteWriter, typePath: string, property: SpecialAnyProperties): void => {\n\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // see parsing behavior.\n writer.writeInt32(0);\n break;\n\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).lastBelt);\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).firstBelt);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).beltsInChain.length);\n\n for (const belt of (property as ConveyorChainActorSpecialProperties).beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.someCount);\n\n writer.writeBytesArray(belt.unknownUseBytes);\n\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[0]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[1]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).firstChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).lastChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).items.length);\n\n for (const item of (property as ConveyorChainActorSpecialProperties).items) {\n writer.writeInt32(0);\n writer.writeString(item.itemName);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).source);\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).target);\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n writer.writeByte((property as PlayerSpecialProperties).flag);\n switch ((property as PlayerSpecialProperties).flag) {\n case 248: // default EOS\n writer.writeString('EOS');\n writer.writeString((property as PlayerSpecialProperties).eosData!);\n break;\n case 25: // steam!?\n break;\n default:\n break;\n\n }\n break;\n\n\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n writer.writeInt32((property as BuildableSubsystemSpecialProperties).buildables.length);\n\n if ((property as BuildableSubsystemSpecialProperties).buildables.length > 0) {\n\n for (const buildable of (property as BuildableSubsystemSpecialProperties).buildables) {\n writer.writeInt32(0);\n writer.writeString(buildable.typePath);\n writer.writeInt32(buildable.instances.length);\n\n for (const instance of buildable.instances) {\n\n Transform.Serialize(writer, instance.transform);\n writer.writeInt32(0);\n\n\n writer.writeString(instance.swatchSlotTypePath);\n\n writer.writeInt32(0);\n writer.writeInt64(0n);\n\n writer.writeString(instance.patternPath);\n\n //TODO: same, whatever this is\n vec2.Serialize(writer, instance.unknownUseNumbers[0]);\n vec3.Serialize(writer, instance.unknownUseNumbers[1]);\n\n writer.writeInt32(0);\n\n writer.writeString(instance.paintFinishPath);\n\n writer.writeInt32(0);\n writer.writeByte(0);\n\n\n writer.writeString(instance.recipeTypePath);\n\n ObjectReference.write(writer, instance.blueprintProxy);\n }\n }\n }\n\n break;\n }\n\n }\n}\n"]}
@@ -9,3 +9,4 @@ export declare namespace DynamicStructPropertyValue {
9
9
  const read: (reader: BinaryReadable, buildVersion: number, type: string) => DynamicStructPropertyValue;
10
10
  const write: (writer: ByteWriter, buildVersion: number, data: DynamicStructPropertyValue) => void;
11
11
  }
12
+ //# sourceMappingURL=DynamicStructPropertyValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicStructPropertyValue.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAwB,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAExF,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,yBAAiB,0BAA0B,CAAC;IAEjC,MAAM,IAAI,WAAY,cAAc,gBAAgB,MAAM,QAAQ,MAAM,KAAG,0BAuBjF,CAAC;IAEK,MAAM,KAAK,WAAY,UAAU,gBAAgB,MAAM,QAAQ,0BAA0B,KAAG,IAQlG,CAAC;CACL"}
@@ -35,3 +35,4 @@ var DynamicStructPropertyValue;
35
35
  };
36
36
  })(DynamicStructPropertyValue || (exports.DynamicStructPropertyValue = DynamicStructPropertyValue = {}));
37
37
  ;
38
+ //# sourceMappingURL=DynamicStructPropertyValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicStructPropertyValue.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":";;;AAEA,+DAA4D;AAQ5D,IAAiB,0BAA0B,CAoC1C;AApCD,WAAiB,0BAA0B;IAE1B,+BAAI,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,IAAY,EAA8B,EAA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AAG,CAAC,CAAC;gBACxB,+BAAc,CAAC,uBAAuB,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC;YAC5E,CAAC;QACL,CAAC;QACD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC,CAAC;AACN,CAAC,EApCgB,0BAA0B,0CAA1B,0BAA0B,QAoC1C;AAAA,CAAC","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\r\nimport { ByteWriter } from '../../../byte/byte-writer.class';\r\nimport { PropertiesList } from '../property/PropertiesList';\r\nimport { AbstractBaseProperty, PropertiesMap } from '../property/generic/BasicProperty';\r\n\r\nexport type DynamicStructPropertyValue = {\r\n type: string;\r\n properties: PropertiesMap;\r\n};\r\n\r\nexport namespace DynamicStructPropertyValue {\r\n\r\n export const read = (reader: BinaryReadable, buildVersion: number, type: string): DynamicStructPropertyValue => {\r\n const data: DynamicStructPropertyValue = {\r\n type, properties: {}\r\n };\r\n\r\n let propertyName: string = reader.readString();\r\n while (propertyName !== 'None') {\r\n const parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName)!;\r\n\r\n // if it already exists, make it an array.\r\n if (data.properties[propertyName]) {\r\n if (!Array.isArray(data.properties[propertyName])) {\r\n data.properties[propertyName] = [data.properties[propertyName] as AbstractBaseProperty];\r\n }\r\n (data.properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\r\n } else {\r\n data.properties[propertyName] = parsedProperty;\r\n }\r\n\r\n propertyName = reader.readString();\r\n }\r\n\r\n return data;\r\n };\r\n\r\n export const write = (writer: ByteWriter, buildVersion: number, data: DynamicStructPropertyValue): void => {\r\n for (const key in data.properties) {\r\n for (const prop of (Array.isArray(data.properties[key]) ? data.properties[key] : [data.properties[key]]) as AbstractBaseProperty[]) {\r\n writer.writeString(key);\r\n PropertiesList.SerializeSingleProperty(writer, prop, key, buildVersion);\r\n }\r\n }\r\n writer.writeString('None');\r\n };\r\n};"]}
@@ -5,3 +5,4 @@ export declare namespace GUID {
5
5
  const read: (reader: BinaryReadable) => GUID;
6
6
  const write: (writer: ByteWriter, guid: GUID) => void;
7
7
  }
8
+ //# sourceMappingURL=GUID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,yBAAiB,IAAI,CAAC;IACX,MAAM,IAAI,WAAY,cAAc,KAAG,IAO7C,CAAA;IAEM,MAAM,KAAK,WAAY,UAAU,QAAQ,IAAI,KAAG,IAKtD,CAAA;CACJ"}
@@ -19,3 +19,4 @@ var GUID;
19
19
  };
20
20
  })(GUID || (exports.GUID = GUID = {}));
21
21
  ;
22
+ //# sourceMappingURL=GUID.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;AAKA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACJ,SAAI,GAAG,CAAC,MAAsB,EAAQ,EAAE;QACjD,OAAO;YACH,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;SACtB,CAAC;IACN,CAAC,CAAA;IAEY,UAAK,GAAG,CAAC,MAAkB,EAAE,IAAU,EAAQ,EAAE;QAC1D,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAA;AACL,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB;AAAA,CAAC","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\n\nexport type GUID = [number, number, number, number];\n\nexport namespace GUID {\n export const read = (reader: BinaryReadable): GUID => {\n return [\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n ];\n }\n\n export const write = (writer: ByteWriter, guid: GUID): void => {\n writer.writeUint32(guid[0]);\n writer.writeUint32(guid[1]);\n writer.writeUint32(guid[2]);\n writer.writeUint32(guid[3]);\n }\n};"]}
@@ -6,3 +6,4 @@ export declare namespace GUIDInfo {
6
6
  const read: (reader: BinaryReadable) => GUIDInfo;
7
7
  const write: (writer: ByteWriter, guid: GUIDInfo) => void;
8
8
  }
9
+ //# sourceMappingURL=GUIDInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GUIDInfo.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAExC,yBAAiB,QAAQ,CAAC;IACf,MAAM,IAAI,WAAY,cAAc,KAAG,QAO7C,CAAA;IAEM,MAAM,KAAK,WAAY,UAAU,QAAQ,QAAQ,KAAG,IAQ1D,CAAA;CACJ"}
@@ -24,3 +24,4 @@ var GUIDInfo;
24
24
  };
25
25
  })(GUIDInfo || (exports.GUIDInfo = GUIDInfo = {}));
26
26
  ;
27
+ //# sourceMappingURL=GUIDInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAI9B,IAAiB,QAAQ,CAmBxB;AAnBD,WAAiB,QAAQ;IACR,aAAI,GAAG,CAAC,MAAsB,EAAY,EAAE;QAErD,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC,CAAA;IAEY,cAAK,GAAG,CAAC,MAAkB,EAAE,IAAc,EAAQ,EAAE;QAC9D,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO;QACX,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EAnBgB,QAAQ,wBAAR,QAAQ,QAmBxB;AAAA,CAAC","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { GUID } from './GUID';\n\nexport type GUIDInfo = undefined | GUID;\n\nexport namespace GUIDInfo {\n export const read = (reader: BinaryReadable): GUIDInfo => {\n // means whether it has guid.\n if (reader.readByte() === 1) {\n return GUID.read(reader);\n } else {\n return undefined;\n }\n }\n\n export const write = (writer: ByteWriter, guid: GUIDInfo): void => {\n if (guid === undefined) {\n writer.writeByte(0);\n return;\n } else {\n writer.writeByte(1);\n GUID.write(writer, guid);\n }\n }\n};"]}
@@ -8,3 +8,4 @@ export declare namespace MD5Hash {
8
8
  const read: (reader: ByteReader) => MD5Hash;
9
9
  const write: (writer: ByteWriter, md5Hash: MD5Hash) => void;
10
10
  }
11
+ //# sourceMappingURL=MD5Hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MD5Hash.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,MAAM,MAAM,OAAO,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,yBAAiB,OAAO,CAAC;IACd,MAAM,IAAI,WAAY,UAAU,KAAG,OAOzC,CAAC;IAEK,MAAM,KAAK,WAAY,UAAU,WAAW,OAAO,KAAG,IAK5D,CAAC;CACL"}
@@ -19,3 +19,4 @@ var MD5Hash;
19
19
  };
20
20
  })(MD5Hash || (exports.MD5Hash = MD5Hash = {}));
21
21
  ;
22
+ //# sourceMappingURL=MD5Hash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MD5Hash.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":";;;AASA,IAAiB,OAAO,CAgBvB;AAhBD,WAAiB,OAAO;IACP,YAAI,GAAG,CAAC,MAAkB,EAAW,EAAE;QAChD,MAAM,OAAO,GAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5C,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC,CAAC;IAEW,aAAK,GAAG,CAAC,MAAkB,EAAE,OAAgB,EAAQ,EAAE;QAChE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,IAAK,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAhBgB,OAAO,uBAAP,OAAO,QAgBvB;AAAA,CAAC","sourcesContent":["import { ByteReader } from '../../../byte/byte-reader.class';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\n\n\nexport type MD5Hash = {\n isValid: boolean;\n hash?: number[];\n};\n\nexport namespace MD5Hash {\n export const read = (reader: ByteReader): MD5Hash => {\n const md5Hash: MD5Hash = { isValid: false };\n md5Hash.isValid = reader.readInt32() === 1;\n if (md5Hash.isValid) {\n md5Hash.hash = Array.from(reader.readBytes(16));\n }\n return md5Hash;\n };\n\n export const write = (writer: ByteWriter, md5Hash: MD5Hash): void => {\n writer.writeInt32(md5Hash.isValid ? 1 : 0);\n if (md5Hash.isValid) {\n writer.writeBytesArray(md5Hash.hash!);\n }\n };\n};"]}