@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,31 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { col4 } from '../../structs/col4';
4
+ import { ObjectReference } from '../../structs/ObjectReference';
5
+ import { Transform } from '../../structs/Transform';
6
+ export declare const isBuildableSubsystemSpecialProperties: (obj: any) => obj is BuildableSubsystemSpecialProperties;
7
+ export type BuildableSubsystemSpecialProperties = {
8
+ type: 'BuildableSubsystemSpecialProperties';
9
+ buildables: {
10
+ typePath: string;
11
+ instances: BuildableTypeInstance[];
12
+ }[];
13
+ };
14
+ export declare namespace BuildableSubsystemSpecialProperties {
15
+ const Parse: (reader: BinaryReadable) => BuildableSubsystemSpecialProperties;
16
+ const Serialize: (writer: ByteWriter, property: BuildableSubsystemSpecialProperties) => void;
17
+ }
18
+ export type BuildableTypeInstance = {
19
+ transform: Transform;
20
+ primaryColor: col4;
21
+ secondaryColor: col4;
22
+ usedSwatchSlot: ObjectReference;
23
+ usedPattern: ObjectReference;
24
+ usedMaterial: ObjectReference;
25
+ usedSkin: ObjectReference;
26
+ usedPaintFinish: ObjectReference;
27
+ patternRotation: number;
28
+ usedRecipe: ObjectReference;
29
+ blueprintProxy: ObjectReference;
30
+ };
31
+ //# sourceMappingURL=BuildableSubsystemSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildableSubsystemSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,eAAO,MAAM,qCAAqC,QAAS,GAAG,KAAG,GAAG,IAAI,mCAAyF,CAAC;AAElK,MAAM,MAAM,mCAAmC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;KACtC,EAAE,CAAC;CACP,CAAC;AAEF,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,KAAK,WAAY,cAAc,KAAG,mCAwD9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,mCAAmC,SA8B1F,CAAC;CACL;AACD,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB,cAAc,EAAE,IAAI,CAAC;IACrB,cAAc,EAAE,eAAe,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,eAAe,CAAC;IAC9B,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,cAAc,EAAE,eAAe,CAAC;CACnC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildableSubsystemSpecialProperties = exports.isBuildableSubsystemSpecialProperties = void 0;
4
+ const col4_1 = require("../../structs/col4");
5
+ const ObjectReference_1 = require("../../structs/ObjectReference");
6
+ const Transform_1 = require("../../structs/Transform");
7
+ const isBuildableSubsystemSpecialProperties = (obj) => obj.type === 'BuildableSubsystemSpecialProperties';
8
+ exports.isBuildableSubsystemSpecialProperties = isBuildableSubsystemSpecialProperties;
9
+ var BuildableSubsystemSpecialProperties;
10
+ (function (BuildableSubsystemSpecialProperties) {
11
+ BuildableSubsystemSpecialProperties.Parse = (reader) => {
12
+ const property = {
13
+ type: 'BuildableSubsystemSpecialProperties',
14
+ buildables: []
15
+ };
16
+ const entriesCount = reader.readInt32();
17
+ if (entriesCount > 0) {
18
+ for (let i = 0; i < entriesCount; i++) {
19
+ reader.readInt32();
20
+ const typePath = reader.readString();
21
+ const count = reader.readInt32();
22
+ const instances = [];
23
+ for (let j = 0; j < count; j++) {
24
+ const transform = Transform_1.Transform.Parse(reader);
25
+ const usedSwatchSlot = ObjectReference_1.ObjectReference.read(reader);
26
+ const usedMaterial = ObjectReference_1.ObjectReference.read(reader);
27
+ const usedPattern = ObjectReference_1.ObjectReference.read(reader);
28
+ const usedSkin = ObjectReference_1.ObjectReference.read(reader);
29
+ const primaryColor = col4_1.col4.ParseRGBA(reader);
30
+ const secondaryColor = col4_1.col4.ParseRGBA(reader);
31
+ const usedPaintFinish = ObjectReference_1.ObjectReference.read(reader);
32
+ const patternRotation = reader.readByte();
33
+ const usedRecipe = ObjectReference_1.ObjectReference.read(reader);
34
+ const blueprintProxy = ObjectReference_1.ObjectReference.read(reader);
35
+ instances.push({
36
+ transform,
37
+ primaryColor,
38
+ secondaryColor,
39
+ usedSwatchSlot,
40
+ usedMaterial,
41
+ usedPattern,
42
+ usedSkin,
43
+ usedRecipe,
44
+ usedPaintFinish,
45
+ patternRotation,
46
+ blueprintProxy
47
+ });
48
+ }
49
+ property.buildables.push({
50
+ typePath,
51
+ instances
52
+ });
53
+ }
54
+ }
55
+ return property;
56
+ };
57
+ BuildableSubsystemSpecialProperties.Serialize = (writer, property) => {
58
+ writer.writeInt32(property.buildables.length);
59
+ if (property.buildables.length > 0) {
60
+ for (const buildable of property.buildables) {
61
+ writer.writeInt32(0);
62
+ writer.writeString(buildable.typePath);
63
+ writer.writeInt32(buildable.instances.length);
64
+ for (const instance of buildable.instances) {
65
+ Transform_1.Transform.Serialize(writer, instance.transform);
66
+ ObjectReference_1.ObjectReference.write(writer, instance.usedSwatchSlot);
67
+ ObjectReference_1.ObjectReference.write(writer, instance.usedMaterial);
68
+ ObjectReference_1.ObjectReference.write(writer, instance.usedPattern);
69
+ ObjectReference_1.ObjectReference.write(writer, instance.usedSkin);
70
+ col4_1.col4.SerializeRGBA(writer, instance.primaryColor);
71
+ col4_1.col4.SerializeRGBA(writer, instance.secondaryColor);
72
+ ObjectReference_1.ObjectReference.write(writer, instance.usedPaintFinish);
73
+ writer.writeByte(instance.patternRotation);
74
+ ObjectReference_1.ObjectReference.write(writer, instance.usedRecipe);
75
+ ObjectReference_1.ObjectReference.write(writer, instance.blueprintProxy);
76
+ }
77
+ }
78
+ }
79
+ };
80
+ })(BuildableSubsystemSpecialProperties || (exports.BuildableSubsystemSpecialProperties = BuildableSubsystemSpecialProperties = {}));
81
+ //# sourceMappingURL=BuildableSubsystemSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildableSubsystemSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,mEAAgE;AAChE,uDAAoD;AAI7C,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAUlK,IAAiB,mCAAmC,CA0FnD;AA1FD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAsB,EAAuC,EAAE;QAEjF,MAAM,QAAQ,GAA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AAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;oBAEjD,WAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;oBAClD,WAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;oBAEpD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;oBACxD,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;oBAC3C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;oBACnD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;gBAC3D,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA1FgB,mCAAmC,mDAAnC,mCAAmC,QA0FnD","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { col4 } from '../../structs/col4';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\n\n\n\nexport const isBuildableSubsystemSpecialProperties = (obj: any): obj is BuildableSubsystemSpecialProperties => obj.type === 'BuildableSubsystemSpecialProperties';\n\nexport type BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties';\n buildables: {\n typePath: string;\n instances: BuildableTypeInstance[];\n }[];\n};\n\nexport namespace BuildableSubsystemSpecialProperties {\n export const Parse = (reader: BinaryReadable): BuildableSubsystemSpecialProperties => {\n\n const property: BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties',\n buildables: []\n };\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n reader.readInt32(); //0\n const typePath = reader.readString();\n const count = reader.readInt32();\n\n const instances = [];\n for (let j = 0; j < count; j++) {\n\n const transform = Transform.Parse(reader);\n\n const usedSwatchSlot = ObjectReference.read(reader);\n const usedMaterial = ObjectReference.read(reader);\n const usedPattern = ObjectReference.read(reader);\n const usedSkin = ObjectReference.read(reader);\n\n const primaryColor = col4.ParseRGBA(reader);\n const secondaryColor = col4.ParseRGBA(reader);\n\n const usedPaintFinish = ObjectReference.read(reader);\n const patternRotation = reader.readByte();\n const usedRecipe = ObjectReference.read(reader);\n const blueprintProxy = ObjectReference.read(reader);\n\n instances.push({\n transform,\n primaryColor,\n secondaryColor,\n usedSwatchSlot,\n usedMaterial,\n usedPattern,\n usedSkin,\n usedRecipe,\n usedPaintFinish,\n patternRotation,\n blueprintProxy\n } satisfies BuildableTypeInstance);\n }\n\n property.buildables.push({\n typePath,\n instances\n });\n }\n }\n\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: BuildableSubsystemSpecialProperties) => {\n\n writer.writeInt32(property.buildables.length);\n\n if (property.buildables.length > 0) {\n\n for (const buildable of property.buildables) {\n writer.writeInt32(0);\n writer.writeString(buildable.typePath);\n writer.writeInt32(buildable.instances.length);\n\n for (const instance of buildable.instances) {\n\n Transform.Serialize(writer, instance.transform);\n\n ObjectReference.write(writer, instance.usedSwatchSlot);\n ObjectReference.write(writer, instance.usedMaterial);\n ObjectReference.write(writer, instance.usedPattern);\n ObjectReference.write(writer, instance.usedSkin);\n\n col4.SerializeRGBA(writer, instance.primaryColor);\n col4.SerializeRGBA(writer, instance.secondaryColor);\n\n ObjectReference.write(writer, instance.usedPaintFinish);\n writer.writeByte(instance.patternRotation);\n ObjectReference.write(writer, instance.usedRecipe);\n ObjectReference.write(writer, instance.blueprintProxy);\n }\n }\n }\n };\n}\nexport type BuildableTypeInstance = {\n transform: Transform;\n primaryColor: col4;\n secondaryColor: col4;\n usedSwatchSlot: ObjectReference;\n usedPattern: ObjectReference;\n usedMaterial: ObjectReference;\n usedSkin: ObjectReference;\n usedPaintFinish: ObjectReference;\n patternRotation: number;\n usedRecipe: ObjectReference;\n blueprintProxy: ObjectReference;\n};\n\n"]}
@@ -0,0 +1,16 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { ObjectReference } from '../../structs/ObjectReference';
4
+ export declare const isCircuitSpecialProperties: (obj: any) => obj is CircuitSpecialProperties;
5
+ export type CircuitSpecialProperties = {
6
+ type: 'CircuitSpecialProperties';
7
+ circuits: {
8
+ id: number;
9
+ objectReference: ObjectReference;
10
+ }[];
11
+ };
12
+ export declare namespace CircuitSpecialProperties {
13
+ const Parse: (reader: BinaryReadable) => CircuitSpecialProperties;
14
+ const Serialize: (writer: ByteWriter, property: CircuitSpecialProperties) => void;
15
+ }
16
+ //# sourceMappingURL=CircuitSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircuitSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/CircuitSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,eAAO,MAAM,0BAA0B,QAAS,GAAG,KAAG,GAAG,IAAI,wBAAmE,CAAC;AAEjI,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,0BAA0B,CAAC;IACjC,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,eAAe,EAAE,eAAe,CAAC;KACpC,EAAE,CAAC;CACP,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,KAAK,WAAY,cAAc,KAAG,wBAc9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,wBAAwB,SAM/E,CAAC;CACL"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CircuitSpecialProperties = exports.isCircuitSpecialProperties = void 0;
4
+ const ObjectReference_1 = require("../../structs/ObjectReference");
5
+ const isCircuitSpecialProperties = (obj) => obj.type === 'CircuitSpecialProperties';
6
+ exports.isCircuitSpecialProperties = isCircuitSpecialProperties;
7
+ var CircuitSpecialProperties;
8
+ (function (CircuitSpecialProperties) {
9
+ CircuitSpecialProperties.Parse = (reader) => {
10
+ const count = reader.readInt32();
11
+ const circuits = [];
12
+ for (let i = 0; i < count; i++) {
13
+ circuits.push({
14
+ id: reader.readInt32(),
15
+ objectReference: ObjectReference_1.ObjectReference.read(reader)
16
+ });
17
+ }
18
+ return {
19
+ type: 'CircuitSpecialProperties',
20
+ circuits
21
+ };
22
+ };
23
+ CircuitSpecialProperties.Serialize = (writer, property) => {
24
+ writer.writeInt32(property.circuits.length);
25
+ for (const circuit of property.circuits) {
26
+ writer.writeInt32(circuit.id);
27
+ ObjectReference_1.ObjectReference.write(writer, circuit.objectReference);
28
+ }
29
+ };
30
+ })(CircuitSpecialProperties || (exports.CircuitSpecialProperties = CircuitSpecialProperties = {}));
31
+ //# sourceMappingURL=CircuitSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircuitSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/CircuitSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAIzD,MAAM,0BAA0B,GAAG,CAAC,GAAQ,EAAmC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,0BAA0B,CAAC;AAApH,QAAA,0BAA0B,8BAA0F;AAUjI,IAAiB,wBAAwB,CAwBxC;AAxBD,WAAiB,wBAAwB;IACxB,8BAAK,GAAG,CAAC,MAAsB,EAA4B,EAAE;QACtE,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,QAAQ,CAAC,IAAI,CAAC;gBACV,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE;gBACtB,eAAe,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;aAChD,CAAC,CAAC;QACP,CAAC;QAED,OAAO;YACH,IAAI,EAAE,0BAA0B;YAChC,QAAQ;SACX,CAAC;IACN,CAAC,CAAC;IAEW,kCAAS,GAAG,CAAC,MAAkB,EAAE,QAAkC,EAAE,EAAE;QAChF,MAAM,CAAC,UAAU,CAAE,QAAqC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1E,KAAK,MAAM,OAAO,IAAK,QAAqC,CAAC,QAAQ,EAAE,CAAC;YACpE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC9B,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAxBgB,wBAAwB,wCAAxB,wBAAwB,QAwBxC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\n\n\nexport const isCircuitSpecialProperties = (obj: any): obj is CircuitSpecialProperties => obj.type === 'CircuitSpecialProperties';\n\nexport type CircuitSpecialProperties = {\n type: 'CircuitSpecialProperties';\n circuits: {\n id: number;\n objectReference: ObjectReference;\n }[];\n};\n\nexport namespace CircuitSpecialProperties {\n export const Parse = (reader: BinaryReadable): CircuitSpecialProperties => {\n const count = reader.readInt32();\n const circuits = [];\n for (let i = 0; i < count; i++) {\n circuits.push({\n id: reader.readInt32(),\n objectReference: ObjectReference.read(reader)\n });\n }\n\n return {\n type: 'CircuitSpecialProperties',\n circuits\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: CircuitSpecialProperties) => {\n writer.writeInt32((property as CircuitSpecialProperties).circuits.length);\n for (const circuit of (property as CircuitSpecialProperties).circuits) {\n writer.writeInt32(circuit.id);\n ObjectReference.write(writer, circuit.objectReference);\n }\n };\n}\n"]}
@@ -0,0 +1,40 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { ObjectReference } from '../../structs/ObjectReference';
4
+ import { vec3 } from '../../structs/vec3';
5
+ export declare const isConveyorChainActorSpecialProperties: (obj: any) => obj is ConveyorChainActorSpecialProperties;
6
+ export type ConveyorChainActorSpecialProperties = {
7
+ type: 'ConveyorChainActorSpecialProperties';
8
+ firstBelt: ObjectReference;
9
+ lastBelt: ObjectReference;
10
+ beltsInChain: ConveyorChainSegmentSpecialProperties[];
11
+ totalLength: number;
12
+ totalNumberItemsMaybe: number;
13
+ firstChainItemIndex: number;
14
+ lastChainItemIndex: number;
15
+ items: ConveyorItemSpecialProperties[];
16
+ };
17
+ export declare namespace ConveyorChainActorSpecialProperties {
18
+ const Parse: (reader: BinaryReadable) => ConveyorChainActorSpecialProperties;
19
+ const Serialize: (writer: ByteWriter, property: ConveyorChainActorSpecialProperties) => void;
20
+ }
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
+ //# sourceMappingURL=ConveyorChainActorSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConveyorChainActorSpecialProperties.d.ts","sourceRoot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AAE,MAAM,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC;CAClC,CAAC"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConveyorChainActorSpecialProperties = exports.isConveyorChainActorSpecialProperties = void 0;
4
+ const ObjectReference_1 = require("../../structs/ObjectReference");
5
+ const vec3_1 = require("../../structs/vec3");
6
+ const isConveyorChainActorSpecialProperties = (obj) => obj.type === 'ConveyorChainActorSpecialProperties';
7
+ exports.isConveyorChainActorSpecialProperties = isConveyorChainActorSpecialProperties;
8
+ var ConveyorChainActorSpecialProperties;
9
+ (function (ConveyorChainActorSpecialProperties) {
10
+ ConveyorChainActorSpecialProperties.Parse = (reader) => {
11
+ const lastBelt = ObjectReference_1.ObjectReference.read(reader);
12
+ const firstBelt = ObjectReference_1.ObjectReference.read(reader);
13
+ const countBeltsInChain = reader.readInt32();
14
+ const beltsInChain = [];
15
+ 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
+ });
44
+ }
45
+ const totalLength = reader.readFloat32();
46
+ const totalNumberItemsMaybe = reader.readInt32();
47
+ const firstChainItemIndex = reader.readInt32();
48
+ const lastChainItemIndex = reader.readInt32();
49
+ const countItemsInChain = reader.readInt32();
50
+ const items = [];
51
+ 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 });
56
+ }
57
+ return {
58
+ type: 'ConveyorChainActorSpecialProperties',
59
+ firstBelt: firstBelt,
60
+ lastBelt: lastBelt,
61
+ beltsInChain,
62
+ totalLength,
63
+ totalNumberItemsMaybe,
64
+ firstChainItemIndex,
65
+ lastChainItemIndex,
66
+ items
67
+ };
68
+ };
69
+ ConveyorChainActorSpecialProperties.Serialize = (writer, property) => {
70
+ ObjectReference_1.ObjectReference.write(writer, property.lastBelt);
71
+ ObjectReference_1.ObjectReference.write(writer, property.firstBelt);
72
+ writer.writeInt32(property.beltsInChain.length);
73
+ 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);
88
+ }
89
+ writer.writeInt32(property.totalLength);
90
+ writer.writeInt32(property.totalNumberItemsMaybe);
91
+ writer.writeInt32(property.firstChainItemIndex);
92
+ writer.writeInt32(property.lastChainItemIndex);
93
+ writer.writeInt32(property.items.length);
94
+ for (const item of property.items) {
95
+ ObjectReference_1.ObjectReference.write(writer, item.itemReference);
96
+ writer.writeInt32(0);
97
+ writer.writeInt32(item.position);
98
+ }
99
+ };
100
+ })(ConveyorChainActorSpecialProperties || (exports.ConveyorChainActorSpecialProperties = ConveyorChainActorSpecialProperties = {}));
101
+ //# sourceMappingURL=ConveyorChainActorSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConveyorChainActorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,6CAA0C;AAInC,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAclK,IAAiB,mCAAmC,CA6GnD;AA7GD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAsB,EAAuC,EAAE;QAEjF,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,GAA4C,EAAE,CAAC;QACjE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,aAAa,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACnD,MAAM,OAAO,GAAG,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7C,MAAM,iBAAiB,GAAG,MAAM,CAAC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ter } from '../../../../byte/byte-writer.class';\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: BinaryReadable): 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: ByteWriter, property: ConveyorChainActorSpecialProperties) => {\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.writeInt32(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"]}
@@ -0,0 +1,11 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ export declare const isConveyorSpecialProperties: (obj: any) => obj is ConveyorSpecialProperties;
4
+ export type ConveyorSpecialProperties = {
5
+ type: 'ConveyorSpecialProperties';
6
+ };
7
+ export declare namespace ConveyorSpecialProperties {
8
+ const Parse: (reader: BinaryReadable) => ConveyorSpecialProperties;
9
+ const Serialize: (writer: ByteWriter, property: ConveyorSpecialProperties) => void;
10
+ }
11
+ //# sourceMappingURL=ConveyorSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConveyorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,2BAA2B,QAAS,GAAG,KAAG,GAAG,IAAI,yBAAqE,CAAC;AAEpI,MAAM,MAAM,yBAAyB,GAAG;IACpC,IAAI,EAAE,2BAA2B,CAAC;CACrC,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,KAAK,WAAY,cAAc,KAAG,yBAK9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,yBAAyB,SAEhF,CAAC;CACL"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConveyorSpecialProperties = exports.isConveyorSpecialProperties = void 0;
4
+ const isConveyorSpecialProperties = (obj) => obj.type === 'ConveyorSpecialProperties';
5
+ exports.isConveyorSpecialProperties = isConveyorSpecialProperties;
6
+ var ConveyorSpecialProperties;
7
+ (function (ConveyorSpecialProperties) {
8
+ ConveyorSpecialProperties.Parse = (reader) => {
9
+ reader.readInt32();
10
+ return {
11
+ type: 'ConveyorSpecialProperties',
12
+ };
13
+ };
14
+ ConveyorSpecialProperties.Serialize = (writer, property) => {
15
+ writer.writeInt32(0);
16
+ };
17
+ })(ConveyorSpecialProperties || (exports.ConveyorSpecialProperties = ConveyorSpecialProperties = {}));
18
+ //# sourceMappingURL=ConveyorSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConveyorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorSpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,2BAA2B,GAAG,CAAC,GAAQ,EAAoC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,2BAA2B,CAAC;AAAvH,QAAA,2BAA2B,+BAA4F;AAMpI,IAAiB,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IACzB,+BAAK,GAAG,CAAC,MAAsB,EAA6B,EAAE;QACvE,MAAM,CAAC,SAAS,EAAE,CAAC;QACnB,OAAO;YACH,IAAI,EAAE,2BAA2B;SACpC,CAAC;IACN,CAAC,CAAC;IAEW,mCAAS,GAAG,CAAC,MAAkB,EAAE,QAAmC,EAAE,EAAE;QACjF,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC;AACN,CAAC,EAXgB,yBAAyB,yCAAzB,yBAAyB,QAWzC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isConveyorSpecialProperties = (obj: any): obj is ConveyorSpecialProperties => obj.type === 'ConveyorSpecialProperties';\n\nexport type ConveyorSpecialProperties = {\n type: 'ConveyorSpecialProperties';\n};\n\nexport namespace ConveyorSpecialProperties {\n export const Parse = (reader: BinaryReadable): ConveyorSpecialProperties => {\n reader.readInt32(); // 0\n return {\n type: 'ConveyorSpecialProperties',\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: ConveyorSpecialProperties) => {\n writer.writeInt32(0);\n };\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ export declare const isEmptySpecialProperties: (obj: any) => obj is EmptySpecialProperties;
4
+ export type EmptySpecialProperties = {
5
+ type: 'EmptySpecialProperties';
6
+ };
7
+ export declare namespace EmptySpecialProperties {
8
+ const Parse: (reader: BinaryReadable) => EmptySpecialProperties;
9
+ const Serialize: (writer: ByteWriter, property: EmptySpecialProperties) => void;
10
+ }
11
+ //# sourceMappingURL=EmptySpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptySpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/EmptySpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,wBAAwB,QAAS,GAAG,KAAG,GAAG,IAAI,sBAA+D,CAAC;AAE3H,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,KAAK,WAAY,cAAc,KAAG,sBAI9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,sBAAsB,SAAQ,CAAC;CAC1F"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmptySpecialProperties = exports.isEmptySpecialProperties = void 0;
4
+ const isEmptySpecialProperties = (obj) => obj.type === 'EmptySpecialProperties';
5
+ exports.isEmptySpecialProperties = isEmptySpecialProperties;
6
+ var EmptySpecialProperties;
7
+ (function (EmptySpecialProperties) {
8
+ EmptySpecialProperties.Parse = (reader) => {
9
+ return {
10
+ type: 'EmptySpecialProperties',
11
+ };
12
+ };
13
+ EmptySpecialProperties.Serialize = (writer, property) => { };
14
+ })(EmptySpecialProperties || (exports.EmptySpecialProperties = EmptySpecialProperties = {}));
15
+ //# sourceMappingURL=EmptySpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptySpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/EmptySpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,wBAAwB,GAAG,CAAC,GAAQ,EAAiC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,wBAAwB,CAAC;AAA9G,QAAA,wBAAwB,4BAAsF;AAM3H,IAAiB,sBAAsB,CAQtC;AARD,WAAiB,sBAAsB;IACtB,4BAAK,GAAG,CAAC,MAAsB,EAA0B,EAAE;QACpE,OAAO;YACH,IAAI,EAAE,wBAAwB;SACjC,CAAC;IACN,CAAC,CAAC;IAEW,gCAAS,GAAG,CAAC,MAAkB,EAAE,QAAgC,EAAE,EAAE,GAAG,CAAC,CAAC;AAC3F,CAAC,EARgB,sBAAsB,sCAAtB,sBAAsB,QAQtC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isEmptySpecialProperties = (obj: any): obj is EmptySpecialProperties => obj.type === 'EmptySpecialProperties';\n\nexport type EmptySpecialProperties = {\n type: 'EmptySpecialProperties';\n};\n\nexport namespace EmptySpecialProperties {\n export const Parse = (reader: BinaryReadable): EmptySpecialProperties => {\n return {\n type: 'EmptySpecialProperties',\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: EmptySpecialProperties) => { };\n}\n"]}
@@ -0,0 +1,13 @@
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 isObjectsListSpecialProperties: (obj: any) => obj is ObjectsListSpecialProperties;
5
+ export type ObjectsListSpecialProperties = {
6
+ type: 'ObjectsListSpecialProperties';
7
+ objects: ObjectReference[];
8
+ };
9
+ export declare namespace ObjectsListSpecialProperties {
10
+ const Parse: (reader: BinaryReadable) => ObjectsListSpecialProperties;
11
+ const Serialize: (writer: ByteWriter, property: ObjectsListSpecialProperties) => void;
12
+ }
13
+ //# sourceMappingURL=ObjectsListSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectsListSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,eAAO,MAAM,8BAA8B,QAAS,GAAG,KAAG,GAAG,IAAI,4BAA2E,CAAC;AAE7I,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAC;IACrC,OAAO,EAAE,eAAe,EAAE,CAAC;CAC9B,CAAC;AAEF,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,KAAK,WAAY,cAAc,KAAG,4BAM9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,4BAA4B,SAEnF,CAAC;CACL"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectsListSpecialProperties = exports.isObjectsListSpecialProperties = void 0;
4
+ const object_references_list_1 = require("../../../save/object-references-list");
5
+ const isObjectsListSpecialProperties = (obj) => obj.type === 'ObjectsListSpecialProperties';
6
+ exports.isObjectsListSpecialProperties = isObjectsListSpecialProperties;
7
+ var ObjectsListSpecialProperties;
8
+ (function (ObjectsListSpecialProperties) {
9
+ ObjectsListSpecialProperties.Parse = (reader) => {
10
+ const objectsList = object_references_list_1.ObjectReferencesList.ReadList(reader);
11
+ return {
12
+ type: 'ObjectsListSpecialProperties',
13
+ objects: objectsList
14
+ };
15
+ };
16
+ ObjectsListSpecialProperties.Serialize = (writer, property) => {
17
+ object_references_list_1.ObjectReferencesList.SerializeList(writer, property.objects);
18
+ };
19
+ })(ObjectsListSpecialProperties || (exports.ObjectsListSpecialProperties = ObjectsListSpecialProperties = {}));
20
+ //# sourceMappingURL=ObjectsListSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectsListSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,iFAA4E;AAKrE,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAAuC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,8BAA8B,CAAC;AAAhI,QAAA,8BAA8B,kCAAkG;AAO7I,IAAiB,4BAA4B,CAY5C;AAZD,WAAiB,4BAA4B;IAC5B,kCAAK,GAAG,CAAC,MAAsB,EAAgC,EAAE;QAC1E,MAAM,WAAW,GAAG,6CAAoB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO;YACH,IAAI,EAAE,8BAA8B;YACpC,OAAO,EAAE,WAAW;SACvB,CAAC;IACN,CAAC,CAAC;IAEW,sCAAS,GAAG,CAAC,MAAkB,EAAE,QAAsC,EAAE,EAAE;QACpF,6CAAoB,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC,EAZgB,4BAA4B,4CAA5B,4BAA4B,QAY5C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReferencesList } from '../../../save/object-references-list';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\n\n\nexport const isObjectsListSpecialProperties = (obj: any): obj is ObjectsListSpecialProperties => obj.type === 'ObjectsListSpecialProperties';\n\nexport type ObjectsListSpecialProperties = {\n type: 'ObjectsListSpecialProperties';\n objects: ObjectReference[];\n};\n\nexport namespace ObjectsListSpecialProperties {\n export const Parse = (reader: BinaryReadable): ObjectsListSpecialProperties => {\n const objectsList = ObjectReferencesList.ReadList(reader);\n return {\n type: 'ObjectsListSpecialProperties',\n objects: objectsList\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: ObjectsListSpecialProperties) => {\n ObjectReferencesList.SerializeList(writer, property.objects);\n };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ export declare const isPlayerSpecialProperties: (obj: any) => obj is PlayerSpecialProperties;
4
+ export type PlayerSpecialProperties = {
5
+ type: 'PlayerSpecialProperties';
6
+ flag: number;
7
+ eosData?: string;
8
+ steamPlayerData?: string;
9
+ };
10
+ export declare namespace PlayerSpecialProperties {
11
+ const Parse: (reader: BinaryReadable) => PlayerSpecialProperties;
12
+ const Serialize: (writer: ByteWriter, property: PlayerSpecialProperties) => void;
13
+ }
14
+ //# sourceMappingURL=PlayerSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PlayerSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,yBAAyB,QAAS,GAAG,KAAG,GAAG,IAAI,uBAAiE,CAAC;AAE9H,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,KAAK,WAAY,cAAc,KAAG,uBAwB9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,uBAAuB,SAa9E,CAAC;CACL"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlayerSpecialProperties = exports.isPlayerSpecialProperties = void 0;
4
+ const isPlayerSpecialProperties = (obj) => obj.type === 'PlayerSpecialProperties';
5
+ exports.isPlayerSpecialProperties = isPlayerSpecialProperties;
6
+ var PlayerSpecialProperties;
7
+ (function (PlayerSpecialProperties) {
8
+ PlayerSpecialProperties.Parse = (reader) => {
9
+ const flag = reader.readByte();
10
+ const property = {
11
+ type: 'PlayerSpecialProperties',
12
+ flag
13
+ };
14
+ switch (property.flag) {
15
+ case 248:
16
+ const eos = reader.readString();
17
+ property.eosData = reader.readString();
18
+ break;
19
+ case 25:
20
+ break;
21
+ default:
22
+ break;
23
+ }
24
+ return property;
25
+ };
26
+ PlayerSpecialProperties.Serialize = (writer, property) => {
27
+ writer.writeByte(property.flag);
28
+ switch (property.flag) {
29
+ case 248:
30
+ writer.writeString('EOS');
31
+ writer.writeString(property.eosData);
32
+ break;
33
+ case 25:
34
+ break;
35
+ default:
36
+ break;
37
+ }
38
+ };
39
+ })(PlayerSpecialProperties || (exports.PlayerSpecialProperties = PlayerSpecialProperties = {}));
40
+ //# sourceMappingURL=PlayerSpecialProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PlayerSpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,yBAAyB,GAAG,CAAC,GAAQ,EAAkC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,yBAAyB,CAAC;AAAjH,QAAA,yBAAyB,6BAAwF;AAS9H,IAAiB,uBAAuB,CAyCvC;AAzCD,WAAiB,uBAAuB;IACvB,6BAAK,GAAG,CAAC,MAAsB,EAA2B,EAAE;QAErE,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAI/B,MAAM,QAAQ,GAA4B;YACtC,IAAI,EAAE,yBAAyB;YAC/B,IAAI;SACP,CAAC;QAGF,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;YACpB,KAAK,GAAG;gBACJ,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBAChC,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBACvC,MAAM;YACV,KAAK,EAAE;gBACH,MAAM;YACV;gBACI,MAAM;QACd,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;IAEW,iCAAS,GAAG,CAAC,MAAkB,EAAE,QAAiC,EAAE,EAAE;QAC/E,MAAM,CAAC,SAAS,CAAE,QAAoC,CAAC,IAAI,CAAC,CAAC;QAC7D,QAAS,QAAoC,CAAC,IAAI,EAAE,CAAC;YACjD,KAAK,GAAG;gBACJ,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBAC1B,MAAM,CAAC,WAAW,CAAE,QAAoC,CAAC,OAAQ,CAAC,CAAC;gBACnE,MAAM;YACV,KAAK,EAAE;gBACH,MAAM;YACV;gBACI,MAAM;QAEd,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAzCgB,uBAAuB,uCAAvB,uBAAuB,QAyCvC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isPlayerSpecialProperties = (obj: any): obj is PlayerSpecialProperties => obj.type === 'PlayerSpecialProperties';\n\nexport type PlayerSpecialProperties = {\n type: 'PlayerSpecialProperties';\n flag: number;\n eosData?: string;\n steamPlayerData?: string;\n};\n\nexport namespace PlayerSpecialProperties {\n export const Parse = (reader: BinaryReadable): PlayerSpecialProperties => {\n\n const flag = reader.readByte(); // 241?\n\n\n // TODO - i don't know enough about player state yet. need more players.\n const property: PlayerSpecialProperties = {\n type: 'PlayerSpecialProperties',\n flag\n };\n\n // 241 = byte, byte, length? flag, id with length bytes\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\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: PlayerSpecialProperties) => {\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 };\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../byte/byte-writer.class';
3
+ import { ObjectReference } from '../../structs/ObjectReference';
4
+ import { vec3 } from '../../structs/vec3';
5
+ export declare const isPowerLineSpecialProperties: (obj: any) => obj is PowerLineSpecialProperties;
6
+ export type PowerLineSpecialProperties = {
7
+ type: 'PowerLineSpecialProperties';
8
+ source: ObjectReference;
9
+ target: ObjectReference;
10
+ sourceTranslation?: vec3;
11
+ targetTranslation?: vec3;
12
+ };
13
+ export declare namespace PowerLineSpecialProperties {
14
+ const Parse: (reader: BinaryReadable, remainingLen: number) => PowerLineSpecialProperties;
15
+ const Serialize: (writer: ByteWriter, property: PowerLineSpecialProperties) => void;
16
+ }
17
+ //# sourceMappingURL=PowerLineSpecialProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PowerLineSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.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;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI1C,eAAO,MAAM,4BAA4B,QAAS,GAAG,KAAG,GAAG,IAAI,0BAAuE,CAAC;AAEvI,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,4BAA4B,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,KAAG,0BAcpE,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,0BAA0B,SAGjF,CAAC;CACL"}