@etothepii/satisfactory-file-parser 2.1.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (796) hide show
  1. package/CHANGELOG.md +125 -99
  2. package/LICENCE.md +1 -1
  3. package/README.md +36 -18
  4. package/build/index.d.ts +12 -1
  5. package/build/index.d.ts.map +1 -1
  6. package/build/index.js +13 -3
  7. package/build/index.js.map +1 -1
  8. package/build/parser/byte/byte-reader.class.d.ts +7 -5
  9. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  10. package/build/parser/byte/byte-reader.class.js +6 -4
  11. package/build/parser/byte/byte-reader.class.js.map +1 -1
  12. package/build/parser/byte/byte-writer.class.d.ts +1 -0
  13. package/build/parser/byte/byte-writer.class.d.ts.map +1 -1
  14. package/build/parser/byte/byte-writer.class.js +3 -0
  15. package/build/parser/byte/byte-writer.class.js.map +1 -1
  16. package/build/parser/context/context-reader.d.ts +6 -0
  17. package/build/parser/context/context-reader.d.ts.map +1 -0
  18. package/build/parser/context/context-reader.js +13 -0
  19. package/build/parser/context/context-reader.js.map +1 -0
  20. package/build/parser/context/context-writer.d.ts +6 -0
  21. package/build/parser/context/context-writer.d.ts.map +1 -0
  22. package/build/parser/context/context-writer.js +13 -0
  23. package/build/parser/context/context-writer.js.map +1 -0
  24. package/build/parser/context/context.d.ts +16 -0
  25. package/build/parser/context/context.d.ts.map +1 -0
  26. package/build/parser/context/context.js +3 -0
  27. package/build/parser/context/context.js.map +1 -0
  28. package/build/parser/error/parser.error.d.ts +3 -0
  29. package/build/parser/error/parser.error.d.ts.map +1 -1
  30. package/build/parser/error/parser.error.js +7 -1
  31. package/build/parser/error/parser.error.js.map +1 -1
  32. package/build/parser/parser.d.ts +5 -5
  33. package/build/parser/parser.d.ts.map +1 -1
  34. package/build/parser/parser.js +48 -22
  35. package/build/parser/parser.js.map +1 -1
  36. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts +10 -0
  37. package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts.map +1 -0
  38. package/build/parser/satisfactory/blueprint/blueprint-config-version.js +14 -0
  39. package/build/parser/satisfactory/blueprint/blueprint-config-version.js.map +1 -0
  40. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts +21 -0
  41. package/build/parser/satisfactory/blueprint/blueprint-config.d.ts.map +1 -0
  42. package/build/parser/satisfactory/blueprint/blueprint-config.js +56 -0
  43. package/build/parser/satisfactory/blueprint/blueprint-config.js.map +1 -0
  44. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts +24 -0
  45. package/build/parser/satisfactory/blueprint/blueprint-header.d.ts.map +1 -0
  46. package/build/parser/satisfactory/blueprint/blueprint-header.js +61 -0
  47. package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -0
  48. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts +11 -14
  49. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  50. package/build/parser/satisfactory/blueprint/blueprint-reader.js +15 -99
  51. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  52. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts +6 -9
  53. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  54. package/build/parser/satisfactory/blueprint/blueprint-writer.js +7 -39
  55. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  56. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -16
  57. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
  58. package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
  59. package/build/parser/satisfactory/edit/edit-constants.d.ts +18 -0
  60. package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
  61. package/build/parser/satisfactory/edit/edit-constants.js +18 -0
  62. package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
  63. package/build/parser/satisfactory/save/factory-game-custom-version.d.ts +34 -0
  64. package/build/parser/satisfactory/save/factory-game-custom-version.d.ts.map +1 -0
  65. package/build/parser/satisfactory/save/factory-game-custom-version.js +39 -0
  66. package/build/parser/satisfactory/save/factory-game-custom-version.js.map +1 -0
  67. package/build/parser/satisfactory/save/level.class.d.ts +17 -10
  68. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  69. package/build/parser/satisfactory/save/level.class.js +77 -21
  70. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  71. package/build/parser/satisfactory/save/object-references-list.d.ts +4 -4
  72. package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
  73. package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
  74. package/build/parser/satisfactory/save/satisfactory-save-header.d.ts +29 -0
  75. package/build/parser/satisfactory/save/satisfactory-save-header.d.ts.map +1 -0
  76. package/build/parser/satisfactory/save/satisfactory-save-header.js +111 -0
  77. package/build/parser/satisfactory/save/satisfactory-save-header.js.map +1 -0
  78. package/build/parser/satisfactory/save/satisfactory-save.d.ts +6 -4
  79. package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -1
  80. package/build/parser/satisfactory/save/satisfactory-save.js +4 -1
  81. package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -1
  82. package/build/parser/satisfactory/save/save-body-chunks.d.ts +25 -0
  83. package/build/parser/satisfactory/save/save-body-chunks.d.ts.map +1 -0
  84. package/build/parser/satisfactory/save/save-body-chunks.js +118 -0
  85. package/build/parser/satisfactory/save/save-body-chunks.js.map +1 -0
  86. package/build/parser/satisfactory/save/save-custom-version.d.ts +57 -0
  87. package/build/parser/satisfactory/save/save-custom-version.d.ts.map +1 -0
  88. package/build/parser/satisfactory/save/save-custom-version.js +62 -0
  89. package/build/parser/satisfactory/save/save-custom-version.js.map +1 -0
  90. package/build/parser/satisfactory/save/save-header-type.d.ts +18 -0
  91. package/build/parser/satisfactory/save/save-header-type.d.ts.map +1 -0
  92. package/build/parser/satisfactory/save/save-header-type.js +22 -0
  93. package/build/parser/satisfactory/save/save-header-type.js.map +1 -0
  94. package/build/parser/satisfactory/save/save-reader.d.ts +14 -12
  95. package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -1
  96. package/build/parser/satisfactory/save/save-reader.js +32 -134
  97. package/build/parser/satisfactory/save/save-reader.js.map +1 -1
  98. package/build/parser/satisfactory/save/save-writer.d.ts +7 -9
  99. package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -1
  100. package/build/parser/satisfactory/save/save-writer.js +8 -95
  101. package/build/parser/satisfactory/save/save-writer.js.map +1 -1
  102. package/build/parser/satisfactory/save/save.types.d.ts +5 -25
  103. package/build/parser/satisfactory/save/save.types.d.ts.map +1 -1
  104. package/build/parser/satisfactory/save/save.types.js.map +1 -1
  105. package/build/parser/satisfactory/types/objects/SaveComponent.d.ts +6 -5
  106. package/build/parser/satisfactory/types/objects/SaveComponent.d.ts.map +1 -1
  107. package/build/parser/satisfactory/types/objects/SaveComponent.js +2 -2
  108. package/build/parser/satisfactory/types/objects/SaveComponent.js.map +1 -1
  109. package/build/parser/satisfactory/types/objects/SaveEntity.d.ts +7 -8
  110. package/build/parser/satisfactory/types/objects/SaveEntity.d.ts.map +1 -1
  111. package/build/parser/satisfactory/types/objects/SaveEntity.js +7 -10
  112. package/build/parser/satisfactory/types/objects/SaveEntity.js.map +1 -1
  113. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +11 -9
  114. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  115. package/build/parser/satisfactory/types/objects/SaveObject.js +17 -9
  116. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  117. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +6 -6
  118. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  119. package/build/parser/satisfactory/types/property/PropertiesList.js +7 -7
  120. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  121. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +4 -4
  123. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -1
  124. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -1
  125. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +4 -4
  126. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -1
  127. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -1
  128. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +4 -4
  129. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -1
  130. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -1
  131. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +4 -4
  132. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -1
  133. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -1
  134. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +4 -4
  135. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -1
  136. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -1
  137. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +4 -4
  138. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -1
  139. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -1
  140. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +4 -4
  141. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -1
  142. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -1
  143. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +4 -4
  144. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -1
  145. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -1
  146. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +4 -4
  147. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -1
  148. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -1
  149. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +4 -4
  150. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -1
  151. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -1
  152. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +4 -4
  153. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -1
  154. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -1
  155. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +4 -4
  156. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -1
  157. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -1
  158. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +4 -4
  159. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -1
  160. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -1
  161. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +6 -6
  162. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  163. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  164. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +6 -6
  165. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  166. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  167. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +6 -6
  168. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  169. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  170. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +6 -6
  171. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  172. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  173. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +6 -6
  174. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  175. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  176. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +6 -6
  177. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  178. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  179. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +6 -6
  180. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  181. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  182. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +6 -6
  183. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  184. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  185. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +4 -4
  186. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  187. package/build/parser/satisfactory/types/property/generic/MapProperty.js +5 -5
  188. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  189. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +6 -6
  190. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  191. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  192. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +4 -4
  193. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -1
  194. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -1
  195. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +4 -4
  196. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -1
  197. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -1
  198. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +4 -4
  199. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -1
  200. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +4 -1
  201. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -1
  202. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +4 -4
  203. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -1
  204. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -1
  205. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +4 -4
  206. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -1
  207. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +1 -2
  208. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -1
  209. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +4 -4
  210. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -1
  211. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -1
  212. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +6 -6
  213. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  214. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  215. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +6 -6
  216. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  217. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  218. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +11 -15
  219. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  220. package/build/parser/satisfactory/types/property/generic/StructProperty.js +29 -33
  221. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  222. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +6 -6
  223. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  224. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  225. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +6 -6
  226. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  227. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  228. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +6 -6
  229. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  230. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  231. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +6 -6
  232. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  233. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  234. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +25 -5
  235. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -1
  236. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +70 -44
  237. package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -1
  238. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +4 -4
  239. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -1
  240. package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -1
  241. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +4 -4
  242. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -1
  243. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
  244. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +4 -4
  245. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -1
  246. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +2 -2
  247. package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -1
  248. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +4 -4
  249. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -1
  250. package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -1
  251. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +4 -4
  252. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -1
  253. package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -1
  254. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +4 -4
  255. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -1
  256. package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -1
  257. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +4 -4
  258. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -1
  259. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +12 -3
  260. package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -1
  261. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +4 -4
  262. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
  263. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +4 -4
  264. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
  265. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +4 -4
  266. package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
  267. package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
  268. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +6 -9
  269. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -1
  270. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +3 -8
  271. package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -1
  272. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts +8 -0
  273. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts.map +1 -0
  274. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js +12 -0
  275. package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js.map +1 -0
  276. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +4 -4
  277. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  278. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +4 -4
  279. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  280. package/build/parser/satisfactory/types/structs/FGDynamicStruct.d.ts +14 -0
  281. package/build/parser/satisfactory/types/structs/FGDynamicStruct.d.ts.map +1 -0
  282. package/build/parser/satisfactory/types/structs/FGDynamicStruct.js +34 -0
  283. package/build/parser/satisfactory/types/structs/FGDynamicStruct.js.map +1 -0
  284. package/build/parser/satisfactory/types/structs/GUID.d.ts +4 -4
  285. package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
  286. package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
  287. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +4 -4
  288. package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
  289. package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
  290. package/build/parser/satisfactory/types/structs/MD5Hash.d.ts +4 -4
  291. package/build/parser/satisfactory/types/structs/MD5Hash.d.ts.map +1 -1
  292. package/build/parser/satisfactory/types/structs/MD5Hash.js.map +1 -1
  293. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +5 -4
  294. package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
  295. package/build/parser/satisfactory/types/structs/ObjectReference.js +1 -0
  296. package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
  297. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +4 -4
  298. package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -1
  299. package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -1
  300. package/build/parser/satisfactory/types/structs/Transform.d.ts +6 -6
  301. package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
  302. package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
  303. package/build/parser/satisfactory/types/structs/VehiclePhysicsData.d.ts +17 -0
  304. package/build/parser/satisfactory/types/structs/VehiclePhysicsData.d.ts.map +1 -0
  305. package/build/parser/satisfactory/types/structs/VehiclePhysicsData.js +26 -0
  306. package/build/parser/satisfactory/types/structs/VehiclePhysicsData.js.map +1 -0
  307. package/build/parser/satisfactory/types/structs/col4.d.ts +6 -6
  308. package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
  309. package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
  310. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +4 -4
  311. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
  312. package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
  313. package/build/parser/satisfactory/types/structs/vec2.d.ts +6 -6
  314. package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
  315. package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
  316. package/build/parser/satisfactory/types/structs/vec3.d.ts +8 -8
  317. package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
  318. package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
  319. package/build/parser/satisfactory/types/structs/vec4.d.ts +6 -6
  320. package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
  321. package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
  322. package/build/parser/stream/reworked/readable-stream-parser.d.ts +2 -2
  323. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  324. package/build/parser/stream/reworked/readable-stream-parser.js +62 -20
  325. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  326. package/build/parser/stream/reworked/save-stream-json-stringifier.js +1 -1
  327. package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +1 -1
  328. package/build/parser/stream/reworked/save-stream-writer.class.d.ts +2 -2
  329. package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +1 -1
  330. package/build/parser/stream/reworked/save-stream-writer.class.js.map +1 -1
  331. package/docs/assets/highlight.css +4 -4
  332. package/docs/assets/navigation.js +1 -1
  333. package/docs/assets/search.js +1 -1
  334. package/docs/classes/BlueprintConfigReader.html +7 -6
  335. package/docs/classes/BlueprintConfigWriter.html +6 -4
  336. package/docs/classes/BlueprintReader.html +7 -5
  337. package/docs/classes/BlueprintWriter.html +6 -4
  338. package/docs/classes/CompressionLibraryError.html +2 -2
  339. package/docs/classes/CorruptBlueprintError.html +11 -0
  340. package/docs/classes/CorruptSaveError.html +2 -2
  341. package/docs/classes/Parser.html +13 -13
  342. package/docs/classes/ParserError.html +2 -2
  343. package/docs/classes/ReadableStreamParser.html +4 -4
  344. package/docs/classes/SatisfactorySave.html +3 -2
  345. package/docs/classes/SaveComponent.html +6 -5
  346. package/docs/classes/SaveEntity.html +6 -6
  347. package/docs/classes/SaveObject.html +6 -5
  348. package/docs/classes/SaveReader.html +11 -7
  349. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  350. package/docs/classes/SaveStreamWriter.html +2 -2
  351. package/docs/classes/SaveWriter.html +6 -4
  352. package/docs/classes/TimeoutError.html +2 -2
  353. package/docs/classes/UnimplementedError.html +2 -2
  354. package/docs/classes/UnsupportedVersionError.html +2 -2
  355. package/docs/enums/BlueprintConfigVersion.html +9 -0
  356. package/docs/enums/CompressionAlgorithmCode.html +2 -0
  357. package/docs/enums/FactoryGameCustomVersion.html +33 -0
  358. package/docs/enums/RuntimeBuildableInstanceDataVersion.html +7 -0
  359. package/docs/enums/SaveCustomVersion.html +64 -0
  360. package/docs/enums/SaveHeaderType.html +17 -0
  361. package/docs/functions/AbstractBaseProperty.Create.html +1 -1
  362. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -1
  363. package/docs/functions/ArrayProperty.Parse.html +1 -1
  364. package/docs/functions/ArrayProperty.Serialize.html +1 -1
  365. package/docs/functions/BlueprintConfig.Parse.html +1 -0
  366. package/docs/functions/BlueprintConfig.Serialize.html +1 -0
  367. package/docs/functions/BlueprintHeader.Parse.html +1 -0
  368. package/docs/functions/BlueprintHeader.Serialize.html +1 -0
  369. package/docs/functions/BoolArrayProperty.Parse.html +1 -1
  370. package/docs/functions/BoolArrayProperty.Serialize.html +1 -1
  371. package/docs/functions/BoolProperty.CalcOverhead.html +1 -1
  372. package/docs/functions/BoolProperty.Parse.html +1 -1
  373. package/docs/functions/BoolProperty.ReadValue.html +1 -1
  374. package/docs/functions/BoolProperty.Serialize.html +1 -1
  375. package/docs/functions/BoolProperty.SerializeValue.html +1 -1
  376. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  377. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  378. package/docs/functions/BuildableTypeInstance.Parse.html +1 -0
  379. package/docs/functions/BuildableTypeInstance.Serialize.html +1 -0
  380. package/docs/functions/ByteArrayProperty.Parse.html +1 -1
  381. package/docs/functions/ByteArrayProperty.Serialize.html +1 -1
  382. package/docs/functions/ByteProperty.CalcOverhead.html +1 -1
  383. package/docs/functions/ByteProperty.Parse.html +1 -1
  384. package/docs/functions/ByteProperty.ReadValue.html +1 -1
  385. package/docs/functions/ByteProperty.Serialize.html +1 -1
  386. package/docs/functions/ByteProperty.SerializeValue.html +1 -1
  387. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  388. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  389. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  390. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  391. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  392. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  393. package/docs/functions/DoubleArrayProperty.Parse.html +1 -1
  394. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -1
  395. package/docs/functions/DoubleProperty.CalcOverhead.html +1 -1
  396. package/docs/functions/DoubleProperty.Parse.html +1 -1
  397. package/docs/functions/DoubleProperty.ReadValue.html +1 -1
  398. package/docs/functions/DoubleProperty.Serialize.html +1 -1
  399. package/docs/functions/DoubleProperty.SerializeValue.html +1 -1
  400. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  401. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  402. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  403. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  404. package/docs/functions/EnumArrayProperty.Parse.html +1 -1
  405. package/docs/functions/EnumArrayProperty.Serialize.html +1 -1
  406. package/docs/functions/EnumProperty.CalcOverhead.html +1 -1
  407. package/docs/functions/EnumProperty.Parse.html +1 -1
  408. package/docs/functions/EnumProperty.ReadValue.html +1 -1
  409. package/docs/functions/EnumProperty.Serialize.html +1 -1
  410. package/docs/functions/EnumProperty.SerializeValue.html +1 -1
  411. package/docs/functions/FGDynamicStruct.Parse.html +1 -0
  412. package/docs/functions/FGDynamicStruct.Serialize.html +1 -0
  413. package/docs/functions/FICFrameRange.Parse.html +1 -1
  414. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  415. package/docs/functions/FloatArrayProperty.Parse.html +1 -1
  416. package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
  417. package/docs/functions/FloatProperty.CalcOverhead.html +1 -1
  418. package/docs/functions/FloatProperty.Parse.html +1 -1
  419. package/docs/functions/FloatProperty.ReadValue.html +1 -1
  420. package/docs/functions/FloatProperty.Serialize.html +1 -1
  421. package/docs/functions/FloatProperty.SerializeValue.html +1 -1
  422. package/docs/functions/GUID.read.html +1 -1
  423. package/docs/functions/GUID.write.html +1 -1
  424. package/docs/functions/GUIDInfo.read.html +1 -1
  425. package/docs/functions/GUIDInfo.write.html +1 -1
  426. package/docs/functions/Int32ArrayProperty.Parse.html +1 -1
  427. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
  428. package/docs/functions/Int32Property.CalcOverhead.html +1 -1
  429. package/docs/functions/Int32Property.Parse.html +1 -1
  430. package/docs/functions/Int32Property.ReadValue.html +1 -1
  431. package/docs/functions/Int32Property.Serialize.html +1 -1
  432. package/docs/functions/Int32Property.SerializeValue.html +1 -1
  433. package/docs/functions/Int32SetProperty.Parse.html +1 -1
  434. package/docs/functions/Int32SetProperty.Serialize.html +1 -1
  435. package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
  436. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
  437. package/docs/functions/Int64Property.CalcOverhead.html +1 -1
  438. package/docs/functions/Int64Property.Parse.html +1 -1
  439. package/docs/functions/Int64Property.ReadValue.html +1 -1
  440. package/docs/functions/Int64Property.Serialize.html +1 -1
  441. package/docs/functions/Int64Property.SerializeValue.html +1 -1
  442. package/docs/functions/Int8Property.CalcOverhead.html +1 -1
  443. package/docs/functions/Int8Property.Parse.html +1 -1
  444. package/docs/functions/Int8Property.ReadValue.html +1 -1
  445. package/docs/functions/Int8Property.Serialize.html +1 -1
  446. package/docs/functions/Int8Property.SerializeValue.html +1 -1
  447. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  448. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  449. package/docs/functions/Level.ReadLevel.html +1 -1
  450. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  451. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  452. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  453. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  454. package/docs/functions/Level.SerializeLevel.html +1 -1
  455. package/docs/functions/MD5Hash.read.html +1 -1
  456. package/docs/functions/MD5Hash.write.html +1 -1
  457. package/docs/functions/MapProperty.CalcOverhead.html +1 -1
  458. package/docs/functions/MapProperty.Parse.html +1 -1
  459. package/docs/functions/MapProperty.Serialize.html +1 -1
  460. package/docs/functions/ObjectArrayProperty.Parse.html +1 -1
  461. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -1
  462. package/docs/functions/ObjectProperty.CalcOverhead.html +1 -1
  463. package/docs/functions/ObjectProperty.Parse.html +1 -1
  464. package/docs/functions/ObjectProperty.ReadValue.html +1 -1
  465. package/docs/functions/ObjectProperty.Serialize.html +1 -1
  466. package/docs/functions/ObjectProperty.SerializeValue.html +1 -1
  467. package/docs/functions/ObjectReference.IsEqual.html +1 -0
  468. package/docs/functions/ObjectReference.read.html +1 -1
  469. package/docs/functions/ObjectReference.write.html +1 -1
  470. package/docs/functions/ObjectSetProperty.Parse.html +1 -1
  471. package/docs/functions/ObjectSetProperty.Serialize.html +1 -1
  472. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  473. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  474. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  475. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  476. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  477. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  478. package/docs/functions/PropertiesList.ParseList.html +1 -1
  479. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  480. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  481. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  482. package/docs/functions/SatisfactorySaveHeader.Parse.html +1 -0
  483. package/docs/functions/SatisfactorySaveHeader.Serialize.html +1 -0
  484. package/docs/functions/SaveBodyChunks.CompressDataIntoChunks.html +1 -0
  485. package/docs/functions/SaveBodyChunks.DecompressChunks.html +1 -0
  486. package/docs/functions/SetProperty.CalcOverhead.html +1 -1
  487. package/docs/functions/SetProperty.Parse.html +1 -1
  488. package/docs/functions/SetProperty.Serialize.html +1 -1
  489. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -1
  490. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -1
  491. package/docs/functions/SoftObjectReference.read.html +1 -1
  492. package/docs/functions/SoftObjectReference.write.html +1 -1
  493. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  494. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  495. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  496. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  497. package/docs/functions/StrArrayProperty.Parse.html +1 -1
  498. package/docs/functions/StrArrayProperty.Serialize.html +1 -1
  499. package/docs/functions/StrProperty.CalcOverhead.html +1 -1
  500. package/docs/functions/StrProperty.Parse.html +1 -1
  501. package/docs/functions/StrProperty.ReadValue.html +1 -1
  502. package/docs/functions/StrProperty.Serialize.html +1 -1
  503. package/docs/functions/StrProperty.SerializeValue.html +1 -1
  504. package/docs/functions/StrSetProperty.Parse.html +1 -1
  505. package/docs/functions/StrSetProperty.Serialize.html +1 -1
  506. package/docs/functions/StructArrayProperty.Parse.html +1 -1
  507. package/docs/functions/StructArrayProperty.Serialize.html +1 -1
  508. package/docs/functions/StructProperty.CalcOverhead.html +1 -1
  509. package/docs/functions/StructProperty.Parse.html +1 -1
  510. package/docs/functions/StructProperty.ParseValue.html +1 -1
  511. package/docs/functions/StructProperty.Serialize.html +1 -1
  512. package/docs/functions/StructProperty.SerializeValue.html +1 -1
  513. package/docs/functions/StructSetProperty.Parse.html +1 -1
  514. package/docs/functions/StructSetProperty.Serialize.html +1 -1
  515. package/docs/functions/TextArrayProperty.Parse.html +1 -1
  516. package/docs/functions/TextArrayProperty.Serialize.html +1 -1
  517. package/docs/functions/TextProperty.CalcOverhead.html +1 -1
  518. package/docs/functions/TextProperty.Parse.html +1 -1
  519. package/docs/functions/TextProperty.ReadValue.html +1 -1
  520. package/docs/functions/TextProperty.Serialize.html +1 -1
  521. package/docs/functions/TextProperty.SerializeValue.html +1 -1
  522. package/docs/functions/Transform.Parse.html +1 -1
  523. package/docs/functions/Transform.ParseF.html +1 -1
  524. package/docs/functions/Transform.Serialize.html +1 -1
  525. package/docs/functions/Transform.SerializeF.html +1 -1
  526. package/docs/functions/Uint32Property.CalcOverhead.html +1 -1
  527. package/docs/functions/Uint32Property.Parse.html +1 -1
  528. package/docs/functions/Uint32Property.ReadValue.html +1 -1
  529. package/docs/functions/Uint32Property.Serialize.html +1 -1
  530. package/docs/functions/Uint32Property.SerializeValue.html +1 -1
  531. package/docs/functions/Uint32SetProperty.Parse.html +1 -1
  532. package/docs/functions/Uint32SetProperty.Serialize.html +1 -1
  533. package/docs/functions/Uint64Property.CalcOverhead.html +1 -1
  534. package/docs/functions/Uint64Property.Parse.html +1 -1
  535. package/docs/functions/Uint64Property.ReadValue.html +1 -1
  536. package/docs/functions/Uint64Property.Serialize.html +1 -1
  537. package/docs/functions/Uint64Property.SerializeValue.html +1 -1
  538. package/docs/functions/Uint8Property.CalcOverhead.html +1 -1
  539. package/docs/functions/Uint8Property.Parse.html +1 -1
  540. package/docs/functions/Uint8Property.ReadValue.html +1 -1
  541. package/docs/functions/Uint8Property.Serialize.html +1 -1
  542. package/docs/functions/Uint8Property.SerializeValue.html +1 -1
  543. package/docs/functions/VehiclePhysicsData.Parse.html +1 -0
  544. package/docs/functions/VehiclePhysicsData.Serialize.html +1 -0
  545. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  546. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  547. package/docs/functions/col4.ParseBGRA.html +1 -1
  548. package/docs/functions/col4.ParseRGBA.html +1 -1
  549. package/docs/functions/col4.SerializeBGRA.html +1 -1
  550. package/docs/functions/col4.SerializeRGBA.html +1 -1
  551. package/docs/functions/isArrayProperty.html +1 -1
  552. package/docs/functions/isBoolArrayProperty.html +1 -1
  553. package/docs/functions/isBoolProperty.html +1 -1
  554. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  555. package/docs/functions/isByteArrayProperty.html +1 -1
  556. package/docs/functions/isByteProperty.html +1 -1
  557. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  558. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  559. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  560. package/docs/functions/isDoubleArrayProperty.html +1 -1
  561. package/docs/functions/isDoubleProperty.html +1 -1
  562. package/docs/functions/isEmptySpecialProperties.html +1 -1
  563. package/docs/functions/isEnumArrayProperty.html +1 -1
  564. package/docs/functions/isEnumProperty.html +1 -1
  565. package/docs/functions/isFloatArrayProperty.html +1 -1
  566. package/docs/functions/isFloatProperty.html +1 -1
  567. package/docs/functions/isInt32ArrayProperty.html +1 -1
  568. package/docs/functions/isInt32Property.html +1 -1
  569. package/docs/functions/isInt32SetProperty.html +1 -1
  570. package/docs/functions/isInt64ArrayProperty.html +1 -1
  571. package/docs/functions/isInt64Property.html +1 -1
  572. package/docs/functions/isInt8Property.html +1 -1
  573. package/docs/functions/isMapProperty.html +1 -1
  574. package/docs/functions/isObjectArrayProperty.html +1 -1
  575. package/docs/functions/isObjectProperty.html +1 -1
  576. package/docs/functions/isObjectSetProperty.html +1 -1
  577. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  578. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  579. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  580. package/docs/functions/isSaveComponent.html +1 -1
  581. package/docs/functions/isSaveEntity.html +1 -1
  582. package/docs/functions/isSetProperty.html +1 -1
  583. package/docs/functions/isSoftObjectArrayProperty.html +1 -1
  584. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  585. package/docs/functions/isStrArrayProperty.html +1 -1
  586. package/docs/functions/isStrProperty.html +1 -1
  587. package/docs/functions/isStrSetProperty.html +1 -1
  588. package/docs/functions/isStructArrayProperty.html +1 -1
  589. package/docs/functions/isStructProperty.html +1 -1
  590. package/docs/functions/isStructSetProperty.html +1 -1
  591. package/docs/functions/isTextArrayProperty.html +1 -1
  592. package/docs/functions/isTextProperty.html +1 -1
  593. package/docs/functions/isUInt64Property.html +1 -1
  594. package/docs/functions/isUint32Property.html +1 -1
  595. package/docs/functions/isUint32SetProperty.html +1 -1
  596. package/docs/functions/isUint8Property.html +1 -1
  597. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  598. package/docs/functions/vec2.Parse.html +1 -1
  599. package/docs/functions/vec2.ParseF.html +1 -1
  600. package/docs/functions/vec2.Serialize.html +1 -1
  601. package/docs/functions/vec2.SerializeF.html +1 -1
  602. package/docs/functions/vec3.Parse.html +1 -1
  603. package/docs/functions/vec3.ParseF.html +1 -1
  604. package/docs/functions/vec3.ParseInt.html +1 -1
  605. package/docs/functions/vec3.Serialize.html +1 -1
  606. package/docs/functions/vec3.SerializeF.html +1 -1
  607. package/docs/functions/vec3.SerializeInt.html +1 -1
  608. package/docs/functions/vec3.add.html +1 -1
  609. package/docs/functions/vec3.length.html +1 -1
  610. package/docs/functions/vec3.mult.html +1 -1
  611. package/docs/functions/vec3.norm.html +1 -1
  612. package/docs/functions/vec3.sub.html +1 -1
  613. package/docs/functions/vec4.Parse.html +1 -1
  614. package/docs/functions/vec4.ParseF.html +1 -1
  615. package/docs/functions/vec4.Serialize.html +1 -1
  616. package/docs/functions/vec4.SerializeF.html +1 -1
  617. package/docs/hierarchy.html +1 -1
  618. package/docs/index.html +34 -21
  619. package/docs/interfaces/Blueprint.html +2 -2
  620. package/docs/interfaces/BlueprintConfig-1.html +8 -0
  621. package/docs/interfaces/SaveComponentHeader.html +3 -2
  622. package/docs/interfaces/SaveEntityHeader.html +3 -2
  623. package/docs/interfaces/SaveObjectHeader.html +3 -2
  624. package/docs/modules/AbstractBaseProperty.html +1 -1
  625. package/docs/modules/ArrayProperty.html +1 -1
  626. package/docs/modules/BlueprintConfig.html +3 -0
  627. package/docs/modules/BlueprintHeader.html +3 -0
  628. package/docs/modules/BoolArrayProperty.html +1 -1
  629. package/docs/modules/BoolProperty.html +1 -1
  630. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  631. package/docs/modules/BuildableTypeInstance.html +3 -0
  632. package/docs/modules/ByteArrayProperty.html +1 -1
  633. package/docs/modules/ByteProperty.html +1 -1
  634. package/docs/modules/CircuitSpecialProperties.html +1 -1
  635. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  636. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  637. package/docs/modules/DoubleArrayProperty.html +1 -1
  638. package/docs/modules/DoubleProperty.html +1 -1
  639. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  640. package/docs/modules/EmptySpecialProperties.html +1 -1
  641. package/docs/modules/EnumArrayProperty.html +1 -1
  642. package/docs/modules/EnumProperty.html +1 -1
  643. package/docs/modules/FGDynamicStruct.html +3 -0
  644. package/docs/modules/FICFrameRange.html +1 -1
  645. package/docs/modules/FloatArrayProperty.html +1 -1
  646. package/docs/modules/FloatProperty.html +1 -1
  647. package/docs/modules/GUID.html +1 -1
  648. package/docs/modules/GUIDInfo.html +1 -1
  649. package/docs/modules/Int32ArrayProperty.html +1 -1
  650. package/docs/modules/Int32Property.html +1 -1
  651. package/docs/modules/Int32SetProperty.html +1 -1
  652. package/docs/modules/Int64ArrayProperty.html +1 -1
  653. package/docs/modules/Int64Property.html +1 -1
  654. package/docs/modules/Int8Property.html +1 -1
  655. package/docs/modules/Level.html +1 -1
  656. package/docs/modules/MD5Hash.html +1 -1
  657. package/docs/modules/MapProperty.html +1 -1
  658. package/docs/modules/ObjectArrayProperty.html +1 -1
  659. package/docs/modules/ObjectProperty.html +1 -1
  660. package/docs/modules/ObjectReference.html +2 -1
  661. package/docs/modules/ObjectSetProperty.html +1 -1
  662. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  663. package/docs/modules/PlayerSpecialProperties.html +1 -1
  664. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  665. package/docs/modules/PropertiesList.html +1 -1
  666. package/docs/modules/SatisfactorySaveHeader.html +3 -0
  667. package/docs/modules/SaveBodyChunks.html +5 -0
  668. package/docs/modules/SetProperty.html +1 -1
  669. package/docs/modules/SoftObjectArrayProperty.html +1 -1
  670. package/docs/modules/SoftObjectReference.html +1 -1
  671. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  672. package/docs/modules/SpecialProperties.html +1 -1
  673. package/docs/modules/StrArrayProperty.html +1 -1
  674. package/docs/modules/StrProperty.html +1 -1
  675. package/docs/modules/StrSetProperty.html +1 -1
  676. package/docs/modules/StructArrayProperty.html +1 -1
  677. package/docs/modules/StructProperty.html +1 -1
  678. package/docs/modules/StructSetProperty.html +1 -1
  679. package/docs/modules/TextArrayProperty.html +1 -1
  680. package/docs/modules/TextProperty.html +1 -1
  681. package/docs/modules/Transform.html +1 -1
  682. package/docs/modules/Uint32Property.html +1 -1
  683. package/docs/modules/Uint32SetProperty.html +1 -1
  684. package/docs/modules/Uint64Property.html +1 -1
  685. package/docs/modules/Uint8Property.html +1 -1
  686. package/docs/modules/VehiclePhysicsData.html +3 -0
  687. package/docs/modules/VehicleSpecialProperties.html +1 -1
  688. package/docs/modules/col4.html +1 -1
  689. package/docs/modules/vec2.html +1 -1
  690. package/docs/modules/vec3.html +1 -1
  691. package/docs/modules/vec4.html +1 -1
  692. package/docs/modules.html +31 -7
  693. package/docs/types/AbstractBaseProperty-1.html +1 -1
  694. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
  695. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  696. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  697. package/docs/types/BasicStructPropertyValue.html +1 -1
  698. package/docs/types/BlueprintHeader-1.html +1 -0
  699. package/docs/types/BoolArrayProperty-1.html +1 -1
  700. package/docs/types/BoolProperty-1.html +1 -1
  701. package/docs/types/BoxStructPropertyValue.html +1 -1
  702. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  703. package/docs/types/BuildableTypeInstance-1.html +1 -0
  704. package/docs/types/ByteArray4.html +1 -0
  705. package/docs/types/ByteArrayProperty-1.html +1 -1
  706. package/docs/types/ByteProperty-1.html +1 -1
  707. package/docs/types/BytePropertyValue.html +1 -1
  708. package/docs/types/ChunkCompressionInfo.html +1 -0
  709. package/docs/types/ChunkSummary.html +1 -0
  710. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  711. package/docs/types/ClientIdentityInfo.html +1 -1
  712. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  713. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  714. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  715. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  716. package/docs/types/DoubleArrayProperty-1.html +1 -1
  717. package/docs/types/DoubleProperty-1.html +1 -1
  718. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  719. package/docs/types/EmptySpecialProperties-1.html +1 -1
  720. package/docs/types/EnumArrayProperty-1.html +1 -1
  721. package/docs/types/EnumProperty-1.html +1 -1
  722. package/docs/types/FGDynamicStruct-1.html +1 -0
  723. package/docs/types/FICFrameRange-1.html +1 -1
  724. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  725. package/docs/types/FloatArrayProperty-1.html +1 -1
  726. package/docs/types/FloatProperty-1.html +1 -1
  727. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  728. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  729. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  730. package/docs/types/GUID-1.html +1 -1
  731. package/docs/types/GUIDInfo-1.html +1 -1
  732. package/docs/types/Grids.html +1 -0
  733. package/docs/types/Int32ArrayProperty-1.html +1 -1
  734. package/docs/types/Int32Property-1.html +1 -1
  735. package/docs/types/Int32SetProperty-1.html +1 -1
  736. package/docs/types/Int64ArrayProperty-1.html +1 -1
  737. package/docs/types/Int64Property-1.html +1 -1
  738. package/docs/types/Int8Property-1.html +1 -1
  739. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  740. package/docs/types/Level-1.html +3 -1
  741. package/docs/types/Levels.html +1 -0
  742. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  743. package/docs/types/MD5Hash-1.html +1 -1
  744. package/docs/types/MapProperty-1.html +1 -1
  745. package/docs/types/ModData.html +1 -0
  746. package/docs/types/ObjectArrayProperty-1.html +1 -1
  747. package/docs/types/ObjectProperty-1.html +1 -1
  748. package/docs/types/ObjectReference-1.html +1 -1
  749. package/docs/types/ObjectSetProperty-1.html +1 -1
  750. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  751. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  752. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  753. package/docs/types/PropertiesMap.html +1 -1
  754. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  755. package/docs/types/RoughSaveVersion.html +1 -1
  756. package/docs/types/SatisfactoryModMetadata.html +1 -0
  757. package/docs/types/SatisfactorySaveHeader-1.html +1 -0
  758. package/docs/types/SaveBodyChunks-1.html +1 -0
  759. package/docs/types/SaveBodyValidation.html +1 -0
  760. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
  761. package/docs/types/SoftObjectArrayProperty-1.html +1 -1
  762. package/docs/types/SoftObjectReference-1.html +1 -1
  763. package/docs/types/SpecialDroneAction.html +1 -1
  764. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  765. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  766. package/docs/types/StrArrayProperty-1.html +1 -1
  767. package/docs/types/StrProperty-1.html +1 -1
  768. package/docs/types/StrSetProperty-1.html +1 -1
  769. package/docs/types/StructArrayProperty-1.html +1 -1
  770. package/docs/types/StructProperty-1.html +1 -1
  771. package/docs/types/StructSetProperty-1.html +1 -1
  772. package/docs/types/TextArrayProperty-1.html +1 -1
  773. package/docs/types/TextProperty-1.html +1 -1
  774. package/docs/types/TextPropertyValue.html +1 -1
  775. package/docs/types/Transform-1.html +1 -1
  776. package/docs/types/Uint32Property-1.html +1 -1
  777. package/docs/types/Uint32SetProperty-1.html +1 -1
  778. package/docs/types/Uint64Property-1.html +1 -1
  779. package/docs/types/Uint8Property-1.html +1 -1
  780. package/docs/types/VehiclePhysicsData-1.html +1 -0
  781. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  782. package/docs/types/col4-1.html +1 -1
  783. package/docs/types/vec2-1.html +1 -1
  784. package/docs/types/vec3-1.html +1 -1
  785. package/docs/types/vec4-1.html +1 -1
  786. package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -0
  787. package/docs/variables/EDIT.html +1 -1
  788. package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -0
  789. package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -0
  790. package/package.json +3 -1
  791. package/docs/interfaces/BlueprintConfig.html +0 -6
  792. package/docs/interfaces/ModData.html +0 -4
  793. package/docs/interfaces/SatisfactoryModMetadata.html +0 -4
  794. package/docs/interfaces/SatisfactorySaveHeader.html +0 -18
  795. package/docs/types/BlueprintHeader.html +0 -1
  796. package/docs/types/BuildableTypeInstance.html +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"BuildableSubsystemSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,mEAAgE;AAChE,uDAAoD;AAI7C,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAUlK,IAAiB,mCAAmC,CA0FnD;AA1FD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAsB,EAAuC,EAAE;QAEjF,MAAM,QAAQ,GAAwC;YAClD,IAAI,EAAE,qCAAqC;YAC3C,UAAU,EAAE,EAAE;SACjB,CAAC;QAEF,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;YAEnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC;gBACpC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBACrC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;gBAEjC,MAAM,SAAS,GAAG,EAAE,CAAC;gBACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE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;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"]}
