@etothepii/satisfactory-file-parser 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/index.d.ts +29 -25
  3. package/build/index.d.ts.map +1 -1
  4. package/build/index.js +29 -25
  5. package/build/index.js.map +1 -1
  6. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts +2 -9
  7. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts.map +1 -1
  8. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.js +3 -20
  9. package/build/parser/satisfactory/types/property/generic/containers/StructProperty.js.map +1 -1
  10. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +4 -22
  11. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -1
  12. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +6 -50
  13. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
  14. package/build/parser/satisfactory/types/structs/FGDynamicStruct.js +2 -2
  15. package/build/parser/satisfactory/types/structs/FGDynamicStruct.js.map +1 -1
  16. package/build/parser/satisfactory/types/structs/binary/FConveyorBeltItem.d.ts +12 -0
  17. package/build/parser/satisfactory/types/structs/binary/FConveyorBeltItem.d.ts.map +1 -0
  18. package/build/parser/satisfactory/types/structs/binary/FConveyorBeltItem.js +21 -0
  19. package/build/parser/satisfactory/types/structs/binary/FConveyorBeltItem.js.map +1 -0
  20. package/build/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.d.ts +38 -0
  21. package/build/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.d.ts.map +1 -0
  22. package/build/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.js +57 -0
  23. package/build/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.js.map +1 -0
  24. package/build/parser/satisfactory/types/structs/binary/FInventoryItem.d.ts +14 -0
  25. package/build/parser/satisfactory/types/structs/binary/FInventoryItem.d.ts.map +1 -0
  26. package/build/parser/satisfactory/types/structs/binary/FInventoryItem.js +34 -0
  27. package/build/parser/satisfactory/types/structs/binary/FInventoryItem.js.map +1 -0
  28. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.d.ts +1 -1
  29. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.d.ts.map +1 -1
  30. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.js +1 -2
  31. package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.js.map +1 -1
  32. package/build/test/parser.spec.d.ts +2 -0
  33. package/build/test/parser.spec.d.ts.map +1 -0
  34. package/build/test/parser.spec.js +299 -0
  35. package/build/test/parser.spec.js.map +1 -0
  36. package/docs/assets/hierarchy.js +1 -1
  37. package/docs/assets/navigation.js +1 -1
  38. package/docs/assets/search.js +1 -1
  39. package/docs/classes/BlueprintConfigReader.html +4 -4
  40. package/docs/classes/BlueprintConfigWriter.html +4 -4
  41. package/docs/classes/BlueprintReader.html +4 -4
  42. package/docs/classes/BlueprintWriter.html +4 -4
  43. package/docs/classes/ByteReader.html +4 -4
  44. package/docs/classes/ByteWriter.html +4 -4
  45. package/docs/classes/CompressionLibraryError.html +2 -2
  46. package/docs/classes/ContextReader.html +4 -4
  47. package/docs/classes/ContextWriter.html +4 -4
  48. package/docs/classes/CorruptBlueprintError.html +2 -2
  49. package/docs/classes/CorruptSaveError.html +2 -2
  50. package/docs/classes/Parser.html +6 -6
  51. package/docs/classes/ParserError.html +2 -2
  52. package/docs/classes/ReadableStreamParser.html +2 -2
  53. package/docs/classes/SatisfactorySave.html +2 -2
  54. package/docs/classes/SaveComponent.html +2 -2
  55. package/docs/classes/SaveEntity.html +2 -2
  56. package/docs/classes/SaveObject.html +2 -2
  57. package/docs/classes/SaveReader.html +4 -4
  58. package/docs/classes/SaveWriter.html +4 -4
  59. package/docs/classes/TimeoutError.html +2 -2
  60. package/docs/classes/UnimplementedError.html +2 -2
  61. package/docs/classes/UnsupportedVersionError.html +2 -2
  62. package/docs/enums/Alignment.html +2 -2
  63. package/docs/enums/BlueprintConfigVersion.html +2 -2
  64. package/docs/enums/BlueprintHeaderVersion.html +2 -2
  65. package/docs/enums/CompressionAlgorithmCode.html +2 -2
  66. package/docs/enums/ETextHistoryType.html +2 -2
  67. package/docs/enums/EUnrealEngineObjectUE5Version.html +2 -2
  68. package/docs/enums/FactoryGameCustomVersion.html +2 -2
  69. package/docs/enums/RuntimeBuildableInstanceDataVersion.html +2 -2
  70. package/docs/enums/SaveCustomVersion.html +10 -10
  71. package/docs/enums/SaveHeaderType.html +2 -2
  72. package/docs/functions/AbstractBaseProperty.CreateFromTag.html +1 -1
  73. package/docs/functions/ArrayProperty.Parse.html +1 -1
  74. package/docs/functions/ArrayProperty.Serialize.html +1 -1
  75. package/docs/functions/BlueprintConfig.Parse.html +1 -1
  76. package/docs/functions/BlueprintConfig.Serialize.html +1 -1
  77. package/docs/functions/BlueprintHeader.Parse.html +1 -1
  78. package/docs/functions/BlueprintHeader.Serialize.html +1 -1
  79. package/docs/functions/BoolProperty.Parse.html +1 -1
  80. package/docs/functions/BoolProperty.ReadValue.html +1 -1
  81. package/docs/functions/BoolProperty.Serialize.html +1 -1
  82. package/docs/functions/BoolProperty.SerializeValue.html +1 -1
  83. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  84. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  85. package/docs/functions/BuildableTypeInstance.Parse.html +1 -1
  86. package/docs/functions/BuildableTypeInstance.Serialize.html +1 -1
  87. package/docs/functions/ByteProperty.Parse.html +1 -1
  88. package/docs/functions/ByteProperty.ReadValue.html +1 -1
  89. package/docs/functions/ByteProperty.Serialize.html +1 -1
  90. package/docs/functions/ByteProperty.SerializeValue.html +1 -1
  91. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  92. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  93. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  94. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  95. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  96. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  97. package/docs/functions/DataBlob.Read.html +1 -1
  98. package/docs/functions/DataBlob.ReadNObjectContents.html +1 -1
  99. package/docs/functions/DataBlob.SkipOver.html +1 -1
  100. package/docs/functions/DataBlob.Write.html +1 -1
  101. package/docs/functions/DoubleProperty.Parse.html +1 -1
  102. package/docs/functions/DoubleProperty.ReadValue.html +1 -1
  103. package/docs/functions/DoubleProperty.Serialize.html +1 -1
  104. package/docs/functions/DoubleProperty.SerializeValue.html +1 -1
  105. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  106. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  107. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  108. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  109. package/docs/functions/EnumProperty.Parse.html +1 -1
  110. package/docs/functions/EnumProperty.ReadValue.html +1 -1
  111. package/docs/functions/EnumProperty.Serialize.html +1 -1
  112. package/docs/functions/EnumProperty.SerializeValue.html +1 -1
  113. package/docs/functions/FClientIdentityInfo.read.html +1 -1
  114. package/docs/functions/FClientIdentityInfo.write.html +1 -1
  115. package/docs/functions/FColor.read.html +1 -1
  116. package/docs/functions/FColor.write.html +1 -1
  117. package/docs/functions/FConveyorBeltItem.read.html +1 -0
  118. package/docs/functions/FConveyorBeltItem.write.html +1 -0
  119. package/docs/functions/FConveyorChainSplineSegment.read.html +1 -0
  120. package/docs/functions/FConveyorChainSplineSegment.write.html +1 -0
  121. package/docs/functions/FCustomVersion.read.html +1 -1
  122. package/docs/functions/FCustomVersion.write.html +1 -1
  123. package/docs/functions/FCustomVersionContainer.read.html +1 -1
  124. package/docs/functions/FCustomVersionContainer.write.html +1 -1
  125. package/docs/functions/FEngineVersion.read.html +1 -1
  126. package/docs/functions/FEngineVersion.write.html +1 -1
  127. package/docs/functions/FGDynamicStruct.Parse.html +1 -1
  128. package/docs/functions/FGDynamicStruct.Serialize.html +1 -1
  129. package/docs/functions/FICFrameRange.read.html +1 -1
  130. package/docs/functions/FICFrameRange.write.html +1 -1
  131. package/docs/functions/FINGPUT1BufferPixel.read.html +1 -1
  132. package/docs/functions/FINGPUT1BufferPixel.write.html +1 -1
  133. package/docs/functions/FINItemStateFileSystem.IsFINItemStateFileSystem.html +1 -1
  134. package/docs/functions/FINItemStateFileSystem.read.html +1 -1
  135. package/docs/functions/FINItemStateFileSystem.write.html +1 -1
  136. package/docs/functions/FINLuaRuntimePersistenceState.read.html +1 -1
  137. package/docs/functions/FINLuaRuntimePersistenceState.write.html +1 -1
  138. package/docs/functions/FINNetworkTrace.read.html +1 -1
  139. package/docs/functions/FINNetworkTrace.write.html +1 -1
  140. package/docs/functions/FInventoryItem.read.html +1 -0
  141. package/docs/functions/FInventoryItem.write.html +1 -0
  142. package/docs/functions/FLBBalancerIndexing.read.html +1 -1
  143. package/docs/functions/FLBBalancerIndexing.write.html +1 -1
  144. package/docs/functions/FLinearColor.read.html +1 -1
  145. package/docs/functions/FLinearColor.write.html +1 -1
  146. package/docs/functions/FLocalUserNetIdBundle.read.html +1 -1
  147. package/docs/functions/FLocalUserNetIdBundle.write.html +1 -1
  148. package/docs/functions/FPackageFileVersion.read.html +1 -1
  149. package/docs/functions/FPackageFileVersion.write.html +1 -1
  150. package/docs/functions/FPlayerInfoHandle.read.html +1 -1
  151. package/docs/functions/FPlayerInfoHandle.write.html +1 -1
  152. package/docs/functions/FPropertyTag.IsCompletePropertyTagType.html +1 -1
  153. package/docs/functions/FPropertyTag.read.html +1 -1
  154. package/docs/functions/FPropertyTag.write.html +1 -1
  155. package/docs/functions/FPropertyTag.writeFromProperty.html +1 -1
  156. package/docs/functions/FPropertyTagNode.read.html +1 -1
  157. package/docs/functions/FPropertyTagNode.write.html +1 -1
  158. package/docs/functions/FSaveObjectVersionData.read.html +1 -1
  159. package/docs/functions/FSaveObjectVersionData.write.html +1 -1
  160. package/docs/functions/FUniqueNetIdRepl.read.html +1 -1
  161. package/docs/functions/FUniqueNetIdRepl.write.html +1 -1
  162. package/docs/functions/FloatProperty.Parse.html +1 -1
  163. package/docs/functions/FloatProperty.ReadValue.html +1 -1
  164. package/docs/functions/FloatProperty.Serialize.html +1 -1
  165. package/docs/functions/FloatProperty.SerializeValue.html +1 -1
  166. package/docs/functions/GUID.read.html +1 -1
  167. package/docs/functions/GUID.write.html +1 -1
  168. package/docs/functions/HierarchyVersion.CreateOnHeader.html +1 -1
  169. package/docs/functions/HierarchyVersion.SetOnLevel.html +1 -1
  170. package/docs/functions/HierarchyVersion.SetOnObject.html +1 -1
  171. package/docs/functions/Int64Property.Parse.html +1 -1
  172. package/docs/functions/Int64Property.ReadValue.html +1 -1
  173. package/docs/functions/Int64Property.Serialize.html +1 -1
  174. package/docs/functions/Int64Property.SerializeValue.html +1 -1
  175. package/docs/functions/Int8Property.Parse.html +1 -1
  176. package/docs/functions/Int8Property.ReadValue.html +1 -1
  177. package/docs/functions/Int8Property.Serialize.html +1 -1
  178. package/docs/functions/Int8Property.SerializeValue.html +1 -1
  179. package/docs/functions/IntProperty.Parse.html +1 -1
  180. package/docs/functions/IntProperty.ReadValue.html +1 -1
  181. package/docs/functions/IntProperty.Serialize.html +1 -1
  182. package/docs/functions/IntProperty.SerializeValue.html +1 -1
  183. package/docs/functions/InterfaceProperty.Parse.html +1 -1
  184. package/docs/functions/InterfaceProperty.ReadValue.html +1 -1
  185. package/docs/functions/InterfaceProperty.Serialize.html +1 -1
  186. package/docs/functions/InterfaceProperty.SerializeValue.html +1 -1
  187. package/docs/functions/LBBalancerIndexing.read.html +1 -1
  188. package/docs/functions/LBBalancerIndexing.write.html +1 -1
  189. package/docs/functions/Level.Read.html +1 -1
  190. package/docs/functions/Level.Serialize.html +1 -1
  191. package/docs/functions/LevelToDestroyedActorsMap.read.html +1 -1
  192. package/docs/functions/LevelToDestroyedActorsMap.write.html +1 -1
  193. package/docs/functions/MD5Hash.read.html +1 -1
  194. package/docs/functions/MD5Hash.write.html +1 -1
  195. package/docs/functions/MapProperty.Parse.html +1 -1
  196. package/docs/functions/MapProperty.Serialize.html +1 -1
  197. package/docs/functions/NameProperty.Parse.html +1 -1
  198. package/docs/functions/NameProperty.ReadValue.html +1 -1
  199. package/docs/functions/NameProperty.Serialize.html +1 -1
  200. package/docs/functions/NameProperty.SerializeValue.html +1 -1
  201. package/docs/functions/ObjectProperty.Parse.html +1 -1
  202. package/docs/functions/ObjectProperty.ReadValue.html +1 -1
  203. package/docs/functions/ObjectProperty.Serialize.html +1 -1
  204. package/docs/functions/ObjectProperty.SerializeValue.html +1 -1
  205. package/docs/functions/ObjectReference.IsEqual.html +1 -1
  206. package/docs/functions/ObjectReference.read.html +1 -1
  207. package/docs/functions/ObjectReference.write.html +1 -1
  208. package/docs/functions/ObjectReferencesList.ReadList.html +1 -1
  209. package/docs/functions/ObjectReferencesList.SerializeList.html +1 -1
  210. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  211. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  212. package/docs/functions/OptionalGUID.read.html +1 -1
  213. package/docs/functions/OptionalGUID.write.html +1 -1
  214. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  215. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  216. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  217. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  218. package/docs/functions/PropertiesList.ParseList.html +1 -1
  219. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  220. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  221. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  222. package/docs/functions/SatisfactorySaveHeader.Parse.html +1 -1
  223. package/docs/functions/SatisfactorySaveHeader.Serialize.html +1 -1
  224. package/docs/functions/SaveBodyChunks.CompressDataIntoChunks.html +1 -1
  225. package/docs/functions/SaveBodyChunks.DecompressChunks.html +1 -1
  226. package/docs/functions/SaveBodyValidation.Parse.html +1 -1
  227. package/docs/functions/SaveBodyValidation.Serialize.html +1 -1
  228. package/docs/functions/SetProperty.Parse.html +1 -1
  229. package/docs/functions/SetProperty.Serialize.html +1 -1
  230. package/docs/functions/SingleProperty.Parse.html +1 -1
  231. package/docs/functions/SingleProperty.ReadValue.html +1 -1
  232. package/docs/functions/SingleProperty.Serialize.html +1 -1
  233. package/docs/functions/SingleProperty.SerializeValue.html +1 -1
  234. package/docs/functions/SoftObjectProperty.Parse.html +1 -1
  235. package/docs/functions/SoftObjectProperty.ReadValue.html +1 -1
  236. package/docs/functions/SoftObjectProperty.Serialize.html +1 -1
  237. package/docs/functions/SoftObjectProperty.SerializeValue.html +1 -1
  238. package/docs/functions/SoftObjectReference.read.html +1 -1
  239. package/docs/functions/SoftObjectReference.write.html +1 -1
  240. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  241. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  242. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  243. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  244. package/docs/functions/StrProperty.Parse.html +1 -1
  245. package/docs/functions/StrProperty.ReadValue.html +1 -1
  246. package/docs/functions/StrProperty.Serialize.html +1 -1
  247. package/docs/functions/StrProperty.SerializeValue.html +1 -1
  248. package/docs/functions/StructProperty.Parse.html +1 -1
  249. package/docs/functions/StructProperty.ParseValue.html +1 -1
  250. package/docs/functions/StructProperty.Serialize.html +1 -1
  251. package/docs/functions/StructProperty.SerializeValue.html +1 -1
  252. package/docs/functions/TOCBlob.Read.html +1 -1
  253. package/docs/functions/TOCBlob.ReadNObjectHeaders.html +1 -1
  254. package/docs/functions/TOCBlob.SerializeAllObjectHeaders.html +1 -1
  255. package/docs/functions/TOCBlob.SkipOver.html +1 -1
  256. package/docs/functions/TOCBlob.Write.html +1 -1
  257. package/docs/functions/TextProperty.Parse.html +1 -1
  258. package/docs/functions/TextProperty.ReadValue.html +1 -1
  259. package/docs/functions/TextProperty.Serialize.html +1 -1
  260. package/docs/functions/TextProperty.SerializeValue.html +1 -1
  261. package/docs/functions/Transform.Parse.html +1 -1
  262. package/docs/functions/Transform.ParseF.html +1 -1
  263. package/docs/functions/Transform.Serialize.html +1 -1
  264. package/docs/functions/Transform.SerializeF.html +1 -1
  265. package/docs/functions/Uint32Property.Parse.html +1 -1
  266. package/docs/functions/Uint32Property.ReadValue.html +1 -1
  267. package/docs/functions/Uint32Property.Serialize.html +1 -1
  268. package/docs/functions/Uint32Property.SerializeValue.html +1 -1
  269. package/docs/functions/Uint64Property.Parse.html +1 -1
  270. package/docs/functions/Uint64Property.ReadValue.html +1 -1
  271. package/docs/functions/Uint64Property.Serialize.html +1 -1
  272. package/docs/functions/Uint64Property.SerializeValue.html +1 -1
  273. package/docs/functions/Uint8Property.Parse.html +1 -1
  274. package/docs/functions/Uint8Property.ReadValue.html +1 -1
  275. package/docs/functions/Uint8Property.Serialize.html +1 -1
  276. package/docs/functions/Uint8Property.SerializeValue.html +1 -1
  277. package/docs/functions/VehiclePhysicsData.Parse.html +1 -1
  278. package/docs/functions/VehiclePhysicsData.Serialize.html +1 -1
  279. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  280. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  281. package/docs/functions/col4.ParseBGRA.html +1 -1
  282. package/docs/functions/col4.ParseRGBA.html +1 -1
  283. package/docs/functions/col4.SerializeBGRA.html +1 -1
  284. package/docs/functions/col4.SerializeRGBA.html +1 -1
  285. package/docs/functions/isArrayProperty.html +1 -1
  286. package/docs/functions/isBoolProperty.html +1 -1
  287. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  288. package/docs/functions/isByteProperty.html +1 -1
  289. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  290. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  291. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  292. package/docs/functions/isDoubleProperty.html +1 -1
  293. package/docs/functions/isEmptySpecialProperties.html +1 -1
  294. package/docs/functions/isEnumProperty.html +1 -1
  295. package/docs/functions/isFloatProperty.html +1 -1
  296. package/docs/functions/isInt64Property.html +1 -1
  297. package/docs/functions/isInt8Property.html +1 -1
  298. package/docs/functions/isIntProperty.html +1 -1
  299. package/docs/functions/isInterfaceProperty.html +1 -1
  300. package/docs/functions/isMapProperty.html +1 -1
  301. package/docs/functions/isNameProperty.html +1 -1
  302. package/docs/functions/isObjectProperty.html +1 -1
  303. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  304. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  305. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  306. package/docs/functions/isSaveComponent.html +1 -1
  307. package/docs/functions/isSaveEntity.html +1 -1
  308. package/docs/functions/isSetProperty.html +1 -1
  309. package/docs/functions/isSingleProperty.html +1 -1
  310. package/docs/functions/isSoftObjectProperty.html +1 -1
  311. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  312. package/docs/functions/isStrProperty.html +1 -1
  313. package/docs/functions/isStructProperty.html +1 -1
  314. package/docs/functions/isTextProperty.html +1 -1
  315. package/docs/functions/isUInt64Property.html +1 -1
  316. package/docs/functions/isUint32Property.html +1 -1
  317. package/docs/functions/isUint8Property.html +1 -1
  318. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  319. package/docs/functions/vec2.Parse.html +1 -1
  320. package/docs/functions/vec2.ParseF.html +1 -1
  321. package/docs/functions/vec2.Serialize.html +1 -1
  322. package/docs/functions/vec2.SerializeF.html +1 -1
  323. package/docs/functions/vec3.Parse.html +1 -1
  324. package/docs/functions/vec3.ParseF.html +1 -1
  325. package/docs/functions/vec3.ParseInt.html +1 -1
  326. package/docs/functions/vec3.Serialize.html +1 -1
  327. package/docs/functions/vec3.SerializeF.html +1 -1
  328. package/docs/functions/vec3.SerializeInt.html +1 -1
  329. package/docs/functions/vec3.add.html +1 -1
  330. package/docs/functions/vec3.length.html +1 -1
  331. package/docs/functions/vec3.mult.html +1 -1
  332. package/docs/functions/vec3.norm.html +1 -1
  333. package/docs/functions/vec3.sub.html +1 -1
  334. package/docs/functions/vec4.Parse.html +1 -1
  335. package/docs/functions/vec4.ParseF.html +1 -1
  336. package/docs/functions/vec4.Serialize.html +1 -1
  337. package/docs/functions/vec4.SerializeF.html +1 -1
  338. package/docs/hierarchy.html +1 -1
  339. package/docs/interfaces/BinaryOperable.html +2 -2
  340. package/docs/interfaces/BinaryReadable.html +2 -2
  341. package/docs/interfaces/BinaryWritable.html +2 -2
  342. package/docs/interfaces/Blueprint.html +2 -2
  343. package/docs/interfaces/BlueprintConfig.html +4 -4
  344. package/docs/interfaces/SaveComponentHeader.html +2 -2
  345. package/docs/interfaces/SaveEntityHeader.html +2 -2
  346. package/docs/interfaces/SaveObjectHeader.html +2 -2
  347. package/docs/modules/FConveyorBeltItem.html +1 -0
  348. package/docs/modules/FConveyorChainSplineSegment.html +1 -0
  349. package/docs/modules/FInventoryItem.html +1 -0
  350. package/docs/modules.html +1 -1
  351. package/docs/types/AbstractBaseProperty.html +2 -2
  352. package/docs/types/ArrayProperty.html +1 -1
  353. package/docs/types/BasicMultipleStructPropertyValue.html +2 -2
  354. package/docs/types/BasicStructPropertyValue.html +2 -2
  355. package/docs/types/BlueprintHeader.html +2 -2
  356. package/docs/types/BlueprintReaderWriterContext.html +2 -2
  357. package/docs/types/BoolArrayProperty.html +1 -1
  358. package/docs/types/BoolProperty.html +1 -1
  359. package/docs/types/BoxStructPropertyValue.html +2 -2
  360. package/docs/types/BuildableSubsystemSpecialProperties.html +2 -2
  361. package/docs/types/BuildableTypeInstance.html +2 -2
  362. package/docs/types/ByteArrayProperty.html +1 -1
  363. package/docs/types/ByteProperty.html +1 -1
  364. package/docs/types/BytePropertyValue.html +2 -2
  365. package/docs/types/ChunkCompressionInfo.html +2 -2
  366. package/docs/types/ChunkSummary.html +2 -2
  367. package/docs/types/CircuitSpecialProperties.html +2 -2
  368. package/docs/types/ConveyorChainActorSpecialProperties.html +2 -2
  369. package/docs/types/ConveyorSpecialProperties.html +2 -2
  370. package/docs/types/DoubleArrayProperty.html +1 -1
  371. package/docs/types/DoubleProperty.html +1 -1
  372. package/docs/types/DynamicStructPropertyValue.html +2 -2
  373. package/docs/types/EmptySpecialProperties.html +2 -2
  374. package/docs/types/EnumArrayProperty.html +1 -1
  375. package/docs/types/EnumProperty.html +1 -1
  376. package/docs/types/FClientIdentityInfo.html +2 -2
  377. package/docs/types/FColor.html +1 -1
  378. package/docs/types/FConveyorBeltItem.html +3 -0
  379. package/docs/types/FConveyorChainSplineSegment.html +10 -0
  380. package/docs/types/FCustomVersion.html +2 -2
  381. package/docs/types/FCustomVersionContainer.html +2 -2
  382. package/docs/types/FEngineVersion.html +2 -2
  383. package/docs/types/FGDynamicStruct.html +2 -2
  384. package/docs/types/FICFrameRange.html +2 -2
  385. package/docs/types/FICFrameRangeStructPropertyValue.html +2 -2
  386. package/docs/types/FINGPUT1BufferPixel.html +2 -2
  387. package/docs/types/FINItemStateFileSystem.html +1 -1
  388. package/docs/types/FINLuaRuntimePersistenceState.html +2 -2
  389. package/docs/types/FINNetworkTrace.html +2 -2
  390. package/docs/types/FIRInstancedStruct.html +1 -1
  391. package/docs/types/FInventoryItem.html +4 -0
  392. package/docs/types/FLBBalancerIndexing.html +2 -2
  393. package/docs/types/FLinearColor.html +1 -1
  394. package/docs/types/FLocalUserNetIdBundle.html +2 -2
  395. package/docs/types/FPackageFileVersion.html +2 -2
  396. package/docs/types/FPlayerInfoHandle.html +2 -2
  397. package/docs/types/FPropertyTag.html +2 -2
  398. package/docs/types/FPropertyTagNode.html +2 -2
  399. package/docs/types/FSaveObjectVersionData.html +2 -2
  400. package/docs/types/FUniqueNetIdRepl.html +2 -2
  401. package/docs/types/FloatArrayProperty.html +1 -1
  402. package/docs/types/FloatProperty.html +1 -1
  403. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  404. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  405. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  406. package/docs/types/GUID.html +1 -1
  407. package/docs/types/Grids.html +1 -1
  408. package/docs/types/HierarchyVersion.html +2 -2
  409. package/docs/types/Int64ArrayProperty.html +1 -1
  410. package/docs/types/Int64Property.html +1 -1
  411. package/docs/types/Int8Property.html +1 -1
  412. package/docs/types/IntArrayProperty.html +1 -1
  413. package/docs/types/IntProperty.html +1 -1
  414. package/docs/types/IntSetProperty.html +1 -1
  415. package/docs/types/InterfaceArrayProperty.html +1 -1
  416. package/docs/types/InterfaceProperty.html +1 -1
  417. package/docs/types/LBBalancerIndexing.html +2 -2
  418. package/docs/types/Level.html +2 -2
  419. package/docs/types/LevelToDestroyedActorsMap.html +1 -1
  420. package/docs/types/Levels.html +1 -1
  421. package/docs/types/MD5Hash.html +2 -2
  422. package/docs/types/MapProperty.html +1 -1
  423. package/docs/types/ModData.html +2 -2
  424. package/docs/types/NameProperty.html +1 -1
  425. package/docs/types/NameSetProperty.html +1 -1
  426. package/docs/types/ObjectArrayProperty.html +1 -1
  427. package/docs/types/ObjectProperty.html +1 -1
  428. package/docs/types/ObjectReference.html +2 -2
  429. package/docs/types/ObjectSetProperty.html +1 -1
  430. package/docs/types/ObjectsListSpecialProperties.html +2 -2
  431. package/docs/types/OptionalGUID.html +1 -1
  432. package/docs/types/PlayerSpecialProperties.html +2 -2
  433. package/docs/types/PowerLineSpecialProperties.html +2 -2
  434. package/docs/types/PropertiesMap.html +1 -1
  435. package/docs/types/RailroadTrackPositionStructPropertyValue.html +2 -2
  436. package/docs/types/ReaderWriterContext.html +1 -1
  437. package/docs/types/RoughSaveVersion.html +1 -1
  438. package/docs/types/SatisfactoryModMetadata.html +2 -2
  439. package/docs/types/SatisfactorySaveHeader.html +2 -2
  440. package/docs/types/SaveBodyChunks.html +2 -2
  441. package/docs/types/SaveBodyValidation.html +2 -2
  442. package/docs/types/SaveReaderWriterContext.html +2 -2
  443. package/docs/types/SetProperty.html +1 -1
  444. package/docs/types/SingleProperty.html +1 -1
  445. package/docs/types/SoftObjectArrayProperty.html +1 -1
  446. package/docs/types/SoftObjectProperty.html +1 -1
  447. package/docs/types/SoftObjectReference.html +2 -2
  448. package/docs/types/SpecialDroneAction.html +2 -2
  449. package/docs/types/SpecialDroneActionProperties.html +2 -2
  450. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  451. package/docs/types/StrArrayProperty.html +1 -1
  452. package/docs/types/StrProperty.html +1 -1
  453. package/docs/types/StrSetProperty.html +1 -1
  454. package/docs/types/StructArrayProperty.html +1 -1
  455. package/docs/types/StructProperty.html +1 -1
  456. package/docs/types/StructSetProperty.html +1 -1
  457. package/docs/types/TextArrayProperty.html +1 -1
  458. package/docs/types/TextProperty.html +1 -1
  459. package/docs/types/TextPropertyValue.html +2 -2
  460. package/docs/types/Transform.html +2 -2
  461. package/docs/types/Uint32Property.html +1 -1
  462. package/docs/types/Uint32SetProperty.html +1 -1
  463. package/docs/types/Uint64Property.html +1 -1
  464. package/docs/types/Uint8Property.html +1 -1
  465. package/docs/types/VehiclePhysicsData.html +2 -2
  466. package/docs/types/VehicleSpecialProperties.html +2 -2
  467. package/docs/types/col4.html +2 -2
  468. package/docs/types/vec2.html +2 -2
  469. package/docs/types/vec3.html +1 -1
  470. package/docs/types/vec4.html +1 -1
  471. package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -1
  472. package/docs/variables/EDIT.html +1 -1
  473. package/docs/variables/FINItemStateFileSystem.ExactStructReference.html +1 -1
  474. package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -1
  475. package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -1
  476. package/docs/variables/isBoolArrayProperty.html +1 -1
  477. package/docs/variables/isByteArrayProperty.html +1 -1
  478. package/docs/variables/isDoubleArrayProperty.html +1 -1
  479. package/docs/variables/isEnumArrayProperty.html +1 -1
  480. package/docs/variables/isFloatArrayProperty.html +1 -1
  481. package/docs/variables/isInt64ArrayProperty.html +1 -1
  482. package/docs/variables/isIntArrayProperty.html +1 -1
  483. package/docs/variables/isIntSetProperty.html +1 -1
  484. package/docs/variables/isInterfaceArrayProperty.html +1 -1
  485. package/docs/variables/isNameSetProperty.html +1 -1
  486. package/docs/variables/isObjectArrayProperty.html +1 -1
  487. package/docs/variables/isObjectSetProperty.html +1 -1
  488. package/docs/variables/isSoftObjectArrayProperty.html +1 -1
  489. package/docs/variables/isStrArrayProperty.html +1 -1
  490. package/docs/variables/isStrSetProperty.html +1 -1
  491. package/docs/variables/isStructArrayPRoperty.html +1 -1
  492. package/docs/variables/isStructSetProperty.html +1 -1
  493. package/docs/variables/isTextArrayProperty.html +1 -1
  494. package/docs/variables/isUint32SetProperty.html +1 -1
  495. package/package.json +1 -1
  496. package/docs/types/ConveyorChainSegmentSpecialProperties.html +0 -10
  497. package/docs/types/ConveyorItemSpecialProperties.html +0 -3
  498. package/docs/types/InventoryItemStructPropertyValue.html +0 -4
