@etothepii/satisfactory-file-parser 1.0.2 → 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 (330) hide show
  1. package/LICENCE.md +1 -1
  2. package/LICENSE +1 -1
  3. package/README.md +19 -9
  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/parser.d.ts +2 -6
  9. package/build/parser/parser.d.ts.map +1 -1
  10. package/build/parser/parser.js +5 -5
  11. package/build/parser/parser.js.map +1 -1
  12. package/build/parser/satisfactory/save/object-references-list.d.ts +2 -2
  13. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
  14. package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
  15. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +2 -2
  16. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  17. package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
  18. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  19. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +3 -5
  20. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  21. package/build/parser/satisfactory/types/property/PropertiesList.js +10 -13
  22. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  23. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
  24. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
  25. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
  26. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
  27. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
  28. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
  29. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
  30. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
  31. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
  32. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
  33. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
  34. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
  35. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
  36. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
  37. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
  38. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
  39. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
  40. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
  41. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
  42. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
  43. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
  44. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
  45. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
  46. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
  47. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
  48. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
  49. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
  50. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
  51. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
  52. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
  53. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
  54. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
  55. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
  56. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
  57. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
  58. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
  59. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
  60. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
  61. package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
  62. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
  63. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
  64. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
  65. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
  66. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
  67. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  68. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +2 -21
  69. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  70. package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
  71. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
  72. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
  73. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +2 -2
  74. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  75. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  76. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +2 -2
  77. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
  78. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
  79. package/build/parser/satisfactory/types/structs/Transform.d.ts +3 -3
  80. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
  81. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
  82. package/build/parser/satisfactory/types/structs/col4.d.ts +3 -3
  83. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
  84. package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
  85. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
  86. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
  87. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
  88. package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
  89. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
  90. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
  91. package/build/parser/satisfactory/types/structs/vec3.d.ts +4 -4
  92. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
  93. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
  94. package/build/parser/satisfactory/types/structs/vec4.d.ts +3 -3
  95. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
  96. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
  97. package/docs/assets/navigation.js +1 -1
  98. package/docs/assets/search.js +1 -1
  99. package/docs/classes/AbstractBaseProperty.html +2 -2
  100. package/docs/classes/AbstractProperty.html +2 -2
  101. package/docs/classes/ArrayProperty.html +2 -2
  102. package/docs/classes/BasicProperty.html +2 -2
  103. package/docs/classes/BlueprintConfigReader.html +3 -3
  104. package/docs/classes/BlueprintConfigWriter.html +3 -3
  105. package/docs/classes/BlueprintReader.html +3 -3
  106. package/docs/classes/BlueprintWriter.html +3 -3
  107. package/docs/classes/BoolProperty.html +2 -2
  108. package/docs/classes/ByteProperty.html +2 -2
  109. package/docs/classes/CompressionLibraryError.html +2 -2
  110. package/docs/classes/CorruptSaveError.html +2 -2
  111. package/docs/classes/DoubleProperty.html +2 -2
  112. package/docs/classes/EnumProperty.html +2 -2
  113. package/docs/classes/FloatProperty.html +2 -2
  114. package/docs/classes/Int32Property.html +2 -2
  115. package/docs/classes/Int64Property.html +2 -2
  116. package/docs/classes/Int8Property.html +2 -2
  117. package/docs/classes/MapProperty.html +2 -2
  118. package/docs/classes/ObjectProperty.html +2 -2
  119. package/docs/classes/Parser.html +8 -8
  120. package/docs/classes/ParserError.html +2 -2
  121. package/docs/classes/ReadableStreamParser.html +2 -2
  122. package/docs/classes/SatisfactorySave.html +2 -2
  123. package/docs/classes/SaveComponent.html +2 -2
  124. package/docs/classes/SaveEntity.html +2 -2
  125. package/docs/classes/SaveReader.html +3 -3
  126. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  127. package/docs/classes/SaveStreamWriter.html +2 -2
  128. package/docs/classes/SaveWriter.html +3 -3
  129. package/docs/classes/SetProperty.html +2 -2
  130. package/docs/classes/StrProperty.html +2 -2
  131. package/docs/classes/StructProperty.html +2 -2
  132. package/docs/classes/TextProperty.html +2 -2
  133. package/docs/classes/TimeoutError.html +2 -2
  134. package/docs/classes/Uint32Property.html +2 -2
  135. package/docs/classes/Uint64Property.html +2 -2
  136. package/docs/classes/Uint8Property.html +2 -2
  137. package/docs/classes/UnimplementedError.html +2 -2
  138. package/docs/classes/UnsupportedVersionError.html +2 -2
  139. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -0
  140. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
  141. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
  142. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
  143. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
  144. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
  145. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
  146. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
  147. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  148. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  149. package/docs/functions/EmptySpecialProperties.Parse.html +1 -0
  150. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
  151. package/docs/functions/FICFrameRange.Parse.html +1 -1
  152. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  153. package/docs/functions/GUID.read.html +1 -1
  154. package/docs/functions/GUID.write.html +1 -1
  155. package/docs/functions/GUIDInfo.read.html +1 -1
  156. package/docs/functions/GUIDInfo.write.html +1 -1
  157. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  158. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  159. package/docs/functions/Level.ReadLevel.html +1 -1
  160. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  161. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  162. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  163. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  164. package/docs/functions/Level.SerializeLevel.html +1 -1
  165. package/docs/functions/MD5Hash.read.html +1 -1
  166. package/docs/functions/MD5Hash.write.html +1 -1
  167. package/docs/functions/ObjectReference.read.html +1 -1
  168. package/docs/functions/ObjectReference.write.html +1 -1
  169. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -0
  170. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
  171. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
  172. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
  173. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
  174. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
  175. package/docs/functions/PropertiesList.ParseList.html +1 -1
  176. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  177. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  178. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  179. package/docs/functions/SoftObjectReference.read.html +1 -1
  180. package/docs/functions/SoftObjectReference.write.html +1 -1
  181. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -0
  182. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
  183. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  184. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  185. package/docs/functions/Transform.Parse.html +1 -1
  186. package/docs/functions/Transform.ParseF.html +1 -1
  187. package/docs/functions/Transform.Serialize.html +1 -1
  188. package/docs/functions/Transform.SerializeF.html +1 -1
  189. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -0
  190. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
  191. package/docs/functions/col4.ParseBGRA.html +1 -1
  192. package/docs/functions/col4.ParseRGBA.html +1 -1
  193. package/docs/functions/col4.SerializeBGRA.html +1 -1
  194. package/docs/functions/col4.SerializeRGBA.html +1 -1
  195. package/docs/functions/isArrayProperty.html +1 -1
  196. package/docs/functions/isBoolProperty.html +1 -1
  197. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -0
  198. package/docs/functions/isByteProperty.html +1 -1
  199. package/docs/functions/isCircuitSpecialProperties.html +1 -0
  200. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
  201. package/docs/functions/isConveyorSpecialProperties.html +1 -0
  202. package/docs/functions/isDoubleProperty.html +1 -1
  203. package/docs/functions/isEmptySpecialProperties.html +1 -0
  204. package/docs/functions/isEnumProperty.html +1 -1
  205. package/docs/functions/isFloatProperty.html +1 -1
  206. package/docs/functions/isInt32Property.html +1 -1
  207. package/docs/functions/isInt64Property.html +1 -1
  208. package/docs/functions/isInt8Property.html +1 -1
  209. package/docs/functions/isMapProperty.html +1 -1
  210. package/docs/functions/isObjectProperty.html +1 -1
  211. package/docs/functions/isObjectsListSpecialProperties.html +1 -0
  212. package/docs/functions/isPlayerSpecialProperties.html +1 -0
  213. package/docs/functions/isPowerLineSpecialProperties.html +1 -0
  214. package/docs/functions/isSaveComponent.html +1 -1
  215. package/docs/functions/isSaveEntity.html +1 -1
  216. package/docs/functions/isSetProperty.html +1 -1
  217. package/docs/functions/isSpecialDroneActionProperties.html +1 -0
  218. package/docs/functions/isStrProperty.html +1 -1
  219. package/docs/functions/isStructProperty.html +1 -1
  220. package/docs/functions/isTextProperty.html +1 -1
  221. package/docs/functions/isUInt64Property.html +1 -1
  222. package/docs/functions/isUint32Property.html +1 -1
  223. package/docs/functions/isUint8Property.html +1 -1
  224. package/docs/functions/isVehicleSpecialProperties.html +1 -0
  225. package/docs/functions/vec2.Parse.html +1 -1
  226. package/docs/functions/vec2.ParseF.html +1 -1
  227. package/docs/functions/vec2.Serialize.html +1 -1
  228. package/docs/functions/vec2.SerializeF.html +1 -1
  229. package/docs/functions/vec3.Parse.html +1 -1
  230. package/docs/functions/vec3.ParseF.html +1 -1
  231. package/docs/functions/vec3.ParseInt.html +1 -1
  232. package/docs/functions/vec3.Serialize.html +1 -1
  233. package/docs/functions/vec3.SerializeF.html +1 -1
  234. package/docs/functions/vec3.SerializeInt.html +1 -1
  235. package/docs/functions/vec3.add.html +1 -1
  236. package/docs/functions/vec3.length.html +1 -1
  237. package/docs/functions/vec3.mult.html +1 -1
  238. package/docs/functions/vec3.norm.html +1 -1
  239. package/docs/functions/vec3.sub.html +1 -1
  240. package/docs/functions/vec4.Parse.html +1 -1
  241. package/docs/functions/vec4.ParseF.html +1 -1
  242. package/docs/functions/vec4.Serialize.html +1 -1
  243. package/docs/functions/vec4.SerializeF.html +1 -1
  244. package/docs/index.html +15 -4
  245. package/docs/interfaces/Blueprint.html +2 -2
  246. package/docs/interfaces/BlueprintConfig.html +2 -2
  247. package/docs/interfaces/ModData.html +2 -2
  248. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  249. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  250. package/docs/interfaces/SaveComponentHeader.html +2 -2
  251. package/docs/interfaces/SaveEntityHeader.html +2 -2
  252. package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
  253. package/docs/modules/CircuitSpecialProperties.html +3 -0
  254. package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
  255. package/docs/modules/ConveyorSpecialProperties.html +3 -0
  256. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  257. package/docs/modules/EmptySpecialProperties.html +3 -0
  258. package/docs/modules/FICFrameRange.html +1 -1
  259. package/docs/modules/GUID.html +1 -1
  260. package/docs/modules/GUIDInfo.html +1 -1
  261. package/docs/modules/Level.html +1 -1
  262. package/docs/modules/MD5Hash.html +1 -1
  263. package/docs/modules/ObjectReference.html +1 -1
  264. package/docs/modules/ObjectsListSpecialProperties.html +3 -0
  265. package/docs/modules/PlayerSpecialProperties.html +3 -0
  266. package/docs/modules/PowerLineSpecialProperties.html +3 -0
  267. package/docs/modules/PropertiesList.html +1 -1
  268. package/docs/modules/SoftObjectReference.html +1 -1
  269. package/docs/modules/SpecialDroneActionProperties.html +3 -0
  270. package/docs/modules/SpecialProperties.html +2 -1
  271. package/docs/modules/Transform.html +1 -1
  272. package/docs/modules/VehicleSpecialProperties.html +3 -0
  273. package/docs/modules/col4.html +1 -1
  274. package/docs/modules/vec2.html +1 -1
  275. package/docs/modules/vec3.html +1 -1
  276. package/docs/modules/vec4.html +1 -1
  277. package/docs/modules.html +32 -7
  278. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  279. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  280. package/docs/types/BasicStructPropertyValue.html +1 -1
  281. package/docs/types/BlueprintHeader.html +1 -1
  282. package/docs/types/BoxStructPropertyValue.html +1 -1
  283. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
  284. package/docs/types/BuildableTypeInstance.html +1 -1
  285. package/docs/types/BytePropertyValue.html +1 -1
  286. package/docs/types/CircuitSpecialProperties-1.html +1 -0
  287. package/docs/types/ClientIdentityInfo.html +1 -1
  288. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
  289. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  290. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  291. package/docs/types/ConveyorSpecialProperties-1.html +1 -0
  292. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  293. package/docs/types/EmptySpecialProperties-1.html +1 -0
  294. package/docs/types/FICFrameRange-1.html +1 -1
  295. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  296. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  297. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  298. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  299. package/docs/types/GUID-1.html +1 -1
  300. package/docs/types/GUIDInfo-1.html +1 -1
  301. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  302. package/docs/types/Level-1.html +1 -1
  303. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  304. package/docs/types/MD5Hash-1.html +1 -1
  305. package/docs/types/ObjectReference-1.html +1 -1
  306. package/docs/types/ObjectsListSpecialProperties-1.html +1 -0
  307. package/docs/types/PlayerSpecialProperties-1.html +1 -0
  308. package/docs/types/PowerLineSpecialProperties-1.html +1 -0
  309. package/docs/types/PropertiesMap.html +1 -1
  310. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  311. package/docs/types/RoughSaveVersion.html +1 -1
  312. package/docs/types/SoftObjectReference-1.html +1 -1
  313. package/docs/types/SpecialDroneAction.html +1 -0
  314. package/docs/types/SpecialDroneActionProperties-1.html +1 -0
  315. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
  316. package/docs/types/TextPropertyValue.html +1 -1
  317. package/docs/types/Transform-1.html +1 -1
  318. package/docs/types/VehicleSpecialProperties-1.html +1 -0
  319. package/docs/types/col4-1.html +1 -1
  320. package/docs/types/vec2-1.html +1 -1
  321. package/docs/types/vec3-1.html +1 -1
  322. package/docs/types/vec4-1.html +1 -1
  323. package/docs/variables/EDIT.html +1 -1
  324. package/package.json +1 -1
  325. package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
  326. package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
  327. package/docs/types/EmptySpecialProperties.html +0 -1
  328. package/docs/types/PlayerSpecialProperties.html +0 -1
  329. package/docs/types/PowerLineSpecialProperties.html +0 -1
  330. package/docs/types/SpecialAnyProperties.html +0 -1
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PowerLineSpecialProperties = exports.isPowerLineSpecialProperties = void 0;
4
+ const ObjectReference_1 = require("../../structs/ObjectReference");
5
+ const vec3_1 = require("../../structs/vec3");
6
+ const isPowerLineSpecialProperties = (obj) => obj.type === 'PowerLineSpecialProperties';
7
+ exports.isPowerLineSpecialProperties = isPowerLineSpecialProperties;
8
+ var PowerLineSpecialProperties;
9
+ (function (PowerLineSpecialProperties) {
10
+ PowerLineSpecialProperties.Parse = (reader, remainingLen) => {
11
+ const start = reader.getBufferPosition();
12
+ const property = {
13
+ type: 'PowerLineSpecialProperties',
14
+ source: ObjectReference_1.ObjectReference.read(reader),
15
+ target: ObjectReference_1.ObjectReference.read(reader)
16
+ };
17
+ if (remainingLen - (reader.getBufferPosition() - start) >= 24) {
18
+ property.sourceTranslation = vec3_1.vec3.ParseF(reader);
19
+ property.targetTranslation = vec3_1.vec3.ParseF(reader);
20
+ }
21
+ return property;
22
+ };
23
+ PowerLineSpecialProperties.Serialize = (writer, property) => {
24
+ ObjectReference_1.ObjectReference.write(writer, property.source);
25
+ ObjectReference_1.ObjectReference.write(writer, property.target);
26
+ };
27
+ })(PowerLineSpecialProperties || (exports.PowerLineSpecialProperties = PowerLineSpecialProperties = {}));
28
+ //# sourceMappingURL=PowerLineSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PowerLineSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,6CAA0C;AAInC,MAAM,4BAA4B,GAAG,CAAC,GAAQ,EAAqC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,4BAA4B,CAAC;AAA1H,QAAA,4BAA4B,gCAA8F;AAUvI,IAAiB,0BAA0B,CAqB1C;AArBD,WAAiB,0BAA0B;IAC1B,gCAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAA8B,EAAE;QAC9F,MAAM,KAAK,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QACzC,MAAM,QAAQ,GAA+B;YACzC,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,MAAM,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,CAAC;QAEF,IAAI,YAAY,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5D,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACjD,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;IAEW,oCAAS,GAAG,CAAC,MAAkB,EAAE,QAAoC,EAAE,EAAE;QAClF,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;AACN,CAAC,EArBgB,0BAA0B,0CAA1B,0BAA0B,QAqB1C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\n\n\n\nexport const isPowerLineSpecialProperties = (obj: any): obj is PowerLineSpecialProperties => obj.type === 'PowerLineSpecialProperties';\n\nexport type PowerLineSpecialProperties = {\n type: 'PowerLineSpecialProperties';\n source: ObjectReference;\n target: ObjectReference;\n sourceTranslation?: vec3;\n targetTranslation?: vec3;\n};\n\nexport namespace PowerLineSpecialProperties {\n export const Parse = (reader: BinaryReadable, remainingLen: number): PowerLineSpecialProperties => {\n const start = reader.getBufferPosition();\n const property: PowerLineSpecialProperties = {\n type: 'PowerLineSpecialProperties',\n source: ObjectReference.read(reader),\n target: ObjectReference.read(reader)\n };\n\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: PowerLineSpecialProperties) => {\n ObjectReference.write(writer, property.source);\n ObjectReference.write(writer, property.target);\n };\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { PropertiesMap } from '../generic/BasicProperty';
4
+ export type SpecialDroneAction = {
5
+ actionName: string;
6
+ properties: PropertiesMap;
7
+ };
8
+ export declare const isSpecialDroneActionProperties: (obj: any) => obj is SpecialDroneActionProperties;
9
+ export type SpecialDroneActionProperties = {
10
+ type: 'SpecialDroneActionProperties';
11
+ activeActions: SpecialDroneAction[];
12
+ queuedActions: SpecialDroneAction[];
13
+ };
14
+ export declare namespace SpecialDroneActionProperties {
15
+ const Parse: (reader: BinaryReadable) => SpecialDroneActionProperties;
16
+ const Serialize: (writer: ByteWriter, property: SpecialDroneActionProperties) => void;
17
+ }
18
+ //# sourceMappingURL=SpecialDroneActionProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialDroneActionProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialDroneActionProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAAS,GAAG,KAAG,GAAG,IAAI,4BAA2E,CAAC;AAE7I,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAC;IACrC,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,aAAa,EAAE,kBAAkB,EAAE,CAAC;CACvC,CAAC;AAEF,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,KAAK,WAAY,cAAc,KAAG,4BA0B9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,4BAA4B,SAcnF,CAAC;CACL"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpecialDroneActionProperties = exports.isSpecialDroneActionProperties = void 0;
4
+ const PropertiesList_1 = require("../PropertiesList");
5
+ const isSpecialDroneActionProperties = (obj) => obj.type === 'SpecialDroneActionProperties';
6
+ exports.isSpecialDroneActionProperties = isSpecialDroneActionProperties;
7
+ var SpecialDroneActionProperties;
8
+ (function (SpecialDroneActionProperties) {
9
+ SpecialDroneActionProperties.Parse = (reader) => {
10
+ reader.readInt32();
11
+ const countActiveActions = reader.readInt32();
12
+ const activeActions = [];
13
+ for (let i = 0; i < countActiveActions; i++) {
14
+ activeActions.push({
15
+ actionName: reader.readString(),
16
+ properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
17
+ });
18
+ }
19
+ const countQueuedActions = reader.readInt32();
20
+ const queuedActions = [];
21
+ for (let i = 0; i < countQueuedActions; i++) {
22
+ queuedActions.push({
23
+ actionName: reader.readString(),
24
+ properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
25
+ });
26
+ }
27
+ return {
28
+ type: 'SpecialDroneActionProperties',
29
+ activeActions,
30
+ queuedActions
31
+ };
32
+ };
33
+ SpecialDroneActionProperties.Serialize = (writer, property) => {
34
+ writer.writeInt32(0);
35
+ writer.writeInt32(property.activeActions.length);
36
+ for (const action of property.activeActions) {
37
+ writer.writeString(action.actionName);
38
+ PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
39
+ }
40
+ writer.writeInt32(property.queuedActions.length);
41
+ for (const action of property.queuedActions) {
42
+ writer.writeString(action.actionName);
43
+ PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
44
+ }
45
+ };
46
+ })(SpecialDroneActionProperties || (exports.SpecialDroneActionProperties = SpecialDroneActionProperties = {}));
47
+ //# sourceMappingURL=SpecialDroneActionProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialDroneActionProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialDroneActionProperties.ts"],"names":[],"mappings":";;;AAGA,sDAAmD;AAQ5C,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAAuC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,8BAA8B,CAAC;AAAhI,QAAA,8BAA8B,kCAAkG;AAQ7I,IAAiB,4BAA4B,CA4C5C;AA5CD,WAAiB,4BAA4B;IAC5B,kCAAK,GAAG,CAAC,MAAsB,EAAgC,EAAE;QAC1E,MAAM,CAAC,SAAS,EAAE,CAAC;QAEnB,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,C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C,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC/D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA5CgB,4BAA4B,4CAA5B,4BAA4B,QA4C5C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { PropertiesMap } from '../generic/BasicProperty';\nimport { PropertiesList } from '../PropertiesList';\n\n\nexport type SpecialDroneAction = {\n actionName: string;\n properties: PropertiesMap;\n};\n\nexport const isSpecialDroneActionProperties = (obj: any): obj is SpecialDroneActionProperties => obj.type === 'SpecialDroneActionProperties';\n\nexport type SpecialDroneActionProperties = {\n type: 'SpecialDroneActionProperties';\n activeActions: SpecialDroneAction[];\n queuedActions: SpecialDroneAction[];\n};\n\nexport namespace SpecialDroneActionProperties {\n export const Parse = (reader: BinaryReadable): SpecialDroneActionProperties => {\n reader.readInt32(); //0\n\n const countActiveActions = reader.readInt32();\n const activeActions = [];\n for (let i = 0; i < countActiveActions; i++) {\n activeActions.push({\n actionName: reader.readString(),\n properties: PropertiesList.ParseList(reader, 0)\n } satisfies SpecialDroneAction);\n }\n\n const countQueuedActions = reader.readInt32();\n const queuedActions = [];\n for (let i = 0; i < countQueuedActions; i++) {\n queuedActions.push({\n actionName: reader.readString(),\n properties: PropertiesList.ParseList(reader, 0)\n } satisfies SpecialDroneAction);\n }\n\n return {\n type: 'SpecialDroneActionProperties',\n activeActions,\n queuedActions\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: SpecialDroneActionProperties) => {\n writer.writeInt32(0);\n\n writer.writeInt32((property as SpecialDroneActionProperties).activeActions.length);\n for (const action of (property as SpecialDroneActionProperties).activeActions) {\n writer.writeString(action.actionName);\n PropertiesList.SerializeList(action.properties, writer, 0);\n }\n\n writer.writeInt32((property as SpecialDroneActionProperties).queuedActions.length);\n for (const action of (property as SpecialDroneActionProperties).queuedActions) {\n writer.writeString(action.actionName);\n PropertiesList.SerializeList(action.properties, writer, 0);\n }\n };\n}\n"]}
@@ -1,8 +1,18 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { SpecialAnyProperties } from './SpecialAnyProperties';
3
+ import { BuildableSubsystemSpecialProperties } from './BuildableSubsystemSpecialProperties';
4
+ import { CircuitSpecialProperties } from './CircuitSpecialProperties';
5
+ import { ConveyorChainActorSpecialProperties } from './ConveyorChainActorSpecialProperties';
6
+ import { ConveyorSpecialProperties } from './ConveyorSpecialProperties';
7
+ import { EmptySpecialProperties } from './EmptySpecialProperties';
8
+ import { ObjectsListSpecialProperties } from './ObjectsListSpecialProperties';
9
+ import { PlayerSpecialProperties } from './PlayerSpecialProperties';
10
+ import { PowerLineSpecialProperties } from './PowerLineSpecialProperties';
11
+ import { SpecialDroneActionProperties } from './SpecialDroneActionProperties';
12
+ import { VehicleSpecialProperties } from './VehicleSpecialProperties';
4
13
  export declare namespace SpecialProperties {
5
- const ParseClassSpecificSpecialProperties: (reader: BinaryReadable, typePath: string, remainingLen: number) => SpecialAnyProperties;
6
- const SerializeClassSpecificSpecialProperties: (writer: ByteWriter, typePath: string, property: SpecialAnyProperties) => void;
14
+ type AvailableSpecialPropertiesTypes = ReturnType<typeof ParseClassSpecificSpecialProperties>;
15
+ const ParseClassSpecificSpecialProperties: (reader: BinaryReadable, typePath: string, remainingLen: number) => BuildableSubsystemSpecialProperties | CircuitSpecialProperties | ConveyorChainActorSpecialProperties | ConveyorSpecialProperties | EmptySpecialProperties | ObjectsListSpecialProperties | PlayerSpecialProperties | PowerLineSpecialProperties | SpecialDroneActionProperties | VehicleSpecialProperties;
16
+ const SerializeClassSpecificSpecialProperties: (writer: ByteWriter, typePath: string, property: AvailableSpecialPropertiesTypes) => void;
7
17
  }
