@etothepii/satisfactory-file-parser 1.0.3 → 1.1.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 (326) hide show
  1. package/LICENCE.md +1 -1
  2. package/LICENSE +1 -1
  3. package/README.md +8 -2
  4. package/build/index.d.ts +10 -1
  5. package/build/index.d.ts.map +1 -1
  6. package/build/index.js +10 -1
  7. package/build/index.js.map +1 -1
  8. package/build/parser/satisfactory/save/object-references-list.d.ts +2 -2
  9. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
  10. package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
  11. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +2 -2
  12. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  13. package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
  14. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  15. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +3 -5
  16. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  17. package/build/parser/satisfactory/types/property/PropertiesList.js +10 -13
  18. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  19. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
  20. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
  21. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
  22. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
  23. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
  24. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
  25. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
  26. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
  27. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
  28. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
  29. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
  30. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
  31. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
  32. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
  33. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
  34. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
  35. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
  36. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
  37. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
  38. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
  39. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
  40. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
  41. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
  42. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
  43. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
  44. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
  45. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
  46. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
  47. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
  48. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
  49. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
  50. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
  51. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
  52. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
  53. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
  54. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
  55. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
  56. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
  57. package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
  58. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
  59. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
  60. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
  61. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
  62. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
  63. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  64. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +2 -21
  65. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  66. package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
  67. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
  68. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
  69. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +2 -2
  70. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  71. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  72. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +2 -2
  73. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
  74. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
  75. package/build/parser/satisfactory/types/structs/Transform.d.ts +3 -3
  76. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
  77. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
  78. package/build/parser/satisfactory/types/structs/col4.d.ts +3 -3
  79. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
  80. package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
  81. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
  82. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
  83. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
  84. package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
  85. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
  86. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
  87. package/build/parser/satisfactory/types/structs/vec3.d.ts +4 -4
  88. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
  89. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
  90. package/build/parser/satisfactory/types/structs/vec4.d.ts +3 -3
  91. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
  92. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
  93. package/docs/assets/navigation.js +1 -1
  94. package/docs/assets/search.js +1 -1
  95. package/docs/classes/AbstractBaseProperty.html +2 -2
  96. package/docs/classes/AbstractProperty.html +2 -2
  97. package/docs/classes/ArrayProperty.html +2 -2
  98. package/docs/classes/BasicProperty.html +2 -2
  99. package/docs/classes/BlueprintConfigReader.html +3 -3
  100. package/docs/classes/BlueprintConfigWriter.html +3 -3
  101. package/docs/classes/BlueprintReader.html +3 -3
  102. package/docs/classes/BlueprintWriter.html +3 -3
  103. package/docs/classes/BoolProperty.html +2 -2
  104. package/docs/classes/ByteProperty.html +2 -2
  105. package/docs/classes/CompressionLibraryError.html +2 -2
  106. package/docs/classes/CorruptSaveError.html +2 -2
  107. package/docs/classes/DoubleProperty.html +2 -2
  108. package/docs/classes/EnumProperty.html +2 -2
  109. package/docs/classes/FloatProperty.html +2 -2
  110. package/docs/classes/Int32Property.html +2 -2
  111. package/docs/classes/Int64Property.html +2 -2
  112. package/docs/classes/Int8Property.html +2 -2
  113. package/docs/classes/MapProperty.html +2 -2
  114. package/docs/classes/ObjectProperty.html +2 -2
  115. package/docs/classes/Parser.html +6 -6
  116. package/docs/classes/ParserError.html +2 -2
  117. package/docs/classes/ReadableStreamParser.html +2 -2
  118. package/docs/classes/SatisfactorySave.html +2 -2
  119. package/docs/classes/SaveComponent.html +2 -2
  120. package/docs/classes/SaveEntity.html +2 -2
  121. package/docs/classes/SaveReader.html +3 -3
  122. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  123. package/docs/classes/SaveStreamWriter.html +2 -2
  124. package/docs/classes/SaveWriter.html +3 -3
  125. package/docs/classes/SetProperty.html +2 -2
  126. package/docs/classes/StrProperty.html +2 -2
  127. package/docs/classes/StructProperty.html +2 -2
  128. package/docs/classes/TextProperty.html +2 -2
  129. package/docs/classes/TimeoutError.html +2 -2
  130. package/docs/classes/Uint32Property.html +2 -2
  131. package/docs/classes/Uint64Property.html +2 -2
  132. package/docs/classes/Uint8Property.html +2 -2
  133. package/docs/classes/UnimplementedError.html +2 -2
  134. package/docs/classes/UnsupportedVersionError.html +2 -2
  135. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -0
  136. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
  137. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
  138. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
  139. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
  140. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
  141. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
  142. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
  143. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  144. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  145. package/docs/functions/EmptySpecialProperties.Parse.html +1 -0
  146. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
  147. package/docs/functions/FICFrameRange.Parse.html +1 -1
  148. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  149. package/docs/functions/GUID.read.html +1 -1
  150. package/docs/functions/GUID.write.html +1 -1
  151. package/docs/functions/GUIDInfo.read.html +1 -1
  152. package/docs/functions/GUIDInfo.write.html +1 -1
  153. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  154. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  155. package/docs/functions/Level.ReadLevel.html +1 -1
  156. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  157. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  158. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  159. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  160. package/docs/functions/Level.SerializeLevel.html +1 -1
  161. package/docs/functions/MD5Hash.read.html +1 -1
  162. package/docs/functions/MD5Hash.write.html +1 -1
  163. package/docs/functions/ObjectReference.read.html +1 -1
  164. package/docs/functions/ObjectReference.write.html +1 -1
  165. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -0
  166. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
  167. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
  168. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
  169. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
  170. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
  171. package/docs/functions/PropertiesList.ParseList.html +1 -1
  172. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  173. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  174. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  175. package/docs/functions/SoftObjectReference.read.html +1 -1
  176. package/docs/functions/SoftObjectReference.write.html +1 -1
  177. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -0
  178. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
  179. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  180. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  181. package/docs/functions/Transform.Parse.html +1 -1
  182. package/docs/functions/Transform.ParseF.html +1 -1
  183. package/docs/functions/Transform.Serialize.html +1 -1
  184. package/docs/functions/Transform.SerializeF.html +1 -1
  185. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -0
  186. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
  187. package/docs/functions/col4.ParseBGRA.html +1 -1
  188. package/docs/functions/col4.ParseRGBA.html +1 -1
  189. package/docs/functions/col4.SerializeBGRA.html +1 -1
  190. package/docs/functions/col4.SerializeRGBA.html +1 -1
  191. package/docs/functions/isArrayProperty.html +1 -1
  192. package/docs/functions/isBoolProperty.html +1 -1
  193. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -0
  194. package/docs/functions/isByteProperty.html +1 -1
  195. package/docs/functions/isCircuitSpecialProperties.html +1 -0
  196. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
  197. package/docs/functions/isConveyorSpecialProperties.html +1 -0
  198. package/docs/functions/isDoubleProperty.html +1 -1
  199. package/docs/functions/isEmptySpecialProperties.html +1 -0
  200. package/docs/functions/isEnumProperty.html +1 -1
  201. package/docs/functions/isFloatProperty.html +1 -1
  202. package/docs/functions/isInt32Property.html +1 -1
  203. package/docs/functions/isInt64Property.html +1 -1
  204. package/docs/functions/isInt8Property.html +1 -1
  205. package/docs/functions/isMapProperty.html +1 -1
  206. package/docs/functions/isObjectProperty.html +1 -1
  207. package/docs/functions/isObjectsListSpecialProperties.html +1 -0
  208. package/docs/functions/isPlayerSpecialProperties.html +1 -0
  209. package/docs/functions/isPowerLineSpecialProperties.html +1 -0
  210. package/docs/functions/isSaveComponent.html +1 -1
  211. package/docs/functions/isSaveEntity.html +1 -1
  212. package/docs/functions/isSetProperty.html +1 -1
  213. package/docs/functions/isSpecialDroneActionProperties.html +1 -0
  214. package/docs/functions/isStrProperty.html +1 -1
  215. package/docs/functions/isStructProperty.html +1 -1
  216. package/docs/functions/isTextProperty.html +1 -1
  217. package/docs/functions/isUInt64Property.html +1 -1
  218. package/docs/functions/isUint32Property.html +1 -1
  219. package/docs/functions/isUint8Property.html +1 -1
  220. package/docs/functions/isVehicleSpecialProperties.html +1 -0
  221. package/docs/functions/vec2.Parse.html +1 -1
  222. package/docs/functions/vec2.ParseF.html +1 -1
  223. package/docs/functions/vec2.Serialize.html +1 -1
  224. package/docs/functions/vec2.SerializeF.html +1 -1
  225. package/docs/functions/vec3.Parse.html +1 -1
  226. package/docs/functions/vec3.ParseF.html +1 -1
  227. package/docs/functions/vec3.ParseInt.html +1 -1
  228. package/docs/functions/vec3.Serialize.html +1 -1
  229. package/docs/functions/vec3.SerializeF.html +1 -1
  230. package/docs/functions/vec3.SerializeInt.html +1 -1
  231. package/docs/functions/vec3.add.html +1 -1
  232. package/docs/functions/vec3.length.html +1 -1
  233. package/docs/functions/vec3.mult.html +1 -1
  234. package/docs/functions/vec3.norm.html +1 -1
  235. package/docs/functions/vec3.sub.html +1 -1
  236. package/docs/functions/vec4.Parse.html +1 -1
  237. package/docs/functions/vec4.ParseF.html +1 -1
  238. package/docs/functions/vec4.Serialize.html +1 -1
  239. package/docs/functions/vec4.SerializeF.html +1 -1
  240. package/docs/index.html +8 -3
  241. package/docs/interfaces/Blueprint.html +2 -2
  242. package/docs/interfaces/BlueprintConfig.html +2 -2
  243. package/docs/interfaces/ModData.html +2 -2
  244. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  245. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  246. package/docs/interfaces/SaveComponentHeader.html +2 -2
  247. package/docs/interfaces/SaveEntityHeader.html +2 -2
  248. package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
  249. package/docs/modules/CircuitSpecialProperties.html +3 -0
  250. package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
  251. package/docs/modules/ConveyorSpecialProperties.html +3 -0
  252. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  253. package/docs/modules/EmptySpecialProperties.html +3 -0
  254. package/docs/modules/FICFrameRange.html +1 -1
  255. package/docs/modules/GUID.html +1 -1
  256. package/docs/modules/GUIDInfo.html +1 -1
  257. package/docs/modules/Level.html +1 -1
  258. package/docs/modules/MD5Hash.html +1 -1
  259. package/docs/modules/ObjectReference.html +1 -1
  260. package/docs/modules/ObjectsListSpecialProperties.html +3 -0
  261. package/docs/modules/PlayerSpecialProperties.html +3 -0
  262. package/docs/modules/PowerLineSpecialProperties.html +3 -0
  263. package/docs/modules/PropertiesList.html +1 -1
  264. package/docs/modules/SoftObjectReference.html +1 -1
  265. package/docs/modules/SpecialDroneActionProperties.html +3 -0
  266. package/docs/modules/SpecialProperties.html +2 -1
  267. package/docs/modules/Transform.html +1 -1
  268. package/docs/modules/VehicleSpecialProperties.html +3 -0
  269. package/docs/modules/col4.html +1 -1
  270. package/docs/modules/vec2.html +1 -1
  271. package/docs/modules/vec3.html +1 -1
  272. package/docs/modules/vec4.html +1 -1
  273. package/docs/modules.html +32 -7
  274. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  275. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  276. package/docs/types/BasicStructPropertyValue.html +1 -1
  277. package/docs/types/BlueprintHeader.html +1 -1
  278. package/docs/types/BoxStructPropertyValue.html +1 -1
  279. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
  280. package/docs/types/BuildableTypeInstance.html +1 -1
  281. package/docs/types/BytePropertyValue.html +1 -1
  282. package/docs/types/CircuitSpecialProperties-1.html +1 -0
  283. package/docs/types/ClientIdentityInfo.html +1 -1
  284. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
  285. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  286. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  287. package/docs/types/ConveyorSpecialProperties-1.html +1 -0
  288. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  289. package/docs/types/EmptySpecialProperties-1.html +1 -0
  290. package/docs/types/FICFrameRange-1.html +1 -1
  291. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  292. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  293. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  294. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  295. package/docs/types/GUID-1.html +1 -1
  296. package/docs/types/GUIDInfo-1.html +1 -1
  297. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  298. package/docs/types/Level-1.html +1 -1
  299. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  300. package/docs/types/MD5Hash-1.html +1 -1
  301. package/docs/types/ObjectReference-1.html +1 -1
  302. package/docs/types/ObjectsListSpecialProperties-1.html +1 -0
  303. package/docs/types/PlayerSpecialProperties-1.html +1 -0
  304. package/docs/types/PowerLineSpecialProperties-1.html +1 -0
  305. package/docs/types/PropertiesMap.html +1 -1
  306. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  307. package/docs/types/RoughSaveVersion.html +1 -1
  308. package/docs/types/SoftObjectReference-1.html +1 -1
  309. package/docs/types/SpecialDroneAction.html +1 -0
  310. package/docs/types/SpecialDroneActionProperties-1.html +1 -0
  311. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
  312. package/docs/types/TextPropertyValue.html +1 -1
  313. package/docs/types/Transform-1.html +1 -1
  314. package/docs/types/VehicleSpecialProperties-1.html +1 -0
  315. package/docs/types/col4-1.html +1 -1
  316. package/docs/types/vec2-1.html +1 -1
  317. package/docs/types/vec3-1.html +1 -1
  318. package/docs/types/vec4-1.html +1 -1
  319. package/docs/variables/EDIT.html +1 -1
  320. package/package.json +1 -1
  321. package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
  322. package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
  323. package/docs/types/EmptySpecialProperties.html +0 -1
  324. package/docs/types/PlayerSpecialProperties.html +0 -1
  325. package/docs/types/PowerLineSpecialProperties.html +0 -1
  326. package/docs/types/SpecialAnyProperties.html +0 -1