@@ -1,40 +1,22 @@
1
1
  import { ContextReader } from '../../../../context/context-reader';
2
2
  import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FConveyorBeltItem } from '../../structs/binary/FConveyorBeltItem';
4
+ import { FConveyorChainSplineSegment } from '../../structs/binary/FConveyorChainSplineSegment';
3
5
  import { ObjectReference } from '../../structs/ObjectReference';
4
- import { vec3 } from '../../structs/vec3';
5
6
  export declare const isConveyorChainActorSpecialProperties: (obj: any) => obj is ConveyorChainActorSpecialProperties;
6
7
  export type ConveyorChainActorSpecialProperties = {
7
8
  type: 'ConveyorChainActorSpecialProperties';
8
9
  firstBelt: ObjectReference;
9
10
  lastBelt: ObjectReference;
10
- beltsInChain: ConveyorChainSegmentSpecialProperties[];
11
+ beltsInChain: FConveyorChainSplineSegment[];
11
12
  totalLength: number;
12
13
  totalNumberItemsMaybe: number;
13
14
  firstChainItemIndex: number;
14
15
  lastChainItemIndex: number;
15
- items: ConveyorItemSpecialProperties[];
16
+ items: FConveyorBeltItem[];
16
17
  };
17
18
  export declare namespace ConveyorChainActorSpecialProperties {
18
19
  const Parse: (reader: ContextReader) => ConveyorChainActorSpecialProperties;
19
20
  const Serialize: (writer: ContextWriter, property: ConveyorChainActorSpecialProperties) => void;
20
21
  }