8
18
  //# sourceMappingURL=SpecialProperties.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKhE,OAAO,EAAsP,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAIlT,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,mCAAmC,WAAY,cAAc,YAAY,MAAM,gBAAgB,MAAM,KAAG,oBA8LpH,CAAA;IAEM,MAAM,uCAAuC,WAAY,UAAU,YAAY,MAAM,YAAY,oBAAoB,KAAG,IA4H9H,CAAA;CACJ"}
1
+ {"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAyC,MAAM,uCAAuC,CAAC;AACnI,OAAO,EAAE,wBAAwB,EAA8B,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAyC,MAAM,uCAAuC,CAAC;AACnI,OAAO,EAAE,yBAAyB,EAA+B,MAAM,6BAA6B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAA4B,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAkC,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAA6B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAgC,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAAO,EAAkC,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAA8B,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAIlG,yBAAiB,iBAAiB,CAAC;IAE/B,KAAY,+BAA+B,GAAG,UAAU,CAAC,OAAO,mCAAmC,CAAC,CAAC;IAE9F,MAAM,mCAAmC,WAAY,cAAc,YAAY,MAAM,gBAAgB,MAAM,8SAyEjH,CAAA;IAEM,MAAM,uCAAuC,WAAY,UAAU,YAAY,MAAM,YAAY,+BAA+B,KAAG,IA0BzI,CAAA;CACJ"}
@@ -1,15 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpecialProperties = void 0;
4
- const ObjectReference_1 = require("../../structs/ObjectReference");
5
- const Transform_1 = require("../../structs/Transform");
6
- const vec2_1 = require("../../structs/vec2");
7
- const vec3_1 = require("../../structs/vec3");
4
+ const BuildableSubsystemSpecialProperties_1 = require("./BuildableSubsystemSpecialProperties");
5
+ const CircuitSpecialProperties_1 = require("./CircuitSpecialProperties");
6
+ const ConveyorChainActorSpecialProperties_1 = require("./ConveyorChainActorSpecialProperties");
7
+ const ConveyorSpecialProperties_1 = require("./ConveyorSpecialProperties");
8
+ const EmptySpecialProperties_1 = require("./EmptySpecialProperties");
9
+ const ObjectsListSpecialProperties_1 = require("./ObjectsListSpecialProperties");
10
+ const PlayerSpecialProperties_1 = require("./PlayerSpecialProperties");
11
+ const PowerLineSpecialProperties_1 = require("./PowerLineSpecialProperties");
12
+ const SpecialDroneActionProperties_1 = require("./SpecialDroneActionProperties");
13
+ const VehicleSpecialProperties_1 = require("./VehicleSpecialProperties");
8
14
  var SpecialProperties;