1
+ {"version":3,"file":"BuildableSubsystemSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,6CAA0C;AAC1C,mEAAgE;AAChE,mEAAgE;AAChE,uDAAoD;AACpD,uGAAgG;AAIzF,MAAM,qCAAqC,GAAG,CAAC,GAAQ,EAA8C,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,qCAAqC,CAAC;AAArJ,QAAA,qCAAqC,yCAAgH;AAWlK,IAAiB,mCAAmC,CAsDnD;AAtDD,WAAiB,mCAAmC;IACnC,yCAAK,GAAG,CAAC,MAAqB,EAAuC,E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,cAAc,CAAC,CAAC;QAEpD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;QACxD,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC3C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;QACnD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;QAEvD,IAAI,kBAAkB,IAAI,6EAAmC,CAAC,qBAAqB,EAAE,CAAC;YAClF,iCAAe,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,oBAAqB,CAAC,CAAC;QACtE,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA1DgB,qBAAqB,qCAArB,qBAAqB,QA0DrC;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\nimport { col4 } from '../../structs/col4';\nimport { FGDynamicStruct } from '../../structs/FGDynamicStruct';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { RuntimeBuildableInstanceDataVersion } from './runtime-buildable-instance-data-version';\n\n\n\nexport const isBuildableSubsystemSpecialProperties = (obj: any): obj is BuildableSubsystemSpecialProperties => obj.type === 'BuildableSubsystemSpecialProperties';\n\nexport type BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties';\n buildables: {\n typeReference: ObjectReference;\n instances: BuildableTypeInstance[];\n }[];\n currentLightweightVersion?: number;\n};\n\nexport namespace BuildableSubsystemSpecialProperties {\n export const Parse = (reader: ContextReader): BuildableSubsystemSpecialProperties => {\n\n const property: BuildableSubsystemSpecialProperties = {\n type: 'BuildableSubsystemSpecialProperties',\n buildables: [],\n currentLightweightVersion: 0\n };\n\n if (reader.context.saveVersion >= SaveCustomVersion.LightweightBuildableSubsystemWritesRuntimeVersion) {\n property.currentLightweightVersion = reader.readInt32();\n }\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n const typeReference = ObjectReference.read(reader);\n const count = reader.readInt32();\n\n const instances: BuildableTypeInstance[] = [];\n for (let j = 0; j < count; j++) {\n instances.push(BuildableTypeInstance.Parse(reader, property.currentLightweightVersion ?? 0));\n }\n\n property.buildables.push({\n typeReference,\n instances\n });\n }\n }\n\n return property;\n };\n\n export const Serialize = (writer: ContextWriter, property: BuildableSubsystemSpecialProperties) => {\n\n if (writer.context.saveVersion >= SaveCustomVersion.LightweightBuildableSubsystemWritesRuntimeVersion) {\n writer.writeInt32(property.currentLightweightVersion ?? 1);\n }\n\n writer.writeInt32(Object.keys(property.buildables).length);\n\n if (Object.keys(property.buildables).length > 0) {\n\n for (const buildable of property.buildables) {\n ObjectReference.write(writer, buildable.typeReference);\n writer.writeInt32(buildable.instances.length);\n for (const instance of buildable.instances) {\n BuildableTypeInstance.Serialize(writer, instance, property.currentLightweightVersion ?? 0);\n }\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 instanceSpecificData?: FGDynamicStruct;\n};\n\nexport namespace BuildableTypeInstance {\n export const Parse = (reader: ContextReader, lightWeightVersion: number) => {\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 let instanceSpecificData;\n if (lightWeightVersion >= RuntimeBuildableInstanceDataVersion.AddedTypeSpecificData) {\n instanceSpecificData = FGDynamicStruct.Parse(reader);\n }\n\n return {\n transform,\n primaryColor,\n secondaryColor,\n usedSwatchSlot,\n usedMaterial,\n usedPattern,\n usedSkin,\n usedRecipe,\n usedPaintFinish,\n patternRotation,\n blueprintProxy,\n instanceSpecificData\n } satisfies BuildableTypeInstance;\n }\n\n export const Serialize = (writer: ContextWriter, instance: BuildableTypeInstance, lightweightVersion: number) => {\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 if (lightweightVersion >= RuntimeBuildableInstanceDataVersion.AddedTypeSpecificData) {\n FGDynamicStruct.Serialize(writer, instance.instanceSpecificData!);\n }\n }\n};\n\n"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { ObjectReference } from '../../structs/ObjectReference';
4
4
  export declare const isCircuitSpecialProperties: (obj: any) => obj is CircuitSpecialProperties;
5
5
  export type CircuitSpecialProperties = {
@@ -10,7 +10,7 @@ export type CircuitSpecialProperties = {
10
10
  }[];
11
11
  };
12
12
  export declare namespace CircuitSpecialProperties {
13
- const Parse: (reader: BinaryReadable) => CircuitSpecialProperties;
14
- const Serialize: (writer: ByteWriter, property: CircuitSpecialProperties) => void;
13
+ const Parse: (reader: ContextReader) => CircuitSpecialProperties;
14
+ const Serialize: (writer: ContextWriter, property: CircuitSpecialProperties) => void;
15
15
  }
16
16
  //# sourceMappingURL=CircuitSpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"CircuitSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/CircuitSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;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,aAAa,KAAG,wBAc7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,wBAAwB,SAMlF,CAAC;CACL"}
@@ -1 +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"]}
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,MAAqB,EAA4B,EAAE;QACrE,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,MAAqB,EAAE,QAAkC,EAAE,EAAE;QACnF,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 { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader): 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: ContextWriter, 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"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { ObjectReference } from '../../structs/ObjectReference';
4
4
  import { vec3 } from '../../structs/vec3';
5
5
  export declare const isConveyorChainActorSpecialProperties: (obj: any) => obj is ConveyorChainActorSpecialProperties;
@@ -15,8 +15,8 @@ export type ConveyorChainActorSpecialProperties = {
15
15
  items: ConveyorItemSpecialProperties[];
16
16
  };
17
17
  export declare namespace ConveyorChainActorSpecialProperties {
18
- const Parse: (reader: BinaryReadable) => ConveyorChainActorSpecialProperties;
19
- const Serialize: (writer: ByteWriter, property: ConveyorChainActorSpecialProperties) => void;
18
+ const Parse: (reader: ContextReader) => ConveyorChainActorSpecialProperties;
19
+ const Serialize: (writer: ContextWriter, property: ConveyorChainActorSpecialProperties) => void;
20
20
  }
21
21
  export type ConveyorChainSegmentSpecialProperties = {
22
22
  chainActorRef: ObjectReference;
@@ -1 +1 @@
1
- {"version":3,"file":"ConveyorChainActorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.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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ACF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC;CAClC,CAAC"}
@@ -1 +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,SAAS,EAAE,CAAC;YAE7C,MAAM,YAAY,GAAmE,EAAE,CAAC;YACxF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,YAAY,CAAC,IAAI,CAAC;oBACd,QAAQ,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CA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AC,IAAI,CAAC,cAAc,CAAC,CAAC;YACzC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACvC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACvC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACtC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QAClD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAChD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QAC/C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzC,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;YAChC,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAClD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACrB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA7GgB,mCAAmC,mDAAnC,mCAAmC,QA6GnD","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 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.writeFloat32(property.totalLength);\n writer.writeInt32(property.totalNumberItemsMaybe);\n writer.writeInt32(property.firstChainItemIndex);\n writer.writeInt32(property.lastChainItemIndex);\n writer.writeInt32(property.items.length);\n\n for (const item of property.items) {\n ObjectReference.write(writer, item.itemReference);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n };\n}\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n splinePoints: {\n location: vec3;\n arriveTangent: vec3;\n leaveTangent: vec3;\n }[];\n offsetAtStart: number;\n startsAtLength: number;\n endsAtLength: number;\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n};\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemReference: ObjectReference;\n};\n\n"]}
1
+ {"version":3,"file":"ConveyorChainActorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],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AAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QAClD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAChD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QAC/C,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEzC,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;YAChC,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;YAClD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACrB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA7GgB,mCAAmC,mDAAnC,mCAAmC,QA6GnD","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\n\n\n\nexport const isConveyorChainActorSpecialProperties = (obj: any): obj is ConveyorChainActorSpecialProperties => obj.type === 'ConveyorChainActorSpecialProperties';\n\nexport type ConveyorChainActorSpecialProperties = {\n type: 'ConveyorChainActorSpecialProperties';\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n totalLength: number;\n totalNumberItemsMaybe: number;\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport namespace ConveyorChainActorSpecialProperties {\n export const Parse = (reader: ContextReader): ConveyorChainActorSpecialProperties => {\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: ConveyorChainSegmentSpecialProperties[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const splinePointsCount = reader.readInt32();\n\n const splinePoints: { location: vec3; arriveTangent: vec3; leaveTangent: vec3; }[] = [];\n for (let j = 0; j < splinePointsCount; j++) {\n splinePoints.push({\n location: vec3.Parse(reader),\n arriveTangent: vec3.Parse(reader),\n leaveTangent: vec3.Parse(reader),\n });\n }\n\n // indices which items of this chain are on this belt.\n const offsetAtStart = reader.readFloat32();\n const startsAtLength = reader.readFloat32();\n const endsAtLength = reader.readFloat32();\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n splinePoints,\n offsetAtStart,\n startsAtLength,\n endsAtLength,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const totalLength = reader.readFloat32();\n const totalNumberItemsMaybe = reader.readInt32();\n\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: ConveyorItemSpecialProperties[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n const item = ObjectReference.read(reader);\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemReference: item, position });\n }\n\n return {\n type: 'ConveyorChainActorSpecialProperties',\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n totalLength,\n totalNumberItemsMaybe,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: ConveyorChainActorSpecialProperties) => {\n\n ObjectReference.write(writer, property.lastBelt);\n ObjectReference.write(writer, property.firstBelt);\n writer.writeInt32(property.beltsInChain.length);\n\n for (const belt of property.beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.splinePoints.length);\n\n\n for (const splinepoint of belt.splinePoints) {\n vec3.Serialize(writer, splinepoint.location);\n vec3.Serialize(writer, splinepoint.arriveTangent);\n vec3.Serialize(writer, splinepoint.leaveTangent);\n }\n\n writer.writeFloat32(belt.offsetAtStart);\n writer.writeFloat32(belt.startsAtLength);\n writer.writeFloat32(belt.endsAtLength);\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeFloat32(property.totalLength);\n writer.writeInt32(property.totalNumberItemsMaybe);\n writer.writeInt32(property.firstChainItemIndex);\n writer.writeInt32(property.lastChainItemIndex);\n writer.writeInt32(property.items.length);\n\n for (const item of property.items) {\n ObjectReference.write(writer, item.itemReference);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n };\n}\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n splinePoints: {\n location: vec3;\n arriveTangent: vec3;\n leaveTangent: vec3;\n }[];\n offsetAtStart: number;\n startsAtLength: number;\n endsAtLength: number;\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n};\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemReference: ObjectReference;\n};\n\n"]}
@@ -1,11 +1,11 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  export declare const isConveyorSpecialProperties: (obj: any) => obj is ConveyorSpecialProperties;
4
4
  export type ConveyorSpecialProperties = {
5
5
  type: 'ConveyorSpecialProperties';
6
6
  };
