@etothepii/satisfactory-file-parser 1.0.3 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/.github/workflows/tests.yml +24 -0
  2. package/CHANGELOG.md +88 -0
  3. package/LICENCE.md +1 -1
  4. package/README.md +6 -74
  5. package/build/index.d.ts +31 -4
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +31 -4
  8. package/build/index.js.map +1 -1
  9. package/build/parser/byte/byte-reader.class.d.ts +1 -1
  10. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  11. package/build/parser/byte/byte-reader.class.js +4 -4
  12. package/build/parser/byte/byte-reader.class.js.map +1 -1
  13. package/build/parser/parser.d.ts +1 -1
  14. package/build/parser/parser.d.ts.map +1 -1
  15. package/build/parser/parser.js +1 -1
  16. package/build/parser/parser.js.map +1 -1
  17. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  18. package/build/parser/satisfactory/save/level.class.js +3 -1
  19. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  20. package/build/parser/satisfactory/save/object-references-list.d.ts +2 -2
  21. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
  22. package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
  23. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +3 -3
  24. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  25. package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
  26. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  27. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -6
  28. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  29. package/build/parser/satisfactory/types/property/PropertiesList.js +16 -19
  30. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  31. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +21 -0
  32. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
  33. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +23 -0
  34. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
  35. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
  36. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
  37. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
  38. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
  39. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
  40. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
  41. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +25 -0
  42. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
  43. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +25 -0
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +25 -0
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +25 -0
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +25 -0
  58. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
  59. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
  60. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
  61. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +25 -0
  62. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
  63. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
  64. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
  65. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +25 -0
  66. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
  67. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
  68. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
  69. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +25 -0
  70. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
  71. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
  72. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
  73. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +25 -0
  74. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
  75. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
  76. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
  77. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +25 -0
  78. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
  79. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
  80. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
  81. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +72 -0
  82. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
  83. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
  84. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
  85. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +25 -0
  86. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
  87. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +3 -3
  88. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  89. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +3 -3
  90. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  91. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +3 -3
  92. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  93. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +3 -3
  94. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  95. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +3 -3
  96. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  97. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +3 -3
  98. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  99. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +3 -3
  100. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  101. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +3 -3
  102. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  103. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +3 -3
  104. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  105. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +3 -3
  106. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  107. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +3 -3
  108. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  109. package/build/parser/satisfactory/types/property/generic/Int32Property.js +3 -3
  110. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  111. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +3 -3
  112. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  113. package/build/parser/satisfactory/types/property/generic/Int64Property.js +3 -3
  114. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  115. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +3 -3
  116. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  117. package/build/parser/satisfactory/types/property/generic/Int8Property.js +3 -3
  118. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  119. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +3 -3
  120. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  121. package/build/parser/satisfactory/types/property/generic/MapProperty.js +3 -3
  122. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  123. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +3 -3
  124. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  125. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +3 -3
  126. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  127. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
  128. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
  129. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +25 -0
  130. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
  131. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
  132. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
  133. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +25 -0
  134. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
  135. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
  136. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
  137. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
  138. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
  139. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
  140. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
  141. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +25 -0
  142. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
  143. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
  144. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
  145. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +45 -0
  146. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
  147. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
  148. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
  149. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +25 -0
  150. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
  151. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +3 -3
  152. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  153. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +3 -3
  154. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  155. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +3 -3
  156. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  157. package/build/parser/satisfactory/types/property/generic/StrProperty.js +3 -3
  158. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  159. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +4 -4
  160. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  161. package/build/parser/satisfactory/types/property/generic/StructProperty.js +10 -10
  162. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  163. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +3 -3
  164. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  165. package/build/parser/satisfactory/types/property/generic/TextProperty.js +3 -3
  166. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  167. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +3 -3
  168. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  169. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +3 -3
  170. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  171. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +3 -3
  172. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  173. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +3 -3
  174. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  175. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +3 -3
  176. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  177. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +3 -3
  178. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  179. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
  180. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
  181. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
  182. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
  183. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
  184. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
  185. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
  186. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
  187. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
  188. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
  189. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
  190. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
  191. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
  192. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
  193. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
  194. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
  195. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
  196. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
  197. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
  198. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
  199. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
  200. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
  201. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
  202. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
  203. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
  204. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
  205. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
  206. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
  207. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
  208. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
  209. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
  210. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
  211. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
  212. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
  213. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
  214. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
  215. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
  216. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
  217. package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
  218. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
  219. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
  220. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
  221. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
  222. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
  223. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
  224. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  225. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +2 -21
  226. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  227. package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
  228. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
  229. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
  230. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +2 -2
  231. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  232. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  233. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +2 -2
  234. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
  235. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
  236. package/build/parser/satisfactory/types/structs/Transform.d.ts +3 -3
  237. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
  238. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
  239. package/build/parser/satisfactory/types/structs/col4.d.ts +3 -3
  240. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
  241. package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
  242. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
  243. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
  244. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
  245. package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
  246. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
  247. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
  248. package/build/parser/satisfactory/types/structs/vec3.d.ts +4 -4
  249. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
  250. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
  251. package/build/parser/satisfactory/types/structs/vec4.d.ts +3 -3
  252. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
  253. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
  254. package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
  255. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  256. package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
  257. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  258. package/docs/assets/navigation.js +1 -1
  259. package/docs/assets/search.js +1 -1
  260. package/docs/classes/AbstractBaseProperty.html +5 -4
  261. package/docs/classes/BlueprintConfigReader.html +5 -4
  262. package/docs/classes/BlueprintConfigWriter.html +3 -3
  263. package/docs/classes/BlueprintReader.html +5 -4
  264. package/docs/classes/BlueprintWriter.html +3 -3
  265. package/docs/classes/BoolProperty.html +3 -3
  266. package/docs/classes/ByteProperty.html +3 -3
  267. package/docs/classes/CompressionLibraryError.html +2 -2
  268. package/docs/classes/CorruptSaveError.html +2 -2
  269. package/docs/classes/DoubleProperty.html +3 -3
  270. package/docs/classes/EnumProperty.html +3 -3
  271. package/docs/classes/FloatProperty.html +3 -3
  272. package/docs/classes/Int32Property.html +3 -3
  273. package/docs/classes/Int64Property.html +3 -3
  274. package/docs/classes/Int8Property.html +3 -3
  275. package/docs/classes/MapProperty.html +3 -3
  276. package/docs/classes/ObjectProperty.html +3 -3
  277. package/docs/classes/Parser.html +7 -7
  278. package/docs/classes/ParserError.html +2 -2
  279. package/docs/classes/ReadableStreamParser.html +3 -3
  280. package/docs/classes/SatisfactorySave.html +2 -2
  281. package/docs/classes/SaveComponent.html +2 -2
  282. package/docs/classes/SaveEntity.html +2 -2
  283. package/docs/classes/SaveObject.html +14 -0
  284. package/docs/classes/SaveReader.html +5 -4
  285. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  286. package/docs/classes/SaveStreamWriter.html +2 -2
  287. package/docs/classes/SaveWriter.html +3 -3
  288. package/docs/classes/StrProperty.html +3 -3
  289. package/docs/classes/StructProperty.html +4 -4
  290. package/docs/classes/TextProperty.html +3 -3
  291. package/docs/classes/TimeoutError.html +2 -2
  292. package/docs/classes/Uint32Property.html +3 -3
  293. package/docs/classes/Uint64Property.html +3 -3
  294. package/docs/classes/Uint8Property.html +3 -3
  295. package/docs/classes/UnimplementedError.html +2 -2
  296. package/docs/classes/UnsupportedVersionError.html +2 -2
  297. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
  298. package/docs/functions/ArrayProperty.Parse.html +1 -0
  299. package/docs/functions/ArrayProperty.Serialize.html +1 -0
  300. package/docs/functions/BoolArrayProperty.Parse.html +1 -0
  301. package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
  302. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -0
  303. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
  304. package/docs/functions/ByteArrayProperty.Parse.html +1 -0
  305. package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
  306. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
  307. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
  308. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
  309. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
  310. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
  311. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
  312. package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
  313. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
  314. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  315. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  316. package/docs/functions/EmptySpecialProperties.Parse.html +1 -0
  317. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
  318. package/docs/functions/EnumArrayProperty.Parse.html +1 -0
  319. package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
  320. package/docs/functions/FICFrameRange.Parse.html +1 -1
  321. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  322. package/docs/functions/FloatArrayProperty.Parse.html +1 -0
  323. package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
  324. package/docs/functions/GUID.read.html +1 -1
  325. package/docs/functions/GUID.write.html +1 -1
  326. package/docs/functions/GUIDInfo.read.html +1 -1
  327. package/docs/functions/GUIDInfo.write.html +1 -1
  328. package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
  329. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
  330. package/docs/functions/Int32SetProperty.Parse.html +1 -0
  331. package/docs/functions/Int32SetProperty.Serialize.html +1 -0
  332. package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
  333. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
  334. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  335. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  336. package/docs/functions/Level.ReadLevel.html +1 -1
  337. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  338. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  339. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  340. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  341. package/docs/functions/Level.SerializeLevel.html +1 -1
  342. package/docs/functions/MD5Hash.read.html +1 -1
  343. package/docs/functions/MD5Hash.write.html +1 -1
  344. package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
  345. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
  346. package/docs/functions/ObjectReference.read.html +1 -1
  347. package/docs/functions/ObjectReference.write.html +1 -1
  348. package/docs/functions/ObjectSetProperty.Parse.html +1 -0
  349. package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
  350. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -0
  351. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
  352. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
  353. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
  354. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
  355. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
  356. package/docs/functions/PropertiesList.ParseList.html +1 -1
  357. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  358. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  359. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  360. package/docs/functions/SetProperty.CalcOverhead.html +1 -0
  361. package/docs/functions/SetProperty.Parse.html +1 -0
  362. package/docs/functions/SetProperty.Serialize.html +1 -0
  363. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
  364. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
  365. package/docs/functions/SoftObjectReference.read.html +1 -1
  366. package/docs/functions/SoftObjectReference.write.html +1 -1
  367. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -0
  368. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
  369. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  370. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  371. package/docs/functions/StrArrayProperty.Parse.html +1 -0
  372. package/docs/functions/StrArrayProperty.Serialize.html +1 -0
  373. package/docs/functions/StrSetProperty.Parse.html +1 -0
  374. package/docs/functions/StrSetProperty.Serialize.html +1 -0
  375. package/docs/functions/StructArrayProperty.Parse.html +1 -0
  376. package/docs/functions/StructArrayProperty.Serialize.html +1 -0
  377. package/docs/functions/StructSetProperty.Parse.html +1 -0
  378. package/docs/functions/StructSetProperty.Serialize.html +1 -0
  379. package/docs/functions/TextArrayProperty.Parse.html +1 -0
  380. package/docs/functions/TextArrayProperty.Serialize.html +1 -0
  381. package/docs/functions/Transform.Parse.html +1 -1
  382. package/docs/functions/Transform.ParseF.html +1 -1
  383. package/docs/functions/Transform.Serialize.html +1 -1
  384. package/docs/functions/Transform.SerializeF.html +1 -1
  385. package/docs/functions/Uint32SetProperty.Parse.html +1 -0
  386. package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
  387. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -0
  388. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
  389. package/docs/functions/col4.ParseBGRA.html +1 -1
  390. package/docs/functions/col4.ParseRGBA.html +1 -1
  391. package/docs/functions/col4.SerializeBGRA.html +1 -1
  392. package/docs/functions/col4.SerializeRGBA.html +1 -1
  393. package/docs/functions/isArrayProperty.html +1 -1
  394. package/docs/functions/isBoolArrayProperty.html +1 -0
  395. package/docs/functions/isBoolProperty.html +1 -1
  396. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -0
  397. package/docs/functions/isByteArrayProperty.html +1 -0
  398. package/docs/functions/isByteProperty.html +1 -1
  399. package/docs/functions/isCircuitSpecialProperties.html +1 -0
  400. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
  401. package/docs/functions/isConveyorSpecialProperties.html +1 -0
  402. package/docs/functions/isDoubleArrayProperty.html +1 -0
  403. package/docs/functions/isDoubleProperty.html +1 -1
  404. package/docs/functions/isEmptySpecialProperties.html +1 -0
  405. package/docs/functions/isEnumArrayProperty.html +1 -0
  406. package/docs/functions/isEnumProperty.html +1 -1
  407. package/docs/functions/isFloatArrayProperty.html +1 -0
  408. package/docs/functions/isFloatProperty.html +1 -1
  409. package/docs/functions/isInt32ArrayProperty.html +1 -0
  410. package/docs/functions/isInt32Property.html +1 -1
  411. package/docs/functions/isInt32SetProperty.html +1 -0
  412. package/docs/functions/isInt64ArrayProperty.html +1 -0
  413. package/docs/functions/isInt64Property.html +1 -1
  414. package/docs/functions/isInt8Property.html +1 -1
  415. package/docs/functions/isMapProperty.html +1 -1
  416. package/docs/functions/isObjectArrayProperty.html +1 -0
  417. package/docs/functions/isObjectProperty.html +1 -1
  418. package/docs/functions/isObjectSetProperty.html +1 -0
  419. package/docs/functions/isObjectsListSpecialProperties.html +1 -0
  420. package/docs/functions/isPlayerSpecialProperties.html +1 -0
  421. package/docs/functions/isPowerLineSpecialProperties.html +1 -0
  422. package/docs/functions/isSaveComponent.html +1 -1
  423. package/docs/functions/isSaveEntity.html +1 -1
  424. package/docs/functions/isSetProperty.html +1 -1
  425. package/docs/functions/isSoftObjectArrayProperty.html +1 -0
  426. package/docs/functions/isSpecialDroneActionProperties.html +1 -0
  427. package/docs/functions/isStrArrayProperty.html +1 -0
  428. package/docs/functions/isStrProperty.html +1 -1
  429. package/docs/functions/isStrSetProperty.html +1 -0
  430. package/docs/functions/isStructArrayProperty.html +1 -0
  431. package/docs/functions/isStructProperty.html +1 -1
  432. package/docs/functions/isStructSetProperty.html +1 -0
  433. package/docs/functions/isTextArrayProperty.html +1 -0
  434. package/docs/functions/isTextProperty.html +1 -1
  435. package/docs/functions/isUInt64Property.html +1 -1
  436. package/docs/functions/isUint32Property.html +1 -1
  437. package/docs/functions/isUint32SetProperty.html +1 -0
  438. package/docs/functions/isUint8Property.html +1 -1
  439. package/docs/functions/isVehicleSpecialProperties.html +1 -0
  440. package/docs/functions/vec2.Parse.html +1 -1
  441. package/docs/functions/vec2.ParseF.html +1 -1
  442. package/docs/functions/vec2.Serialize.html +1 -1
  443. package/docs/functions/vec2.SerializeF.html +1 -1
  444. package/docs/functions/vec3.Parse.html +1 -1
  445. package/docs/functions/vec3.ParseF.html +1 -1
  446. package/docs/functions/vec3.ParseInt.html +1 -1
  447. package/docs/functions/vec3.Serialize.html +1 -1
  448. package/docs/functions/vec3.SerializeF.html +1 -1
  449. package/docs/functions/vec3.SerializeInt.html +1 -1
  450. package/docs/functions/vec3.add.html +1 -1
  451. package/docs/functions/vec3.length.html +1 -1
  452. package/docs/functions/vec3.mult.html +1 -1
  453. package/docs/functions/vec3.norm.html +1 -1
  454. package/docs/functions/vec3.sub.html +1 -1
  455. package/docs/functions/vec4.Parse.html +1 -1
  456. package/docs/functions/vec4.ParseF.html +1 -1
  457. package/docs/functions/vec4.Serialize.html +1 -1
  458. package/docs/functions/vec4.SerializeF.html +1 -1
  459. package/docs/hierarchy.html +1 -1
  460. package/docs/index.html +5 -56
  461. package/docs/interfaces/Blueprint.html +2 -2
  462. package/docs/interfaces/BlueprintConfig.html +2 -2
  463. package/docs/interfaces/ModData.html +2 -2
  464. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  465. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  466. package/docs/interfaces/SaveComponentHeader.html +2 -2
  467. package/docs/interfaces/SaveEntityHeader.html +2 -2
  468. package/docs/interfaces/SaveObjectHeader.html +4 -0
  469. package/docs/modules/ArrayProperty.html +5 -0
  470. package/docs/modules/BoolArrayProperty.html +3 -0
  471. package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
  472. package/docs/modules/ByteArrayProperty.html +3 -0
  473. package/docs/modules/CircuitSpecialProperties.html +3 -0
  474. package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
  475. package/docs/modules/ConveyorSpecialProperties.html +3 -0
  476. package/docs/modules/DoubleArrayProperty.html +3 -0
  477. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  478. package/docs/modules/EmptySpecialProperties.html +3 -0
  479. package/docs/modules/EnumArrayProperty.html +3 -0
  480. package/docs/modules/FICFrameRange.html +1 -1
  481. package/docs/modules/FloatArrayProperty.html +3 -0
  482. package/docs/modules/GUID.html +1 -1
  483. package/docs/modules/GUIDInfo.html +1 -1
  484. package/docs/modules/Int32ArrayProperty.html +3 -0
  485. package/docs/modules/Int32SetProperty.html +3 -0
  486. package/docs/modules/Int64ArrayProperty.html +3 -0
  487. package/docs/modules/Level.html +1 -1
  488. package/docs/modules/MD5Hash.html +1 -1
  489. package/docs/modules/ObjectArrayProperty.html +3 -0
  490. package/docs/modules/ObjectReference.html +1 -1
  491. package/docs/modules/ObjectSetProperty.html +3 -0
  492. package/docs/modules/ObjectsListSpecialProperties.html +3 -0
  493. package/docs/modules/PlayerSpecialProperties.html +3 -0
  494. package/docs/modules/PowerLineSpecialProperties.html +3 -0
  495. package/docs/modules/PropertiesList.html +1 -1
  496. package/docs/modules/SetProperty.html +5 -0
  497. package/docs/modules/SoftObjectArrayProperty.html +3 -0
  498. package/docs/modules/SoftObjectReference.html +1 -1
  499. package/docs/modules/SpecialDroneActionProperties.html +3 -0
  500. package/docs/modules/SpecialProperties.html +2 -1
  501. package/docs/modules/StrArrayProperty.html +3 -0
  502. package/docs/modules/StrSetProperty.html +3 -0
  503. package/docs/modules/StructArrayProperty.html +3 -0
  504. package/docs/modules/StructSetProperty.html +3 -0
  505. package/docs/modules/TextArrayProperty.html +3 -0
  506. package/docs/modules/Transform.html +1 -1
  507. package/docs/modules/Uint32SetProperty.html +3 -0
  508. package/docs/modules/VehicleSpecialProperties.html +3 -0
  509. package/docs/modules/col4.html +1 -1
  510. package/docs/modules/vec2.html +1 -1
  511. package/docs/modules/vec3.html +1 -1
  512. package/docs/modules/vec4.html +1 -1
  513. package/docs/modules.html +87 -11
  514. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
  515. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  516. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  517. package/docs/types/BasicStructPropertyValue.html +1 -1
  518. package/docs/types/BlueprintHeader.html +1 -1
  519. package/docs/types/BoolArrayProperty-1.html +1 -0
  520. package/docs/types/BoxStructPropertyValue.html +1 -1
  521. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
  522. package/docs/types/BuildableTypeInstance.html +1 -1
  523. package/docs/types/ByteArrayProperty-1.html +1 -0
  524. package/docs/types/BytePropertyValue.html +1 -1
  525. package/docs/types/CircuitSpecialProperties-1.html +1 -0
  526. package/docs/types/ClientIdentityInfo.html +1 -1
  527. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
  528. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  529. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  530. package/docs/types/ConveyorSpecialProperties-1.html +1 -0
  531. package/docs/types/DoubleArrayProperty-1.html +1 -0
  532. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  533. package/docs/types/EmptySpecialProperties-1.html +1 -0
  534. package/docs/types/EnumArrayProperty-1.html +1 -0
  535. package/docs/types/FICFrameRange-1.html +1 -1
  536. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  537. package/docs/types/FloatArrayProperty-1.html +1 -0
  538. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  539. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  540. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  541. package/docs/types/GUID-1.html +1 -1
  542. package/docs/types/GUIDInfo-1.html +1 -1
  543. package/docs/types/Int32ArrayProperty-1.html +1 -0
  544. package/docs/types/Int32SetProperty-1.html +1 -0
  545. package/docs/types/Int64ArrayProperty-1.html +1 -0
  546. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  547. package/docs/types/Level-1.html +1 -1
  548. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  549. package/docs/types/MD5Hash-1.html +1 -1
  550. package/docs/types/ObjectArrayProperty-1.html +1 -0
  551. package/docs/types/ObjectReference-1.html +1 -1
  552. package/docs/types/ObjectSetProperty-1.html +1 -0
  553. package/docs/types/ObjectsListSpecialProperties-1.html +1 -0
  554. package/docs/types/PlayerSpecialProperties-1.html +1 -0
  555. package/docs/types/PowerLineSpecialProperties-1.html +1 -0
  556. package/docs/types/PropertiesMap.html +1 -1
  557. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  558. package/docs/types/RoughSaveVersion.html +1 -1
  559. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
  560. package/docs/types/SoftObjectArrayProperty-1.html +1 -0
  561. package/docs/types/SoftObjectReference-1.html +1 -1
  562. package/docs/types/SpecialDroneAction.html +1 -0
  563. package/docs/types/SpecialDroneActionProperties-1.html +1 -0
  564. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
  565. package/docs/types/StrArrayProperty-1.html +1 -0
  566. package/docs/types/StrSetProperty-1.html +1 -0
  567. package/docs/types/StructArrayProperty-1.html +1 -0
  568. package/docs/types/StructSetProperty-1.html +1 -0
  569. package/docs/types/TextArrayProperty-1.html +1 -0
  570. package/docs/types/TextPropertyValue.html +1 -1
  571. package/docs/types/Transform-1.html +1 -1
  572. package/docs/types/Uint32SetProperty-1.html +1 -0
  573. package/docs/types/VehicleSpecialProperties-1.html +1 -0
  574. package/docs/types/col4-1.html +1 -1
  575. package/docs/types/vec2-1.html +1 -1
  576. package/docs/types/vec3-1.html +1 -1
  577. package/docs/types/vec4-1.html +1 -1
  578. package/docs/variables/EDIT.html +1 -1
  579. package/package.json +2 -2
  580. package/LICENSE +0 -21
  581. package/docs/classes/AbstractProperty.html +0 -4
  582. package/docs/classes/ArrayProperty.html +0 -13
  583. package/docs/classes/BasicProperty.html +0 -7
  584. package/docs/classes/SetProperty.html +0 -12
  585. package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
  586. package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
  587. package/docs/types/EmptySpecialProperties.html +0 -1
  588. package/docs/types/PlayerSpecialProperties.html +0 -1
  589. package/docs/types/PowerLineSpecialProperties.html +0 -1
  590. package/docs/types/SpecialAnyProperties.html +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.ts"],"names":[],"mappings":";;;AAGA,gDAA6C;AAEtC,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAQ9I,IAAiB,cAAc,CAmB9B;AAnBD,WAAiB,cAAc;IAEd,oBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAkB,EAAE;QACtI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAExF,OAAO;YACH,IAAI,EAAE,gBAAgB;YACtB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACc,CAAC;IAC/B,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAkB,EAAE,QAAwB,EAAQ,EAAE;QAC5E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAA;AACL,CAAC,EAnBgB,cAAc,8BAAd,cAAc,QAmB9B","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StrProperty } from '../StrProperty';\n\nexport const isStrSetProperty = (property: any): property is StrSetProperty => !Array.isArray(property) && property.type === 'StrSetProperty';\n\nexport type StrSetProperty = AbstractBaseProperty & {\n type: 'StrSetProperty';\n subtype: string;\n values: string[];\n};\n\nexport namespace StrSetProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StrSetProperty => {\n const values = new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader));\n\n return {\n type: 'StrSetProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies StrSetProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StrSetProperty): void => {\n property.values.forEach(value => StrProperty.SerializeValue(writer, value));\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
4
+ export declare const isStructSetProperty: (property: any) => property is StructSetProperty;
5
+ export type StructSetProperty = AbstractBaseProperty & {
6
+ type: 'StructSetProperty';
7
+ subtype: string;
8
+ values: any[];
9
+ };
10
+ export declare namespace StructSetProperty {
11
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number | undefined, propertyName: string) => StructSetProperty;
12
+ const Serialize: (writer: ByteWriter, property: StructSetProperty) => void;
13
+ }
14
+ //# sourceMappingURL=StructSetProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructSetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAInE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,EAAE,CAAC;CACjB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,SAAS,MAAM,4BAAoB,MAAM,KAAG,iBAsB9I,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAW3E,CAAA;CACJ"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StructSetProperty = exports.isStructSetProperty = void 0;
4
+ const parser_error_1 = require("../../../../../error/parser.error");
5
+ const GUID_1 = require("../../../structs/GUID");
6
+ const vec3_1 = require("../../../structs/vec3");
7
+ const isStructSetProperty = (property) => !Array.isArray(property) && property.type === 'StructSetProperty';
8
+ exports.isStructSetProperty = isStructSetProperty;
9
+ var StructSetProperty;
10
+ (function (StructSetProperty) {
11
+ StructSetProperty.Parse = (reader, elementCount, subtype, ueType, index = 0, propertyName) => {
12
+ let values;
13
+ if (propertyName === 'mRemovalLocations') {
14
+ values = new Array(elementCount).fill(0).map(() => vec3_1.vec3.ParseF(reader));
15
+ }
16
+ if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {
17
+ values = new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader));
18
+ }
19
+ else {
20
+ throw new parser_error_1.UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${propertyName}.`);
21
+ }
22
+ return {
23
+ type: 'StructSetProperty',
24
+ index,
25
+ ueType,
26
+ subtype,
27
+ values,
28
+ guidInfo: undefined,
29
+ name: ''
30
+ };
31
+ };
32
+ StructSetProperty.Serialize = (writer, property) => {
33
+ if (property.name === 'mRemovalLocations') {
34
+ console.warn('serializing mRemovalLocations, this is still under investigation.');
35
+ property.values.forEach(v => vec3_1.vec3.SerializeF(writer, v));
36
+ }
37
+ else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
38
+ property.values.forEach(v => GUID_1.GUID.write(writer, v));
39
+ }
40
+ else {
41
+ throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);
42
+ }
43
+ };
44
+ })(StructSetProperty || (exports.StructSetProperty = StructSetProperty = {}));
45
+ //# sourceMappingURL=StructSetProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,gDAA6C;AAC7C,gDAA6C;AAGtC,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAsCjC;AAtCD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAE,YAAoB,EAAqB,EAAE;QAE/J,IAAI,MAAiB,CAAC;QACtB,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAAC;YACvC,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5E,CAAC;QAED,IAAI,YAAY,KAAK,mBAAmB,IAAI,YAAY,KAAK,iBAAiB,EAAE,CAAC;YAC7E,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,iCAAkB,CAAC,mEAAmE,YAAY,GAAG,CAAC,CAAC;QACrH,CAAC;QAED,OAAO;YACH,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACiB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAG/E,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;YACxC,OAAO,CAAC,IAAI,CAAC,mEAAmE,CAAC,CAAC;YAClF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,IAAI,QAAQ,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;YACtF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,0EAA0E,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;QAChH,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EAtCgB,iBAAiB,iCAAjB,iBAAiB,QAsCjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { GUID } from '../../../structs/GUID';\nimport { vec3 } from '../../../structs/vec3';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\n\nexport const isStructSetProperty = (property: any): property is StructSetProperty => !Array.isArray(property) && property.type === 'StructSetProperty';\n\nexport type StructSetProperty = AbstractBaseProperty & {\n type: 'StructSetProperty';\n subtype: string;\n values: any[];\n};\n\nexport namespace StructSetProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0, propertyName: string): StructSetProperty => {\n\n let values: unknown[];\n if (propertyName === 'mRemovalLocations') {\n values = new Array(elementCount).fill(0).map(() => vec3.ParseF(reader));\n }\n\n if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n values = new Array(elementCount).fill(0).map(() => GUID.read(reader));\n } else {\n throw new UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${propertyName}.`);\n }\n\n return {\n type: 'StructSetProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies StructSetProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StructSetProperty): void => {\n\n // mRemovalLocations is 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 }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
4
+ export declare const isUint32SetProperty: (property: any) => property is Uint32SetProperty;
5
+ export type Uint32SetProperty = AbstractBaseProperty & {
6
+ type: 'Uint32SetProperty';
7
+ subtype: string;
8
+ values: number[];
9
+ };
10
+ export declare namespace Uint32SetProperty {
11
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => Uint32SetProperty;
12
+ const Serialize: (writer: ByteWriter, property: Uint32SetProperty) => void;
13
+ }
14
+ //# sourceMappingURL=Uint32SetProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint32SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,iBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Uint32SetProperty = exports.isUint32SetProperty = void 0;
4
+ const Uint32Property_1 = require("../Uint32Property");
5
+ const isUint32SetProperty = (property) => !Array.isArray(property) && property.type === 'Uint32SetProperty';
6
+ exports.isUint32SetProperty = isUint32SetProperty;
7
+ var Uint32SetProperty;
8
+ (function (Uint32SetProperty) {
9
+ Uint32SetProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
+ const values = new Array(elementCount).fill(0).map(() => Uint32Property_1.Uint32Property.ReadValue(reader));
11
+ return {
12
+ type: 'Uint32SetProperty',
13
+ index,
14
+ ueType,
15
+ subtype,
16
+ values,
17
+ guidInfo: undefined,
18
+ name: ''
19
+ };
20
+ };
21
+ Uint32SetProperty.Serialize = (writer, property) => {
22
+ property.values.forEach(value => Uint32Property_1.Uint32Property.SerializeValue(writer, value));
23
+ };
24
+ })(Uint32SetProperty || (exports.Uint32SetProperty = Uint32SetProperty = {}));
25
+ //# sourceMappingURL=Uint32SetProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uint32SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.ts"],"names":[],"mappings":";;;AAGA,sDAAmD;AAE5C,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAkBjC;AAlBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACzI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3F,OAAO;YACH,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACiB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACnF,CAAC,CAAA;AACL,CAAC,EAlBgB,iBAAiB,iCAAjB,iBAAiB,QAkBjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { Uint32Property } from '../Uint32Property';\n\nexport const isUint32SetProperty = (property: any): property is Uint32SetProperty => !Array.isArray(property) && property.type === 'Uint32SetProperty';\n\nexport type Uint32SetProperty = AbstractBaseProperty & {\n type: 'Uint32SetProperty';\n subtype: string;\n values: number[];\n};\n\nexport namespace Uint32SetProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): Uint32SetProperty => {\n const values = new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader));\n return {\n type: 'Uint32SetProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies Uint32SetProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: Uint32SetProperty): void => {\n property.values.forEach(value => Uint32Property.SerializeValue(writer, value));\n }\n}\n"]}
@@ -2,9 +2,9 @@ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
4
  import { SoftObjectReference } from '../../structs/SoftObjectReference';