21
- export type ConveyorChainSegmentSpecialProperties = {
22
- chainActorRef: ObjectReference;
23
- beltRef: ObjectReference;
24
- splinePoints: {
25
- location: vec3;
26
- arriveTangent: vec3;
27
- leaveTangent: vec3;
28
- }[];
29
- offsetAtStart: number;
30
- startsAtLength: number;
31
- endsAtLength: number;
32
- firstItemIndex: number;
33
- lastItemIndex: number;
34
- beltIndexInChain: number;
35
- };
36
- export type ConveyorItemSpecialProperties = {
37
- position: number;
38
- itemReference: ObjectReference;
39
- };
40
22
  //# sourceMappingURL=ConveyorChainActorSpecialProperties.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConveyorChainActorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI1C,eAAO,MAAM,qCAAqC,QAAS,GAAG,KAAG,GAAG,IAAI,mCAAyF,CAAC;AAElK,MAAM,MAAM,mCAAmC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C,SAAS,EAAE,eAAe,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,qCAAqC,EAAE,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,6BAA6B,EAAE,CAAC;CAC1C,CAAC;AAEF,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,KAAK,WAAY,aAAa,KAAG,mCAoE7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,mCAAmC,KAAG,IAqChG,CAAC;CACL;AACD,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,eAAe,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE;QACV,QAAQ,EAAE,IAAI,CAAC;QACf,aAAa,EAAE,IAAI,CAAC;QACpB,YAAY,EAAE,IAAI,CAAC;KACtB,EAAE,CAAC;IACJ,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC;CAClC,CAAC"}