7
7
  export declare namespace ConveyorSpecialProperties {
8
- const Parse: (reader: BinaryReadable) => ConveyorSpecialProperties;
9
- const Serialize: (writer: ByteWriter, property: ConveyorSpecialProperties) => void;
8
+ const Parse: (reader: ContextReader) => ConveyorSpecialProperties;
9
+ const Serialize: (writer: ContextWriter, property: ConveyorSpecialProperties) => void;
10
10
  }
11
11
  //# sourceMappingURL=ConveyorSpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ConveyorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,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,aAAa,KAAG,yBAK7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,yBAAyB,SAEnF,CAAC;CACL"}
@@ -6,13 +6,13 @@ exports.isConveyorSpecialProperties = isConveyorSpecialProperties;
6
6
  var ConveyorSpecialProperties;
7
7
  (function (ConveyorSpecialProperties) {
8
8
  ConveyorSpecialProperties.Parse = (reader) => {
9
- reader.readInt32();
9
+ reader.readInt32Zero();
10
10
  return {
11
11
  type: 'ConveyorSpecialProperties',
12
12
  };
13
13
  };
14
14
  ConveyorSpecialProperties.Serialize = (writer, property) => {
15
- writer.writeInt32(0);
15
+ writer.writeInt32Zero();
16
16
  };
17
17
  })(ConveyorSpecialProperties || (exports.ConveyorSpecialProperties = ConveyorSpecialProperties = {}));
