@etothepii/satisfactory-file-parser 1.1.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/.github/workflows/tests.yml +24 -0
  2. package/CHANGELOG.md +95 -0
  3. package/GUIDE.md +81 -0
  4. package/README.md +96 -125
  5. package/build/index.d.ts +21 -3
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +21 -3
  8. package/build/index.js.map +1 -1
  9. package/build/parser/byte/byte-reader.class.d.ts +1 -1
  10. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  11. package/build/parser/byte/byte-reader.class.js +4 -4
  12. package/build/parser/byte/byte-reader.class.js.map +1 -1
  13. package/build/parser/parser.d.ts +1 -1
  14. package/build/parser/parser.d.ts.map +1 -1
  15. package/build/parser/parser.js +1 -1
  16. package/build/parser/parser.js.map +1 -1
  17. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  18. package/build/parser/satisfactory/blueprint/blueprint-reader.js +5 -6
  19. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  20. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  21. package/build/parser/satisfactory/blueprint/blueprint-writer.js +3 -4
  22. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  23. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -2
  24. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
  25. package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
  26. package/build/parser/satisfactory/edit/edit-constants.d.ts +4 -0
  27. package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
  28. package/build/parser/satisfactory/edit/edit-constants.js +4 -0
  29. package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
  30. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  31. package/build/parser/satisfactory/save/level.class.js +3 -1
  32. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  33. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +1 -1
  34. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  35. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  36. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +2 -2
  37. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  38. package/build/parser/satisfactory/types/property/PropertiesList.js +6 -6
  39. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  40. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +23 -0
  41. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
  42. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +14 -0
  43. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +23 -0
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +23 -0
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
  58. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +23 -0
  59. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
  60. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
  61. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
  62. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +23 -0
  63. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
  64. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
  65. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
  66. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +23 -0
  67. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
  68. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
  69. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
  70. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +23 -0
  71. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
  72. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
  73. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
  74. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +23 -0
  75. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
  76. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
  77. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
  78. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +23 -0
  79. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
  80. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
  81. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
  82. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +23 -0
  83. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
  84. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
  85. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
  86. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +23 -0
  87. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
  88. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
  89. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
  90. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +75 -0
  91. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
  92. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
  93. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
  94. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +23 -0
  95. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
  96. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +11 -10
  97. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  98. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -20
  99. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  100. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +11 -10
  101. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  102. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +20 -21
  103. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  104. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +11 -10
  105. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  106. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +20 -20
  107. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  108. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +11 -13
  109. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  110. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +20 -21
  111. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  112. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +11 -10
  113. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  114. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +20 -20
  115. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  116. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +11 -10
  117. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  118. package/build/parser/satisfactory/types/property/generic/Int32Property.js +20 -20
  119. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  120. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +11 -10
  121. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/Int64Property.js +20 -20
  123. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  124. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +11 -10
  125. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  126. package/build/parser/satisfactory/types/property/generic/Int8Property.js +20 -20
  127. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  128. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +9 -7
  129. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  130. package/build/parser/satisfactory/types/property/generic/MapProperty.js +24 -22
  131. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  132. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +11 -10
  133. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  134. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +20 -20
  135. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  136. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
  137. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
  138. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +23 -0
  139. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
  140. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
  141. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
  142. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +23 -0
  143. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
  144. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
  145. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
  146. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
  147. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
  148. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
  149. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
  150. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +23 -0
  151. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
  152. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
  153. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
  154. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +43 -0
  155. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
  156. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
  157. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
  158. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +23 -0
  159. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
  160. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +11 -10
  161. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  162. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +22 -22
  163. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  164. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +11 -10
  165. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  166. package/build/parser/satisfactory/types/property/generic/StrProperty.js +20 -20
  167. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  168. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +11 -10
  169. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  170. package/build/parser/satisfactory/types/property/generic/StructProperty.js +27 -25
  171. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  172. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +11 -10
  173. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  174. package/build/parser/satisfactory/types/property/generic/TextProperty.js +20 -20
  175. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  176. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +11 -10
  177. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  178. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +20 -20
  179. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  180. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +11 -10
  181. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  182. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +20 -20
  183. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  184. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +11 -10
  185. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  186. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +20 -20
  187. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  188. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +1 -1
  189. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
  190. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +1 -1
  191. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
  192. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
  193. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
  194. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  195. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  196. package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
  197. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  198. package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
  199. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  200. package/docs/assets/highlight.css +7 -0
  201. package/docs/assets/navigation.js +1 -1
  202. package/docs/assets/search.js +1 -1
  203. package/docs/classes/BlueprintConfigReader.html +5 -4
  204. package/docs/classes/BlueprintConfigWriter.html +3 -3
  205. package/docs/classes/BlueprintReader.html +5 -4
  206. package/docs/classes/BlueprintWriter.html +3 -3
  207. package/docs/classes/CompressionLibraryError.html +2 -2
  208. package/docs/classes/CorruptSaveError.html +2 -2
  209. package/docs/classes/Parser.html +7 -7
  210. package/docs/classes/ParserError.html +2 -2
  211. package/docs/classes/ReadableStreamParser.html +3 -3
  212. package/docs/classes/SatisfactorySave.html +2 -2
  213. package/docs/classes/SaveComponent.html +2 -2
  214. package/docs/classes/SaveEntity.html +2 -2
  215. package/docs/classes/SaveObject.html +14 -0
  216. package/docs/classes/SaveReader.html +5 -4
  217. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  218. package/docs/classes/SaveStreamWriter.html +2 -2
  219. package/docs/classes/SaveWriter.html +3 -3
  220. package/docs/classes/TimeoutError.html +2 -2
  221. package/docs/classes/UnimplementedError.html +2 -2
  222. package/docs/classes/UnsupportedVersionError.html +2 -2
  223. package/docs/functions/AbstractBaseProperty.Create.html +1 -0
  224. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
  225. package/docs/functions/ArrayProperty.Parse.html +1 -0
  226. package/docs/functions/ArrayProperty.Serialize.html +1 -0
  227. package/docs/functions/BoolArrayProperty.Parse.html +1 -0
  228. package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
  229. package/docs/functions/BoolProperty.CalcOverhead.html +1 -0
  230. package/docs/functions/BoolProperty.Parse.html +1 -0
  231. package/docs/functions/BoolProperty.ReadValue.html +1 -0
  232. package/docs/functions/BoolProperty.Serialize.html +1 -0
  233. package/docs/functions/BoolProperty.SerializeValue.html +1 -0
  234. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  235. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  236. package/docs/functions/ByteArrayProperty.Parse.html +1 -0
  237. package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
  238. package/docs/functions/ByteProperty.CalcOverhead.html +1 -0
  239. package/docs/functions/ByteProperty.Parse.html +1 -0
  240. package/docs/functions/ByteProperty.ReadValue.html +1 -0
  241. package/docs/functions/ByteProperty.Serialize.html +1 -0
  242. package/docs/functions/ByteProperty.SerializeValue.html +1 -0
  243. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  244. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  245. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  246. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  247. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  248. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  249. package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
  250. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
  251. package/docs/functions/DoubleProperty.CalcOverhead.html +1 -0
  252. package/docs/functions/DoubleProperty.Parse.html +1 -0
  253. package/docs/functions/DoubleProperty.ReadValue.html +1 -0
  254. package/docs/functions/DoubleProperty.Serialize.html +1 -0
  255. package/docs/functions/DoubleProperty.SerializeValue.html +1 -0
  256. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  257. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  258. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  259. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  260. package/docs/functions/EnumArrayProperty.Parse.html +1 -0
  261. package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
  262. package/docs/functions/EnumProperty.CalcOverhead.html +1 -0
  263. package/docs/functions/EnumProperty.Parse.html +1 -0
  264. package/docs/functions/EnumProperty.ReadValue.html +1 -0
  265. package/docs/functions/EnumProperty.Serialize.html +1 -0
  266. package/docs/functions/EnumProperty.SerializeValue.html +1 -0
  267. package/docs/functions/FICFrameRange.Parse.html +1 -1
  268. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  269. package/docs/functions/FloatArrayProperty.Parse.html +1 -0
  270. package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
  271. package/docs/functions/FloatProperty.CalcOverhead.html +1 -0
  272. package/docs/functions/FloatProperty.Parse.html +1 -0
  273. package/docs/functions/FloatProperty.ReadValue.html +1 -0
  274. package/docs/functions/FloatProperty.Serialize.html +1 -0
  275. package/docs/functions/FloatProperty.SerializeValue.html +1 -0
  276. package/docs/functions/GUID.read.html +1 -1
  277. package/docs/functions/GUID.write.html +1 -1
  278. package/docs/functions/GUIDInfo.read.html +1 -1
  279. package/docs/functions/GUIDInfo.write.html +1 -1
  280. package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
  281. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
  282. package/docs/functions/Int32Property.CalcOverhead.html +1 -0
  283. package/docs/functions/Int32Property.Parse.html +1 -0
  284. package/docs/functions/Int32Property.ReadValue.html +1 -0
  285. package/docs/functions/Int32Property.Serialize.html +1 -0
  286. package/docs/functions/Int32Property.SerializeValue.html +1 -0
  287. package/docs/functions/Int32SetProperty.Parse.html +1 -0
  288. package/docs/functions/Int32SetProperty.Serialize.html +1 -0
  289. package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
  290. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
  291. package/docs/functions/Int64Property.CalcOverhead.html +1 -0
  292. package/docs/functions/Int64Property.Parse.html +1 -0
  293. package/docs/functions/Int64Property.ReadValue.html +1 -0
  294. package/docs/functions/Int64Property.Serialize.html +1 -0
  295. package/docs/functions/Int64Property.SerializeValue.html +1 -0
  296. package/docs/functions/Int8Property.CalcOverhead.html +1 -0
  297. package/docs/functions/Int8Property.Parse.html +1 -0
  298. package/docs/functions/Int8Property.ReadValue.html +1 -0
  299. package/docs/functions/Int8Property.Serialize.html +1 -0
  300. package/docs/functions/Int8Property.SerializeValue.html +1 -0
  301. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  302. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  303. package/docs/functions/Level.ReadLevel.html +1 -1
  304. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  305. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  306. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  307. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  308. package/docs/functions/Level.SerializeLevel.html +1 -1
  309. package/docs/functions/MD5Hash.read.html +1 -1
  310. package/docs/functions/MD5Hash.write.html +1 -1
  311. package/docs/functions/MapProperty.CalcOverhead.html +1 -0
  312. package/docs/functions/MapProperty.Parse.html +1 -0
  313. package/docs/functions/MapProperty.Serialize.html +1 -0
  314. package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
  315. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
  316. package/docs/functions/ObjectProperty.CalcOverhead.html +1 -0
  317. package/docs/functions/ObjectProperty.Parse.html +1 -0
  318. package/docs/functions/ObjectProperty.ReadValue.html +1 -0
  319. package/docs/functions/ObjectProperty.Serialize.html +1 -0
  320. package/docs/functions/ObjectProperty.SerializeValue.html +1 -0
  321. package/docs/functions/ObjectReference.read.html +1 -1
  322. package/docs/functions/ObjectReference.write.html +1 -1
  323. package/docs/functions/ObjectSetProperty.Parse.html +1 -0
  324. package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
  325. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  326. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  327. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  328. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  329. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  330. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  331. package/docs/functions/PropertiesList.ParseList.html +1 -1
  332. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  333. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  334. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  335. package/docs/functions/SetProperty.CalcOverhead.html +1 -0
  336. package/docs/functions/SetProperty.Parse.html +1 -0
  337. package/docs/functions/SetProperty.Serialize.html +1 -0
  338. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
  339. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
  340. package/docs/functions/SoftObjectReference.read.html +1 -1
  341. package/docs/functions/SoftObjectReference.write.html +1 -1
  342. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  343. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  344. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  345. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  346. package/docs/functions/StrArrayProperty.Parse.html +1 -0
  347. package/docs/functions/StrArrayProperty.Serialize.html +1 -0
  348. package/docs/functions/StrProperty.CalcOverhead.html +1 -0
  349. package/docs/functions/StrProperty.Parse.html +1 -0
  350. package/docs/functions/StrProperty.ReadValue.html +1 -0
  351. package/docs/functions/StrProperty.Serialize.html +1 -0
  352. package/docs/functions/StrProperty.SerializeValue.html +1 -0
  353. package/docs/functions/StrSetProperty.Parse.html +1 -0
  354. package/docs/functions/StrSetProperty.Serialize.html +1 -0
  355. package/docs/functions/StructArrayProperty.Parse.html +1 -0
  356. package/docs/functions/StructArrayProperty.Serialize.html +1 -0
  357. package/docs/functions/StructProperty.CalcOverhead.html +1 -0
  358. package/docs/functions/StructProperty.Parse.html +1 -0
  359. package/docs/functions/StructProperty.ParseValue.html +1 -0
  360. package/docs/functions/StructProperty.Serialize.html +1 -0
  361. package/docs/functions/StructProperty.SerializeValue.html +1 -0
  362. package/docs/functions/StructSetProperty.Parse.html +1 -0
  363. package/docs/functions/StructSetProperty.Serialize.html +1 -0
  364. package/docs/functions/TextArrayProperty.Parse.html +1 -0
  365. package/docs/functions/TextArrayProperty.Serialize.html +1 -0
  366. package/docs/functions/TextProperty.CalcOverhead.html +1 -0
  367. package/docs/functions/TextProperty.Parse.html +1 -0
  368. package/docs/functions/TextProperty.ReadValue.html +1 -0
  369. package/docs/functions/TextProperty.Serialize.html +1 -0
  370. package/docs/functions/TextProperty.SerializeValue.html +1 -0
  371. package/docs/functions/Transform.Parse.html +1 -1
  372. package/docs/functions/Transform.ParseF.html +1 -1
  373. package/docs/functions/Transform.Serialize.html +1 -1
  374. package/docs/functions/Transform.SerializeF.html +1 -1
  375. package/docs/functions/Uint32Property.CalcOverhead.html +1 -0
  376. package/docs/functions/Uint32Property.Parse.html +1 -0
  377. package/docs/functions/Uint32Property.ReadValue.html +1 -0
  378. package/docs/functions/Uint32Property.Serialize.html +1 -0
  379. package/docs/functions/Uint32Property.SerializeValue.html +1 -0
  380. package/docs/functions/Uint32SetProperty.Parse.html +1 -0
  381. package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
  382. package/docs/functions/Uint64Property.CalcOverhead.html +1 -0
  383. package/docs/functions/Uint64Property.Parse.html +1 -0
  384. package/docs/functions/Uint64Property.ReadValue.html +1 -0
  385. package/docs/functions/Uint64Property.Serialize.html +1 -0
  386. package/docs/functions/Uint64Property.SerializeValue.html +1 -0
  387. package/docs/functions/Uint8Property.CalcOverhead.html +1 -0
  388. package/docs/functions/Uint8Property.Parse.html +1 -0
  389. package/docs/functions/Uint8Property.ReadValue.html +1 -0
  390. package/docs/functions/Uint8Property.Serialize.html +1 -0
  391. package/docs/functions/Uint8Property.SerializeValue.html +1 -0
  392. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  393. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  394. package/docs/functions/col4.ParseBGRA.html +1 -1
  395. package/docs/functions/col4.ParseRGBA.html +1 -1
  396. package/docs/functions/col4.SerializeBGRA.html +1 -1
  397. package/docs/functions/col4.SerializeRGBA.html +1 -1
  398. package/docs/functions/isArrayProperty.html +1 -1
  399. package/docs/functions/isBoolArrayProperty.html +1 -0
  400. package/docs/functions/isBoolProperty.html +1 -1
  401. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  402. package/docs/functions/isByteArrayProperty.html +1 -0
  403. package/docs/functions/isByteProperty.html +1 -1
  404. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  405. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  406. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  407. package/docs/functions/isDoubleArrayProperty.html +1 -0
  408. package/docs/functions/isDoubleProperty.html +1 -1
  409. package/docs/functions/isEmptySpecialProperties.html +1 -1
  410. package/docs/functions/isEnumArrayProperty.html +1 -0
  411. package/docs/functions/isEnumProperty.html +1 -1
  412. package/docs/functions/isFloatArrayProperty.html +1 -0
  413. package/docs/functions/isFloatProperty.html +1 -1
  414. package/docs/functions/isInt32ArrayProperty.html +1 -0
  415. package/docs/functions/isInt32Property.html +1 -1
  416. package/docs/functions/isInt32SetProperty.html +1 -0
  417. package/docs/functions/isInt64ArrayProperty.html +1 -0
  418. package/docs/functions/isInt64Property.html +1 -1
  419. package/docs/functions/isInt8Property.html +1 -1
  420. package/docs/functions/isMapProperty.html +1 -1
  421. package/docs/functions/isObjectArrayProperty.html +1 -0
  422. package/docs/functions/isObjectProperty.html +1 -1
  423. package/docs/functions/isObjectSetProperty.html +1 -0
  424. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  425. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  426. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  427. package/docs/functions/isSaveComponent.html +1 -1
  428. package/docs/functions/isSaveEntity.html +1 -1
  429. package/docs/functions/isSetProperty.html +1 -1
  430. package/docs/functions/isSoftObjectArrayProperty.html +1 -0
  431. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  432. package/docs/functions/isStrArrayProperty.html +1 -0
  433. package/docs/functions/isStrProperty.html +1 -1
  434. package/docs/functions/isStrSetProperty.html +1 -0
  435. package/docs/functions/isStructArrayProperty.html +1 -0
  436. package/docs/functions/isStructProperty.html +1 -1
  437. package/docs/functions/isStructSetProperty.html +1 -0
  438. package/docs/functions/isTextArrayProperty.html +1 -0
  439. package/docs/functions/isTextProperty.html +1 -1
  440. package/docs/functions/isUInt64Property.html +1 -1
  441. package/docs/functions/isUint32Property.html +1 -1
  442. package/docs/functions/isUint32SetProperty.html +1 -0
  443. package/docs/functions/isUint8Property.html +1 -1
  444. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  445. package/docs/functions/vec2.Parse.html +1 -1
  446. package/docs/functions/vec2.ParseF.html +1 -1
  447. package/docs/functions/vec2.Serialize.html +1 -1
  448. package/docs/functions/vec2.SerializeF.html +1 -1
  449. package/docs/functions/vec3.Parse.html +1 -1
  450. package/docs/functions/vec3.ParseF.html +1 -1
  451. package/docs/functions/vec3.ParseInt.html +1 -1
  452. package/docs/functions/vec3.Serialize.html +1 -1
  453. package/docs/functions/vec3.SerializeF.html +1 -1
  454. package/docs/functions/vec3.SerializeInt.html +1 -1
  455. package/docs/functions/vec3.add.html +1 -1
  456. package/docs/functions/vec3.length.html +1 -1
  457. package/docs/functions/vec3.mult.html +1 -1
  458. package/docs/functions/vec3.norm.html +1 -1
  459. package/docs/functions/vec3.sub.html +1 -1
  460. package/docs/functions/vec4.Parse.html +1 -1
  461. package/docs/functions/vec4.ParseF.html +1 -1
  462. package/docs/functions/vec4.Serialize.html +1 -1
  463. package/docs/functions/vec4.SerializeF.html +1 -1
  464. package/docs/hierarchy.html +1 -1
  465. package/docs/index.html +26 -87
  466. package/docs/interfaces/Blueprint.html +2 -2
  467. package/docs/interfaces/BlueprintConfig.html +2 -2
  468. package/docs/interfaces/ModData.html +2 -2
  469. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  470. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  471. package/docs/interfaces/SaveComponentHeader.html +2 -2
  472. package/docs/interfaces/SaveEntityHeader.html +2 -2
  473. package/docs/interfaces/SaveObjectHeader.html +4 -0
  474. package/docs/modules/AbstractBaseProperty.html +2 -0
  475. package/docs/modules/ArrayProperty.html +5 -0
  476. package/docs/modules/BoolArrayProperty.html +3 -0
  477. package/docs/modules/BoolProperty.html +6 -0
  478. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  479. package/docs/modules/ByteArrayProperty.html +3 -0
  480. package/docs/modules/ByteProperty.html +6 -0
  481. package/docs/modules/CircuitSpecialProperties.html +1 -1
  482. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  483. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  484. package/docs/modules/DoubleArrayProperty.html +3 -0
  485. package/docs/modules/DoubleProperty.html +6 -0
  486. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  487. package/docs/modules/EmptySpecialProperties.html +1 -1
  488. package/docs/modules/EnumArrayProperty.html +3 -0
  489. package/docs/modules/EnumProperty.html +6 -0
  490. package/docs/modules/FICFrameRange.html +1 -1
  491. package/docs/modules/FloatArrayProperty.html +3 -0
  492. package/docs/modules/FloatProperty.html +6 -0
  493. package/docs/modules/GUID.html +1 -1
  494. package/docs/modules/GUIDInfo.html +1 -1
  495. package/docs/modules/Int32ArrayProperty.html +3 -0
  496. package/docs/modules/Int32Property.html +6 -0
  497. package/docs/modules/Int32SetProperty.html +3 -0
  498. package/docs/modules/Int64ArrayProperty.html +3 -0
  499. package/docs/modules/Int64Property.html +6 -0
  500. package/docs/modules/Int8Property.html +6 -0
  501. package/docs/modules/Level.html +1 -1
  502. package/docs/modules/MD5Hash.html +1 -1
  503. package/docs/modules/MapProperty.html +4 -0
  504. package/docs/modules/ObjectArrayProperty.html +3 -0
  505. package/docs/modules/ObjectProperty.html +6 -0
  506. package/docs/modules/ObjectReference.html +1 -1
  507. package/docs/modules/ObjectSetProperty.html +3 -0
  508. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  509. package/docs/modules/PlayerSpecialProperties.html +1 -1
  510. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  511. package/docs/modules/PropertiesList.html +1 -1
  512. package/docs/modules/SetProperty.html +5 -0
  513. package/docs/modules/SoftObjectArrayProperty.html +3 -0
  514. package/docs/modules/SoftObjectReference.html +1 -1
  515. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  516. package/docs/modules/SpecialProperties.html +1 -1
  517. package/docs/modules/StrArrayProperty.html +3 -0
  518. package/docs/modules/StrProperty.html +6 -0
  519. package/docs/modules/StrSetProperty.html +3 -0
  520. package/docs/modules/StructArrayProperty.html +3 -0
  521. package/docs/modules/StructProperty.html +6 -0
  522. package/docs/modules/StructSetProperty.html +3 -0
  523. package/docs/modules/TextArrayProperty.html +3 -0
  524. package/docs/modules/TextProperty.html +6 -0
  525. package/docs/modules/Transform.html +1 -1
  526. package/docs/modules/Uint32Property.html +6 -0
  527. package/docs/modules/Uint32SetProperty.html +3 -0
  528. package/docs/modules/Uint64Property.html +6 -0
  529. package/docs/modules/Uint8Property.html +6 -0
  530. package/docs/modules/VehicleSpecialProperties.html +1 -1
  531. package/docs/modules/col4.html +1 -1
  532. package/docs/modules/vec2.html +1 -1
  533. package/docs/modules/vec3.html +1 -1
  534. package/docs/modules/vec4.html +1 -1
  535. package/docs/modules.html +92 -24
  536. package/docs/types/AbstractBaseProperty-1.html +1 -0
  537. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
  538. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  539. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  540. package/docs/types/BasicStructPropertyValue.html +1 -1
  541. package/docs/types/BlueprintHeader.html +1 -1
  542. package/docs/types/BoolArrayProperty-1.html +1 -0
  543. package/docs/types/BoolProperty-1.html +1 -0
  544. package/docs/types/BoxStructPropertyValue.html +1 -1
  545. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  546. package/docs/types/BuildableTypeInstance.html +1 -1
  547. package/docs/types/ByteArrayProperty-1.html +1 -0
  548. package/docs/types/ByteProperty-1.html +1 -0
  549. package/docs/types/BytePropertyValue.html +1 -1
  550. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  551. package/docs/types/ClientIdentityInfo.html +1 -1
  552. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  553. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  554. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  555. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  556. package/docs/types/DoubleArrayProperty-1.html +1 -0
  557. package/docs/types/DoubleProperty-1.html +1 -0
  558. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  559. package/docs/types/EmptySpecialProperties-1.html +1 -1
  560. package/docs/types/EnumArrayProperty-1.html +1 -0
  561. package/docs/types/EnumProperty-1.html +1 -0
  562. package/docs/types/FICFrameRange-1.html +1 -1
  563. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  564. package/docs/types/FloatArrayProperty-1.html +1 -0
  565. package/docs/types/FloatProperty-1.html +1 -0
  566. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  567. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  568. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  569. package/docs/types/GUID-1.html +1 -1
  570. package/docs/types/GUIDInfo-1.html +1 -1
  571. package/docs/types/Int32ArrayProperty-1.html +1 -0
  572. package/docs/types/Int32Property-1.html +1 -0
  573. package/docs/types/Int32SetProperty-1.html +1 -0
  574. package/docs/types/Int64ArrayProperty-1.html +1 -0
  575. package/docs/types/Int64Property-1.html +1 -0
  576. package/docs/types/Int8Property-1.html +1 -0
  577. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  578. package/docs/types/Level-1.html +1 -1
  579. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  580. package/docs/types/MD5Hash-1.html +1 -1
  581. package/docs/types/MapProperty-1.html +1 -0
  582. package/docs/types/ObjectArrayProperty-1.html +1 -0
  583. package/docs/types/ObjectProperty-1.html +1 -0
  584. package/docs/types/ObjectReference-1.html +1 -1
  585. package/docs/types/ObjectSetProperty-1.html +1 -0
  586. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  587. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  588. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  589. package/docs/types/PropertiesMap.html +1 -1
  590. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  591. package/docs/types/RoughSaveVersion.html +1 -1
  592. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
  593. package/docs/types/SoftObjectArrayProperty-1.html +1 -0
  594. package/docs/types/SoftObjectReference-1.html +1 -1
  595. package/docs/types/SpecialDroneAction.html +1 -1
  596. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  597. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  598. package/docs/types/StrArrayProperty-1.html +1 -0
  599. package/docs/types/StrProperty-1.html +1 -0
  600. package/docs/types/StrSetProperty-1.html +1 -0
  601. package/docs/types/StructArrayProperty-1.html +1 -0
  602. package/docs/types/StructProperty-1.html +1 -0
  603. package/docs/types/StructSetProperty-1.html +1 -0
  604. package/docs/types/TextArrayProperty-1.html +1 -0
  605. package/docs/types/TextProperty-1.html +1 -0
  606. package/docs/types/TextPropertyValue.html +1 -1
  607. package/docs/types/Transform-1.html +1 -1
  608. package/docs/types/Uint32Property-1.html +1 -0
  609. package/docs/types/Uint32SetProperty-1.html +1 -0
  610. package/docs/types/Uint64Property-1.html +1 -0
  611. package/docs/types/Uint8Property-1.html +1 -0
  612. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  613. package/docs/types/col4-1.html +1 -1
  614. package/docs/types/vec2-1.html +1 -1
  615. package/docs/types/vec3-1.html +1 -1
  616. package/docs/types/vec4-1.html +1 -1
  617. package/docs/variables/EDIT.html +1 -1
  618. package/package.json +3 -3
  619. package/LICENSE +0 -21
  620. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts +0 -23
  621. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts.map +0 -1
  622. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js +0 -172
  623. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js.map +0 -1
  624. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts +0 -26
  625. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts.map +0 -1
  626. package/build/parser/satisfactory/types/property/generic/BasicProperty.js +0 -29
  627. package/build/parser/satisfactory/types/property/generic/BasicProperty.js.map +0 -1
  628. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts +0 -13
  629. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts.map +0 -1
  630. package/build/parser/satisfactory/types/property/generic/SetProperty.js +0 -95
  631. package/build/parser/satisfactory/types/property/generic/SetProperty.js.map +0 -1
  632. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts +0 -55
  633. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts.map +0 -1
  634. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js +0 -3
  635. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js.map +0 -1
  636. package/docs/classes/AbstractBaseProperty.html +0 -6
  637. package/docs/classes/AbstractProperty.html +0 -4
  638. package/docs/classes/ArrayProperty.html +0 -13
  639. package/docs/classes/BasicProperty.html +0 -7
  640. package/docs/classes/BoolProperty.html +0 -13
  641. package/docs/classes/ByteProperty.html +0 -13
  642. package/docs/classes/DoubleProperty.html +0 -13
  643. package/docs/classes/EnumProperty.html +0 -13
  644. package/docs/classes/FloatProperty.html +0 -13
  645. package/docs/classes/Int32Property.html +0 -13
  646. package/docs/classes/Int64Property.html +0 -13
  647. package/docs/classes/Int8Property.html +0 -13
  648. package/docs/classes/MapProperty.html +0 -17
  649. package/docs/classes/ObjectProperty.html +0 -13
  650. package/docs/classes/SetProperty.html +0 -12
  651. package/docs/classes/StrProperty.html +0 -13
  652. package/docs/classes/StructProperty.html +0 -18
  653. package/docs/classes/TextProperty.html +0 -13
  654. package/docs/classes/Uint32Property.html +0 -13
  655. package/docs/classes/Uint64Property.html +0 -13
  656. package/docs/classes/Uint8Property.html +0 -13
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@etothepii/satisfactory-file-parser",
3
3
  "author": "etothepii",