1
+ {"version":3,"file":"ConveyorChainActorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,eAAO,MAAM,qCAAqC,QAAS,GAAG,KAAG,GAAG,IAAI,mCAAyF,CAAC;AAElK,MAAM,MAAM,mCAAmC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C,SAAS,EAAE,eAAe,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,2BAA2B,EAAE,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC9B,CAAC;AAEF,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,KAAK,WAAY,aAAa,KAAG,mCAkC7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,mCAAmC,KAAG,IAmBhG,CAAC;CACL"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConveyorChainActorSpecialProperties = exports.isConveyorChainActorSpecialProperties = void 0;
4
+ const FConveyorBeltItem_1 = require("../../structs/binary/FConveyorBeltItem");
5
+ const FConveyorChainSplineSegment_1 = require("../../structs/binary/FConveyorChainSplineSegment");
4
6
  const ObjectReference_1 = require("../../structs/ObjectReference");
5
- const vec3_1 = require("../../structs/vec3");
6
7
  const isConveyorChainActorSpecialProperties = (obj) => obj.type === 'ConveyorChainActorSpecialProperties';
7
8
  exports.isConveyorChainActorSpecialProperties = isConveyorChainActorSpecialProperties;
8
9
  var ConveyorChainActorSpecialProperties;
@@ -13,34 +14,7 @@ var ConveyorChainActorSpecialProperties;
13
14
  const countBeltsInChain = reader.readInt32();
14
15
  const beltsInChain = [];
15
16
  for (let i = 0; i < countBeltsInChain; i++) {
16
- const chainActorRef = ObjectReference_1.ObjectReference.read(reader);
17
- const beltRef = ObjectReference_1.ObjectReference.read(reader);
18
- const splinePointsCount = reader.readInt32();
19
- const splinePoints = [];
20
- for (let j = 0; j < splinePointsCount; j++) {
21
- splinePoints.push({
22
- location: vec3_1.vec3.Parse(reader),
23
- arriveTangent: vec3_1.vec3.Parse(reader),
24
- leaveTangent: vec3_1.vec3.Parse(reader),
25
- });
26
- }
27
- const offsetAtStart = reader.readFloat32();
28
- const startsAtLength = reader.readFloat32();
29
- const endsAtLength = reader.readFloat32();
30
- const firstItemIndex = reader.readInt32();
31
- const lastItemIndex = reader.readInt32();
32
- const beltIndexInChain = reader.readInt32();
33
- beltsInChain.push({
34
- chainActorRef,
35
- beltRef,
36
- splinePoints,
37
- offsetAtStart,
38
- startsAtLength,
39
- endsAtLength,
40
- firstItemIndex,
41
- lastItemIndex,
42
- beltIndexInChain
43
- });
17
+ beltsInChain.push(FConveyorChainSplineSegment_1.FConveyorChainSplineSegment.read(reader));
44
18
  }
45
19
  const totalLength = reader.readFloat32();
46
20
  const totalNumberItemsMaybe = reader.readInt32();
@@ -49,10 +23,7 @@ var ConveyorChainActorSpecialProperties;
49
23
  const countItemsInChain = reader.readInt32();
50
24
  const items = [];
51
25
  for (let n = 0; n < countItemsInChain; n++) {
52
- const item = ObjectReference_1.ObjectReference.read(reader);
53
- reader.readInt32();
54
- const position = reader.readInt32();
55
- items.push({ itemReference: item, position });
26
+ items.push(FConveyorBeltItem_1.FConveyorBeltItem.read(reader));
56
27
  }
57
28
  return {
58
29
  type: 'ConveyorChainActorSpecialProperties',
@@ -71,20 +42,7 @@ var ConveyorChainActorSpecialProperties;
71
42
  ObjectReference_1.ObjectReference.write(writer, property.firstBelt);
72
43
  writer.writeInt32(property.beltsInChain.length);
73
44
  for (const belt of property.beltsInChain) {
74
- ObjectReference_1.ObjectReference.write(writer, belt.chainActorRef);
75
- ObjectReference_1.ObjectReference.write(writer, belt.beltRef);
76
- writer.writeInt32(belt.splinePoints.length);
77
- for (const splinepoint of belt.splinePoints) {
78
- vec3_1.vec3.Serialize(writer, splinepoint.location);
79
- vec3_1.vec3.Serialize(writer, splinepoint.arriveTangent);
80
- vec3_1.vec3.Serialize(writer, splinepoint.leaveTangent);
81
- }
82
- writer.writeFloat32(belt.offsetAtStart);
83
- writer.writeFloat32(belt.startsAtLength);
84
- writer.writeFloat32(belt.endsAtLength);
85
- writer.writeInt32(belt.firstItemIndex);
86
- writer.writeInt32(belt.lastItemIndex);
87
- writer.writeInt32(belt.beltIndexInChain);
45
+ FConveyorChainSplineSegment_1.FConveyorChainSplineSegment.write(writer, belt);
88
46
  }
89
47
  writer.writeFloat32(property.totalLength);
90
48
  writer.writeInt32(property.totalNumberItemsMaybe);
@@ -92,9 +50,7 @@ var ConveyorChainActorSpecialProperties;
92
50
  writer.writeInt32(property.lastChainItemIndex);
93
51
  writer.writeInt32(property.items.length);
94
52
  for (const item of property.items) {
95
- ObjectReference_1.ObjectReference.write(writer, item.itemReference);
96
- writer.writeInt32(0);
97
- writer.writeInt32(item.position);
53
+ FConveyorBeltItem_1.FConveyorBeltItem.write(writer, item);
98
54
  }
99
55
  };
100
56
  })(ConveyorChainActorSpecialProperties || (exports.ConveyorChainActorSpecialProperties = ConveyorChainActorSpecialProperties = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"ConveyorChainActorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":"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","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\n\n\n\nexport const isConveyorChainActorSpecialProperties = (obj: any): obj is ConveyorChainActorSpecialProperties => obj.type === 'ConveyorChainActorSpecialProperties';\n\nexport type ConveyorChainActorSpecialProperties = {\n type: 'ConveyorChainActorSpecialProperties';\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n totalLength: number;\n totalNumberItemsMaybe: number;\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport namespace ConveyorChainActorSpecialProperties {\n export const Parse = (reader: ContextReader): ConveyorChainActorSpecialProperties => {\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: ConveyorChainSegmentSpecialProperties[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const splinePointsCount = reader.readInt32();\n\n const splinePoints: { location: vec3; arriveTangent: vec3; leaveTangent: vec3; }[] = [];\n for (let j = 0; j < splinePointsCount; j++) {\n splinePoints.push({\n location: vec3.Parse(reader),\n arriveTangent: vec3.Parse(reader),\n leaveTangent: vec3.Parse(reader),\n });\n }\n\n // indices which items of this chain are on this belt.\n const offsetAtStart = reader.readFloat32();\n const startsAtLength = reader.readFloat32();\n const endsAtLength = reader.readFloat32();\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n splinePoints,\n offsetAtStart,\n startsAtLength,\n endsAtLength,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const totalLength = reader.readFloat32();\n const totalNumberItemsMaybe = reader.readInt32();\n\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: ConveyorItemSpecialProperties[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n const item = ObjectReference.read(reader);\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemReference: item, position });\n }\n\n return {\n type: 'ConveyorChainActorSpecialProperties',\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n totalLength,\n totalNumberItemsMaybe,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: ConveyorChainActorSpecialProperties): void => {\n\n ObjectReference.write(writer, property.lastBelt);\n ObjectReference.write(writer, property.firstBelt);\n writer.writeInt32(property.beltsInChain.length);\n\n for (const belt of property.beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.splinePoints.length);\n\n\n for (const splinepoint of belt.splinePoints) {\n vec3.Serialize(writer, splinepoint.location);\n vec3.Serialize(writer, splinepoint.arriveTangent);\n vec3.Serialize(writer, splinepoint.leaveTangent);\n }\n\n writer.writeFloat32(belt.offsetAtStart);\n writer.writeFloat32(belt.startsAtLength);\n writer.writeFloat32(belt.endsAtLength);\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeFloat32(property.totalLength);\n writer.writeInt32(property.totalNumberItemsMaybe);\n writer.writeInt32(property.firstChainItemIndex);\n writer.writeInt32(property.lastChainItemIndex);\n writer.writeInt32(property.items.length);\n\n for (const item of property.items) {\n ObjectReference.write(writer, item.itemReference);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n };\n}\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n splinePoints: {\n location: vec3;\n arriveTangent: vec3;\n leaveTangent: vec3;\n }[];\n offsetAtStart: number;\n startsAtLength: number;\n endsAtLength: number;\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n};\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemReference: ObjectReference;\n};\n\n"]}