18
18
  //# sourceMappingURL=ConveyorSpecialProperties.js.map
@@ -1 +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"]}
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,MAAqB,EAA6B,EAAE;QACtE,MAAM,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO;YACH,IAAI,EAAE,2BAA2B;SACpC,CAAC;IACN,CAAC,CAAC;IAEW,mCAAS,GAAG,CAAC,MAAqB,EAAE,QAAmC,EAAE,EAAE;QACpF,MAAM,CAAC,cAAc,EAAE,CAAC;IAC5B,CAAC,CAAC;AACN,CAAC,EAXgB,yBAAyB,yCAAzB,yBAAyB,QAWzC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader): ConveyorSpecialProperties => {\n reader.readInt32Zero();\n return {\n type: 'ConveyorSpecialProperties',\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: ConveyorSpecialProperties) => {\n writer.writeInt32Zero();\n };\n}\n"]}
@@ -1,11 +1,11 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  export declare const isEmptySpecialProperties: (obj: any) => obj is EmptySpecialProperties;
4
4
  export type EmptySpecialProperties = {
5
5
  type: 'EmptySpecialProperties';
6
6
  };
7
7
  export declare namespace EmptySpecialProperties {
8
- const Parse: (reader: BinaryReadable) => EmptySpecialProperties;
9
- const Serialize: (writer: ByteWriter, property: EmptySpecialProperties) => void;
8
+ const Parse: (reader: ContextReader) => EmptySpecialProperties;
9
+ const Serialize: (writer: ContextWriter, property: EmptySpecialProperties) => void;
10
10
  }