9
15
  (function (SpecialProperties) {
10
16
  SpecialProperties.ParseClassSpecificSpecialProperties = (reader, typePath, remainingLen) => {
11
17
  let property;
12
- const start = reader.getBufferPosition();
13
18
  switch (typePath) {
14
19
  case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':
15
20
  case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':
@@ -23,212 +28,87 @@ var SpecialProperties;
23
28
  case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':
24
29
  case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':
25
30
  case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':
26
- reader.readInt32();
27
- property = {};
31
+ property = ConveyorSpecialProperties_1.ConveyorSpecialProperties.Parse(reader);
32
+ break;
33
+ case '/Game/FactoryGame/-Shared/Blueprint/BP_CircuitSubsystem.BP_CircuitSubsystem_C':
34
+ property = CircuitSpecialProperties_1.CircuitSpecialProperties.Parse(reader);
35
+ break;
36
+ case '/Game/FactoryGame/-Shared/Blueprint/BP_GameState.BP_GameState_C':
37
+ case '/Game/FactoryGame/-Shared/Blueprint/BP_GameMode.BP_GameMode_C':
38
+ property = ObjectsListSpecialProperties_1.ObjectsListSpecialProperties.Parse(reader);
28
39
  break;
29
40
  case '/Script/FactoryGame.FGConveyorChainActor':
30
- const lastBelt = ObjectReference_1.ObjectReference.read(reader);
31
- const firstBelt = ObjectReference_1.ObjectReference.read(reader);
32
- const countBeltsInChain = reader.readInt32();
33
- const beltsInChain = [];
34
- for (let i = 0; i < countBeltsInChain; i++) {
35
- const chainActorRef = ObjectReference_1.ObjectReference.read(reader);
36
- const beltRef = ObjectReference_1.ObjectReference.read(reader);
37
- const someCount = reader.readInt32();
38
- const unknownUseBytes = Array.from(reader.readBytes(someCount * 3 * 24 + 12));
39
- const firstItemIndex = reader.readInt32();
40
- const lastItemIndex = reader.readInt32();
41
- const beltIndexInChain = reader.readInt32();
42
- beltsInChain.push({
43
- chainActorRef,
44
- beltRef,
45
- someCount,
46
- unknownUseBytes,
47
- firstItemIndex,
48
- lastItemIndex,
49
- beltIndexInChain
50
- });
51
- }
52
- const unknownInts = [reader.readInt32(), reader.readInt32()];
53
- const firstChainItemIndex = reader.readInt32();
54
- const lastChainItemIndex = reader.readInt32();
55
- const countItemsInChain = reader.readInt32();
56
- const items = [];
57
- for (let n = 0; n < countItemsInChain; n++) {
58
- reader.readInt32();
59
- const itemName = reader.readString();
60
- reader.readInt32();
61
- const position = reader.readInt32();
62
- items.push({ itemName, position });
63
- }
64
- property = {
65
- firstBelt: firstBelt,
66
- lastBelt: lastBelt,
67
- beltsInChain,
68
- unknownInts,
69
- firstChainItemIndex,
70
- lastChainItemIndex,
71
- items
72
- };
41
+ case '/Script/FactoryGame.FGConveyorChainActor_RepSizeMedium':
42
+ case '/Script/FactoryGame.FGConveyorChainActor_RepSizeLarge':
43
+ case '/Script/FactoryGame.FGConveyorChainActor_RepSizeHuge':
44
+ case '/Script/FactoryGame.FGConveyorChainActor_RepSizeNoCull':
45
+ property = ConveyorChainActorSpecialProperties_1.ConveyorChainActorSpecialProperties.Parse(reader);
73
46
  break;
74
47
  case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':
75
48
  case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':
76
- property = {
77
- source: ObjectReference_1.ObjectReference.read(reader),
78
- target: ObjectReference_1.ObjectReference.read(reader)
79
- };
80
- if (remainingLen - (reader.getBufferPosition() - start) >= 24) {
81
- property.sourceTranslation = vec3_1.vec3.ParseF(reader);
82
- property.targetTranslation = vec3_1.vec3.ParseF(reader);
83
- }
49
+ property = PowerLineSpecialProperties_1.PowerLineSpecialProperties.Parse(reader, remainingLen);
50
+ break;
51
+ case '/Game/FactoryGame/Buildable/Vehicle/Tractor/BP_Tractor.BP_Tractor_C':
52
+ case '/Game/FactoryGame/Buildable/Vehicle/Truck/BP_Truck.BP_Truck_C':
53
+ case '/Game/FactoryGame/Buildable/Vehicle/Explorer/BP_Explorer.BP_Explorer_C':
54
+ case '/Game/FactoryGame/Buildable/Vehicle/Cyberwagon/Testa_BP_WB.Testa_BP_WB_C':
55
+ case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_Golfcart.BP_Golfcart_C':
56
+ case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_GolfcartGold.BP_GolfcartGold_C':
57
+ case '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C':
58
+ case '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C':
59
+ property = VehicleSpecialProperties_1.VehicleSpecialProperties.Parse(reader, remainingLen, typePath);
60
+ break;
61
+ case '/Game/FactoryGame/Buildable/Factory/DroneStation/BP_DroneTransport.BP_DroneTransport_C':
62
+ property = SpecialDroneActionProperties_1.SpecialDroneActionProperties.Parse(reader);
84
63
  break;
85
64
  case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':
86
- property = {};
87
- property.flag = reader.readByte();
88
- switch (property.flag) {
89
- case 248:
90
- const eos = reader.readString();
91
- property.eosData = reader.readString();
92
- break;
93
- case 25:
94
- break;
95
- default:
96
- break;
97
- }
65
+ property = PlayerSpecialProperties_1.PlayerSpecialProperties.Parse(reader);
98
66
  break;
99
67
  case '/Script/FactoryGame.FGLightweightBuildableSubsystem':
100
- property = { buildables: [] };
101
- const entriesCount = reader.readInt32();
102
- if (entriesCount > 0) {
103
- for (let i = 0; i < entriesCount; i++) {
104
- reader.readInt32();
105
- const typePath = reader.readString();
106
- const count = reader.readInt32();
107
- const instances = [];
108
- for (let j = 0; j < count; j++) {
109
- const transform = Transform_1.Transform.Parse(reader);
110
- reader.readInt32();
111
- const swatchSlotTypePath = reader.readString();
112
- reader.readInt32();
113
- reader.readInt64();
114
- const patternPath = reader.readString();
115
- const zeroes = vec2_1.vec2.Parse(reader);
116
- const oneZeroOne = vec3_1.vec3.Parse(reader);
117
- const unknownUseNumbers = [zeroes, oneZeroOne];
118
- reader.readInt32();
119
- const paintFinishPath = reader.readString();
120
- reader.readInt32();
121
- reader.readBytes(1);
122
- const recipeTypePath = reader.readString();
123
- const blueprintProxy = ObjectReference_1.ObjectReference.read(reader);
124
- instances.push({
125
- transform,
126
- unknownUseNumbers,
127
- swatchSlotTypePath,
128
- paintFinishPath,
129
- recipeTypePath,
130
- patternPath,
131
- blueprintProxy
132
- });
133
- }
134
- property.buildables.push({
135
- typePath,
136
- instances
137
- });
138
- }
139
- }
68
+ property = BuildableSubsystemSpecialProperties_1.BuildableSubsystemSpecialProperties.Parse(reader);
140
69
  break;
141
70
  default:
142
- property = {};
71
+ property = EmptySpecialProperties_1.EmptySpecialProperties.Parse(reader);
143
72
  break;
144
73
  }
145
74
  return property;
146
75
  };
147
76
  SpecialProperties.SerializeClassSpecificSpecialProperties = (writer, typePath, property) => {
148
- switch (typePath) {
149
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':
150
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':
151
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':
152
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':
153
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':
154
- case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':
155
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':
156
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':
157
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':
158
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':
159
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':
160
- case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':
161
- writer.writeInt32(0);
162
- break;
163
- case '/Script/FactoryGame.FGConveyorChainActor':
164
- ObjectReference_1.ObjectReference.write(writer, property.lastBelt);
165
- ObjectReference_1.ObjectReference.write(writer, property.firstBelt);
166
- writer.writeInt32(property.beltsInChain.length);
167
- for (const belt of property.beltsInChain) {
168
- ObjectReference_1.ObjectReference.write(writer, belt.chainActorRef);
169
- ObjectReference_1.ObjectReference.write(writer, belt.beltRef);
170
- writer.writeInt32(belt.someCount);
171
- writer.writeBytesArray(belt.unknownUseBytes);
172
- writer.writeInt32(belt.firstItemIndex);
173
- writer.writeInt32(belt.lastItemIndex);
174
- writer.writeInt32(belt.beltIndexInChain);
175
- }
176
- writer.writeInt32(property.unknownInts[0]);
177
- writer.writeInt32(property.unknownInts[1]);
178
- writer.writeInt32(property.firstChainItemIndex);
179
- writer.writeInt32(property.lastChainItemIndex);
180
- writer.writeInt32(property.items.length);
181
- for (const item of property.items) {
182
- writer.writeInt32(0);
183
- writer.writeString(item.itemName);
184
- writer.writeInt32(0);
185
- writer.writeInt32(item.position);
186
- }
187
- break;
188
- case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':
189
- case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':
190
- ObjectReference_1.ObjectReference.write(writer, property.source);
191
- ObjectReference_1.ObjectReference.write(writer, property.target);
192
- break;
193
- case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':
194
- writer.writeByte(property.flag);
195
- switch (property.flag) {
196
- case 248:
197
- writer.writeString('EOS');
198
- writer.writeString(property.eosData);
199
- break;
200
- case 25:
201
- break;
202
- default:
203
- break;
204
- }
205
- break;
206
- case '/Script/FactoryGame.FGLightweightBuildableSubsystem':
207
- writer.writeInt32(property.buildables.length);
208
- if (property.buildables.length > 0) {
209
- for (const buildable of property.buildables) {
210
- writer.writeInt32(0);
211
- writer.writeString(buildable.typePath);
212
- writer.writeInt32(buildable.instances.length);
213
- for (const instance of buildable.instances) {
214
- Transform_1.Transform.Serialize(writer, instance.transform);
215
- writer.writeInt32(0);
216
- writer.writeString(instance.swatchSlotTypePath);
217
- writer.writeInt32(0);
218
- writer.writeInt64(0n);
219
- writer.writeString(instance.patternPath);
220
- vec2_1.vec2.Serialize(writer, instance.unknownUseNumbers[0]);
221
- vec3_1.vec3.Serialize(writer, instance.unknownUseNumbers[1]);
222
- writer.writeInt32(0);
223
- writer.writeString(instance.paintFinishPath);
224
- writer.writeInt32(0);
225
- writer.writeByte(0);
226
- writer.writeString(instance.recipeTypePath);
227
- ObjectReference_1.ObjectReference.write(writer, instance.blueprintProxy);
228
- }
229
- }
230
- }
231
- break;
77
+ if ((0, ConveyorSpecialProperties_1.isConveyorSpecialProperties)(property)) {
78
+ ConveyorSpecialProperties_1.ConveyorSpecialProperties.Serialize(writer, property);
79
+ }
80
+ else if ((0, CircuitSpecialProperties_1.isCircuitSpecialProperties)(property)) {
81
+ CircuitSpecialProperties_1.CircuitSpecialProperties.Serialize(writer, property);
82
+ }
83
+ else if ((0, ConveyorSpecialProperties_1.isConveyorSpecialProperties)(property)) {
84
+ ConveyorSpecialProperties_1.ConveyorSpecialProperties.Serialize(writer, property);
85
+ }
86
+ else if ((0, ConveyorChainActorSpecialProperties_1.isConveyorChainActorSpecialProperties)(property)) {
87
+ ConveyorChainActorSpecialProperties_1.ConveyorChainActorSpecialProperties.Serialize(writer, property);
88
+ }
89
+ else if ((0, PowerLineSpecialProperties_1.isPowerLineSpecialProperties)(property)) {
90
+ PowerLineSpecialProperties_1.PowerLineSpecialProperties.Serialize(writer, property);
91
+ }
92
+ else if ((0, ObjectsListSpecialProperties_1.isObjectsListSpecialProperties)(property)) {
93
+ ObjectsListSpecialProperties_1.ObjectsListSpecialProperties.Serialize(writer, property);
94
+ }
95
+ else if ((0, VehicleSpecialProperties_1.isVehicleSpecialProperties)(property)) {
96
+ VehicleSpecialProperties_1.VehicleSpecialProperties.Serialize(writer, property);
97
+ }
98
+ else if ((0, SpecialDroneActionProperties_1.isSpecialDroneActionProperties)(property)) {
99
+ SpecialDroneActionProperties_1.SpecialDroneActionProperties.Serialize(writer, property);
100
+ }
101
+ else if ((0, PlayerSpecialProperties_1.isPlayerSpecialProperties)(property)) {
102
+ PlayerSpecialProperties_1.PlayerSpecialProperties.Serialize(writer, property);
103
+ }
104
+ else if ((0, BuildableSubsystemSpecialProperties_1.isBuildableSubsystemSpecialProperties)(property)) {
105
+ BuildableSubsystemSpecialProperties_1.BuildableSubsystemSpecialProperties.Serialize(writer, property);
106
+ }
107
+ else if ((0, EmptySpecialProperties_1.isEmptySpecialProperties)(property)) {
108
+ EmptySpecialProperties_1.EmptySpecialProperties.Serialize(writer, property);
109
+ }
110
+ else {
111
+ console.warn(`Parser is not serializing special property ${JSON.stringify(property)} of object with type ${typePath}. Unimplemented.`);
232
112
  }
233
113
  };
234
114
  })(SpecialProperties || (exports.SpecialProperties = SpecialProperties = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"SpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA0C;AAK1C,IAAiB,iBAAiB,CA+TjC;AA/TD,WAAiB,iBAAiB;IAEjB,qDAAmC,GAAG,CAAC,MAAsB,EAAE,QAAgB,EAAE,YAAoB,EAAwB,EAAE;QACxI,IAAI,QAAQ,CAAC;QAEb,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AC,CAAC,CAAC,CAAC;4BACrB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;4BAGpB,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;4BAE5C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;wBAC3D,CAAC;oBACL,CAAC;gBACL,CAAC;gBAED,MAAM;QACd,CAAC;IAEL,CAAC,CAAA;AACL,CAAC,EA/TgB,iBAAiB,iCAAjB,iBAAiB,QA+TjC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\nimport { BuildableSubsystemSpecialProperties, BuildableTypeInstance, ConveyorChainActorSpecialProperties, ConveyorChainSegmentSpecialProperties, ConveyorItemSpecialProperties, EmptySpecialProperties, PlayerSpecialProperties, PowerLineSpecialProperties, SpecialAnyProperties } from './SpecialAnyProperties';\n\n\n\nexport namespace SpecialProperties {\n\n export const ParseClassSpecificSpecialProperties = (reader: BinaryReadable, typePath: string, remainingLen: number): SpecialAnyProperties => {\n let property;\n\n const start = reader.getBufferPosition();\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // since U1.0 the conveyor items are now in ConveyorChainActor. Not anymore on the belt itself. so this count of items is always 0.\n reader.readInt32();\n property = {} satisfies EmptySpecialProperties;\n break;\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: ConveyorChainSegmentSpecialProperties[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const someCount = reader.readInt32();\n\n //2, 6*24 + 12 somethings, not always 0\n //4, 12*24 + 12 somethings\n //6, 18*24 + 12 somethings\n //almost looks like GUIDs\n const unknownUseBytes = Array.from(reader.readBytes(someCount * 3 * 24 + 12));\n\n // indices which items of this chain are on this belt.\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n someCount,\n unknownUseBytes,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const unknownInts = [reader.readInt32(), reader.readInt32()] satisfies [number, number];\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: ConveyorItemSpecialProperties[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n reader.readInt32(); //0\n const itemName = reader.readString();\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemName, position });\n }\n\n property = {\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n unknownInts,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n } satisfies ConveyorChainActorSpecialProperties;\n\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n property = {\n source: ObjectReference.read(reader),\n target: ObjectReference.read(reader)\n } as PowerLineSpecialProperties;\n\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n // TODO - i don't know enough about player state yet. need more players.\n property = {} as PlayerSpecialProperties;\n\n // 241 = byte, byte, length? flag, id with length bytes\n property.flag = reader.readByte(); // 241?\n switch (property.flag) {\n case 248: // default EOS\n const eos = reader.readString();\n property.eosData = reader.readString();\n break;\n case 25: // steam!?\n break;\n default:\n break;\n }\n break;\n\n //buildables like foundations are now here\n // Persistent_Level:PersistentLevel.LightweightBuildableSubsystem\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n property = { buildables: [] } as BuildableSubsystemSpecialProperties;\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n reader.readInt32(); //0\n const typePath = reader.readString();\n const count = reader.readInt32();\n\n const instances = [];\n for (let j = 0; j < count; j++) {\n\n const transform = Transform.Parse(reader);\n\n reader.readInt32(); // 0\n\n\n const swatchSlotTypePath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readInt64(); // 0\n\n const patternPath = reader.readString();\n\n //TODO: whatever this is, not sure whether something is gonna be here.\n const zeroes = vec2.Parse(reader);\n const oneZeroOne = vec3.Parse(reader);\n const unknownUseNumbers = [zeroes, oneZeroOne] as [vec2, vec3];\n\n reader.readInt32(); // 0\n\n const paintFinishPath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readBytes(1); // 0\n\n const recipeTypePath = reader.readString();\n\n const blueprintProxy = ObjectReference.read(reader);\n\n instances.push({\n transform,\n unknownUseNumbers,\n swatchSlotTypePath,\n paintFinishPath,\n recipeTypePath,\n patternPath,\n blueprintProxy\n } satisfies BuildableTypeInstance);\n }\n\n property.buildables.push({\n typePath,\n instances\n });\n }\n }\n\n break;\n\n default:\n // ignore / empty. Rest will land in trailing data anyway.\n property = {} satisfies EmptySpecialProperties;\n break;\n }\n\n return property;\n }\n\n export const SerializeClassSpecificSpecialProperties = (writer: ByteWriter, typePath: string, property: SpecialAnyProperties): void => {\n\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // see parsing behavior.\n writer.writeInt32(0);\n break;\n\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).lastBelt);\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).firstBelt);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).beltsInChain.length);\n\n for (const belt of (property as ConveyorChainActorSpecialProperties).beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.someCount);\n\n writer.writeBytesArray(belt.unknownUseBytes);\n\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[0]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[1]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).firstChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).lastChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).items.length);\n\n for (const item of (property as ConveyorChainActorSpecialProperties).items) {\n writer.writeInt32(0);\n writer.writeString(item.itemName);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).source);\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).target);\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n writer.writeByte((property as PlayerSpecialProperties).flag);\n switch ((property as PlayerSpecialProperties).flag) {\n case 248: // default EOS\n writer.writeString('EOS');\n writer.writeString((property as PlayerSpecialProperties).eosData!);\n break;\n case 25: // steam!?\n break;\n default:\n break;\n\n }\n break;\n\n\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n writer.writeInt32((property as BuildableSubsystemSpecialProperties).buildables.length);\n\n if ((property as BuildableSubsystemSpecialProperties).buildables.length > 0) {\n\n for (const buildable of (property as BuildableSubsystemSpecialProperties).buildables) {\n writer.writeInt32(0);\n writer.writeString(buildable.typePath);\n writer.writeInt32(buildable.instances.length);\n\n for (const instance of buildable.instances) {\n\n Transform.Serialize(writer, instance.transform);\n writer.writeInt32(0);\n\n\n writer.writeString(instance.swatchSlotTypePath);\n\n writer.writeInt32(0);\n writer.writeInt64(0n);\n\n writer.writeString(instance.patternPath);\n\n //TODO: same, whatever this is\n vec2.Serialize(writer, instance.unknownUseNumbers[0]);\n vec3.Serialize(writer, instance.unknownUseNumbers[1]);\n\n writer.writeInt32(0);\n\n writer.writeString(instance.paintFinishPath);\n\n writer.writeInt32(0);\n writer.writeByte(0);\n\n\n writer.writeString(instance.recipeTypePath);\n\n ObjectReference.write(writer, instance.blueprintProxy);\n }\n }\n }\n\n break;\n }\n\n }\n}\n"]}
1
+ {"version":3,"file":"SpecialProperties.js","sourceRoot":"","s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I,CAAC,8CAA8C,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,wBAAwB,QAAQ,kBAAkB,CAAC,CAAC;QAC3I,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA1GgB,iBAAiB,iCAAjB,iBAAiB,QA0GjC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { BuildableSubsystemSpecialProperties, isBuildableSubsystemSpecialProperties } from './BuildableSubsystemSpecialProperties';\nimport { CircuitSpecialProperties, isCircuitSpecialProperties } from './CircuitSpecialProperties';\nimport { ConveyorChainActorSpecialProperties, isConveyorChainActorSpecialProperties } from './ConveyorChainActorSpecialProperties';\nimport { ConveyorSpecialProperties, isConveyorSpecialProperties } from './ConveyorSpecialProperties';\nimport { EmptySpecialProperties, isEmptySpecialProperties } from './EmptySpecialProperties';\nimport { isObjectsListSpecialProperties, ObjectsListSpecialProperties } from './ObjectsListSpecialProperties';\nimport { isPlayerSpecialProperties, PlayerSpecialProperties } from './PlayerSpecialProperties';\nimport { isPowerLineSpecialProperties, PowerLineSpecialProperties } from './PowerLineSpecialProperties';\nimport { isSpecialDroneActionProperties, SpecialDroneActionProperties } from './SpecialDroneActionProperties';\nimport { isVehicleSpecialProperties, VehicleSpecialProperties } from './VehicleSpecialProperties';\n\n\n\nexport namespace SpecialProperties {\n\n export type AvailableSpecialPropertiesTypes = ReturnType<typeof ParseClassSpecificSpecialProperties>;\n\n export const ParseClassSpecificSpecialProperties = (reader: BinaryReadable, typePath: string, remainingLen: number) => {\n let property;\n\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n // since U1.0 the conveyor items are now in ConveyorChainActor.\n property = ConveyorSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/-Shared/Blueprint/BP_CircuitSubsystem.BP_CircuitSubsystem_C':\n property = CircuitSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/-Shared/Blueprint/BP_GameState.BP_GameState_C':\n case '/Game/FactoryGame/-Shared/Blueprint/BP_GameMode.BP_GameMode_C':\n property = ObjectsListSpecialProperties.Parse(reader);\n break;\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeMedium':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeLarge':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeHuge':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeNoCull':\n property = ConveyorChainActorSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n property = PowerLineSpecialProperties.Parse(reader, remainingLen);\n break;\n\n case '/Game/FactoryGame/Buildable/Vehicle/Tractor/BP_Tractor.BP_Tractor_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Truck/BP_Truck.BP_Truck_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Explorer/BP_Explorer.BP_Explorer_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Cyberwagon/Testa_BP_WB.Testa_BP_WB_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_Golfcart.BP_Golfcart_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_GolfcartGold.BP_GolfcartGold_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C':\n property = VehicleSpecialProperties.Parse(reader, remainingLen, typePath);\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/DroneStation/BP_DroneTransport.BP_DroneTransport_C':\n property = SpecialDroneActionProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n property = PlayerSpecialProperties.Parse(reader);\n break;\n\n //buildables like foundations are now here since 1.0\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n property = BuildableSubsystemSpecialProperties.Parse(reader);\n break;\n\n default:\n // ignore / empty. Rest will land in trailing data anyway.\n property = EmptySpecialProperties.Parse(reader);\n break;\n }\n\n return property;\n }\n\n export const SerializeClassSpecificSpecialProperties = (writer: ByteWriter, typePath: string, property: AvailableSpecialPropertiesTypes): void => {\n if (isConveyorSpecialProperties(property)) {\n ConveyorSpecialProperties.Serialize(writer, property);\n } else if (isCircuitSpecialProperties(property)) {\n CircuitSpecialProperties.Serialize(writer, property);\n } else if (isConveyorSpecialProperties(property)) {\n ConveyorSpecialProperties.Serialize(writer, property);\n } else if (isConveyorChainActorSpecialProperties(property)) {\n ConveyorChainActorSpecialProperties.Serialize(writer, property);\n } else if (isPowerLineSpecialProperties(property)) {\n PowerLineSpecialProperties.Serialize(writer, property);\n } else if (isObjectsListSpecialProperties(property)) {\n ObjectsListSpecialProperties.Serialize(writer, property);\n } else if (isVehicleSpecialProperties(property)) {\n VehicleSpecialProperties.Serialize(writer, property);\n } else if (isSpecialDroneActionProperties(property)) {\n SpecialDroneActionProperties.Serialize(writer, property);\n } else if (isPlayerSpecialProperties(property)) {\n PlayerSpecialProperties.Serialize(writer, property);\n } else if (isBuildableSubsystemSpecialProperties(property)) {\n BuildableSubsystemSpecialProperties.Serialize(writer, property);\n } else if (isEmptySpecialProperties(property)) {\n EmptySpecialProperties.Serialize(writer, property);\n } else {\n console.warn(`Parser is not serializing special property ${JSON.stringify(property)} of object with type ${typePath}. Unimplemented.`);\n }\n }\n}\n"]}
@@ -0,0 +1,19 @@
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 isVehicleSpecialProperties: (obj: any) => obj is VehicleSpecialProperties;
5
+ export type VehicleSpecialProperties = {
6
+ type: 'VehicleSpecialProperties';
7
+ objects: {
8
+ name: string;
9
+ unknownBytes: number[];
10
+ unknownFlag: number;
11
+ }[];
12
+ vehicleInFront?: ObjectReference;
13
+ vehicleBehind?: ObjectReference;
14
+ };
15
+ export declare namespace VehicleSpecialProperties {
16
+ const Parse: (reader: BinaryReadable, remainingLen: number, typePath: string) => VehicleSpecialProperties;
17
+ const Serialize: (writer: ByteWriter, property: VehicleSpecialProperties) => void;
18
+ }
19
+ //# sourceMappingURL=VehicleSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VehicleSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/VehicleSpecialProperties.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;AAEhE,eAAO,MAAM,0BAA0B,QAAS,GAAG,KAAG,GAAG,IAAI,wBAAmE,CAAC;AAEjI,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,aAAa,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,YAAY,MAAM,KAAG,wBA6BtF,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,wBAAwB,SAa/E,CAAC;CACL"}