1
+ {"version":3,"file":"ConveyorChainActorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,8EAA2E;AAC3E,kGAA+F;AAC/F,mEAAgE;AAGzD,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAclK,IAAiB,mCAAmC,CAyDnD;AAzDD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAqB,EAAuC,EAAE;QAEhF,MAAM,QAAQ,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,SAAS,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/C,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAE7C,MAAM,YAAY,GAAkC,EAAE,CAAC;QACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,YAAY,CAAC,IAAI,CAAC,yDAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAChE,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QACzC,MAAM,qBAAqB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEjD,MAAM,mBAAmB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC/C,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAE7C,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,KAAK,CAAC,IAAI,CAAC,qCAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO;YACH,IAAI,EAAE,qCAAqC;YAC3C,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,QAAQ;YAClB,YAAY;YACZ,WAAW;YACX,qBAAqB;YACrB,mBAAmB;YACnB,kBAAkB;YAClB,KAAK;SACR,CAAC;IACN,CAAC,CAAC;IAEW,6CAAS,GAAG,CAAC,MAAqB,EAAE,QAA6C,EAAQ,EAAE;QAEpG,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;QAClD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAEhD,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,YAAY,EAAE,CAAC;YACvC,yDAA2B,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QAClD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAChD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QAC/C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzC,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;YAChC,qCAAiB,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAzDgB,mCAAmC,mDAAnC,mCAAmC,QAyDnD","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FConveyorBeltItem } from '../../structs/binary/FConveyorBeltItem';\nimport { FConveyorChainSplineSegment } from '../../structs/binary/FConveyorChainSplineSegment';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\n\nexport const isConveyorChainActorSpecialProperties = (obj: any): obj is ConveyorChainActorSpecialProperties => obj.type === 'ConveyorChainActorSpecialProperties';\n\nexport type ConveyorChainActorSpecialProperties = {\n type: 'ConveyorChainActorSpecialProperties';\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: FConveyorChainSplineSegment[];\n totalLength: number;\n totalNumberItemsMaybe: number;\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: FConveyorBeltItem[];\n};\n\nexport namespace ConveyorChainActorSpecialProperties {\n export const Parse = (reader: ContextReader): ConveyorChainActorSpecialProperties => {\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: FConveyorChainSplineSegment[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n beltsInChain.push(FConveyorChainSplineSegment.read(reader));\n }\n\n const totalLength = reader.readFloat32();\n const totalNumberItemsMaybe = reader.readInt32();\n\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: FConveyorBeltItem[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n items.push(FConveyorBeltItem.read(reader));\n }\n\n return {\n type: 'ConveyorChainActorSpecialProperties',\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n totalLength,\n totalNumberItemsMaybe,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: ConveyorChainActorSpecialProperties): void => {\n\n ObjectReference.write(writer, property.lastBelt);\n ObjectReference.write(writer, property.firstBelt);\n writer.writeInt32(property.beltsInChain.length);\n\n for (const belt of property.beltsInChain) {\n FConveyorChainSplineSegment.write(writer, belt);\n }\n\n writer.writeFloat32(property.totalLength);\n writer.writeInt32(property.totalNumberItemsMaybe);\n writer.writeInt32(property.firstChainItemIndex);\n writer.writeInt32(property.lastChainItemIndex);\n writer.writeInt32(property.items.length);\n\n for (const item of property.items) {\n FConveyorBeltItem.write(writer, item);\n }\n };\n}\n"]}
@@ -12,11 +12,11 @@ var FGDynamicStruct;
12
12
  };