11
11
  //# sourceMappingURL=EmptySpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"EmptySpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/EmptySpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,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,aAAa,KAAG,sBAI7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,sBAAsB,SAAQ,CAAC;CAC7F"}
@@ -1 +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"]}
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,MAAqB,EAA0B,EAAE;QACnE,OAAO;YACH,IAAI,EAAE,wBAAwB;SACjC,CAAC;IACN,CAAC,CAAC;IAEW,gCAAS,GAAG,CAAC,MAAqB,EAAE,QAAgC,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9F,CAAC,EARgB,sBAAsB,sCAAtB,sBAAsB,QAQtC","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader): EmptySpecialProperties => {\n return {\n type: 'EmptySpecialProperties',\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: EmptySpecialProperties) => { };\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { ObjectReference } from '../../structs/ObjectReference';
4
4
  export declare const isObjectsListSpecialProperties: (obj: any) => obj is ObjectsListSpecialProperties;
5
5
  export type ObjectsListSpecialProperties = {
@@ -7,7 +7,7 @@ export type ObjectsListSpecialProperties = {
7
7
  objects: ObjectReference[];
8
8
  };
9
9
  export declare namespace ObjectsListSpecialProperties {
10
- const Parse: (reader: BinaryReadable) => ObjectsListSpecialProperties;
11
- const Serialize: (writer: ByteWriter, property: ObjectsListSpecialProperties) => void;
10
+ const Parse: (reader: ContextReader) => ObjectsListSpecialProperties;
11
+ const Serialize: (writer: ContextWriter, property: ObjectsListSpecialProperties) => void;
12
12
  }
13
13
  //# sourceMappingURL=ObjectsListSpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ObjectsListSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,+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,aAAa,KAAG,4BAM7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,4BAA4B,SAEtF,CAAC;CACL"}
@@ -1 +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"]}
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,MAAqB,EAAgC,EAAE;QACzE,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,MAAqB,EAAE,QAAsC,EAAE,EAAE;QACvF,6CAAoB,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC,EAZgB,4BAA4B,4CAA5B,4BAA4B,QAY5C","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader): ObjectsListSpecialProperties => {\n const objectsList = ObjectReferencesList.ReadList(reader);\n return {\n type: 'ObjectsListSpecialProperties',\n objects: objectsList\n };\n };\n\n export const Serialize = (writer: ContextWriter, property: ObjectsListSpecialProperties) => {\n ObjectReferencesList.SerializeList(writer, property.objects);\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  export declare const isPlayerSpecialProperties: (obj: any) => obj is PlayerSpecialProperties;
4
4
  export type PlayerSpecialProperties = {
5
5
  type: 'PlayerSpecialProperties';
@@ -8,7 +8,7 @@ export type PlayerSpecialProperties = {
8
8
  steamPlayerData?: string;
9
9
  };
10
10
  export declare namespace PlayerSpecialProperties {
11
- const Parse: (reader: BinaryReadable) => PlayerSpecialProperties;
12
- const Serialize: (writer: ByteWriter, property: PlayerSpecialProperties) => void;
11
+ const Parse: (reader: ContextReader) => PlayerSpecialProperties;
12
+ const Serialize: (writer: ContextWriter, property: PlayerSpecialProperties) => void;
13
13
  }
14
14
  //# sourceMappingURL=PlayerSpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"PlayerSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PlayerSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,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,aAAa,KAAG,uBAwB7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,uBAAuB,SAajF,CAAC;CACL"}
@@ -1 +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"]}
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,MAAqB,EAA2B,EAAE;QAEpE,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,MAAqB,EAAE,QAAiC,EAAE,EAAE;QAClF,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 { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\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: ContextReader): 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: ContextWriter, 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"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { ObjectReference } from '../../structs/ObjectReference';
4
4
  import { vec3 } from '../../structs/vec3';
5
5
  export declare const isPowerLineSpecialProperties: (obj: any) => obj is PowerLineSpecialProperties;
@@ -11,7 +11,7 @@ export type PowerLineSpecialProperties = {
11
11
  targetTranslation?: vec3;
12
12
  };
13
13
  export declare namespace PowerLineSpecialProperties {
14
- const Parse: (reader: BinaryReadable, remainingLen: number) => PowerLineSpecialProperties;
15
- const Serialize: (writer: ByteWriter, property: PowerLineSpecialProperties) => void;
14
+ const Parse: (reader: ContextReader, remainingLen: number) => PowerLineSpecialProperties;
15
+ const Serialize: (writer: ContextWriter, property: PowerLineSpecialProperties) => void;
16
16
  }
17
17
  //# sourceMappingURL=PowerLineSpecialProperties.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"PowerLineSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,+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,aAAa,gBAAgB,MAAM,KAAG,0BAiBnE,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,0BAA0B,SASpF,CAAC;CACL"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PowerLineSpecialProperties = exports.isPowerLineSpecialProperties = void 0;
4
+ const save_custom_version_1 = require("../../../save/save-custom-version");
4
5
  const ObjectReference_1 = require("../../structs/ObjectReference");
5
6
  const vec3_1 = require("../../structs/vec3");
6
7
  const isPowerLineSpecialProperties = (obj) => obj.type === 'PowerLineSpecialProperties';
@@ -14,15 +15,23 @@ var PowerLineSpecialProperties;
14
15
  source: ObjectReference_1.ObjectReference.read(reader),
15
16
  target: ObjectReference_1.ObjectReference.read(reader)
16
17
  };
17
- if (remainingLen - (reader.getBufferPosition() - start) >= 24) {
18
- property.sourceTranslation = vec3_1.vec3.ParseF(reader);
19
- property.targetTranslation = vec3_1.vec3.ParseF(reader);
18
+ if (reader.context.blueprintConfigVersion !== undefined && reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.AddedCachedLocationsForWire) {
19
+ if (remainingLen - (reader.getBufferPosition() - start) >= 24) {
20
+ property.sourceTranslation = vec3_1.vec3.ParseF(reader);
21
+ property.targetTranslation = vec3_1.vec3.ParseF(reader);
22
+ }
20
23
  }
21
24
  return property;
22
25
  };
23
26
  PowerLineSpecialProperties.Serialize = (writer, property) => {
24
27
  ObjectReference_1.ObjectReference.write(writer, property.source);
25
28
  ObjectReference_1.ObjectReference.write(writer, property.target);
29
+ if (writer.context.blueprintConfigVersion !== undefined && writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.AddedCachedLocationsForWire) {
30
+ if (property.sourceTranslation && property.targetTranslation) {
31
+ vec3_1.vec3.SerializeF(writer, property.sourceTranslation);
32
+ vec3_1.vec3.SerializeF(writer, property.targetTranslation);
33
+ }
34
+ }
26
35
  };
27
36
  })(PowerLineSpecialProperties || (exports.PowerLineSpecialProperties = PowerLineSpecialProperties = {}));