4
- "version": "1.1.1",
4
+ "version": "2.1.1",
5
5
  "description": "A file parser for satisfactory files. Includes save files and blueprint files.",
6
6
  "types": "./build/index.d.ts",
7
7
  "main": "./build/index.js",
@@ -14,9 +14,9 @@
14
14
  "typescript"
15
15
  ],
16
16
  "scripts": {
17
- "test": "set PARSER_DEBUG=debug&& jest --config=jest.config.json --max_old_space_size=30720",
17
+ "test": "tsc --noEmit && set PARSER_DEBUG=debug&& jest --config=jest.config.json --max_old_space_size=30720",
18
18
  "doc": "typedoc src/index.ts",
19
- "build": "tsc && npm run doc",
19
+ "build": "tsc",
20
20
  "prepublishOnly": "npm run build && npm version patch"
21
21
  },
22
22
  "repository": {
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021-2024 etothepii
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,23 +0,0 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { BasicProperty } from './BasicProperty';
4
- export type ArrayPropertyStructValueFields = {
5
- allStructType: string;
6
- allIndex: number;
7
- allGuid: number;
8
- allUnk1?: number;
9
- allUnk2?: number;
10
- allUnk3?: number;
11
- allUnk4?: number;
12
- };
13
- export declare const isArrayProperty: (property: BasicProperty) => property is ArrayProperty<any>;
14
- export declare class ArrayProperty<T> extends BasicProperty {
15
- subtype: string;
16
- values: T[];
17
- structValueFields?: ArrayPropertyStructValueFields | undefined;
18
- constructor(subtype: string, values: T[], ueType?: string, index?: number, structValueFields?: ArrayPropertyStructValueFields | undefined);
19
- static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): ArrayProperty<any>;
20
- static CalcOverhead(property: ArrayProperty<any>): number;
21
- static Serialize(writer: ByteWriter, property: ArrayProperty<any>, propertyName: string): void;
22
- }
23
- //# sourceMappingURL=ArrayProperty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc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ser_error_1 = require("../../../../error/parser.error");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const BoolProperty_1 = require("./BoolProperty");
7
- const ByteProperty_1 = require("./ByteProperty");
8
- const DoubleProperty_1 = require("./DoubleProperty");
9
- const EnumProperty_1 = require("./EnumProperty");
10
- const FloatProperty_1 = require("./FloatProperty");
11
- const Int32Property_1 = require("./Int32Property");
12
- const Int64Property_1 = require("./Int64Property");
13
- const ObjectProperty_1 = require("./ObjectProperty");
14
- const SoftObjectProperty_1 = require("./SoftObjectProperty");
15
- const StrProperty_1 = require("./StrProperty");
16
- const StructProperty_1 = require("./StructProperty");
17
- const TextProperty_1 = require("./TextProperty");
18
- const isArrayProperty = (property) => property.type === 'ArrayProperty';
19
- exports.isArrayProperty = isArrayProperty;
20
- class ArrayProperty extends BasicProperty_1.BasicProperty {
21
- constructor(subtype, values, ueType = 'ArrayProperty', index = 0, structValueFields) {
22
- super({ type: 'ArrayProperty', ueType, index });
23
- this.subtype = subtype;
24
- this.values = values;
25
- this.structValueFields = structValueFields;
26
- }
27
- static Parse(reader, ueType, index, propertyName) {
28
- const subtype = reader.readString();
29
- reader.skipBytes(1);
30
- let property;
31
- const elementCount = reader.readInt32();
32
- switch (subtype) {
33
- case "FloatProperty":
34
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => FloatProperty_1.FloatProperty.ReadValue(reader)), ueType, index);
35
- break;
36
- case "BoolProperty":
37
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => BoolProperty_1.BoolProperty.ReadValue(reader)), ueType, index);
38
- break;
39
- case "IntProperty":
40
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => Int32Property_1.Int32Property.ReadValue(reader)), ueType, index);
41
- break;
42
- case "Int64Property":
43
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => Int64Property_1.Int64Property.ReadValue(reader)), ueType, index);
44
- break;
45
- case "DoubleProperty":
46
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => DoubleProperty_1.DoubleProperty.ReadValue(reader)), ueType, index);
47
- break;
48
- case "ByteProperty":
49
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => ByteProperty_1.ByteProperty.ReadValue(reader)), ueType, index);
50
- break;
51
- case "StrProperty":
52
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader)), ueType, index);
53
- break;
54
- case "EnumProperty":
55
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => EnumProperty_1.EnumProperty.ReadValue(reader)), ueType, index);
56
- break;
57
- case "TextProperty":
58
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader)), ueType, index);
59
- break;
60
- case "InterfaceProperty":
61
- case "ObjectProperty":
62
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty_1.ObjectProperty.ReadValue(reader)), ueType, index);
63
- break;
64
- case "SoftObjectProperty":
65
- property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => SoftObjectProperty_1.SoftObjectProperty.ReadValue(reader)), ueType, index);
66
- break;
67
- case "StructProperty":
68
- const name = reader.readString();
69
- const type = reader.readString();
70
- const binarySize = reader.readInt32();
71
- const allIndex = reader.readInt32();
72
- const allStructType = reader.readString();
73
- const allGuid = reader.readInt32();
74
- const allUnk1 = reader.readInt32();
75
- const allUnk2 = reader.readInt32();
76
- const allUnk3 = reader.readInt32();
77
- const allUnk4 = reader.readByte();
78
- const innerStructValueFields = { allStructType, allIndex, allGuid };
79
- if (allUnk1 !== 0) {
80
- innerStructValueFields.allUnk1 = allUnk1;
81
- }
82
- if (allUnk2 !== 0) {
83
- innerStructValueFields.allUnk2 = allUnk2;
84
- }
85
- if (allUnk3 !== 0) {
86
- innerStructValueFields.allUnk3 = allUnk3;
87
- }
88
- if (allUnk4 !== 0) {
89
- innerStructValueFields.allUnk4 = allUnk4;
90
- }
91
- const before = reader.getBufferPosition();
92
- const maArr = new Array(elementCount).fill(0).map(() => {
93
- const struct = new StructProperty_1.StructProperty(allStructType, type, allIndex, allGuid);
94
- struct.value = StructProperty_1.StructProperty.ParseValue(reader, allStructType, binarySize);
95
- return struct;
96
- });
97
- const readBytes = reader.getBufferPosition() - before;
98
- if (readBytes !== binarySize) {
99
- throw new Error('possibly corrupt in array of struct.');
100
- }
101
- property = new ArrayProperty(subtype, maArr, ueType, index, innerStructValueFields);
102
- break;
103
- default:
104
- throw new parser_error_1.UnimplementedError(`Unknown subtype ${subtype} for ${ueType}. Not implemented.`);
105
- }
106
- return property;
107
- }
108
- static CalcOverhead(property) {
109
- return property.subtype.length + 5 + 1;
110
- }
111
- static Serialize(writer, property, propertyName) {
112
- writer.writeString(property.subtype);
113
- writer.writeByte(0);
114
- writer.writeInt32(property.values.length);
115
- switch (property.subtype) {
116
- case "FloatProperty":
117
- property.values.forEach(v => FloatProperty_1.FloatProperty.SerializeValue(writer, v));
118
- break;
119
- case "BoolProperty":
120
- property.values.forEach(v => BoolProperty_1.BoolProperty.SerializeValue(writer, v));
121
- break;
122
- case "IntProperty":
123
- property.values.forEach(v => Int32Property_1.Int32Property.SerializeValue(writer, v));
124
- break;
125
- case "Int64Property":
126
- property.values.forEach(v => Int64Property_1.Int64Property.SerializeValue(writer, v));
127
- break;
128
- case "DoubleProperty":
129
- property.values.forEach(v => DoubleProperty_1.DoubleProperty.SerializeValue(writer, v));
130
- break;
131
- case "ByteProperty":
132
- property.values.forEach(v => ByteProperty_1.ByteProperty.SerializeValue(writer, v));
133
- break;
134
- case "StrProperty":
135
- property.values.forEach(v => StrProperty_1.StrProperty.SerializeValue(writer, v));
136
- break;
137
- case "EnumProperty":
138
- property.values.forEach(v => EnumProperty_1.EnumProperty.SerializeValue(writer, v));
139
- break;
140
- case "TextProperty":
141
- property.values.forEach(v => TextProperty_1.TextProperty.SerializeValue(writer, v));
142
- break;
143
- case "InterfaceProperty":
144
- case "ObjectProperty":
145
- property.values.forEach(v => ObjectProperty_1.ObjectProperty.SerializeValue(writer, v));
146
- break;
147
- case "SoftObjectProperty":
148
- property.values.forEach(v => SoftObjectProperty_1.SoftObjectProperty.SerializeValue(writer, v));
149
- break;
150
- case "StructProperty":
151
- writer.writeString(propertyName);
152
- writer.writeString(property.subtype);
153
- const lenIndicator = writer.getBufferPosition();
154
- writer.writeInt32(0);
155
- writer.writeInt32(property.structValueFields.allIndex);
156
- writer.writeString(property.structValueFields.allStructType);
157
- writer.writeInt32(property.structValueFields.allGuid);
158
- writer.writeInt32(property.structValueFields.allUnk1 ?? 0);
159
- writer.writeInt32(property.structValueFields.allUnk2 ?? 0);
160
- writer.writeInt32(property.structValueFields.allUnk3 ?? 0);
161
- writer.writeByte(property.structValueFields.allUnk4 ?? 0);
162
- const before = writer.getBufferPosition();
163
- property.values.forEach(v => StructProperty_1.StructProperty.SerializeValue(writer, property.structValueFields.allStructType, v.value));
164
- writer.writeBinarySizeFromPosition(lenIndicator, before);
165
- break;
166
- default:
167
- throw new Error(`Unknown array property ${property.ueType}, ${property.type}`);
168
- }
169
- }
170
- }
171
- exports.ArrayProperty = ArrayProperty;
172
- //# sourceMappingURL=ArrayProperty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty.ts"],"names":[],"mappings":";;;AAEA,iEAAoE;AAGpE,mDAAgD;AAChD,iDAA8C;AAC9C,iDAA8C;AAC9C,qDAAkD;AAClD,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,6DAA0D;AAC1D,+CAA4C;AAC5C,qDAAkD;AAClD,iDAAiE;AAa1D,MAAM,eAAe,GAAG,CAAC,QAAuB,EAAkC,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAAjH,QAAA,eAAe,mBAAkG;AAE9H,MAAa,aAAiB,SAAQ,6BAAa;IAE/C,YAAmB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C,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxH,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBACzD,MAAM;YAEV;gBACI,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACvF,CAAC;IACL,CAAC;CACJ;AAtMD,sCAsMC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { UnimplementedError } from '../../../../error/parser.error';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { SoftObjectReference } from '../../structs/SoftObjectReference';\nimport { BasicProperty } from './BasicProperty';\nimport { BoolProperty } from './BoolProperty';\nimport { ByteProperty } from './ByteProperty';\nimport { DoubleProperty } from './DoubleProperty';\nimport { EnumProperty } from './EnumProperty';\nimport { FloatProperty } from './FloatProperty';\nimport { Int32Property } from './Int32Property';\nimport { Int64Property } from './Int64Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { SoftObjectProperty } from './SoftObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { StructProperty } from './StructProperty';\nimport { TextProperty, TextPropertyValue } from './TextProperty';\n\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex: number;\n allGuid: number;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n\nexport const isArrayProperty = (property: BasicProperty): property is ArrayProperty<any> => property.type === 'ArrayProperty';\n\nexport class ArrayProperty<T> extends BasicProperty {\n\n constructor(public subtype: string, public values: T[], ueType: string = 'ArrayProperty', index: number = 0, public structValueFields?: ArrayPropertyStructValueFields) {\n super({ type: 'ArrayProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): ArrayProperty<any> {\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n\n let property;\n const elementCount = reader.readInt32();\n switch (subtype) {\n case \"FloatProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => FloatProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"BoolProperty\":\n property = new ArrayProperty<boolean>(subtype, new Array(elementCount).fill(0).map(() => BoolProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"IntProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Int32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"Int64Property\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => Int64Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"DoubleProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => DoubleProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"ByteProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => ByteProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"StrProperty\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"EnumProperty\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => EnumProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"TextProperty\":\n property = new ArrayProperty<TextPropertyValue>(subtype, new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property = new ArrayProperty<ObjectReference>(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"SoftObjectProperty\":\n property = new ArrayProperty<SoftObjectReference>(subtype, new Array(elementCount).fill(0).map(() => SoftObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n\n case \"StructProperty\":\n\n const name = reader.readString(); // Same as currentProperty.name\n const type = reader.readString(); // StructProperty\n\n const binarySize = reader.readInt32(); // structureSize\n const allIndex = reader.readInt32(); // 0\n\n const allStructType = reader.readString();\n const allGuid = reader.readInt32();\n\n const allUnk1 = reader.readInt32();\n const allUnk2 = reader.readInt32();\n const allUnk3 = reader.readInt32();\n const allUnk4 = reader.readByte();\n\n const innerStructValueFields: ArrayPropertyStructValueFields = { allStructType, allIndex, allGuid };\n if (allUnk1 !== 0) {\n innerStructValueFields.allUnk1 = allUnk1;\n }\n if (allUnk2 !== 0) {\n innerStructValueFields.allUnk2 = allUnk2;\n }\n if (allUnk3 !== 0) {\n innerStructValueFields.allUnk3 = allUnk3;\n }\n if (allUnk4 !== 0) {\n innerStructValueFields.allUnk4 = allUnk4;\n }\n\n\n const before = reader.getBufferPosition();\n const maArr = new Array(elementCount).fill(0).map(() => {\n\n const struct = new StructProperty(allStructType, type, allIndex, allGuid);\n\n // we do NOT assign individual unk's here. Since they are only serialized always on ArrayProperty's Level once for all elements.\n struct.value = StructProperty.ParseValue(reader, allStructType, binarySize);\n return struct;\n });\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== binarySize) {\n throw new Error('possibly corrupt in array of struct.');\n }\n\n // Array Properties with struct values have some more properties.\n property = new ArrayProperty<StructProperty>(subtype, maArr, ueType, index, innerStructValueFields);\n break;\n\n default:\n throw new UnimplementedError(`Unknown subtype ${subtype} for ${ueType}. Not implemented.`);\n\n }\n\n return property;\n }\n\n public static CalcOverhead(property: ArrayProperty<any>): number {\n return property.subtype.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ArrayProperty<any>, propertyName: string): void {\n\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(property.values.length);\n\n switch (property.subtype) {\n case \"FloatProperty\":\n property.values.forEach(v => FloatProperty.SerializeValue(writer, v));\n break;\n\n case \"BoolProperty\":\n property.values.forEach(v => BoolProperty.SerializeValue(writer, v));\n break;\n\n case \"IntProperty\":\n property.values.forEach(v => Int32Property.SerializeValue(writer, v));\n break;\n\n case \"Int64Property\":\n property.values.forEach(v => Int64Property.SerializeValue(writer, v));\n break;\n\n case \"DoubleProperty\":\n property.values.forEach(v => DoubleProperty.SerializeValue(writer, v));\n break;\n\n case \"ByteProperty\":\n property.values.forEach(v => ByteProperty.SerializeValue(writer, v));\n break;\n\n case \"StrProperty\":\n property.values.forEach(v => StrProperty.SerializeValue(writer, v));\n break;\n\n case \"EnumProperty\":\n property.values.forEach(v => EnumProperty.SerializeValue(writer, v));\n break;\n\n case \"TextProperty\":\n property.values.forEach(v => TextProperty.SerializeValue(writer, v));\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property.values.forEach(v => ObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"SoftObjectProperty\":\n property.values.forEach(v => SoftObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"StructProperty\":\n\n writer.writeString(propertyName);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex);\n\n writer.writeString(property.structValueFields!.allStructType);\n writer.writeInt32(property.structValueFields!.allGuid);\n\n writer.writeInt32(property.structValueFields!.allUnk1 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk2 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk3 ?? 0);\n writer.writeByte(property.structValueFields!.allUnk4 ?? 0);\n\n const before = writer.getBufferPosition();\n property.values.forEach(v => StructProperty.SerializeValue(writer, property.structValueFields!.allStructType, v.value));\n writer.writeBinarySizeFromPosition(lenIndicator, before);\n break;\n\n default:\n throw new Error(`Unknown array property ${property.ueType}, ${property.type}`);\n }\n }\n}\n"]}
@@ -1,26 +0,0 @@
1
- import { GUIDInfo } from '../../structs/GUIDInfo';
2
- export type PropertiesMap = {
3
- [name: string]: AbstractBaseProperty | AbstractBaseProperty[];
4
- };
5
- export declare abstract class AbstractProperty {
6
- type: string;
7
- index?: number | undefined;
8
- constructor(type: string, index?: number | undefined);
9
- }
10
- export declare abstract class AbstractBaseProperty extends AbstractProperty {
11
- ueType: string;
12
- name: string;
13
- constructor(type: string, ueType: string, index: number);
14
- }
15
- type AbstractBasePropertyOptions = {
16
- type: string;
17
- ueType: string;
18
- guidInfo?: GUIDInfo;
19
- index: number;
20
- };
21
- export declare abstract class BasicProperty extends AbstractBaseProperty {
22
- guidInfo: GUIDInfo;
23
- constructor(options: AbstractBasePropertyOptions);
24
- }
25
- export {};
26
- //# sourceMappingURL=BasicProperty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BasicProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BasicProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAEF,8BAAsB,gBAAgB;IAClB,IAAI,EAAE,MAAM;IAAS,KAAK,CAAC,EAAE,MAAM;gBAAnC,IAAI,EAAE,MAAM,EAAS,KAAK,CAAC,EAAE,MAAM,YAAA;CACtD;AAED,8BAAsB,oBAAqB,SAAQ,gBAAgB;IAKjC,MAAM,EAAE,MAAM;IAHxC,IAAI,EAAE,MAAM,CAAM;gBAGb,IAAI,EAAE,MAAM,EAAS,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAG9D;AAQD,KAAK,2BAA2B,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AACF,8BAAsB,aAAc,SAAQ,oBAAoB;IAExD,QAAQ,EAAE,QAAQ,CAAa;gBAE1B,OAAO,EAAE,2BAA2B;CAMhD"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BasicProperty = exports.AbstractBaseProperty = exports.AbstractProperty = void 0;
4
- class AbstractProperty {
5
- constructor(type, index) {
6
- this.type = type;
7
- this.index = index;
8
- }
9
- }
10
- exports.AbstractProperty = AbstractProperty;
11
- class AbstractBaseProperty extends AbstractProperty {
12
- constructor(type, ueType, index) {
13
- super(type, index && index !== 0 ? index : undefined);
14
- this.ueType = ueType;
15
- this.name = '';
16
- }
17
- }
18
- exports.AbstractBaseProperty = AbstractBaseProperty;
19
- class BasicProperty extends AbstractBaseProperty {
20
- constructor(options) {
21
- super(options.type, options.ueType, options.index ?? 0);
22
- this.guidInfo = undefined;
23
- if (options.guidInfo !== undefined) {
24
- this.guidInfo = options.guidInfo;
25
- }
26
- }
27
- }
28
- exports.BasicProperty = BasicProperty;
29
- //# sourceMappingURL=BasicProperty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BasicProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BasicProperty.ts"],"names":[],"mappings":";;;AAOA,MAAsB,gBAAgB;IACrC,YAAmB,IAAY,EAAS,KAAc;QAAnC,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAS;IAAI,CAAC;CAC3D;AAFD,4CAEC;AAED,MAAsB,oBAAqB,SAAQ,gBAAgB;IAKlE,YAAY,IAAY,EAAS,MAAc,EAAE,KAAa;QAC7D,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QADtB,WAAM,GAAN,MAAM,CAAQ;QAHxC,SAAI,GAAW,EAAE,CAAC;IAKzB,CAAC;CACD;AARD,oDAQC;AAcD,MAAsB,aAAc,SAAQ,oBAAoB;IAI/D,YAAY,OAAoC;QAC/C,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;QAHlD,aAAQ,GAAa,SAAS,CAAC;QAIrC,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAClC,CAAC;IACF,CAAC;CACD;AAVD,sCAUC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: AbstractBaseProperty | AbstractBaseProperty[];\n};\n\nexport abstract class AbstractProperty {\n\tconstructor(public type: string, public index?: number) { }\n}\n\nexport abstract class AbstractBaseProperty extends AbstractProperty {\n\n\tpublic name: string = '';\n\n\t// overhead like Guid is not calculated into property size\n\tconstructor(type: string, public ueType: string, index: number) {\n\t\tsuper(type, index && index !== 0 ? index : undefined);\n\t}\n}\n\n/**\n * @type denotes our internal type.\n * @ueType denotes the type like Unreal Engine calls it, like IntProperty\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array.\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tguidInfo?: GUIDInfo;\n\tindex: number;\n};\nexport abstract class BasicProperty extends AbstractBaseProperty {\n\n\tpublic guidInfo: GUIDInfo = undefined;\n\n\tconstructor(options: AbstractBasePropertyOptions) {\n\t\tsuper(options.type, options.ueType, options.index ?? 0);\n\t\tif (options.guidInfo !== undefined) {\n\t\t\tthis.guidInfo = options.guidInfo;\n\t\t}\n\t}\n}\n\n"]}
@@ -1,13 +0,0 @@
1
- import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
- import { ByteWriter } from '../../../../byte/byte-writer.class';
3
- import { BasicProperty } from './BasicProperty';
4
- export declare const isSetProperty: (property: BasicProperty) => property is SetProperty<any>;
5
- export declare class SetProperty<T> extends BasicProperty {
6
- subtype: string;
7
- values: T[];
8
- constructor(subtype: string, values: T[], ueType: string, index: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any>;
10
- static CalcOverhead(property: SetProperty<any>): number;
11
- static Serialize(writer: ByteWriter, property: SetProperty<any>): void;
12
- }
13
- //# sourceMappingURL=SetProperty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAoC,CAAC;AAExH,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,aAAa;IAE1B,OAAO,EAAE,MAAM;IAAS,MAAM,EAAE,CAAC,EAAE;gBAAnC,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;WAIvE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC;WA8CpG,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM;WAIhD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CA2ChF"}
@@ -1,95 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetProperty = exports.isSetProperty = void 0;
4
- const GUID_1 = require("../../structs/GUID");
5
- const vec3_1 = require("../../structs/vec3");
6
- const BasicProperty_1 = require("./BasicProperty");
7
- const Int32Property_1 = require("./Int32Property");
8
- const ObjectProperty_1 = require("./ObjectProperty");
9
- const StrProperty_1 = require("./StrProperty");
10
- const Uint32Property_1 = require("./Uint32Property");
11
- const isSetProperty = (property) => property.type === 'SetProperty';
12
- exports.isSetProperty = isSetProperty;
13
- class SetProperty extends BasicProperty_1.BasicProperty {
14
- constructor(subtype, values, ueType, index) {
15
- super({ type: 'SetProperty', ueType, index });
16
- this.subtype = subtype;
17
- this.values = values;
18
- }
19
- static Parse(reader, ueType, index, propertyName) {
20
- const subtype = reader.readString();
21
- reader.skipBytes(1);
22
- reader.skipBytes(4);
23
- const elementCount = reader.readInt32();
24
- let property;
25
- switch (subtype) {
26
- case "UInt32Property":
27
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => Uint32Property_1.Uint32Property.ReadValue(reader)), ueType, index);
28
- break;
29
- case "IntProperty":
30
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => Int32Property_1.Int32Property.ReadValue(reader)), ueType, index);
31
- break;
32
- case "ObjectProperty":
33
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty_1.ObjectProperty.ReadValue(reader)), ueType, index);
34
- break;
35
- case "NameProperty":
36
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader)), ueType, index);
37
- break;
38
- case "StructProperty":
39
- if (propertyName === 'mRemovalLocations') {
40
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => vec3_1.vec3.ParseF(reader)), ueType, index);
41
- }
42
- if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {
43
- property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader)), ueType, index);
44
- }
45
- else {
46
- throw new Error(`Not Implemented SetProperty of StructProperty for property ${propertyName}.`);
47
- }
48
- break;
49
- default:
50
- throw new Error(`Not Implemented SetProperty of ${subtype}.`);
51
- }
52
- return property;
53
- }
54
- static CalcOverhead(property) {
55
- return property.subtype.length + 5 + 1;
56
- }
57
- static Serialize(writer, property) {
58
- writer.writeString(property.subtype);
59
- writer.writeByte(0);
60
- writer.writeInt32(0);
61
- writer.writeInt32(property.values.length);
62
- switch (property.subtype) {
63
- case "IntProperty":
64
- case "Int32Property":
65
- property.values.forEach(v => Int32Property_1.Int32Property.SerializeValue(writer, v));
66
- break;
67
- case "UIntProperty":
68
- case "UInt32Property":
69
- property.values.forEach(v => Uint32Property_1.Uint32Property.SerializeValue(writer, v));
70
- break;
71
- case "ObjectProperty":
72
- property.values.forEach(v => ObjectProperty_1.ObjectProperty.SerializeValue(writer, v));
73
- break;
74
- case "NameProperty":
75
- property.values.forEach(v => StrProperty_1.StrProperty.SerializeValue(writer, v));
76
- break;
77
- case "StructProperty":
78
- if (property.name === 'mRemovalLocations') {
79
- console.warn('serializing mRemovalLocations, this is still under investigation.');
80
- property.values.forEach(v => vec3_1.vec3.SerializeF(writer, v));
81
- }
82
- else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
83
- property.values.forEach(v => GUID_1.GUID.write(writer, v));
84
- }
85
- else {
86
- throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);
87
- }
88
- break;
89
- default:
90
- throw new Error(`Not Implemented SetProperty of ${property.subtype}.`);
91
- }
92
- }
93
- }
94
- exports.SetProperty = SetProperty;
95
- //# sourceMappingURL=SetProperty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SetProperty.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAE1C,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,+CAA4C;AAC5C,qDAAkD;AAE3C,MAAM,aAAa,GAAG,CAAC,QAAuB,EAAgC,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAA3G,QAAA,aAAa,iBAA8F;AAExH,MAAa,WAAe,SAAQ,6BAAa;IAE7C,YAAmB,OAAe,EAAS,MAAW,EAAE,MAAc,EAAE,KAAa;QACjF,KAAK,CAAC,EAAE,IAA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,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC7D,CAAC;qBAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,IAAI,QAAQ,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;oBACtF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBACxD,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,KAAK,CAAC,0EAA0E,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;gBAChH,CAAC;gBACD,MAAM;YAGV;gBACI,MAAM,IAAI,KAAK,CAAC,kCAAkC,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;QAC/E,CAAC;IACL,CAAC;CACJ;AAnGD,kCAmGC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUID } from '../../structs/GUID';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\nimport { BasicProperty } from './BasicProperty';\nimport { Int32Property } from './Int32Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { Uint32Property } from './Uint32Property';\n\nexport const isSetProperty = (property: BasicProperty): property is SetProperty<any> => property.type === 'SetProperty';\n\nexport class SetProperty<T> extends BasicProperty {\n\n constructor(public subtype: string, public values: T[], ueType: string, index: number) {\n super({ type: 'SetProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any> {\n\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n reader.skipBytes(4); // 0\n const elementCount = reader.readInt32();\n\n let property: SetProperty<any>;\n switch (subtype) {\n\n case \"UInt32Property\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"IntProperty\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Int32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"ObjectProperty\":\n property = new SetProperty<ObjectReference>(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"NameProperty\":\n property = new SetProperty<string>(subtype, new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"StructProperty\":\n\n if (propertyName === 'mRemovalLocations') {\n property = new SetProperty<vec3>(subtype, new Array(elementCount).fill(0).map(() => vec3.ParseF(reader)), ueType, index);\n }\n\n if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n property = new SetProperty<GUID>(subtype, new Array(elementCount).fill(0).map(() => GUID.read(reader)), ueType, index);\n } else {\n throw new Error(`Not Implemented SetProperty of StructProperty for property ${propertyName}.`);\n }\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${subtype}.`);\n }\n\n return property!;\n }\n\n public static CalcOverhead(property: SetProperty<any>): number {\n return property.subtype.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: SetProperty<any>): void {\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(0);\n writer.writeInt32(property.values.length);\n\n switch (property.subtype) {\n\n case \"IntProperty\":\n case \"Int32Property\":\n property.values.forEach(v => Int32Property.SerializeValue(writer, v));\n break;\n\n case \"UIntProperty\":\n case \"UInt32Property\":\n property.values.forEach(v => Uint32Property.SerializeValue(writer, v));\n break;\n\n case \"ObjectProperty\":\n property.values.forEach(v => ObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"NameProperty\":\n property.values.forEach(v => StrProperty.SerializeValue(writer, v));\n break;\n\n case \"StructProperty\":\n // outdated i guess\n if (property.name === 'mRemovalLocations') {\n console.warn('serializing mRemovalLocations, this is still under investigation.');\n property.values.forEach(v => vec3.SerializeF(writer, v));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values.forEach(v => GUID.write(writer, v));\n } else {\n throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);\n }\n break;\n\n\n default:\n throw new Error(`Not Implemented SetProperty of ${property.subtype}.`);\n }\n }\n}\n"]}
@@ -1,55 +0,0 @@
1
- import { ObjectReference } from '../../structs/ObjectReference';
2
- import { Transform } from '../../structs/Transform';
3
- import { vec2 } from '../../structs/vec2';
4
- import { vec3 } from '../../structs/vec3';
5
- export type SpecialAnyProperties = EmptySpecialProperties | PowerLineSpecialProperties | PlayerSpecialProperties | ConveyorChainActorSpecialProperties | BuildableSubsystemSpecialProperties;
6
- export type EmptySpecialProperties = {};
7
- export type PowerLineSpecialProperties = {
8
- source: ObjectReference;
9
- target: ObjectReference;
10
- sourceTranslation?: vec3;
11
- targetTranslation?: vec3;
12
- };
13
- export type PlayerSpecialProperties = {
14
- flag: number;
15
- eosData?: string;
16
- steamPlayerData?: string;
17
- };
18
- export type ConveyorItemSpecialProperties = {
19
- position: number;
20
- itemName: string;
21
- };
22
- export type ConveyorChainSegmentSpecialProperties = {
23
- chainActorRef: ObjectReference;
24
- beltRef: ObjectReference;
25
- someCount: number;
26
- unknownUseBytes: number[];
27
- firstItemIndex: number;
28
- lastItemIndex: number;
29
- beltIndexInChain: number;
30
- };
31
- export type ConveyorChainActorSpecialProperties = {
32
- firstBelt: ObjectReference;
33
- lastBelt: ObjectReference;
34
- beltsInChain: ConveyorChainSegmentSpecialProperties[];
35
- unknownInts: [number, number];
36
- firstChainItemIndex: number;
37
- lastChainItemIndex: number;
38
- items: ConveyorItemSpecialProperties[];
39
- };
40
- export type BuildableTypeInstance = {
41
- transform: Transform;
42
- unknownUseNumbers: [vec2, vec3];
43
- swatchSlotTypePath: string;
44
- paintFinishPath: string;
45
- recipeTypePath: string;
46
- patternPath: string;
47
- blueprintProxy: ObjectReference;
48
- };
49
- export type BuildableSubsystemSpecialProperties = {
50
- buildables: {
51
- typePath: string;
52
- instances: BuildableTypeInstance[];
53
- }[];
54
- };
55
- //# sourceMappingURL=SpecialAnyProperties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpecialAnyProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG,0BAA0B,GAAG,uBAAuB,GAAG,mCAAmC,GAAG,mCAAmC,CAAC;AAE7L,MAAM,MAAM,sBAAsB,GAAG,EAEpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,eAAe,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAC9C,SAAS,EAAE,eAAe,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,qCAAqC,EAAE,CAAC;IACtD,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,6BAA6B,EAAE,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAC9C,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;KACtC,EAAE,CAAC;CACP,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=SpecialAnyProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpecialAnyProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"","sourcesContent":["import { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\n\n\nexport type SpecialAnyProperties = EmptySpecialProperties | PowerLineSpecialProperties | PlayerSpecialProperties | ConveyorChainActorSpecialProperties | BuildableSubsystemSpecialProperties;\n\nexport type EmptySpecialProperties = {\n\n};\n\nexport type PowerLineSpecialProperties = {\n source: ObjectReference;\n target: ObjectReference;\n sourceTranslation?: vec3;\n targetTranslation?: vec3;\n};\n\nexport type PlayerSpecialProperties = {\n flag: number;\n eosData?: string;\n steamPlayerData?: string;\n};\n\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemName: string;\n};\n\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n someCount: number;\n unknownUseBytes: number[];\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n}\n\nexport type ConveyorChainActorSpecialProperties = {\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n unknownInts: [number, number];\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport type BuildableTypeInstance = {\n transform: Transform;\n unknownUseNumbers: [vec2, vec3];\n swatchSlotTypePath: string;\n paintFinishPath: string;\n recipeTypePath: string;\n patternPath: string;\n blueprintProxy: ObjectReference;\n};\n\nexport type BuildableSubsystemSpecialProperties = {\n buildables: {\n typePath: string;\n instances: BuildableTypeInstance[];\n }[];\n};\n"]}