13
13
  if (struct.hasValidStruct) {
14
14
  struct.structReference = ObjectReference_1.ObjectReference.read(reader);
15
+ const savedPayloadSize = reader.readInt32();
15
16
  if (reader.context.mods.FicsItNetworks !== undefined && FINItemStateFileSystem_1.FINItemStateFileSystem.IsFINItemStateFileSystem(struct)) {
16
- struct.rawBytes = FINItemStateFileSystem_1.FINItemStateFileSystem.read(reader);
17
+ struct.rawBytes = FINItemStateFileSystem_1.FINItemStateFileSystem.read(reader, savedPayloadSize);
17
18
  }
18
19
  else {
19
- const binarySize = reader.readInt32();
20
20
  struct.properties = PropertiesList_1.PropertiesList.ParseList(reader);
21
21
  }
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FGDynamicStruct.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/FGDynamicStruct.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAC5D,yFAAsF;AACtF,uDAAoD;AAcpD,IAAiB,eAAe,CAqC/B;AArCD,WAAiB,eAAe;IACf,qBAAK,GAAG,CAAC,MAAqB,EAAmB,EAAE;QAE5D,MAAM,MAAM,GAAoB;YAC5B,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC;SAC1C,CAAC;QAEF,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,MAAM,CAAC,eAAe,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAEtD,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,IAAI,+CAAsB,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC9G,MAAM,CAAC,QAAQ,GAAG,+CAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1D,CAAC;iBAAM,CAAC;gBACJ,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtC,MAAM,CAAC,UAAU,GAAG,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACzD,CAAC;QAEL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;IAEY,yBAAS,GAAG,CAAC,MAAqB,EAAE,MAAuB,EAAQ,EAAE;QAC9E,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,eAAgB,CAAC,CAAC;YAEvD,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAC1C,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,IAAI,+CAAsB,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1D,+CAAsB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,QAAS,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,+BAAc,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,UAAW,CAAC,CAAC;YAC7D,CAAC;YACD,MAAM,CAAC,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EArCgB,eAAe,+BAAf,eAAe,QAqC/B","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { PropertiesMap } from '../property/generic/AbstractBaseProperty';\nimport { PropertiesList } from '../property/PropertiesList';\nimport { FINItemStateFileSystem } from './mods/FicsItNetworks/FINItemStateFileSystem';\nimport { ObjectReference } from './ObjectReference';\n\n\n/**\n * generic Dynamic struct. if @param hasValidStruct is true, it also has a @param structReference and @param properties. Else not.\n * @param rawBytes is only filled for the FIN mod so far.\n */\nexport type FGDynamicStruct = {\n hasValidStruct: boolean;\n structReference?: ObjectReference;\n properties?: PropertiesMap;\n rawBytes?: number[];\n};\n\nexport namespace FGDynamicStruct {\n export const Parse = (reader: ContextReader): FGDynamicStruct => {\n\n const struct: FGDynamicStruct = {\n hasValidStruct: reader.readInt32() >= 1\n };\n\n if (struct.hasValidStruct) {\n struct.structReference = ObjectReference.read(reader);\n\n if (reader.context.mods.FicsItNetworks !== undefined && FINItemStateFileSystem.IsFINItemStateFileSystem(struct)) {\n struct.rawBytes = FINItemStateFileSystem.read(reader);\n } else {\n const binarySize = reader.readInt32();\n struct.properties = PropertiesList.ParseList(reader);\n }\n\n }\n\n return struct;\n }\n\n export const Serialize = (writer: ContextWriter, struct: FGDynamicStruct): void => {\n writer.writeInt32(struct.hasValidStruct ? 1 : 0);\n if (struct.hasValidStruct) {\n ObjectReference.write(writer, struct.structReference!);\n\n const before = writer.getBufferPosition();\n writer.writeInt32Zero();\n if (FINItemStateFileSystem.IsFINItemStateFileSystem(struct)) {\n FINItemStateFileSystem.write(writer, struct.rawBytes!);\n } else {\n PropertiesList.SerializeList(writer, struct.properties!);\n }\n writer.writeBinarySizeFromPosition(before, before + 4);\n }\n }\n}"]}
1
+ {"version":3,"file":"FGDynamicStruct.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/FGDynamicStruct.ts"],"names":[],"mappings":";;;AAGA,+DAA4D;AAC5D,yFAAsF;AACtF,uDAAoD;AAcpD,IAAiB,eAAe,CAqC/B;AArCD,WAAiB,eAAe;IACf,qBAAK,GAAG,CAAC,MAAqB,EAAmB,EAAE;QAE5D,MAAM,MAAM,GAAoB;YAC5B,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC;SAC1C,CAAC;QAEF,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,MAAM,CAAC,eAAe,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACtD,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;YAE5C,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,KAAK,SAAS,IAAI,+CAAsB,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC9G,MAAM,CAAC,QAAQ,GAAG,+CAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC5E,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,UAAU,GAAG,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACzD,CAAC;QAEL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAA;IAEY,yBAAS,GAAG,CAAC,MAAqB,EAAE,MAAuB,EAAQ,EAAE;QAC9E,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,eAAgB,CAAC,CAAC;YAEvD,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAC1C,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,IAAI,+CAAsB,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1D,+CAAsB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,QAAS,CAAC,CAAC;YAC3D,CAAC;iBAAM,CAAC;gBACJ,+BAAc,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,UAAW,CAAC,CAAC;YAC7D,CAAC;YACD,MAAM,CAAC,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EArCgB,eAAe,+BAAf,eAAe,QAqC/B","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { PropertiesMap } from '../property/generic/AbstractBaseProperty';\nimport { PropertiesList } from '../property/PropertiesList';\nimport { FINItemStateFileSystem } from './mods/FicsItNetworks/FINItemStateFileSystem';\nimport { ObjectReference } from './ObjectReference';\n\n\n/**\n * generic Dynamic struct. if @param hasValidStruct is true, it also has a @param structReference and @param properties. Else not.\n * @param rawBytes is only filled for the FIN mod so far.\n */\nexport type FGDynamicStruct = {\n hasValidStruct: boolean;\n structReference?: ObjectReference;\n properties?: PropertiesMap;\n rawBytes?: number[];\n};\n\nexport namespace FGDynamicStruct {\n export const Parse = (reader: ContextReader): FGDynamicStruct => {\n\n const struct: FGDynamicStruct = {\n hasValidStruct: reader.readInt32() >= 1\n };\n\n if (struct.hasValidStruct) {\n struct.structReference = ObjectReference.read(reader);\n const savedPayloadSize = reader.readInt32();\n\n if (reader.context.mods.FicsItNetworks !== undefined && FINItemStateFileSystem.IsFINItemStateFileSystem(struct)) {\n struct.rawBytes = FINItemStateFileSystem.read(reader, savedPayloadSize);\n } else {\n struct.properties = PropertiesList.ParseList(reader);\n }\n\n }\n\n return struct;\n }\n\n export const Serialize = (writer: ContextWriter, struct: FGDynamicStruct): void => {\n writer.writeInt32(struct.hasValidStruct ? 1 : 0);\n if (struct.hasValidStruct) {\n ObjectReference.write(writer, struct.structReference!);\n\n const before = writer.getBufferPosition();\n writer.writeInt32Zero();\n if (FINItemStateFileSystem.IsFINItemStateFileSystem(struct)) {\n FINItemStateFileSystem.write(writer, struct.rawBytes!);\n } else {\n PropertiesList.SerializeList(writer, struct.properties!);\n }\n writer.writeBinarySizeFromPosition(before, before + 4);\n }\n }\n}"]}
@@ -0,0 +1,12 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FInventoryItem } from './FInventoryItem';
4
+ export type FConveyorBeltItem = {
5
+ item: FInventoryItem;
6
+ position: number;
7
+ };
8
+ export declare namespace FConveyorBeltItem {
9
+ function read(reader: ContextReader): FConveyorBeltItem;
10
+ function write(writer: ContextWriter, value: FConveyorBeltItem): void;
11
+ }
12
+ //# sourceMappingURL=FConveyorBeltItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FConveyorBeltItem.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FConveyorBeltItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAC/B,SAAgB,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,iBAAiB,CAK7D;IAED,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAG3E;CACJ"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FConveyorBeltItem = void 0;
4
+ const FInventoryItem_1 = require("./FInventoryItem");
5
+ var FConveyorBeltItem;
6
+ (function (FConveyorBeltItem) {
7
+ function read(reader) {
8
+ return {
9
+ item: FInventoryItem_1.FInventoryItem.read(reader),
10
+ position: reader.readFloat32()
11
+ };
12
+ }
13
+ FConveyorBeltItem.read = read;
14
+ function write(writer, value) {
15
+ FInventoryItem_1.FInventoryItem.write(writer, value.item);
16
+ writer.writeFloat32(value.position);
17
+ }
18
+ FConveyorBeltItem.write = write;
19
+ })(FConveyorBeltItem || (exports.FConveyorBeltItem = FConveyorBeltItem = {}));
20
+ ;
21
+ //# sourceMappingURL=FConveyorBeltItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FConveyorBeltItem.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FConveyorBeltItem.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAOlD,IAAiB,iBAAiB,CAYjC;AAZD,WAAiB,iBAAiB;IAC9B,SAAgB,IAAI,CAAC,MAAqB;QACtC,OAAO;YACH,IAAI,EAAE,+BAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE;SACjC,CAAA;IACL,CAAC;IALe,sBAAI,OAKnB,CAAA;IAED,SAAgB,KAAK,CAAC,MAAqB,EAAE,KAAwB;QACjE,+BAAc,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAHe,uBAAK,QAGpB,CAAA;AACL,CAAC,EAZgB,iBAAiB,iCAAjB,iBAAiB,QAYjC;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { FInventoryItem } from './FInventoryItem';\n\nexport type FConveyorBeltItem = {\n item: FInventoryItem;\n position: number;\n};\n\nexport namespace FConveyorBeltItem {\n export function read(reader: ContextReader): FConveyorBeltItem {\n return {\n item: FInventoryItem.read(reader),\n position: reader.readFloat32()\n }\n }\n\n export function write(writer: ContextWriter, value: FConveyorBeltItem): void {\n FInventoryItem.write(writer, value.item);\n writer.writeFloat32(value.position);\n }\n};"]}
@@ -0,0 +1,38 @@
1
+ import { ContextReader } from "../../../../context/context-reader";
2
+ import { ContextWriter } from "../../../../context/context-writer";
3
+ import { ObjectReference } from "../ObjectReference";
4
+ import { vec3 } from "../vec3";
5
+ export type FConveyorChainSplineSegment = {
6
+ chainActorRef: ObjectReference;
7
+ beltRef: ObjectReference;
8
+ splinePoints: {
9
+ location: vec3;
10
+ arriveTangent: vec3;
11
+ leaveTangent: vec3;
12
+ }[];
13
+ offsetAtStart: number;
14
+ startsAtLength: number;
15
+ endsAtLength: number;
16
+ firstItemIndex: number;
17
+ lastItemIndex: number;
18
+ beltIndexInChain: number;
19
+ };
20
+ export declare namespace FConveyorChainSplineSegment {
21
+ function read(reader: ContextReader): {
22
+ chainActorRef: ObjectReference;
23
+ beltRef: ObjectReference;
24
+ splinePoints: {
25
+ location: vec3;
26
+ arriveTangent: vec3;
27
+ leaveTangent: vec3;
28
+ }[];
29
+ offsetAtStart: number;
30
+ startsAtLength: number;
31
+ endsAtLength: number;
32
+ firstItemIndex: number;
33
+ lastItemIndex: number;
34
+ beltIndexInChain: number;
35
+ };
36
+ function write(writer: ContextWriter, belt: FConveyorChainSplineSegment): void;
37
+ }
38
+ //# sourceMappingURL=FConveyorChainSplineSegment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FConveyorChainSplineSegment.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,MAAM,2BAA2B,GAAG;IACtC,aAAa,EAAE,eAAe,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE;QACV,QAAQ,EAAE,IAAI,CAAC;QACf,aAAa,EAAE,IAAI,CAAC;QACpB,YAAY,EAAE,IAAI,CAAC;KACtB,EAAE,CAAC;IACJ,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,yBAAiB,2BAA2B,CAAC;IACzC,SAAgB,IAAI,CAAC,MAAM,EAAE,aAAa;;;;sBAKN,IAAI;2BAAiB,IAAI;0BAAgB,IAAI;;;;;;;;MA4BhF;IAED,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,2BAA2B,QAkB7E;CACJ"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FConveyorChainSplineSegment = void 0;
4
+ const ObjectReference_1 = require("../ObjectReference");
5
+ const vec3_1 = require("../vec3");
6
+ var FConveyorChainSplineSegment;
7
+ (function (FConveyorChainSplineSegment) {
8
+ function read(reader) {
9
+ const chainActorRef = ObjectReference_1.ObjectReference.read(reader);
10
+ const beltRef = ObjectReference_1.ObjectReference.read(reader);
11
+ const splinePointsCount = reader.readInt32();
12
+ const splinePoints = [];
13
+ for (let j = 0; j < splinePointsCount; j++) {
14
+ splinePoints.push({
15
+ location: vec3_1.vec3.Parse(reader),
16
+ arriveTangent: vec3_1.vec3.Parse(reader),
17
+ leaveTangent: vec3_1.vec3.Parse(reader),
18
+ });
19
+ }
20
+ const offsetAtStart = reader.readFloat32();
21
+ const startsAtLength = reader.readFloat32();
22
+ const endsAtLength = reader.readFloat32();
23
+ const firstItemIndex = reader.readInt32();
24
+ const lastItemIndex = reader.readInt32();
25
+ const beltIndexInChain = reader.readInt32();
26
+ return {
27
+ chainActorRef,
28
+ beltRef,
29
+ splinePoints,
30
+ offsetAtStart,
31
+ startsAtLength,
32
+ endsAtLength,
33
+ firstItemIndex,
34
+ lastItemIndex,
35
+ beltIndexInChain
36
+ };
37
+ }
38
+ FConveyorChainSplineSegment.read = read;
39
+ function write(writer, belt) {
40
+ ObjectReference_1.ObjectReference.write(writer, belt.chainActorRef);
41
+ ObjectReference_1.ObjectReference.write(writer, belt.beltRef);
42
+ writer.writeInt32(belt.splinePoints.length);
43
+ for (const splinepoint of belt.splinePoints) {
44
+ vec3_1.vec3.Serialize(writer, splinepoint.location);
45
+ vec3_1.vec3.Serialize(writer, splinepoint.arriveTangent);
46
+ vec3_1.vec3.Serialize(writer, splinepoint.leaveTangent);
47
+ }
48
+ writer.writeFloat32(belt.offsetAtStart);
49
+ writer.writeFloat32(belt.startsAtLength);
50
+ writer.writeFloat32(belt.endsAtLength);
51
+ writer.writeInt32(belt.firstItemIndex);
52
+ writer.writeInt32(belt.lastItemIndex);
53
+ writer.writeInt32(belt.beltIndexInChain);
54
+ }
55
+ FConveyorChainSplineSegment.write = write;
56
+ })(FConveyorChainSplineSegment || (exports.FConveyorChainSplineSegment = FConveyorChainSplineSegment = {}));
57
+ //# sourceMappingURL=FConveyorChainSplineSegment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FConveyorChainSplineSegment.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FConveyorChainSplineSegment.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,kCAA+B;AAkB/B,IAAiB,2BAA2B,CAuD3C;AAvDD,WAAiB,2BAA2B;IACxC,SAAgB,IAAI,CAAC,MAAqB;QACtC,MAAM,aAAa,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAE7C,MAAM,YAAY,GAAmE,EAAE,CAAC;QACxF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,YAAY,CAAC,IAAI,CAAC;gBACd,QAAQ,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;gBAC5B,aAAa,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;gBACjC,YAAY,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;aACnC,CAAC,CAAC;QACP,CAAC;QAGD,MAAM,aAAa,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3C,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC5C,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAC1C,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC1C,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAE5C,OAAO;YACH,aAAa;YACb,OAAO;YACP,YAAY;YACZ,aAAa;YACb,cAAc;YACd,YAAY;YACZ,cAAc;YACd,aAAa;YACb,gBAAgB;SACmB,CAAC;IAC5C,CAAC;IAjCe,gCAAI,OAiCnB,CAAA;IAED,SAAgB,KAAK,CAAC,MAAqB,EAAE,IAAiC;QAC1E,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QAClD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAG5C,KAAK,MAAM,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YAC1C,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC7C,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;YAClD,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACzC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACvC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACtC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC7C,CAAC;IAlBe,iCAAK,QAkBpB,CAAA;AACL,CAAC,EAvDgB,2BAA2B,2CAA3B,2BAA2B,QAuD3C","sourcesContent":["import { ContextReader } from \"../../../../context/context-reader\";\nimport { ContextWriter } from \"../../../../context/context-writer\";\nimport { ObjectReference } from \"../ObjectReference\";\nimport { vec3 } from \"../vec3\";\n\nexport type FConveyorChainSplineSegment = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n splinePoints: {\n location: vec3;\n arriveTangent: vec3;\n leaveTangent: vec3;\n }[];\n offsetAtStart: number;\n startsAtLength: number;\n endsAtLength: number;\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n};\n\nexport namespace FConveyorChainSplineSegment {\n export function read(reader: ContextReader) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const splinePointsCount = reader.readInt32();\n\n const splinePoints: { location: vec3; arriveTangent: vec3; leaveTangent: vec3; }[] = [];\n for (let j = 0; j < splinePointsCount; j++) {\n splinePoints.push({\n location: vec3.Parse(reader),\n arriveTangent: vec3.Parse(reader),\n leaveTangent: vec3.Parse(reader),\n });\n }\n\n // indices which items of this chain are on this belt.\n const offsetAtStart = reader.readFloat32();\n const startsAtLength = reader.readFloat32();\n const endsAtLength = reader.readFloat32();\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n return {\n chainActorRef,\n beltRef,\n splinePoints,\n offsetAtStart,\n startsAtLength,\n endsAtLength,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n } satisfies FConveyorChainSplineSegment;\n }\n\n export function write(writer: ContextWriter, belt: FConveyorChainSplineSegment) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.splinePoints.length);\n\n\n for (const splinepoint of belt.splinePoints) {\n vec3.Serialize(writer, splinepoint.location);\n vec3.Serialize(writer, splinepoint.arriveTangent);\n vec3.Serialize(writer, splinepoint.leaveTangent);\n }\n\n writer.writeFloat32(belt.offsetAtStart);\n writer.writeFloat32(belt.startsAtLength);\n writer.writeFloat32(belt.endsAtLength);\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n}"]}
@@ -0,0 +1,14 @@
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
+ import { FGDynamicStruct } from '../FGDynamicStruct';
4
+ import { ObjectReference } from '../ObjectReference';
5
+ export type FInventoryItem = {
6
+ itemReference: ObjectReference;
7
+ itemState?: FGDynamicStruct;
8
+ legacyItemStateActor?: ObjectReference;
9
+ };
10
+ export declare namespace FInventoryItem {
11
+ function read(reader: ContextReader): FInventoryItem;
12
+ function write(writer: ContextWriter, value: FInventoryItem): void;
13
+ }
14
+ //# sourceMappingURL=FInventoryItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FInventoryItem.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FInventoryItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IACzB,aAAa,EAAE,eAAe,CAAC;IAC/B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,oBAAoB,CAAC,EAAE,eAAe,CAAC;CAC1C,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAC5B,SAAgB,IAAI,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc,CAa1D;IAED,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CASxE;CACJ"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FInventoryItem = void 0;
4
+ const save_custom_version_1 = require("../../../save/save-custom-version");
5
+ const FGDynamicStruct_1 = require("../FGDynamicStruct");
6
+ const ObjectReference_1 = require("../ObjectReference");
7
+ var FInventoryItem;
8
+ (function (FInventoryItem) {
9
+ function read(reader) {
10
+ let value = {
11
+ itemReference: ObjectReference_1.ObjectReference.read(reader)
12
+ };
13
+ if (reader.context.saveVersion.object >= save_custom_version_1.SaveCustomVersion.RefactoredInventoryItemState) {
14
+ value.itemState = FGDynamicStruct_1.FGDynamicStruct.Parse(reader);
15
+ }
16
+ else {
17
+ value.legacyItemStateActor = ObjectReference_1.ObjectReference.read(reader);
18
+ }
19
+ return value;
20
+ }
21
+ FInventoryItem.read = read;
22
+ function write(writer, value) {
23
+ ObjectReference_1.ObjectReference.write(writer, value.itemReference);
24
+ if (writer.context.saveVersion.object >= save_custom_version_1.SaveCustomVersion.RefactoredInventoryItemState) {
25
+ FGDynamicStruct_1.FGDynamicStruct.Serialize(writer, value.itemState);
26
+ }
27
+ else {
28
+ ObjectReference_1.ObjectReference.write(writer, value.legacyItemStateActor);
29
+ }
30
+ }
31
+ FInventoryItem.write = write;
32
+ })(FInventoryItem || (exports.FInventoryItem = FInventoryItem = {}));
33
+ ;
34
+ //# sourceMappingURL=FInventoryItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FInventoryItem.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FInventoryItem.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,wDAAqD;AACrD,wDAAqD;AAQrD,IAAiB,cAAc,CA0B9B;AA1BD,WAAiB,cAAc;IAC3B,SAAgB,IAAI,CAAC,MAAqB;QACtC,IAAI,KAAK,GAAmB;YACxB,aAAa,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;SAC9C,CAAC;QAGF,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,IAAI,uCAAiB,CAAC,4BAA4B,EAAE,CAAC;YACtF,KAAK,CAAC,SAAS,GAAG,iCAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,KAAK,CAAC,oBAAoB,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAbe,mBAAI,OAanB,CAAA;IAED,SAAgB,KAAK,CAAC,MAAqB,EAAE,KAAqB;QAE9D,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAEnD,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,IAAI,uCAAiB,CAAC,4BAA4B,EAAE,CAAC;YACtF,iCAAe,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,oBAAqB,CAAC,CAAC;QAC/D,CAAC;IACL,CAAC;IATe,oBAAK,QASpB,CAAA;AACL,CAAC,EA1BgB,cAAc,8BAAd,cAAc,QA0B9B;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\nimport { FGDynamicStruct } from '../FGDynamicStruct';\nimport { ObjectReference } from '../ObjectReference';\n\nexport type FInventoryItem = {\n itemReference: ObjectReference;\n itemState?: FGDynamicStruct;\n legacyItemStateActor?: ObjectReference;\n};\n\nexport namespace FInventoryItem {\n export function read(reader: ContextReader): FInventoryItem {\n let value: FInventoryItem = {\n itemReference: ObjectReference.read(reader)\n };\n\n // inventory items have potentially an item state. but not before explicit version\n if (reader.context.saveVersion.object >= SaveCustomVersion.RefactoredInventoryItemState) {\n value.itemState = FGDynamicStruct.Parse(reader);\n } else {\n value.legacyItemStateActor = ObjectReference.read(reader);\n }\n\n return value;\n }\n\n export function write(writer: ContextWriter, value: FInventoryItem): void {\n\n ObjectReference.write(writer, value.itemReference);\n\n if (writer.context.saveVersion.object >= SaveCustomVersion.RefactoredInventoryItemState) {\n FGDynamicStruct.Serialize(writer, value.itemState!);\n } else {\n ObjectReference.write(writer, value.legacyItemStateActor!);\n }\n }\n};"]}
@@ -6,7 +6,7 @@ export type FINItemStateFileSystem = number[];
6
6
  export declare namespace FINItemStateFileSystem {
7
7
  const ExactStructReference: ObjectReference;
8
8
  const IsFINItemStateFileSystem: (struct: FGDynamicStruct) => boolean;
9
- const read: (reader: ContextReader) => FINItemStateFileSystem;
9
+ const read: (reader: ContextReader, numBytes: number) => FINItemStateFileSystem;
10
10
  const write: (writer: ContextWriter, rawBytes: FINItemStateFileSystem) => void;
11
11
  }