package/LICENCE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 etothepii
3
+ Copyright (c) 2021-2024 etothepii
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 etothepii
3
+ Copyright (c) 2021-2024 etothepii
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -164,11 +164,17 @@ const blueprint = Parser.ParseBlueprintFiles('Myblueprint', file, configFile, {
164
164
  You can always raise an issue on the linked github project or hit me up on the satisfactory discord `etothepii`.
165
165
 
166
166
  # Changelog
167
- ## [1.0.3] (2024-10-17)
167
+ ### [1.1.1] (2024-10-21)
168
+ #### Improved Special Properties
169
+ * Improved on SpecialProperties of BuildableSubsystem and ConveyorChainActor as the meaning became more clear.
170
+ * Special Properties are refactored into their own namespaces and exported.
171
+ * The union type `SpecialAnyProperties` is now automatically derived and more concisely named `SpecialProperties.AvailableSpecialPropertiesTypes` instead, in case you need it.
172
+
173
+ ### [1.0.3] (2024-10-17)
168
174
  #### Hotfix
169
175
  * fix being forced to use callbacks when writing saves or blueprints.
170
176
 
171
- ## [1.0.2] (2024-10-17)
177
+ ### [1.0.2] (2024-10-17)
172
178
  #### Internal renaming
173
179
  * `...SpecialProperty` got all renamed to `...SpecialProperties`.
174
180
 
package/build/index.d.ts CHANGED
@@ -24,8 +24,17 @@ export * from './parser/satisfactory/types/property/generic/Uint32Property';
24
24
  export * from './parser/satisfactory/types/property/generic/Uint64Property';
25
25
  export * from './parser/satisfactory/types/property/generic/Uint8Property';
26
26
  export * from './parser/satisfactory/types/property/PropertiesList';
27
- export * from './parser/satisfactory/types/property/special/SpecialAnyProperties';
27
+ export * from './parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties';
28
+ export * from './parser/satisfactory/types/property/special/CircuitSpecialProperties';
29
+ export * from './parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties';
30
+ export * from './parser/satisfactory/types/property/special/ConveyorSpecialProperties';
31
+ export * from './parser/satisfactory/types/property/special/EmptySpecialProperties';
32
+ export * from './parser/satisfactory/types/property/special/ObjectsListSpecialProperties';
33
+ export * from './parser/satisfactory/types/property/special/PlayerSpecialProperties';
34
+ export * from './parser/satisfactory/types/property/special/PowerLineSpecialProperties';
35
+ export * from './parser/satisfactory/types/property/special/SpecialDroneActionProperties';
28
36
  export * from './parser/satisfactory/types/property/special/SpecialProperties';
37
+ export * from './parser/satisfactory/types/property/special/VehicleSpecialProperties';
29
38
  export * from './parser/satisfactory/types/structs/col4';
30
39
  export * from './parser/satisfactory/types/structs/DynamicStructPropertyValue';
31
40
  export * from './parser/satisfactory/types/structs/GUID';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iDAAiD,CAAC;AAChE,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4D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DAAqD,CAAC;AACpE,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AAGzD,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAC1G,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAGrF,cAAc,6BAA6B,CAAC;AAG5C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAGvF,cAAc,2CAA2C,CAAC"}
package/build/index.js CHANGED
@@ -41,8 +41,17 @@ __exportStar(require("./parser/satisfactory/types/property/generic/Uint32Propert
41
41
  __exportStar(require("./parser/satisfactory/types/property/generic/Uint64Property"), exports);
42
42
  __exportStar(require("./parser/satisfactory/types/property/generic/Uint8Property"), exports);
43
43
  __exportStar(require("./parser/satisfactory/types/property/PropertiesList"), exports);
44
- __exportStar(require("./parser/satisfactory/types/property/special/SpecialAnyProperties"), exports);
44
+ __exportStar(require("./parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties"), exports);
45
+ __exportStar(require("./parser/satisfactory/types/property/special/CircuitSpecialProperties"), exports);
46
+ __exportStar(require("./parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties"), exports);
47
+ __exportStar(require("./parser/satisfactory/types/property/special/ConveyorSpecialProperties"), exports);
48
+ __exportStar(require("./parser/satisfactory/types/property/special/EmptySpecialProperties"), exports);
49
+ __exportStar(require("./parser/satisfactory/types/property/special/ObjectsListSpecialProperties"), exports);
50
+ __exportStar(require("./parser/satisfactory/types/property/special/PlayerSpecialProperties"), exports);
51
+ __exportStar(require("./parser/satisfactory/types/property/special/PowerLineSpecialProperties"), exports);
52
+ __exportStar(require("./parser/satisfactory/types/property/special/SpecialDroneActionProperties"), exports);
45
53
  __exportStar(require("./parser/satisfactory/types/property/special/SpecialProperties"), exports);
54
+ __exportStar(require("./parser/satisfactory/types/property/special/VehicleSpecialProperties"), exports);
46
55
  __exportStar(require("./parser/satisfactory/types/structs/col4"), exports);
47
56
  __exportStar(require("./parser/satisfactory/types/structs/DynamicStructPropertyValue"), exports);
48
57
  __exportStar(require("./parser/satisfactory/types/structs/GUID"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,kFAAgE;AAChE,yEAAuD;AACvD,+EAA6D;AAC7D,wEAAsD;AACtD,oFAAkE;AAClE,iFAA+D;AAC/D,6FAA2E;AAC3E,6FAA2E;AAC3E,4FAA0E;AAC1E,4FAA0E;AAC1E,8FAA4E;AAC5E,4FAA0E;AAC1E,6FAA2E;AAC3E,6FAA2E;AAC3E,6FAA2E;AAC3E,4FAA0E;AAC1E,2FAAyE;AACzE,8FAA4E;AAC5E,2FAAyE;AACzE,2FAAyE;AACzE,8FAA4E;AAC5E,4FAA0E;AAC1E,8FAA4E;AAC5E,8FAA4E;AAC5E,6FAA2E;AAC3E,sFAAoE;AACpE,oGAAkF;AAClF,iGAA+E;AAC/E,2EAAyD;AACzD,iGAA+E;AAC/E,2EAAyD;AACzD,+EAA6D;AAC7D,8EAA4D;AAC5D,mGAAiF;AACjF,sFAAoE;AACpE,0FAAwE;AACxE,gFAA8D;AAC9D,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AAGzD,qFAA0G;AAAjG,yHAAA,qBAAqB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAC/C,qFAA0G;AAAjG,yHAAA,qBAAqB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAC/C,sEAAoE;AAA3D,yGAAA,UAAU,OAAA;AACnB,sEAAoE;AAA3D,yGAAA,UAAU,OAAA;AACnB,sGAAkG;AAAzF,yIAAA,yBAAyB,OAAA;AAClC,8FAAqF;AAA5E,4HAAA,gBAAgB,OAAA;AAGzB,8DAA4C;AAG5C,0CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,0FAAuF;AAA9E,8HAAA,oBAAoB,OAAA;AAG7B,4EAA0D","sourcesContent":["// types & classes for convenience\nexport * from './parser/satisfactory/blueprint/blueprint.types';\nexport * from './parser/satisfactory/save/level.class';\nexport * from './parser/satisfactory/save/satisfactory-save';\nexport * from './parser/satisfactory/save/save.types';\nexport * from './parser/satisfactory/types/objects/SaveComponent';\nexport * from './parser/satisfactory/types/objects/SaveEntity';\nexport * from './parser/satisfactory/types/property/generic/ArrayProperty';\nexport * from './parser/satisfactory/types/property/generic/BasicProperty';\nexport * from './parser/satisfactory/types/property/generic/BoolProperty';\nexport * from './parser/satisfactory/types/property/generic/ByteProperty';\nexport * from './parser/satisfactory/types/property/generic/DoubleProperty';\nexport * from './parser/satisfactory/types/property/generic/EnumProperty';\nexport * from './parser/satisfactory/types/property/generic/FloatProperty';\nexport * from './parser/satisfactory/types/property/generic/Int32Property';\nexport * from './parser/satisfactory/types/property/generic/Int64Property';\nexport * from './parser/satisfactory/types/property/generic/Int8Property';\nexport * from './parser/satisfactory/types/property/generic/MapProperty';\nexport * from './parser/satisfactory/types/property/generic/ObjectProperty';\nexport * from './parser/satisfactory/types/property/generic/SetProperty';\nexport * from './parser/satisfactory/types/property/generic/StrProperty';\nexport * from './parser/satisfactory/types/property/generic/StructProperty';\nexport * from './parser/satisfactory/types/property/generic/TextProperty';\nexport * from './parser/satisfactory/types/property/generic/Uint32Property';\nexport * from './parser/satisfactory/types/property/generic/Uint64Property';\nexport * from './parser/satisfactory/types/property/generic/Uint8Property';\nexport * from './parser/satisfactory/types/property/PropertiesList';\nexport * from './parser/satisfactory/types/property/special/SpecialAnyProperties';\nexport * from './parser/satisfactory/types/property/special/SpecialProperties';\nexport * from './parser/satisfactory/types/structs/col4';\nexport * from './parser/satisfactory/types/structs/DynamicStructPropertyValue';\nexport * from './parser/satisfactory/types/structs/GUID';\nexport * from './parser/satisfactory/types/structs/GUIDInfo';\nexport * from './parser/satisfactory/types/structs/MD5Hash';\nexport * from './parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange';\nexport * from './parser/satisfactory/types/structs/ObjectReference';\nexport * from './parser/satisfactory/types/structs/SoftObjectReference';\nexport * from './parser/satisfactory/types/structs/Transform';\nexport * from './parser/satisfactory/types/structs/vec2';\nexport * from './parser/satisfactory/types/structs/vec3';\nexport * from './parser/satisfactory/types/structs/vec4';\n\n// should better be removed in a future update to prevent shenanigans.\nexport { BlueprintConfigReader, BlueprintReader } from './parser/satisfactory/blueprint/blueprint-reader';\nexport { BlueprintConfigWriter, BlueprintWriter } from './parser/satisfactory/blueprint/blueprint-writer';\nexport { SaveReader } from './parser/satisfactory/save/save-reader';\nexport { SaveWriter } from './parser/satisfactory/save/save-writer';\nexport { SaveStreamJsonStringifier } from './parser/stream/reworked/save-stream-json-stringifier';\nexport { SaveStreamWriter } from './parser/stream/reworked/save-stream-writer.class';\n\n// errors\nexport * from './parser/error/parser.error';\n\n// facade\nexport { Parser } from './parser/parser';\nexport { ReadableStreamParser } from './parser/stream/reworked/readable-stream-parser';\n\n// edit\nexport * from './parser/satisfactory/edit/edit-constants';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,kFAAgE;AAChE,yEAAuD;AACvD,+EAA6D;AAC7D,wEAAsD;AACtD,oFAAkE;AAClE,iFAA+D;AAC/D,6FAA2E;AAC3E,6FAA2E;AAC3E,4FAA0E;AAC1E,4FAA0E;AAC1E,8FAA4E;AAC5E,4FAA0E;AAC1E,6FAA2E;AAC3E,6FAA2E;AAC3E,6FAA2E;AAC3E,4FAA0E;AAC1E,2FAAyE;AACzE,8FAA4E;AAC5E,2FAAyE;AACzE,2FAAyE;AACzE,8FAA4E;AAC5E,4FAA0E;AAC1E,8FAA4E;AAC5E,8FAA4E;AAC5E,6FAA2E;AAC3E,sFAAoE;AACpE,mHAAiG;AACjG,wGAAsF;AACtF,mHAAiG;AACjG,yGAAuF;AACvF,sGAAoF;AACpF,4GAA0F;AAC1F,uGAAqF;AACrF,0GAAwF;AACxF,4GAA0F;AAC1F,iGAA+E;AAC/E,wGAAsF;AACtF,2EAAyD;AACzD,iGAA+E;AAC/E,2EAAyD;AACzD,+EAA6D;AAC7D,8EAA4D;AAC5D,mGAAiF;AACjF,sFAAoE;AACpE,0FAAwE;AACxE,gFAA8D;AAC9D,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AAGzD,qFAA0G;AAAjG,yHAAA,qBAAqB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAC/C,qFAA0G;AAAjG,yHAAA,qBAAqB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAC/C,sEAAoE;AAA3D,yGAAA,UAAU,OAAA;AACnB,sEAAoE;AAA3D,yGAAA,UAAU,OAAA;AACnB,sGAAkG;AAAzF,yIAAA,yBAAyB,OAAA;AAClC,8FAAqF;AAA5E,4HAAA,gBAAgB,OAAA;AAGzB,8DAA4C;AAG5C,0CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,0FAAuF;AAA9E,8HAAA,oBAAoB,OAAA;AAG7B,4EAA0D","sourcesContent":["// types & classes for convenience\nexport * from './parser/satisfactory/blueprint/blueprint.types';\nexport * from './parser/satisfactory/save/level.class';\nexport * from './parser/satisfactory/save/satisfactory-save';\nexport * from './parser/satisfactory/save/save.types';\nexport * from './parser/satisfactory/types/objects/SaveComponent';\nexport * from './parser/satisfactory/types/objects/SaveEntity';\nexport * from './parser/satisfactory/types/property/generic/ArrayProperty';\nexport * from './parser/satisfactory/types/property/generic/BasicProperty';\nexport * from './parser/satisfactory/types/property/generic/BoolProperty';\nexport * from './parser/satisfactory/types/property/generic/ByteProperty';\nexport * from './parser/satisfactory/types/property/generic/DoubleProperty';\nexport * from './parser/satisfactory/types/property/generic/EnumProperty';\nexport * from './parser/satisfactory/types/property/generic/FloatProperty';\nexport * from './parser/satisfactory/types/property/generic/Int32Property';\nexport * from './parser/satisfactory/types/property/generic/Int64Property';\nexport * from './parser/satisfactory/types/property/generic/Int8Property';\nexport * from './parser/satisfactory/types/property/generic/MapProperty';\nexport * from './parser/satisfactory/types/property/generic/ObjectProperty';\nexport * from './parser/satisfactory/types/property/generic/SetProperty';\nexport * from './parser/satisfactory/types/property/generic/StrProperty';\nexport * from './parser/satisfactory/types/property/generic/StructProperty';\nexport * from './parser/satisfactory/types/property/generic/TextProperty';\nexport * from './parser/satisfactory/types/property/generic/Uint32Property';\nexport * from './parser/satisfactory/types/property/generic/Uint64Property';\nexport * from './parser/satisfactory/types/property/generic/Uint8Property';\nexport * from './parser/satisfactory/types/property/PropertiesList';\nexport * from './parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/CircuitSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/ConveyorSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/EmptySpecialProperties';\nexport * from './parser/satisfactory/types/property/special/ObjectsListSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/PlayerSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/PowerLineSpecialProperties';\nexport * from './parser/satisfactory/types/property/special/SpecialDroneActionProperties';\nexport * from './parser/satisfactory/types/property/special/SpecialProperties';\nexport * from './parser/satisfactory/types/property/special/VehicleSpecialProperties';\nexport * from './parser/satisfactory/types/structs/col4';\nexport * from './parser/satisfactory/types/structs/DynamicStructPropertyValue';\nexport * from './parser/satisfactory/types/structs/GUID';\nexport * from './parser/satisfactory/types/structs/GUIDInfo';\nexport * from './parser/satisfactory/types/structs/MD5Hash';\nexport * from './parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange';\nexport * from './parser/satisfactory/types/structs/ObjectReference';\nexport * from './parser/satisfactory/types/structs/SoftObjectReference';\nexport * from './parser/satisfactory/types/structs/Transform';\nexport * from './parser/satisfactory/types/structs/vec2';\nexport * from './parser/satisfactory/types/structs/vec3';\nexport * from './parser/satisfactory/types/structs/vec4';\n\n// should better be removed in a future update to prevent shenanigans.\nexport { BlueprintConfigReader, BlueprintReader } from './parser/satisfactory/blueprint/blueprint-reader';\nexport { BlueprintConfigWriter, BlueprintWriter } from './parser/satisfactory/blueprint/blueprint-writer';\nexport { SaveReader } from './parser/satisfactory/save/save-reader';\nexport { SaveWriter } from './parser/satisfactory/save/save-writer';\nexport { SaveStreamJsonStringifier } from './parser/stream/reworked/save-stream-json-stringifier';\nexport { SaveStreamWriter } from './parser/stream/reworked/save-stream-writer.class';\n\n// errors\nexport * from './parser/error/parser.error';\n\n// facade\nexport { Parser } from './parser/parser';\nexport { ReadableStreamParser } from './parser/stream/reworked/readable-stream-parser';\n\n// edit\nexport * from './parser/satisfactory/edit/edit-constants';\n"]}
@@ -1,8 +1,8 @@
1
1
  import { BinaryReadable } from '../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../byte/byte-writer.class';
2
+ import { BinaryWritable } from '../../byte/binary-writable.interface';
3
3
  import { ObjectReference } from '../types/structs/ObjectReference';
4
4
  export declare namespace ObjectReferencesList {
5
- const SerializeList: (writer: ByteWriter, collectables: ObjectReference[]) => void;
5
+ const SerializeList: (writer: BinaryWritable, collectables: ObjectReference[]) => void;
6
6
  const ReadList: (reader: BinaryReadable) => ObjectReference[];
7
7
  }
8
8
  //# sourceMappingURL=object-references-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"object-references-list.d.ts","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/object-references-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,yBAAiB,oBAAoB,CAAC;IAE3B,MAAM,aAAa,WAAY,UAAU,gBAAgB,eAAe,EAAE,KAAG,IAKnF,CAAA;IAEM,MAAM,QAAQ,WAAY,cAAc,KAAG,eAAe,EAOhE,CAAA;CACJ"}
1
+ {"version":3,"file":"object-references-list.d.ts","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/object-references-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,yBAAiB,oBAAoB,CAAC;IAE3B,MAAM,aAAa,WAAY,cAAc,gBAAgB,eAAe,EAAE,KAAG,IAKvF,CAAA;IAEM,MAAM,QAAQ,WAAY,cAAc,KAAG,eAAe,EAOhE,CAAA;CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"object-references-list.js","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/object-references-list.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE,IAAiB,oBAAoB,CAiBpC;AAjBD,WAAiB,oBAAoB;IAEpB,kCAAa,GAAG,CAAC,MAAkB,EAAE,YAA+B,EAAQ,EAAE;QACvF,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACvC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;YACrC,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC,CAAA;IAEY,6BAAQ,GAAG,CAAC,MAAsB,EAAqB,EAAE;QAClE,MAAM,SAAS,GAAsB,EAAE,CAAC;QACxC,IAAI,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,CAAA;AACL,CAAC,EAjBgB,oBAAoB,oCAApB,oBAAoB,QAiBpC","sourcesContent":["import { BinaryReadable } from '../../byte/binary-readable.interface';\r\nimport { ByteWriter } from '../../byte/byte-writer.class';\r\nimport { ObjectReference } from '../types/structs/ObjectReference';\r\n\r\nexport namespace ObjectReferencesList {\r\n\r\n export const SerializeList = (writer: ByteWriter, collectables: ObjectReference[]): void => {\r\n writer.writeInt32(collectables.length);\r\n for (const collectable of collectables) {\r\n ObjectReference.write(writer, collectable);\r\n }\r\n }\r\n\r\n export const ReadList = (reader: BinaryReadable): ObjectReference[] => {\r\n const collected: ObjectReference[] = [];\r\n let count = reader.readInt32();\r\n for (let i = 0; i < count; i++) {\r\n collected.push(ObjectReference.read(reader));\r\n }\r\n return collected;\r\n }\r\n}"]}
1
+ {"version":3,"file":"object-references-list.js","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/object-references-list.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE,IAAiB,oBAAoB,CAiBpC;AAjBD,WAAiB,oBAAoB;IAEpB,kCAAa,GAAG,CAAC,MAAsB,EAAE,YAA+B,EAAQ,EAAE;QAC3F,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACvC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;YACrC,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC,CAAA;IAEY,6BAAQ,GAAG,CAAC,MAAsB,EAAqB,EAAE;QAClE,MAAM,SAAS,GAAsB,EAAE,CAAC;QACxC,IAAI,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,SAAS,CAAC,IAAI,CAAC,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,CAAA;AACL,CAAC,EAjBgB,oBAAoB,oCAApB,oBAAoB,QAiBpC","sourcesContent":["import { BinaryReadable } from '../../byte/binary-readable.interface';\r\nimport { BinaryWritable } from '../../byte/binary-writable.interface';\r\nimport { ObjectReference } from '../types/structs/ObjectReference';\r\n\r\nexport namespace ObjectReferencesList {\r\n\r\n export const SerializeList = (writer: BinaryWritable, collectables: ObjectReference[]): void => {\r\n writer.writeInt32(collectables.length);\r\n for (const collectable of collectables) {\r\n ObjectReference.write(writer, collectable);\r\n }\r\n }\r\n\r\n export const ReadList = (reader: BinaryReadable): ObjectReference[] => {\r\n const collected: ObjectReference[] = [];\r\n let count = reader.readInt32();\r\n for (let i = 0; i < count; i++) {\r\n collected.push(ObjectReference.read(reader));\r\n }\r\n return collected;\r\n }\r\n}"]}
@@ -1,7 +1,7 @@
1
1
  import { BinaryReadable } from "../../../byte/binary-readable.interface";
2
2
  import { ByteWriter } from "../../../byte/byte-writer.class";
3
3
  import { PropertiesMap } from "../property/generic/BasicProperty";
4
- import { SpecialAnyProperties } from '../property/special/SpecialAnyProperties';
4
+ import { SpecialProperties } from '../property/special/SpecialProperties';
5
5
  export interface SaveObjectHeader {
6
6
  typePath: string;
7
7
  rootObject: string;
@@ -12,7 +12,7 @@ export declare abstract class SaveObject implements SaveObjectHeader {
12
12
  rootObject: string;
13
13
  instanceName: string;
14
14
  properties: PropertiesMap;
15
- specialProperties: SpecialAnyProperties;
15
+ specialProperties: SpecialProperties.AvailableSpecialPropertiesTypes;
16
16
  trailingData: number[];
17
17
  objectVersion: number;
18
18
  unknownType2: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SaveObject.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGhF,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,8BAAsB,UAAW,YAAW,gBAAgB;IASxC,QAAQ,EAAE,MAAM;IAAS,UAAU,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAPpF,UAAU,EAAE,aAAa,CAAM;IAC/B,iBAAiB,EAAE,oBAAoB,CAAM;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAM;IAE5B,aAAa,EAAE,MAAM,CAAK;IAC1B,YAAY,EAAE,MAAM,CAAK;gBAEb,QAAQ,EAAE,MAAM,EAAS,UAAU,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM;IAI3F,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAM3E,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;WAM7D,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;WAkBhH,aAAa,CAAC,MAAM,EAAE,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AM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;CAMrF"}
@@ -10,7 +10,7 @@ class SaveObject {
10
10
  this.rootObject = rootObject;
11
11
  this.instanceName = instanceName;
12
12
  this.properties = {};
13
- this.specialProperties = {};
13
+ this.specialProperties = { type: 'EmptySpecialProperties' };
14
14
  this.trailingData = [];
15
15
  this.objectVersion = 0;
16
16
  this.unknownType2 = 0;
@@ -27,7 +27,7 @@ class SaveObject {
27
27
  }
28
28
  static ParseData(obj, length, reader, buildVersion, typePath) {
29
29
  const start = reader.getBufferPosition();
30
- PropertiesList_1.PropertiesList.ParseList(obj, length, reader, buildVersion, typePath);
30
+ obj.properties = PropertiesList_1.PropertiesList.ParseList(reader, buildVersion);
31
31
  reader.readInt32();
32
32
  let remainingSize = length - (reader.getBufferPosition() - start);
33
33
  obj.specialProperties = SpecialProperties_1.SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);
@@ -40,7 +40,7 @@ class SaveObject {
40
40
  }
41
41
  }
42
42
  static SerializeData(writer, obj, buildVersion) {
43
- PropertiesList_1.PropertiesList.SerializeList(obj, writer, buildVersion, obj.typePath);
43
+ PropertiesList_1.PropertiesList.SerializeList(obj.properties, writer, buildVersion);
44
44
  writer.writeInt32(0);
45
45
  SpecialProperties_1.SpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);
46
46
  writer.writeBytesArray(obj.trailingData);
@@ -1 +1 @@
1
- {"version":3,"file":"SaveObject.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAC1D,+DAA4D;AAG5D,6EAA0E;AAQ1E,MAAsB,UAAU;IAS/B,YAAmB,QAAgB,EAAS,UAAkB,EAAS,YAAoB;QAAxE,aAAQ,GAAR,QAAQ,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAQ;QAAS,iBAAY,GAAZ,Y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AC,CAAC;QAC9D,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YACvB,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,0BAAW,CAAC,aAAa,EAAE,6DAA6D,GAAG,CAAC,YAAY,2BAA2B,aAAa,EAAE,CAAC,CAAC;QAC/J,CAAC;IACF,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,MAAW,EAAE,GAAe,EAAE,YAAoB;QAC7E,+BAAc,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;QACtE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrB,qCAAiB,CAAC,uCAAuC,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACvG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;CACD;AAjDD,gCAiDC","sourcesContent":["import { BinaryReadable } from \"../../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../../byte/byte-writer.class\";\nimport { ParserError } from '../../../error/parser.error';\nimport { PropertiesList } from '../property/PropertiesList';\nimport { PropertiesMap } from \"../property/generic/BasicProperty\";\nimport { SpecialAnyProperties } from '../property/special/SpecialAnyProperties';\nimport { SpecialProperties } from '../property/special/SpecialProperties';\n\nexport interface SaveObjectHeader {\n\ttypePath: string;\n\trootObject: string;\n\tinstanceName: string;\n}\n\nexport abstract class SaveObject implements SaveObjectHeader {\n\n\tpublic properties: PropertiesMap = {};\n\tpublic specialProperties: SpecialAnyProperties = {};\n\tpublic trailingData: number[] = [];\n\n\tpublic objectVersion: number = 0;\n\tpublic unknownType2: number = 0;\n\n\tconstructor(public typePath: string, public rootObject: string, public instanceName: string) {\n\n\t}\n\n\tprotected static ParseHeader(reader: BinaryReadable, obj: SaveObject): void {\n\t\tobj.typePath = reader.readString();\n\t\tobj.rootObject = reader.readString();\n\t\tobj.instanceName = reader.readString();\n\t}\n\n\tprotected static SerializeHeader(writer: ByteWriter, obj: SaveObject): void {\n\t\twriter.writeString(obj.typePath);\n\t\twriter.writeString(obj.rootObject);\n\t\twriter.writeString(obj.instanceName);\n\t}\n\n\tpublic static ParseData(obj: SaveObject, length: number, reader: BinaryReadable, buildVersion: number, typePath: string): void {\n\t\tconst start = reader.getBufferPosition();\n\n\t\tPropertiesList.ParseList(obj, length, reader, buildVersion, typePath);\n\n\t\treader.readInt32(); // 0\n\n\t\tlet remainingSize = length - (reader.getBufferPosition() - start);\n\t\tobj.specialProperties = SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);\n\n\t\tremainingSize = length - (reader.getBufferPosition() - start);\n\t\tif (remainingSize > 0) {\n\t\t\tobj.trailingData = Array.from(reader.readBytes(remainingSize));\n\t\t} else if (remainingSize < 0) {\n\t\t\tthrow new ParserError('ParserError', `Unexpected. Read more bytes than are indicated for entity ${obj.instanceName}. bytes left to read is ${remainingSize}`);\n\t\t}\n\t}\n\n\tpublic static SerializeData(writer: any, obj: SaveObject, buildVersion: number): void {\n\t\tPropertiesList.SerializeList(obj, writer, buildVersion, obj.typePath);\n\t\twriter.writeInt32(0);\n\t\tSpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);\n\t\twriter.writeBytesArray(obj.trailingData);\n\t}\n}"]}
1
+ {"version":3,"file":"SaveObject.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,+DAA4D;AAC5D,6EAA0E;AAQ1E,MAAsB,UAAU;IAS/B,YAAmB,QAAgB,EAAS,UAAkB,EAAS,YAAoB;QAAxE,aAAQ,GAAR,QAAQ,C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,aAAa,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAC,CAAC;QAC9D,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YACvB,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,0BAAW,CAAC,aAAa,EAAE,6DAA6D,GAAG,CAAC,YAAY,2BAA2B,aAAa,EAAE,CAAC,CAAC;QAC/J,CAAC;IACF,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,MAAW,EAAE,GAAe,EAAE,YAAoB;QAC7E,+BAAc,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;QACnE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrB,qCAAiB,CAAC,uCAAuC,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACvG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;CACD;AAjDD,gCAiDC","sourcesContent":["import { BinaryReadable } from \"../../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../../byte/byte-writer.class\";\nimport { ParserError } from '../../../error/parser.error';\nimport { PropertiesMap } from \"../property/generic/BasicProperty\";\nimport { PropertiesList } from '../property/PropertiesList';\nimport { SpecialProperties } from '../property/special/SpecialProperties';\n\nexport interface SaveObjectHeader {\n\ttypePath: string;\n\trootObject: string;\n\tinstanceName: string;\n}\n\nexport abstract class SaveObject implements SaveObjectHeader {\n\n\tpublic properties: PropertiesMap = {};\n\tpublic specialProperties: SpecialProperties.AvailableSpecialPropertiesTypes = { type: 'EmptySpecialProperties' };\n\tpublic trailingData: number[] = [];\n\n\tpublic objectVersion: number = 0;\n\tpublic unknownType2: number = 0;\n\n\tconstructor(public typePath: string, public rootObject: string, public instanceName: string) {\n\n\t}\n\n\tprotected static ParseHeader(reader: BinaryReadable, obj: SaveObject): void {\n\t\tobj.typePath = reader.readString();\n\t\tobj.rootObject = reader.readString();\n\t\tobj.instanceName = reader.readString();\n\t}\n\n\tprotected static SerializeHeader(writer: ByteWriter, obj: SaveObject): void {\n\t\twriter.writeString(obj.typePath);\n\t\twriter.writeString(obj.rootObject);\n\t\twriter.writeString(obj.instanceName);\n\t}\n\n\tpublic static ParseData(obj: SaveObject, length: number, reader: BinaryReadable, buildVersion: number, typePath: string): void {\n\t\tconst start = reader.getBufferPosition();\n\n\t\tobj.properties = PropertiesList.ParseList(reader, buildVersion);\n\n\t\treader.readInt32(); // 0\n\n\t\tlet remainingSize = length - (reader.getBufferPosition() - start);\n\t\tobj.specialProperties = SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);\n\n\t\tremainingSize = length - (reader.getBufferPosition() - start);\n\t\tif (remainingSize > 0) {\n\t\t\tobj.trailingData = Array.from(reader.readBytes(remainingSize));\n\t\t} else if (remainingSize < 0) {\n\t\t\tthrow new ParserError('ParserError', `Unexpected. Read more bytes than are indicated for entity ${obj.instanceName}. bytes left to read is ${remainingSize}`);\n\t\t}\n\t}\n\n\tpublic static SerializeData(writer: any, obj: SaveObject, buildVersion: number): void {\n\t\tPropertiesList.SerializeList(obj.properties, writer, buildVersion);\n\t\twriter.writeInt32(0);\n\t\tSpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);\n\t\twriter.writeBytesArray(obj.trailingData);\n\t}\n}"]}
@@ -1,11 +1,9 @@
1
1
  import { BinaryReadable } from '../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../byte/byte-writer.class';
3
- import { SaveWriter } from '../../save/save-writer';
4
- import { SaveObject } from '../objects/SaveObject';
5
- import { AbstractBaseProperty } from './generic/BasicProperty';
3
+ import { AbstractBaseProperty, PropertiesMap } from './generic/BasicProperty';
6
4
  export declare namespace PropertiesList {
7
- const ParseList: (obj: SaveObject, length: number, reader: BinaryReadable, buildVersion: number, typePath: string) => void;
8
- const SerializeList: (obj: SaveObject, writer: SaveWriter, buildVersion: number, typePath: string) => void;
5
+ const ParseList: (reader: BinaryReadable, buildVersion: number) => PropertiesMap;
6
+ const SerializeList: (properties: PropertiesMap, writer: ByteWriter, buildVersion: number) => void;
9
7
  const ParseSingleProperty: (reader: BinaryReadable, buildVersion: number, propertyName: string) => AbstractBaseProperty;
10
8
  const SerializeSingleProperty: (writer: ByteWriter, property: AbstractBaseProperty, propertyName: string, buildVersion: number) => void;
11
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAqB/D,yBAAiB,cAAc,CAAC;IAExB,MAAM,SAAS,QAAS,UAAU,UAAU,MAAM,UAAU,cAAc,gBAAgB,MAAM,YAAY,MAAM,KAAG,IAyB3H,CAAA;IAEM,MAAM,aAAa,QAAS,UAAU,UAAU,UAAU,gBAAgB,MAAM,YAAY,MAAM,KAAG,IAM3G,CAAA;IAEM,MAAM,mBAAmB,WAAY,cAAc,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,oBA4HxG,CAAA;IAEM,MAAM,uBAAuB,WAAY,UAAU,YAAY,oBAAoB,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,IA4HxI,CAAA;CACD"}
1
+ {"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAqB9E,yBAAiB,cAAc,CAAC;IAExB,MAAM,SAAS,WAAY,cAAc,gBAAgB,MAAM,KAAG,aAqBxE,CAAA;IAEM,MAAM,aAAa,eAAgB,aAAa,UAAU,UAAU,gBAAgB,MAAM,KAAG,IAMnG,CAAA;IAEM,MAAM,mBAAmB,WAAY,cAAc,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,oBA4HxG,CAAA;IAEM,MAAM,uBAAuB,WAAY,UAAU,YAAY,oBAAoB,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,IA4HxI,CAAA;CACD"}
@@ -23,29 +23,26 @@ const Uint64Property_1 = require("./generic/Uint64Property");
23
23
  const Uint8Property_1 = require("./generic/Uint8Property");
24
24
  var PropertiesList;
25
25
  (function (PropertiesList) {
26
- PropertiesList.ParseList = (obj, length, reader, buildVersion, typePath) => {
27
- obj.properties = {};
28
- if (length === 0) {
29
- console.warn(`properties length for object ${obj.instanceName} was indicated as 0. Which is suspicious. Skipping object properties.`);
30
- return;
31
- }
26
+ PropertiesList.ParseList = (reader, buildVersion) => {
27
+ const properties = {};
32
28
  let propertyName = reader.readString();
33
29
  while (propertyName !== 'None') {
34
30
  const parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);
35
- if (obj.properties[propertyName]) {
36
- if (!Array.isArray(obj.properties[propertyName])) {
37
- obj.properties[propertyName] = [obj.properties[propertyName]];
31
+ if (properties[propertyName]) {
32
+ if (!Array.isArray(properties[propertyName])) {
33
+ properties[propertyName] = [properties[propertyName]];
38
34
  }
39
- obj.properties[propertyName].push(parsedProperty);
35
+ properties[propertyName].push(parsedProperty);
40
36
  }
41
37
  else {
42
- obj.properties[propertyName] = parsedProperty;
38
+ properties[propertyName] = parsedProperty;
43
39
  }
44
40
  propertyName = reader.readString();
45
41
  }
42
+ return properties;
46
43
  };
47
- PropertiesList.SerializeList = (obj, writer, buildVersion, typePath) => {
48
- for (const property of Object.values(obj.properties).flatMap(val => Array.isArray(val) ? val : [val])) {
44
+ PropertiesList.SerializeList = (properties, writer, buildVersion) => {
45
+ for (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {
49
46
  writer.writeString(property.name);
50
47
  PropertiesList.SerializeSingleProperty(writer, property, property.name, buildVersion);
51
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAG1D,2DAAwD;AAExD,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,uDAAoD;AACpD,qEAAkE;AAClE,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CAgS9B;AAhSD,WAAiB,cAAc;IAEjB,wBAAS,GAAG,CAAC,GAAe,EAAE,MAAc,EAAE,MAAsB,EAAE,YAAoB,EAAE,QAAgB,EAAQ,EAAE;QAElI,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC;QACpB,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,CAAC,gCAAgC,GAAG,CAAC,YAAY,uEAAuE,CAAC,CAAC;YACtI,OAAO;QACR,CAAC;QAED,IAAI,YAAY,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/C,OAAO,YAAY,KAAK,MAAM,EAAE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CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,gBAAgB;gBACpB,QAAQ,GAAG,+BAAc,CAAC,YAAY,CAAC,QAA0B,CAAC,CAAC;gBACnE,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,QAA0B,CAAC,CAAC;gBAC7D,MAAM;YAEP,KAAK,eAAe;gBACnB,QAAQ,GAAG,6BAAa,CAAC,YAAY,CAAC,QAA8B,CAAC,CAAC;gBACtE,6BAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAA8B,EAAE,YAAY,CAAC,CAAC;gBAC9E,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAAuB,CAAC,CAAC;gBAC7D,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAuB,CAAC,CAAC;gBACvD,MAAM;YAEP,KAAK,cAAc;gBAClB,QAAQ,GAAG,2BAAY,CAAC,YAAY,CAAC,QAAwB,CAAC,CAAC;gBAC/D,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAA4B,CAAC,CAAC;gBAClE,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAA4B,CAAC,CAAC;gBAC5D,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EAhSgB,cAAc,8BAAd,cAAc,QAgS9B","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { ParserError } from '../../../error/parser.error';\nimport { SaveWriter } from '../../save/save-writer';\nimport { SaveObject } from '../objects/SaveObject';\nimport { ArrayProperty } from './generic/ArrayProperty';\nimport { AbstractBaseProperty } from './generic/BasicProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (obj: SaveObject, length: number, reader: BinaryReadable, buildVersion: number, typePath: string): void => {\n\n\t\tobj.properties = {};\n\t\tif (length === 0) {\n\t\t\tconsole.warn(`properties length for object ${obj.instanceName} was indicated as 0. Which is suspicious. Skipping object properties.`);\n\t\t\treturn;\n\t\t}\n\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (obj.properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(obj.properties[propertyName])) {\n\t\t\t\t\tobj.properties[propertyName] = [obj.properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(obj.properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tobj.properties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t}\n\n\texport const SerializeList = (obj: SaveObject, writer: SaveWriter, buildVersion: number, typePath: string): void => {\n\t\tfor (const property of Object.values(obj.properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property, property.name, buildVersion);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: BinaryReadable, buildVersion: number, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, buildVersion, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ByteWriter, property: AbstractBaseProperty, propertyName: string, buildVersion: number): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty<any>);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty<any>, propertyName);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty<any>);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty<any>);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
1
+ {"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAC1D,2DAAwD;AAExD,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,uDAAoD;AACpD,qEAAkE;AAClE,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CA4R9B;AA5RD,WAAiB,cAAc;IAEjB,wBAAS,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAiB,EAAE;QAExF,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,IAAI,YAAY,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/C,OAAO,YAAY,KAAK,MAAM,EAAE,CAAC;YAChC,MAAM,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;YAG9F,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC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,6BAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAA8B,EAAE,YAAY,CAAC,CAAC;gBAC9E,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAAuB,CAAC,CAAC;gBAC7D,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAuB,CAAC,CAAC;gBACvD,MAAM;YAEP,KAAK,cAAc;gBAClB,QAAQ,GAAG,2BAAY,CAAC,YAAY,CAAC,QAAwB,CAAC,CAAC;gBAC/D,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAA4B,CAAC,CAAC;gBAClE,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAA4B,CAAC,CAAC;gBAC5D,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EA5RgB,cAAc,8BAAd,cAAc,QA4R9B","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { ParserError } from '../../../error/parser.error';\nimport { ArrayProperty } from './generic/ArrayProperty';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/BasicProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: BinaryReadable, buildVersion: number): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (properties: PropertiesMap, writer: ByteWriter, buildVersion: number): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property, property.name, buildVersion);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: BinaryReadable, buildVersion: number, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, buildVersion, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ByteWriter, property: AbstractBaseProperty, propertyName: string, buildVersion: number): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty<any>);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty<any>, propertyName);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty<any>);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty<any>);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
@@ -0,0 +1,31 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { col4 } from '../../structs/col4';
4
+ import { ObjectReference } from '../../structs/ObjectReference';
5
+ import { Transform } from '../../structs/Transform';
6
+ export declare const isBuildableSubsystemSpecialProperties: (obj: any) => obj is BuildableSubsystemSpecialProperties;
7
+ export type BuildableSubsystemSpecialProperties = {
8
+ type: 'BuildableSubsystemSpecialProperties';
9
+ buildables: {
10
+ typePath: string;
11
+ instances: BuildableTypeInstance[];
12
+ }[];
13
+ };
14
+ export declare namespace BuildableSubsystemSpecialProperties {
15
+ const Parse: (reader: BinaryReadable) => BuildableSubsystemSpecialProperties;
16
+ const Serialize: (writer: ByteWriter, property: BuildableSubsystemSpecialProperties) => void;
17
+ }
18
+ export type BuildableTypeInstance = {
19
+ transform: Transform;
20
+ primaryColor: col4;
21
+ secondaryColor: col4;
22
+ usedSwatchSlot: ObjectReference;
23
+ usedPattern: ObjectReference;
24
+ usedMaterial: ObjectReference;
25
+ usedSkin: ObjectReference;
26
+ usedPaintFinish: ObjectReference;
27
+ patternRotation: number;
28
+ usedRecipe: ObjectReference;
29
+ blueprintProxy: ObjectReference;
30
+ };
31
+ //# sourceMappingURL=BuildableSubsystemSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildableSubsystemSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,eAAO,MAAM,qCAAqC,QAAS,GAAG,KAAG,GAAG,IAAI,mCAAyF,CAAC;AAElK,MAAM,MAAM,mCAAmC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;KACtC,EAAE,CAAC;CACP,CAAC;AAEF,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,KAAK,WAAY,cAAc,KAAG,mCAwD9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,mCAAmC,SA8B1F,CAAC;CACL;AACD,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB,cAAc,EAAE,IAAI,CAAC;IACrB,cAAc,EAAE,eAAe,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,eAAe,CAAC;IAC9B,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,cAAc,EAAE,eAAe,CAAC;CACnC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildableSubsystemSpecialProperties = exports.isBuildableSubsystemSpecialProperties = void 0;
4
+ const col4_1 = require("../../structs/col4");
5
+ const ObjectReference_1 = require("../../structs/ObjectReference");
6
+ const Transform_1 = require("../../structs/Transform");
7
+ const isBuildableSubsystemSpecialProperties = (obj) => obj.type === 'BuildableSubsystemSpecialProperties';
8
+ exports.isBuildableSubsystemSpecialProperties = isBuildableSubsystemSpecialProperties;
9
+ var BuildableSubsystemSpecialProperties;
10
+ (function (BuildableSubsystemSpecialProperties) {
11
+ BuildableSubsystemSpecialProperties.Parse = (reader) => {
12
+ const property = {
13
+ type: 'BuildableSubsystemSpecialProperties',
14
+ buildables: []
15
+ };
16
+ const entriesCount = reader.readInt32();
17
+ if (entriesCount > 0) {
18
+ for (let i = 0; i < entriesCount; i++) {
19
+ reader.readInt32();
20
+ const typePath = reader.readString();
21
+ const count = reader.readInt32();
22
+ const instances = [];
23
+ for (let j = 0; j < count; j++) {
24
+ const transform = Transform_1.Transform.Parse(reader);
25
+ const usedSwatchSlot = ObjectReference_1.ObjectReference.read(reader);
26
+ const usedMaterial = ObjectReference_1.ObjectReference.read(reader);
27
+ const usedPattern = ObjectReference_1.ObjectReference.read(reader);
28
+ const usedSkin = ObjectReference_1.ObjectReference.read(reader);
29
+ const primaryColor = col4_1.col4.ParseRGBA(reader);
30
+ const secondaryColor = col4_1.col4.ParseRGBA(reader);
31
+ const usedPaintFinish = ObjectReference_1.ObjectReference.read(reader);
32
+ const patternRotation = reader.readByte();
33
+ const usedRecipe = ObjectReference_1.ObjectReference.read(reader);
34
+ const blueprintProxy = ObjectReference_1.ObjectReference.read(reader);
35
+ instances.push({
36
+ transform,
37
+ primaryColor,
38
+ secondaryColor,
39
+ usedSwatchSlot,
40
+ usedMaterial,
41
+ usedPattern,
42
+ usedSkin,
43
+ usedRecipe,
44
+ usedPaintFinish,
45
+ patternRotation,
46
+ blueprintProxy
47
+ });
48
+ }
49
+ property.buildables.push({
50
+ typePath,
51
+ instances
52
+ });
53
+ }
54
+ }
55
+ return property;
56
+ };
57
+ BuildableSubsystemSpecialProperties.Serialize = (writer, property) => {
58
+ writer.writeInt32(property.buildables.length);
59
+ if (property.buildables.length > 0) {
60
+ for (const buildable of property.buildables) {
61
+ writer.writeInt32(0);
62
+ writer.writeString(buildable.typePath);
63
+ writer.writeInt32(buildable.instances.length);
64
+ for (const instance of buildable.instances) {
65
+ Transform_1.Transform.Serialize(writer, instance.transform);
66
+ ObjectReference_1.ObjectReference.write(writer, instance.usedSwatchSlot);
67
+ ObjectReference_1.ObjectReference.write(writer, instance.usedMaterial);
68
+ ObjectReference_1.ObjectReference.write(writer, instance.usedPattern);
69
+ ObjectReference_1.ObjectReference.write(writer, instance.usedSkin);
70
+ col4_1.col4.SerializeRGBA(writer, instance.primaryColor);
71
+ col4_1.col4.SerializeRGBA(writer, instance.secondaryColor);
72
+ ObjectReference_1.ObjectReference.write(writer, instance.usedPaintFinish);
73
+ writer.writeByte(instance.patternRotation);
74
+ ObjectReference_1.ObjectReference.write(writer, instance.usedRecipe);
75
+ ObjectReference_1.ObjectReference.write(writer, instance.blueprintProxy);
76
+ }
77
+ }
78
+ }
79
+ };
80
+ })(BuildableSubsystemSpecialProperties || (exports.BuildableSubsystemSpecialProperties = BuildableSubsystemSpecialProperties = {}));
81
+ //# sourceMappingURL=BuildableSubsystemSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildableSubsystemSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,mEAAgE;AAChE,uDAAoD;AAI7C,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAUlK,IAAiB,mCAAmC,CA0FnD;AA1FD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAsB,EAAuC,EAAE;QAEjF,MAAM,QAAQ,GAAwC;YAClD,IAAI,EAAE,qCAAqC;YAC3C,UAAU,EAAE,EAAE;SACjB,CAAC;QAEF,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;YAEnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;gBACpC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBACrC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;gBAEjC,MAAM,SAAS,GAAG,EAAE,CAAC;gBACrB,KA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C,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;gBAC3D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA1FgB,mCAAmC,mDAAnC,mCAAmC,QA0FnD","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { col4 } from '../../structs/col4';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\n\n\n\nexport const isBuildableSubsystemSpecialProperties = (obj: any): obj is BuildableSubsystemSpecialProperties => obj.type === 'BuildableSubsystemSpecialProperties';\n\nexport type BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties';\n buildables: {\n typePath: string;\n instances: BuildableTypeInstance[];\n }[];\n};\n\nexport namespace BuildableSubsystemSpecialProperties {\n export const Parse = (reader: BinaryReadable): BuildableSubsystemSpecialProperties => {\n\n const property: BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties',\n buildables: []\n };\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n reader.readInt32(); //0\n const typePath = reader.readString();\n const count = reader.readInt32();\n\n const instances = [];\n for (let j = 0; j < count; j++) {\n\n const transform = Transform.Parse(reader);\n\n const usedSwatchSlot = ObjectReference.read(reader);\n const usedMaterial = ObjectReference.read(reader);\n const usedPattern = ObjectReference.read(reader);\n const usedSkin = ObjectReference.read(reader);\n\n const primaryColor = col4.ParseRGBA(reader);\n const secondaryColor = col4.ParseRGBA(reader);\n\n const usedPaintFinish = ObjectReference.read(reader);\n const patternRotation = reader.readByte();\n const usedRecipe = ObjectReference.read(reader);\n const blueprintProxy = ObjectReference.read(reader);\n\n instances.push({\n transform,\n primaryColor,\n secondaryColor,\n usedSwatchSlot,\n usedMaterial,\n usedPattern,\n usedSkin,\n usedRecipe,\n usedPaintFinish,\n patternRotation,\n blueprintProxy\n } satisfies BuildableTypeInstance);\n }\n\n property.buildables.push({\n typePath,\n instances\n });\n }\n }\n\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: BuildableSubsystemSpecialProperties) => {\n\n writer.writeInt32(property.buildables.length);\n\n if (property.buildables.length > 0) {\n\n for (const buildable of property.buildables) {\n writer.writeInt32(0);\n writer.writeString(buildable.typePath);\n writer.writeInt32(buildable.instances.length);\n\n for (const instance of buildable.instances) {\n\n Transform.Serialize(writer, instance.transform);\n\n ObjectReference.write(writer, instance.usedSwatchSlot);\n ObjectReference.write(writer, instance.usedMaterial);\n ObjectReference.write(writer, instance.usedPattern);\n ObjectReference.write(writer, instance.usedSkin);\n\n col4.SerializeRGBA(writer, instance.primaryColor);\n col4.SerializeRGBA(writer, instance.secondaryColor);\n\n ObjectReference.write(writer, instance.usedPaintFinish);\n writer.writeByte(instance.patternRotation);\n ObjectReference.write(writer, instance.usedRecipe);\n ObjectReference.write(writer, instance.blueprintProxy);\n }\n }\n }\n };\n}\nexport type BuildableTypeInstance = {\n transform: Transform;\n primaryColor: col4;\n secondaryColor: col4;\n usedSwatchSlot: ObjectReference;\n usedPattern: ObjectReference;\n usedMaterial: ObjectReference;\n usedSkin: ObjectReference;\n usedPaintFinish: ObjectReference;\n patternRotation: number;\n usedRecipe: ObjectReference;\n blueprintProxy: ObjectReference;\n};\n\n"]}
@@ -0,0 +1,16 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { ObjectReference } from '../../structs/ObjectReference';
4
+ export declare const isCircuitSpecialProperties: (obj: any) => obj is CircuitSpecialProperties;
5
+ export type CircuitSpecialProperties = {
6
+ type: 'CircuitSpecialProperties';
7
+ circuits: {
8
+ id: number;
9
+ objectReference: ObjectReference;
10
+ }[];
11
+ };
12
+ export declare namespace CircuitSpecialProperties {
13
+ const Parse: (reader: BinaryReadable) => CircuitSpecialProperties;
14
+ const Serialize: (writer: ByteWriter, property: CircuitSpecialProperties) => void;
15
+ }
16
+ //# sourceMappingURL=CircuitSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircuitSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/CircuitSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,eAAO,MAAM,0BAA0B,QAAS,GAAG,KAAG,GAAG,IAAI,wBAAmE,CAAC;AAEjI,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,0BAA0B,CAAC;IACjC,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,eAAe,EAAE,eAAe,CAAC;KACpC,EAAE,CAAC;CACP,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,KAAK,WAAY,cAAc,KAAG,wBAc9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,wBAAwB,SAM/E,CAAC;CACL"}