28
37
  //# sourceMappingURL=PowerLineSpecialProperties.js.map
@@ -1 +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"]}
1
+ {"version":3,"file":"PowerLineSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,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,CA8B1C;AA9BD,WAAiB,0BAA0B;IAC1B,gCAAK,GAAG,CAAC,MAAqB,EAAE,YAAoB,EAA8B,EAAE;QAC7F,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;QAGF,IAAI,MAAM,CAAC,OAAO,CAAC,sBAAsB,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,IAAI,uCAAiB,CAAC,2BAA2B,EAAE,CAAC;YACrI,IAAI,YAAY,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC5D,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACjD,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACrD,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;IAEW,oCAAS,GAAG,CAAC,MAAqB,EAAE,QAAoC,EAAE,EAAE;QACrF,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,MAAM,CAAC,OAAO,CAAC,sBAAsB,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,IAAI,uCAAiB,CAAC,2BAA2B,EAAE,CAAC;YACrI,IAAI,QAAQ,CAAC,iBAAiB,IAAI,QAAQ,CAAC,iBAAiB,EAAE,CAAC;gBAC3D,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;gBACpD,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA9BgB,0BAA0B,0CAA1B,0BAA0B,QA8B1C","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\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: ContextReader, 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 // seems to be, that for blueprints the cached position is stored.\n if (reader.context.blueprintConfigVersion !== undefined && reader.context.saveVersion >= SaveCustomVersion.AddedCachedLocationsForWire) {\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n }\n\n return property;\n };\n\n export const Serialize = (writer: ContextWriter, property: PowerLineSpecialProperties) => {\n ObjectReference.write(writer, property.source);\n ObjectReference.write(writer, property.target);\n if (writer.context.blueprintConfigVersion !== undefined && writer.context.saveVersion >= SaveCustomVersion.AddedCachedLocationsForWire) {\n if (property.sourceTranslation && property.targetTranslation) {\n vec3.SerializeF(writer, property.sourceTranslation);\n vec3.SerializeF(writer, property.targetTranslation);\n }\n }\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { PropertiesMap } from '../generic/AbstractBaseProperty';
4
4
  export type SpecialDroneAction = {
5
5
  actionName: string;
@@ -12,7 +12,7 @@ export type SpecialDroneActionProperties = {
12
12
  queuedActions: SpecialDroneAction[];
13
13
  };
14
14
  export declare namespace SpecialDroneActionProperties {
15
- const Parse: (reader: BinaryReadable) => SpecialDroneActionProperties;
16
- const Serialize: (writer: ByteWriter, property: SpecialDroneActionProperties) => void;
15
+ const Parse: (reader: ContextReader) => SpecialDroneActionProperties;
16
+ const Serialize: (writer: ContextWriter, property: SpecialDroneActionProperties) => void;
17
17
  }
18
18
  //# sourceMappingURL=SpecialDroneActionProperties.d.ts.map
@@ -1 +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,iCAAiC,CAAC;AAIhE,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"}
1
+ {"version":3,"file":"SpecialDroneActionProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialDroneActionProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAIhE,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,aAAa,KAAG,4BA0B7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,YAAY,4BAA4B,SActF,CAAC;CACL"}
@@ -13,7 +13,7 @@ var SpecialDroneActionProperties;
13
13
  for (let i = 0; i < countActiveActions; i++) {
14
14
  activeActions.push({
15
15
  actionName: reader.readString(),
16
- properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
16
+ properties: PropertiesList_1.PropertiesList.ParseList(reader)
17
17
  });
18
18
  }
19
19
  const countQueuedActions = reader.readInt32();
@@ -21,7 +21,7 @@ var SpecialDroneActionProperties;
21
21
  for (let i = 0; i < countQueuedActions; i++) {
22
22
  queuedActions.push({
23
23
  actionName: reader.readString(),
24
- properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
24
+ properties: PropertiesList_1.PropertiesList.ParseList(reader)
25
25
  });
26
26
  }
27
27
  return {
@@ -35,12 +35,12 @@ var SpecialDroneActionProperties;
35
35
  writer.writeInt32(property.activeActions.length);
36
36
  for (const action of property.activeActions) {
37
37
  writer.writeString(action.actionName);
38
- PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
38
+ PropertiesList_1.PropertiesList.SerializeList(writer, action.properties);
39
39
  }
40
40
  writer.writeInt32(property.queuedActions.length);
41
41
  for (const action of property.queuedActions) {
42
42
  writer.writeString(action.actionName);
43
- PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
43
+ PropertiesList_1.PropertiesList.SerializeList(writer, action.properties);
44
44
  }
45
45
  };
46
46
  })(SpecialDroneActionProperties || (exports.SpecialDroneActionProperties = SpecialDroneActionProperties = {}));