5
- import { BasicProperty } from './BasicProperty';
6
- export declare const isSoftObjectProperty: (property: BasicProperty) => property is SoftObjectProperty;
7
- export declare class SoftObjectProperty extends BasicProperty {
5
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
6
+ export declare const isSoftObjectProperty: (property: any) => property is SoftObjectProperty;
7
+ export declare class SoftObjectProperty extends AbstractBaseProperty {
8
8
  value: SoftObjectReference;
9
9
  constructor(value: SoftObjectReference, ueType?: string, guidInfo?: GUIDInfo, index?: number);
10
10
  static Parse(reader: BinaryReadable, ueType: string, index?: number): SoftObjectProperty;
@@ -1 +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"}
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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,aAAc,GAAG,KAAG,QAAQ,IAAI,kBAAwF,CAAC;AAE1J,qBAAa,kBAAmB,SAAQ,oBAAoB;IAErC,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"}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SoftObjectProperty = exports.isSoftObjectProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
5
  const SoftObjectReference_1 = require("../../structs/SoftObjectReference");
6
- const BasicProperty_1 = require("./BasicProperty");
7
- const isSoftObjectProperty = (property) => property.type === 'SoftObjectProperty';
6
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
7
+ const isSoftObjectProperty = (property) => !Array.isArray(property) && property.type === 'SoftObjectProperty';
8
8
  exports.isSoftObjectProperty = isSoftObjectProperty;
9
- class SoftObjectProperty extends BasicProperty_1.BasicProperty {
9
+ class SoftObjectProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
10
10
  constructor(value, ueType = 'SoftObjectProperty', guidInfo = undefined, index = 0) {
11
11
  super({ type: 'SoftObjectProperty', ueType, guidInfo, index });
12
12
  this.value = value;
@@ -1 +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"]}
1
+ {"version":3,"file":"SoftObjectProperty.js","sourceRoot":"","sources":["../../../../../../src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tD,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 { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isSoftObjectProperty = (property: any): property is SoftObjectProperty => !Array.isArray(property) && property.type === 'SoftObjectProperty';\n\nexport class SoftObjectProperty extends AbstractBaseProperty {\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"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isStrProperty: (property: BasicProperty) => property is StrProperty;
6
- export declare class StrProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isStrProperty: (property: any) => property is StrProperty;
6
+ export declare class StrProperty extends AbstractBaseProperty {
7
7
  value: string;
8
8
  constructor(value: string, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): StrProperty;
@@ -1 +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"}
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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0E,CAAC;AAErI,qBAAa,WAAY,SAAQ,oBAAoB;IAE9B,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"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StrProperty = exports.isStrProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isStrProperty = (property) => property.type === 'StrProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isStrProperty = (property) => !Array.isArray(property) && property.type === 'StrProperty';
7
7
  exports.isStrProperty = isStrProperty;
8
- class StrProperty extends BasicProperty_1.BasicProperty {
8
+ class StrProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'StrProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'StrProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +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"]}
1
+ {"version":3,"file":"StrProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StrProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,aAAa,GAAG,CAAC,QAAa,EAA2B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAAxH,QAAA,aAAa,iBAA2G;AAErI,MAAa,WAAY,SAAQ,2CAAoB;IAEjD,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 { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isStrProperty = (property: any): property is StrProperty => !Array.isArray(property) && property.type === 'StrProperty';\n\nexport class StrProperty extends AbstractBaseProperty {\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"]}
@@ -2,9 +2,10 @@ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { col4 } from '../../structs/col4';
4
4
  import { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';
5
+ import { GUIDInfo } from '../../structs/GUIDInfo';
5
6
  import { vec3 } from '../../structs/vec3';
6
7
  import { vec4 } from '../../structs/vec4';
7
- import { AbstractBaseProperty } from './BasicProperty';
8
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
8
9
  export type BasicMultipleStructPropertyValue = {
9
10
  values: any;
10
11
  };
@@ -42,16 +43,15 @@ export type ClientIdentityInfo = {
42
43
  accountIds: Record<number, number[]>;
43
44
  };
44
45
  export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | ClientIdentityInfo | DynamicStructPropertyValue | col4 | vec3 | vec4 | string;
45
- export declare const isStructProperty: (property: AbstractBaseProperty) => property is StructProperty;
46
+ export declare const isStructProperty: (property: any) => property is StructProperty;
46
47
  export declare class StructProperty extends AbstractBaseProperty {
47
48
  subtype: string;
48
- guid: number;
49
49
  value: GENERIC_STRUCT_PROPERTY_VALUE;
50
50
  unk1?: number;
51
51
  unk2?: number;
52
52
  unk3?: number;
53
53
  unk4?: number;
54
- constructor(subtype: string, ueType?: string, index?: number, guid?: number);
54
+ constructor(subtype: string, ueType?: string, index?: number, guidInfo?: GUIDInfo);
55
55
  static Parse(reader: BinaryReadable, ueType: string, index: number, size: number): StructProperty;
56
56
  static ParseValue(reader: BinaryReadable, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE;
57
57
  static CalcOverhead(property: StructProperty): number;
@@ -1 +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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EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc;WA2C1F,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,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"}
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;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,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,wCAAw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AAyB,EAAE,KAAK,GAAE,MAAU,EAAE,QAAQ,GAAE,QAAoB;WAI1G,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc;WA2C1F,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,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"}
@@ -4,21 +4,21 @@ exports.StructProperty = exports.isStructProperty = void 0;
4
4
  const parser_error_1 = require("../../../../error/parser.error");
5
5
  const col4_1 = require("../../structs/col4");
6
6
  const DynamicStructPropertyValue_1 = require("../../structs/DynamicStructPropertyValue");
7
+ const GUIDInfo_1 = require("../../structs/GUIDInfo");
7
8
  const FICFrameRange_1 = require("../../structs/mods/FicsItCam/FICFrameRange");
8
9
  const vec3_1 = require("../../structs/vec3");
9
10
  const vec4_1 = require("../../structs/vec4");
10
- const BasicProperty_1 = require("./BasicProperty");
11
- const isStructProperty = (property) => property.type === 'StructProperty';
11
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
12
+ const isStructProperty = (property) => !Array.isArray(property) && property.type === 'StructProperty';
12
13
  exports.isStructProperty = isStructProperty;
13
- class StructProperty extends BasicProperty_1.AbstractBaseProperty {
14
- constructor(subtype, ueType = 'StructProperty', index = 0, guid = 0) {
15
- super('StructProperty', ueType, index);
14
+ class StructProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
15
+ constructor(subtype, ueType = 'StructProperty', index = 0, guidInfo = undefined) {
16
+ super({ type: 'StructProperty', ueType, index, guidInfo });
16
17
  this.subtype = subtype;
17
- this.guid = guid;
18
18
  this.value = { values: {} };
19
19
  }
20
20
  static Parse(reader, ueType, index, size) {
21
- const struct = new StructProperty(reader.readString(), ueType, index, reader.readInt32());
21
+ const struct = new StructProperty(reader.readString(), ueType, index, GUIDInfo_1.GUIDInfo.read(reader));
22
22
  const unk1 = reader.readInt32();
23
23
  if (unk1 !== 0) {
24
24
  struct.unk1 = unk1;
@@ -31,7 +31,7 @@ class StructProperty extends BasicProperty_1.AbstractBaseProperty {
31
31
  if (unk3 !== 0) {
32
32
  struct.unk3 = unk3;
33
33
  }
34
- const unk4 = reader.readByte();
34
+ const unk4 = reader.readInt32();
35
35
  if (unk4 !== 0) {
36
36
  struct.unk4 = unk4;
37
37
  }
@@ -160,11 +160,11 @@ class StructProperty extends BasicProperty_1.AbstractBaseProperty {
160
160
  }
161
161
  static Serialize(writer, property) {
162
162
  writer.writeString(property.subtype);
163
- writer.writeInt32(property.guid);
163
+ GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
164
164
  writer.writeInt32(property.unk1 ?? 0);
165
165
  writer.writeInt32(property.unk2 ?? 0);
166
166
  writer.writeInt32(property.unk3 ?? 0);
167
- writer.writeByte(property.unk4 ?? 0);
167
+ writer.writeInt32(property.unk4 ?? 0);
168
168
  StructProperty.SerializeValue(writer, property.subtype, property.value);
169
169
  }
170
170
  static SerializeValue(writer, subtype, value) {
@@ -1 +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;AAEn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ryReadable } 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"]}
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,qDAAkD;AAClD,8EAA2E;AAC3E,6CAA0C;AAC1C,6CAA0C;AAC1C,iEAA8D;AAiDvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAE9I,MAAa,cAAe,SAAQ,2CAAoB;IASpD,YAAmB,OAAe,EAAE,SAAiB,gBAAgB,EAAE,QAAgB,CAAC,EAAE,WAAqB,SAAS;QACpH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,E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,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBAEtC,IAAI,KAAK,CAAC,YAAY,IAAI,CAAC,EAAE,CAAC;oBAC1B,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,SAAU,CAAC,GAAG,CAAC,CAAC;oBACxC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,SAAU,CAAC,QAAQ,CAAC,CAAC;oBAC9C,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,SAAU,CAAC,UAAU,CAAC,CAAC;oBAC/C,MAAM,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 { GUIDInfo } from '../../structs/GUIDInfo';\nimport { FICFrameRange } from '../../structs/mods/FicsItCam/FICFrameRange';\nimport { vec3 } from '../../structs/vec3';\nimport { vec4 } from '../../structs/vec4';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\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: any): property is StructProperty => !Array.isArray(property) && 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, guidInfo: GUIDInfo = undefined) {\n super({ type: 'StructProperty', ueType, index, guidInfo });\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 GUIDInfo.read(reader)\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.readInt32();\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 GUIDInfo.write(writer, property.guidInfo);\n\n writer.writeInt32(property.unk1 ?? 0);\n writer.writeInt32(property.unk2 ?? 0);\n writer.writeInt32(property.unk3 ?? 0);\n writer.writeInt32(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"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isTextProperty: (property: BasicProperty) => property is TextProperty;
6
- export declare class TextProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isTextProperty: (property: any) => property is TextProperty;
6
+ export declare class TextProperty extends AbstractBaseProperty {
7
7
  value: TextPropertyValue;
8
8
  constructor(value: TextPropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): TextProperty;
@@ -1 +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,EAA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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"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextProperty = exports.isTextProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isTextProperty = (property) => property.type === 'TextProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isTextProperty = (property) => !Array.isArray(property) && property.type === 'TextProperty';
7
7
  exports.isTextProperty = isTextProperty;
8
- class TextProperty extends BasicProperty_1.BasicProperty {
8
+ class TextProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'TextProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'TextProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +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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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3D,IAAI,KAAK,CAAC,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"]}
1
+ {"version":3,"file":"TextProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,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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C,CAAC,CAAC,CAAC,CAAC;gBAE3D,IAAI,KAAK,CAAC,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 { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isTextProperty = (property: any): property is TextProperty => !Array.isArray(property) && property.type === 'TextProperty';\n\nexport class TextProperty extends AbstractBaseProperty {\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"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isUint32Property: (property: BasicProperty) => property is Uint32Property;
6
- export declare class Uint32Property extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isUint32Property: (property: any) => property is Uint32Property;
6
+ export declare class Uint32Property extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): Uint32Property;
@@ -1 +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,MAA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