12
12
  //# sourceMappingURL=FINItemStateFileSystem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FINItemStateFileSystem.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,MAAM,sBAAsB,GAAG,MAAM,EAAE,CAAC;AAE9C,yBAAiB,sBAAsB,CAAC;IAE7B,MAAM,oBAAoB,EAAE,eAGlC,CAAC;IAEK,MAAM,wBAAwB,WAAY,eAAe,KAAG,OAElE,CAAA;IAEM,MAAM,IAAI,WAAY,aAAa,KAAG,sBAG5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,YAAY,sBAAsB,KAAG,IAE/E,CAAA;CACJ"}
1
+ {"version":3,"file":"FINItemStateFileSystem.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,MAAM,sBAAsB,GAAG,MAAM,EAAE,CAAC;AAE9C,yBAAiB,sBAAsB,CAAC;IAE7B,MAAM,oBAAoB,EAAE,eAGlC,CAAC;IAEK,MAAM,wBAAwB,WAAY,eAAe,KAAG,OAElE,CAAA;IAEM,MAAM,IAAI,WAAY,aAAa,YAAY,MAAM,KAAG,sBAE9D,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,YAAY,sBAAsB,KAAG,IAE/E,CAAA;CACJ"}
@@ -11,8 +11,7 @@ var FINItemStateFileSystem;
11
11
  FINItemStateFileSystem.IsFINItemStateFileSystem = (struct) => {
12
12
  return ObjectReference_1.ObjectReference.IsEqual(struct.structReference, FINItemStateFileSystem.ExactStructReference);
13
13
  };