@@ -1 +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,CAA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C,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,CAAC,UAAU,CAAE,QAAyC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnF,KAAK,MAAM,MAAM,IAAK,QAAyC,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,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/AbstractBaseProperty';\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
+ {"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,MAAqB,EAAgC,EAAE;QACzE,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,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,aAAa,CAAC,IAAI,CAAC;gBACf,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;gBAC/B,UAAU,EAAE,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAC;aAClB,CAAC,CAAC;QACpC,CAAC;QAED,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,aAAa,CAAC,IAAI,CAAC;gBACf,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;gBAC/B,UAAU,EAAE,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAE;aACnB,CAAC,CAAC;QACpC,CAAC;QAED,OAAO;YACH,IAAI,EAAE,8BAA8B;YACpC,aAAa;YACb,aAAa;SAChB,CAAC;IACN,CAAC,CAAC;IAEW,sCAAS,GAAG,CAAC,MAAqB,EAAE,QAAsC,EAAE,EAAE;QACvF,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAErB,MAAM,CAAC,UAAU,CAAE,QAAyC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnF,KAAK,MAAM,MAAM,IAAK,QAAyC,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAE,CAAC;QAC7D,CAAC;QAED,MAAM,CAAC,UAAU,CAAE,QAAyC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnF,KAAK,MAAM,MAAM,IAAK,QAAyC,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA5CgB,4BAA4B,4CAA5B,4BAA4B,QA4C5C","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { PropertiesMap } from '../generic/AbstractBaseProperty';\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: ContextReader): 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)\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,)\n } satisfies SpecialDroneAction);\n }\n\n return {\n type: 'SpecialDroneActionProperties',\n activeActions,\n queuedActions\n };\n };\n\n export const Serialize = (writer: ContextWriter, 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(writer, action.properties,);\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(writer, action.properties);\n }\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
1
+ import { ContextReader } from '../../../../context/context-reader';
2
+ import { ContextWriter } from '../../../../context/context-writer';
3
3
  import { BuildableSubsystemSpecialProperties } from './BuildableSubsystemSpecialProperties';
4
4
  import { CircuitSpecialProperties } from './CircuitSpecialProperties';
5
5
  import { ConveyorChainActorSpecialProperties } from './ConveyorChainActorSpecialProperties';
@@ -12,7 +12,7 @@ import { SpecialDroneActionProperties } from './SpecialDroneActionProperties';
12
12
  import { VehicleSpecialProperties } from './VehicleSpecialProperties';
13
13
  export declare namespace SpecialProperties {
14
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;
15
+ const ParseClassSpecificSpecialProperties: (reader: ContextReader, typePath: string, remainingLen: number) => BuildableSubsystemSpecialProperties | CircuitSpecialProperties | ConveyorChainActorSpecialProperties | ConveyorSpecialProperties | EmptySpecialProperties | ObjectsListSpecialProperties | PlayerSpecialProperties | PowerLineSpecialProperties | SpecialDroneActionProperties | VehicleSpecialProperties;
16
+ const SerializeClassSpecificSpecialProperties: (writer: ContextWriter, typePath: string, property: AvailableSpecialPropertiesTypes) => void;
17
17
  }
18
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;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
+ {"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,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,aAAa,YAAY,MAAM,gBAAgB,MAAM,8SAyEhH,CAAA;IAEM,MAAM,uCAAuC,WAAY,aAAa,YAAY,MAAM,YAAY,+BAA+B,KAAG,IA0B5I,CAAA;CACJ"}