14
- FINItemStateFileSystem.read = (reader) => {
15
- const numBytes = reader.readInt32();
14
+ FINItemStateFileSystem.read = (reader, numBytes) => {
16
15
  return Array.from(reader.readBytes(numBytes));
17
16
  };
18
17
  FINItemStateFileSystem.write = (writer, rawBytes) => {
@@ -1 +1 @@
1
- {"version":3,"file":"FINItemStateFileSystem.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.ts"],"names":[],"mappings":";;;AAGA,2DAAwD;AAOxD,IAAiB,sBAAsB,CAmBtC;AAnBD,WAAiB,sBAAsB;IAEtB,2CAAoB,GAAoB;QACjD,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,uDAAuD;KACpE,CAAC;IAEW,+CAAwB,GAAG,CAAC,MAAuB,EAAW,EAAE;QACzE,OAAO,iCAAe,CAAC,OAAO,CAAC,MAAM,CAAC,eAAgB,EAAE,uBAAA,oBAAoB,CAAC,CAAC;IAClF,CAAC,CAAA;IAEY,2BAAI,GAAG,CAAC,MAAqB,EAA0B,EAAE;QAClE,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClD,CAAC,CAAA;IAEY,4BAAK,GAAG,CAAC,MAAqB,EAAE,QAAgC,EAAQ,EAAE;QACnF,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAA;AACL,CAAC,EAnBgB,sBAAsB,sCAAtB,sBAAsB,QAmBtC","sourcesContent":["import { ContextReader } from \"../../../../../context/context-reader\";\nimport { ContextWriter } from \"../../../../../context/context-writer\";\nimport { FGDynamicStruct } from \"../../FGDynamicStruct\";\nimport { ObjectReference } from \"../../ObjectReference\";\n\n/**\n * specifically the FileSystem item state of the FicsItNetworks mod has just raw bytes.\n */\nexport type FINItemStateFileSystem = number[];\n\nexport namespace FINItemStateFileSystem {\n\n export const ExactStructReference: ObjectReference = {\n levelName: '',\n pathName: '/Script/FicsItNetworksComputer.FINItemStateFileSystem'\n };\n\n export const IsFINItemStateFileSystem = (struct: FGDynamicStruct): boolean => {\n return ObjectReference.IsEqual(struct.structReference!, ExactStructReference);\n }\n\n export const read = (reader: ContextReader): FINItemStateFileSystem => {\n const numBytes = reader.readInt32();\n return Array.from(reader.readBytes(numBytes));\n }\n\n export const write = (writer: ContextWriter, rawBytes: FINItemStateFileSystem): void => {\n writer.writeBytesArray(rawBytes);\n }\n}"]}
1
+ {"version":3,"file":"FINItemStateFileSystem.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/structs/mods/FicsItNetworks/FINItemStateFileSystem.ts"],"names":[],"mappings":";;;AAGA,2DAAwD;AAOxD,IAAiB,sBAAsB,CAkBtC;AAlBD,WAAiB,sBAAsB;IAEtB,2CAAoB,GAAoB;QACjD,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,uDAAuD;KACpE,CAAC;IAEW,+CAAwB,GAAG,CAAC,MAAuB,EAAW,EAAE;QACzE,OAAO,iCAAe,CAAC,OAAO,CAAC,MAAM,CAAC,eAAgB,EAAE,uBAAA,oBAAoB,CAAC,CAAC;IAClF,CAAC,CAAA;IAEY,2BAAI,GAAG,CAAC,MAAqB,EAAE,QAAgB,EAA0B,EAAE;QACpF,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClD,CAAC,CAAA;IAEY,4BAAK,GAAG,CAAC,MAAqB,EAAE,QAAgC,EAAQ,EAAE;QACnF,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAA;AACL,CAAC,EAlBgB,sBAAsB,sCAAtB,sBAAsB,QAkBtC","sourcesContent":["import { ContextReader } from \"../../../../../context/context-reader\";\nimport { ContextWriter } from \"../../../../../context/context-writer\";\nimport { FGDynamicStruct } from \"../../FGDynamicStruct\";\nimport { ObjectReference } from \"../../ObjectReference\";\n\n/**\n * specifically the FileSystem item state of the FicsItNetworks mod has just raw bytes.\n */\nexport type FINItemStateFileSystem = number[];\n\nexport namespace FINItemStateFileSystem {\n\n export const ExactStructReference: ObjectReference = {\n levelName: '',\n pathName: '/Script/FicsItNetworksComputer.FINItemStateFileSystem'\n };\n\n export const IsFINItemStateFileSystem = (struct: FGDynamicStruct): boolean => {\n return ObjectReference.IsEqual(struct.structReference!, ExactStructReference);\n }\n\n export const read = (reader: ContextReader, numBytes: number): FINItemStateFileSystem => {\n return Array.from(reader.readBytes(numBytes));\n }\n\n export const write = (writer: ContextWriter, rawBytes: FINItemStateFileSystem): void => {\n writer.writeBytesArray(rawBytes);\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parser.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.spec.d.ts","sourceRoot":"","sources":["../../src/test/parser.spec.ts"],"names":[],"mappings":""}