@etothepii/satisfactory-file-parser 1.1.1 → 2.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 (512) hide show
  1. package/.github/workflows/tests.yml +24 -0
  2. package/CHANGELOG.md +88 -0
  3. package/README.md +6 -80
  4. package/build/index.d.ts +21 -3
  5. package/build/index.d.ts.map +1 -1
  6. package/build/index.js +21 -3
  7. package/build/index.js.map +1 -1
  8. package/build/parser/byte/byte-reader.class.d.ts +1 -1
  9. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  10. package/build/parser/byte/byte-reader.class.js +4 -4
  11. package/build/parser/byte/byte-reader.class.js.map +1 -1
  12. package/build/parser/parser.d.ts +1 -1
  13. package/build/parser/parser.d.ts.map +1 -1
  14. package/build/parser/parser.js +1 -1
  15. package/build/parser/parser.js.map +1 -1
  16. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  17. package/build/parser/satisfactory/save/level.class.js +3 -1
  18. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  19. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +1 -1
  20. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  21. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  22. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +2 -2
  23. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  24. package/build/parser/satisfactory/types/property/PropertiesList.js +6 -6
  25. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  26. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +21 -0
  27. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
  28. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +23 -0
  29. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
  30. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
  31. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
  32. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
  33. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
  34. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
  35. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
  36. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +25 -0
  37. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
  38. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
  39. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
  40. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +25 -0
  41. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
  42. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
  43. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +25 -0
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +25 -0
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +25 -0
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +25 -0
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
  58. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
  59. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
  60. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +25 -0
  61. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
  62. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
  63. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
  64. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +25 -0
  65. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
  66. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
  67. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
  68. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +25 -0
  69. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
  70. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
  71. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
  72. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +25 -0
  73. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
  74. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
  75. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
  76. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +72 -0
  77. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
  78. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
  79. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
  80. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +25 -0
  81. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
  82. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +3 -3
  83. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  84. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +3 -3
  85. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  86. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +3 -3
  87. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  88. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +3 -3
  89. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  90. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +3 -3
  91. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  92. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +3 -3
  93. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  94. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +3 -3
  95. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  96. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +3 -3
  97. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  98. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +3 -3
  99. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  100. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +3 -3
  101. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  102. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +3 -3
  103. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  104. package/build/parser/satisfactory/types/property/generic/Int32Property.js +3 -3
  105. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  106. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +3 -3
  107. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  108. package/build/parser/satisfactory/types/property/generic/Int64Property.js +3 -3
  109. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  110. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +3 -3
  111. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  112. package/build/parser/satisfactory/types/property/generic/Int8Property.js +3 -3
  113. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  114. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +3 -3
  115. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  116. package/build/parser/satisfactory/types/property/generic/MapProperty.js +3 -3
  117. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  118. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +3 -3
  119. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  120. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +3 -3
  121. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
  123. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
  124. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +25 -0
  125. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
  126. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
  127. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
  128. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +25 -0
  129. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
  130. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
  131. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
  132. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
  133. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
  134. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
  135. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
  136. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +25 -0
  137. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
  138. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
  139. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
  140. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +45 -0
  141. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
  142. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
  143. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
  144. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +25 -0
  145. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
  146. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +3 -3
  147. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  148. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +3 -3
  149. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  150. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +3 -3
  151. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  152. package/build/parser/satisfactory/types/property/generic/StrProperty.js +3 -3
  153. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  154. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +4 -4
  155. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  156. package/build/parser/satisfactory/types/property/generic/StructProperty.js +10 -10
  157. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  158. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +3 -3
  159. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  160. package/build/parser/satisfactory/types/property/generic/TextProperty.js +3 -3
  161. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  162. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +3 -3
  163. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  164. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +3 -3
  165. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  166. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +3 -3
  167. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  168. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +3 -3
  169. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  170. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +3 -3
  171. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  172. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +3 -3
  173. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  174. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +1 -1
  175. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
  176. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +1 -1
  177. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
  178. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
  179. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
  180. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  181. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  182. package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
  183. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  184. package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
  185. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  186. package/docs/assets/navigation.js +1 -1
  187. package/docs/assets/search.js +1 -1
  188. package/docs/classes/AbstractBaseProperty.html +5 -4
  189. package/docs/classes/BlueprintConfigReader.html +5 -4
  190. package/docs/classes/BlueprintConfigWriter.html +3 -3
  191. package/docs/classes/BlueprintReader.html +5 -4
  192. package/docs/classes/BlueprintWriter.html +3 -3
  193. package/docs/classes/BoolProperty.html +3 -3
  194. package/docs/classes/ByteProperty.html +3 -3
  195. package/docs/classes/CompressionLibraryError.html +2 -2
  196. package/docs/classes/CorruptSaveError.html +2 -2
  197. package/docs/classes/DoubleProperty.html +3 -3
  198. package/docs/classes/EnumProperty.html +3 -3
  199. package/docs/classes/FloatProperty.html +3 -3
  200. package/docs/classes/Int32Property.html +3 -3
  201. package/docs/classes/Int64Property.html +3 -3
  202. package/docs/classes/Int8Property.html +3 -3
  203. package/docs/classes/MapProperty.html +3 -3
  204. package/docs/classes/ObjectProperty.html +3 -3
  205. package/docs/classes/Parser.html +7 -7
  206. package/docs/classes/ParserError.html +2 -2
  207. package/docs/classes/ReadableStreamParser.html +3 -3
  208. package/docs/classes/SatisfactorySave.html +2 -2
  209. package/docs/classes/SaveComponent.html +2 -2
  210. package/docs/classes/SaveEntity.html +2 -2
  211. package/docs/classes/SaveObject.html +14 -0
  212. package/docs/classes/SaveReader.html +5 -4
  213. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  214. package/docs/classes/SaveStreamWriter.html +2 -2
  215. package/docs/classes/SaveWriter.html +3 -3
  216. package/docs/classes/StrProperty.html +3 -3
  217. package/docs/classes/StructProperty.html +4 -4
  218. package/docs/classes/TextProperty.html +3 -3
  219. package/docs/classes/TimeoutError.html +2 -2
  220. package/docs/classes/Uint32Property.html +3 -3
  221. package/docs/classes/Uint64Property.html +3 -3
  222. package/docs/classes/Uint8Property.html +3 -3
  223. package/docs/classes/UnimplementedError.html +2 -2
  224. package/docs/classes/UnsupportedVersionError.html +2 -2
  225. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
  226. package/docs/functions/ArrayProperty.Parse.html +1 -0
  227. package/docs/functions/ArrayProperty.Serialize.html +1 -0
  228. package/docs/functions/BoolArrayProperty.Parse.html +1 -0
  229. package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
  230. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  231. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  232. package/docs/functions/ByteArrayProperty.Parse.html +1 -0
  233. package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
  234. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  235. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  236. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  237. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  238. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  239. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  240. package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
  241. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
  242. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  243. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  244. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  245. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  246. package/docs/functions/EnumArrayProperty.Parse.html +1 -0
  247. package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
  248. package/docs/functions/FICFrameRange.Parse.html +1 -1
  249. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  250. package/docs/functions/FloatArrayProperty.Parse.html +1 -0
  251. package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
  252. package/docs/functions/GUID.read.html +1 -1
  253. package/docs/functions/GUID.write.html +1 -1
  254. package/docs/functions/GUIDInfo.read.html +1 -1
  255. package/docs/functions/GUIDInfo.write.html +1 -1
  256. package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
  257. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
  258. package/docs/functions/Int32SetProperty.Parse.html +1 -0
  259. package/docs/functions/Int32SetProperty.Serialize.html +1 -0
  260. package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
  261. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
  262. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  263. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  264. package/docs/functions/Level.ReadLevel.html +1 -1
  265. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  266. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  267. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  268. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  269. package/docs/functions/Level.SerializeLevel.html +1 -1
  270. package/docs/functions/MD5Hash.read.html +1 -1
  271. package/docs/functions/MD5Hash.write.html +1 -1
  272. package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
  273. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
  274. package/docs/functions/ObjectReference.read.html +1 -1
  275. package/docs/functions/ObjectReference.write.html +1 -1
  276. package/docs/functions/ObjectSetProperty.Parse.html +1 -0
  277. package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
  278. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  279. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  280. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  281. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  282. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  283. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  284. package/docs/functions/PropertiesList.ParseList.html +1 -1
  285. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  286. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  287. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  288. package/docs/functions/SetProperty.CalcOverhead.html +1 -0
  289. package/docs/functions/SetProperty.Parse.html +1 -0
  290. package/docs/functions/SetProperty.Serialize.html +1 -0
  291. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
  292. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
  293. package/docs/functions/SoftObjectReference.read.html +1 -1
  294. package/docs/functions/SoftObjectReference.write.html +1 -1
  295. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  296. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  297. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  298. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  299. package/docs/functions/StrArrayProperty.Parse.html +1 -0
  300. package/docs/functions/StrArrayProperty.Serialize.html +1 -0
  301. package/docs/functions/StrSetProperty.Parse.html +1 -0
  302. package/docs/functions/StrSetProperty.Serialize.html +1 -0
  303. package/docs/functions/StructArrayProperty.Parse.html +1 -0
  304. package/docs/functions/StructArrayProperty.Serialize.html +1 -0
  305. package/docs/functions/StructSetProperty.Parse.html +1 -0
  306. package/docs/functions/StructSetProperty.Serialize.html +1 -0
  307. package/docs/functions/TextArrayProperty.Parse.html +1 -0
  308. package/docs/functions/TextArrayProperty.Serialize.html +1 -0
  309. package/docs/functions/Transform.Parse.html +1 -1
  310. package/docs/functions/Transform.ParseF.html +1 -1
  311. package/docs/functions/Transform.Serialize.html +1 -1
  312. package/docs/functions/Transform.SerializeF.html +1 -1
  313. package/docs/functions/Uint32SetProperty.Parse.html +1 -0
  314. package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
  315. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  316. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  317. package/docs/functions/col4.ParseBGRA.html +1 -1
  318. package/docs/functions/col4.ParseRGBA.html +1 -1
  319. package/docs/functions/col4.SerializeBGRA.html +1 -1
  320. package/docs/functions/col4.SerializeRGBA.html +1 -1
  321. package/docs/functions/isArrayProperty.html +1 -1
  322. package/docs/functions/isBoolArrayProperty.html +1 -0
  323. package/docs/functions/isBoolProperty.html +1 -1
  324. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  325. package/docs/functions/isByteArrayProperty.html +1 -0
  326. package/docs/functions/isByteProperty.html +1 -1
  327. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  328. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  329. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  330. package/docs/functions/isDoubleArrayProperty.html +1 -0
  331. package/docs/functions/isDoubleProperty.html +1 -1
  332. package/docs/functions/isEmptySpecialProperties.html +1 -1
  333. package/docs/functions/isEnumArrayProperty.html +1 -0
  334. package/docs/functions/isEnumProperty.html +1 -1
  335. package/docs/functions/isFloatArrayProperty.html +1 -0
  336. package/docs/functions/isFloatProperty.html +1 -1
  337. package/docs/functions/isInt32ArrayProperty.html +1 -0
  338. package/docs/functions/isInt32Property.html +1 -1
  339. package/docs/functions/isInt32SetProperty.html +1 -0
  340. package/docs/functions/isInt64ArrayProperty.html +1 -0
  341. package/docs/functions/isInt64Property.html +1 -1
  342. package/docs/functions/isInt8Property.html +1 -1
  343. package/docs/functions/isMapProperty.html +1 -1
  344. package/docs/functions/isObjectArrayProperty.html +1 -0
  345. package/docs/functions/isObjectProperty.html +1 -1
  346. package/docs/functions/isObjectSetProperty.html +1 -0
  347. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  348. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  349. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  350. package/docs/functions/isSaveComponent.html +1 -1
  351. package/docs/functions/isSaveEntity.html +1 -1
  352. package/docs/functions/isSetProperty.html +1 -1
  353. package/docs/functions/isSoftObjectArrayProperty.html +1 -0
  354. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  355. package/docs/functions/isStrArrayProperty.html +1 -0
  356. package/docs/functions/isStrProperty.html +1 -1
  357. package/docs/functions/isStrSetProperty.html +1 -0
  358. package/docs/functions/isStructArrayProperty.html +1 -0
  359. package/docs/functions/isStructProperty.html +1 -1
  360. package/docs/functions/isStructSetProperty.html +1 -0
  361. package/docs/functions/isTextArrayProperty.html +1 -0
  362. package/docs/functions/isTextProperty.html +1 -1
  363. package/docs/functions/isUInt64Property.html +1 -1
  364. package/docs/functions/isUint32Property.html +1 -1
  365. package/docs/functions/isUint32SetProperty.html +1 -0
  366. package/docs/functions/isUint8Property.html +1 -1
  367. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  368. package/docs/functions/vec2.Parse.html +1 -1
  369. package/docs/functions/vec2.ParseF.html +1 -1
  370. package/docs/functions/vec2.Serialize.html +1 -1
  371. package/docs/functions/vec2.SerializeF.html +1 -1
  372. package/docs/functions/vec3.Parse.html +1 -1
  373. package/docs/functions/vec3.ParseF.html +1 -1
  374. package/docs/functions/vec3.ParseInt.html +1 -1
  375. package/docs/functions/vec3.Serialize.html +1 -1
  376. package/docs/functions/vec3.SerializeF.html +1 -1
  377. package/docs/functions/vec3.SerializeInt.html +1 -1
  378. package/docs/functions/vec3.add.html +1 -1
  379. package/docs/functions/vec3.length.html +1 -1
  380. package/docs/functions/vec3.mult.html +1 -1
  381. package/docs/functions/vec3.norm.html +1 -1
  382. package/docs/functions/vec3.sub.html +1 -1
  383. package/docs/functions/vec4.Parse.html +1 -1
  384. package/docs/functions/vec4.ParseF.html +1 -1
  385. package/docs/functions/vec4.Serialize.html +1 -1
  386. package/docs/functions/vec4.SerializeF.html +1 -1
  387. package/docs/hierarchy.html +1 -1
  388. package/docs/index.html +5 -61
  389. package/docs/interfaces/Blueprint.html +2 -2
  390. package/docs/interfaces/BlueprintConfig.html +2 -2
  391. package/docs/interfaces/ModData.html +2 -2
  392. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  393. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  394. package/docs/interfaces/SaveComponentHeader.html +2 -2
  395. package/docs/interfaces/SaveEntityHeader.html +2 -2
  396. package/docs/interfaces/SaveObjectHeader.html +4 -0
  397. package/docs/modules/ArrayProperty.html +5 -0
  398. package/docs/modules/BoolArrayProperty.html +3 -0
  399. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  400. package/docs/modules/ByteArrayProperty.html +3 -0
  401. package/docs/modules/CircuitSpecialProperties.html +1 -1
  402. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  403. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  404. package/docs/modules/DoubleArrayProperty.html +3 -0
  405. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  406. package/docs/modules/EmptySpecialProperties.html +1 -1
  407. package/docs/modules/EnumArrayProperty.html +3 -0
  408. package/docs/modules/FICFrameRange.html +1 -1
  409. package/docs/modules/FloatArrayProperty.html +3 -0
  410. package/docs/modules/GUID.html +1 -1
  411. package/docs/modules/GUIDInfo.html +1 -1
  412. package/docs/modules/Int32ArrayProperty.html +3 -0
  413. package/docs/modules/Int32SetProperty.html +3 -0
  414. package/docs/modules/Int64ArrayProperty.html +3 -0
  415. package/docs/modules/Level.html +1 -1
  416. package/docs/modules/MD5Hash.html +1 -1
  417. package/docs/modules/ObjectArrayProperty.html +3 -0
  418. package/docs/modules/ObjectReference.html +1 -1
  419. package/docs/modules/ObjectSetProperty.html +3 -0
  420. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  421. package/docs/modules/PlayerSpecialProperties.html +1 -1
  422. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  423. package/docs/modules/PropertiesList.html +1 -1
  424. package/docs/modules/SetProperty.html +5 -0
  425. package/docs/modules/SoftObjectArrayProperty.html +3 -0
  426. package/docs/modules/SoftObjectReference.html +1 -1
  427. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  428. package/docs/modules/SpecialProperties.html +1 -1
  429. package/docs/modules/StrArrayProperty.html +3 -0
  430. package/docs/modules/StrSetProperty.html +3 -0
  431. package/docs/modules/StructArrayProperty.html +3 -0
  432. package/docs/modules/StructSetProperty.html +3 -0
  433. package/docs/modules/TextArrayProperty.html +3 -0
  434. package/docs/modules/Transform.html +1 -1
  435. package/docs/modules/Uint32SetProperty.html +3 -0
  436. package/docs/modules/VehicleSpecialProperties.html +1 -1
  437. package/docs/modules/col4.html +1 -1
  438. package/docs/modules/vec2.html +1 -1
  439. package/docs/modules/vec3.html +1 -1
  440. package/docs/modules/vec4.html +1 -1
  441. package/docs/modules.html +56 -5
  442. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
  443. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  444. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  445. package/docs/types/BasicStructPropertyValue.html +1 -1
  446. package/docs/types/BlueprintHeader.html +1 -1
  447. package/docs/types/BoolArrayProperty-1.html +1 -0
  448. package/docs/types/BoxStructPropertyValue.html +1 -1
  449. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  450. package/docs/types/BuildableTypeInstance.html +1 -1
  451. package/docs/types/ByteArrayProperty-1.html +1 -0
  452. package/docs/types/BytePropertyValue.html +1 -1
  453. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  454. package/docs/types/ClientIdentityInfo.html +1 -1
  455. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  456. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  457. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  458. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  459. package/docs/types/DoubleArrayProperty-1.html +1 -0
  460. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  461. package/docs/types/EmptySpecialProperties-1.html +1 -1
  462. package/docs/types/EnumArrayProperty-1.html +1 -0
  463. package/docs/types/FICFrameRange-1.html +1 -1
  464. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  465. package/docs/types/FloatArrayProperty-1.html +1 -0
  466. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  467. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  468. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  469. package/docs/types/GUID-1.html +1 -1
  470. package/docs/types/GUIDInfo-1.html +1 -1
  471. package/docs/types/Int32ArrayProperty-1.html +1 -0
  472. package/docs/types/Int32SetProperty-1.html +1 -0
  473. package/docs/types/Int64ArrayProperty-1.html +1 -0
  474. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  475. package/docs/types/Level-1.html +1 -1
  476. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  477. package/docs/types/MD5Hash-1.html +1 -1
  478. package/docs/types/ObjectArrayProperty-1.html +1 -0
  479. package/docs/types/ObjectReference-1.html +1 -1
  480. package/docs/types/ObjectSetProperty-1.html +1 -0
  481. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  482. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  483. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  484. package/docs/types/PropertiesMap.html +1 -1
  485. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  486. package/docs/types/RoughSaveVersion.html +1 -1
  487. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
  488. package/docs/types/SoftObjectArrayProperty-1.html +1 -0
  489. package/docs/types/SoftObjectReference-1.html +1 -1
  490. package/docs/types/SpecialDroneAction.html +1 -1
  491. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  492. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  493. package/docs/types/StrArrayProperty-1.html +1 -0
  494. package/docs/types/StrSetProperty-1.html +1 -0
  495. package/docs/types/StructArrayProperty-1.html +1 -0
  496. package/docs/types/StructSetProperty-1.html +1 -0
  497. package/docs/types/TextArrayProperty-1.html +1 -0
  498. package/docs/types/TextPropertyValue.html +1 -1
  499. package/docs/types/Transform-1.html +1 -1
  500. package/docs/types/Uint32SetProperty-1.html +1 -0
  501. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  502. package/docs/types/col4-1.html +1 -1
  503. package/docs/types/vec2-1.html +1 -1
  504. package/docs/types/vec3-1.html +1 -1
  505. package/docs/types/vec4-1.html +1 -1
  506. package/docs/variables/EDIT.html +1 -1
  507. package/package.json +2 -2
  508. package/LICENSE +0 -21
  509. package/docs/classes/AbstractProperty.html +0 -4
  510. package/docs/classes/ArrayProperty.html +0 -13
  511. package/docs/classes/BasicProperty.html +0 -7
  512. package/docs/classes/SetProperty.html +0 -12
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AAErD,sDAAmD;AAE5C,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAmC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAAhJ,QAAA,qBAAqB,yBAA2H;AAS7J,IAAiB,mBAAmB,CA+EnC;AA/ED,WAAiB,mBAAmB;IAEnB,yBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAuB,EAAE;QAE3I,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEpC,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEtC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEnC,MAAM,iBAAiB,GAAmC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC;QACpI,IAAI,OAA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nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StructProperty } from '../StructProperty';\n\nexport const isStructArrayProperty = (property: any): property is StructArrayProperty => !Array.isArray(property) && property.type === 'StructArrayProperty';\n\nexport type StructArrayProperty = AbstractBaseProperty & {\n type: 'StructArrayProperty';\n subtype: string;\n values: StructProperty[];\n structValueFields: ArrayPropertyStructValueFields;\n};\n\nexport namespace StructArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StructArrayProperty => {\n\n const name = reader.readString(); // Same as currentProperty.name\n const allUEType = reader.readString(); // StructProperty\n\n const binarySize = reader.readInt32(); // structureSize\n const allIndex = reader.readInt32(); // Since ArrayProperty itself has an index already, this was never observed to be anything else than 0.\n\n const allStructType = reader.readString();\n const allGuid = GUIDInfo.read(reader);\n\n const allUnk1 = reader.readInt32();\n const allUnk2 = reader.readInt32();\n const allUnk3 = reader.readInt32();\n const allUnk4 = reader.readInt32();\n\n const structValueFields: ArrayPropertyStructValueFields = { allStructType, allIndex: allIndex > 0 ? allIndex : undefined, allGuid };\n if (allUnk1 !== 0) {\n structValueFields.allUnk1 = allUnk1;\n }\n if (allUnk2 !== 0) {\n structValueFields.allUnk2 = allUnk2;\n }\n if (allUnk3 !== 0) {\n structValueFields.allUnk3 = allUnk3;\n }\n if (allUnk4 !== 0) {\n structValueFields.allUnk4 = allUnk4;\n }\n\n\n const before = reader.getBufferPosition();\n const values = new Array(elementCount).fill(0).map(() => {\n\n const struct = new StructProperty(allStructType, allUEType, 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 return {\n type: 'StructArrayProperty',\n index,\n ueType,\n subtype,\n values,\n structValueFields,\n guidInfo: undefined,\n name: ''\n } satisfies StructArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StructArrayProperty): void => {\n writer.writeString(property.name);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex ?? 0);\n\n writer.writeString(property.structValueFields!.allStructType);\n GUIDInfo.write(writer, 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.writeInt32(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 }\n}\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex?: number;\n allGuid: GUIDInfo;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
2
+ import { ByteWriter } from '../../../../../byte/byte-writer.class';
3
+ import { AbstractBaseProperty } from '../AbstractBaseProperty';
4
+ import { TextPropertyValue } from '../TextProperty';
5
+ export declare const isTextArrayProperty: (property: any) => property is TextArrayProperty;
6
+ export type TextArrayProperty = AbstractBaseProperty & {
7
+ type: 'TextArrayProperty';
8
+ subtype: string;
9
+ values: TextPropertyValue[];
10
+ };
11
+ export declare namespace TextArrayProperty {
12
+ const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => TextArrayProperty;
13
+ const Serialize: (writer: ByteWriter, property: TextArrayProperty) => void;
14
+ }
15
+ //# sourceMappingURL=TextArrayProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAElE,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,iBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextArrayProperty = exports.isTextArrayProperty = void 0;
4
+ const TextProperty_1 = require("../TextProperty");
5
+ const isTextArrayProperty = (property) => !Array.isArray(property) && property.type === 'TextArrayProperty';
6
+ exports.isTextArrayProperty = isTextArrayProperty;
7
+ var TextArrayProperty;
8
+ (function (TextArrayProperty) {
9
+ TextArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
10
+ const values = new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader));
11
+ return {
12
+ type: 'TextArrayProperty',
13
+ index,
14
+ ueType,
15
+ subtype,
16
+ values,
17
+ guidInfo: undefined,
18
+ name: ''
19
+ };
20
+ };
21
+ TextArrayProperty.Serialize = (writer, property) => {
22
+ property.values.forEach(value => TextProperty_1.TextProperty.SerializeValue(writer, value));
23
+ };
24
+ })(TextArrayProperty || (exports.TextArrayProperty = TextArrayProperty = {}));
25
+ //# sourceMappingURL=TextArrayProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":";;;AAGA,kDAAkE;AAE3D,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAkBjC;AAlBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACzI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,2BAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACzF,OAAO;YACH,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACiB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC,CAAA;AACL,CAAC,EAlBgB,iBAAiB,iCAAjB,iBAAiB,QAkBjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { TextProperty, TextPropertyValue } from '../TextProperty';\n\nexport const isTextArrayProperty = (property: any): property is TextArrayProperty => !Array.isArray(property) && property.type === 'TextArrayProperty';\n\nexport type TextArrayProperty = AbstractBaseProperty & {\n type: 'TextArrayProperty';\n subtype: string;\n values: TextPropertyValue[];\n};\n\nexport namespace TextArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): TextArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader));\n return {\n type: 'TextArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies TextArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: TextArrayProperty): void => {\n property.values.forEach(value => TextProperty.SerializeValue(writer, value));\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isBoolProperty: (property: BasicProperty) => property is BoolProperty;
6
- export declare class BoolProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isBoolProperty: (property: any) => property is BoolProperty;
6
+ export declare class BoolProperty extends AbstractBaseProperty {
7
7
  value: boolean;
8
8
  constructor(value: boolean, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): BoolProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"BoolProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":"AAAA,OAAO,E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,OAAO,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAM9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO;WAI1C,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;CAGzE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BoolProperty = exports.isBoolProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isBoolProperty = (property) => property.type === 'BoolProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
7
7
  exports.isBoolProperty = isBoolProperty;
8
- class BoolProperty extends BasicProperty_1.BasicProperty {
8
+ class BoolProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'BoolProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'BoolProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAc,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAS;IAEjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAc;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isBoolProperty = (property: BasicProperty): property is BoolProperty => property.type === 'BoolProperty';\n\nexport class BoolProperty extends BasicProperty {\n\n constructor(public value: boolean, ueType: string = 'BoolProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'BoolProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty {\n const value = BoolProperty.ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n return new BoolProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): boolean {\n return reader.readByte() > 0;\n }\n\n public static CalcOverhead(property: BoolProperty): number {\n return 1 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: BoolProperty): void {\n BoolProperty.SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n public static SerializeValue(writer: ByteWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
1
+ {"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAc,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAS;IAEjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAc;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isBoolProperty = (property: any): property is BoolProperty => !Array.isArray(property) && property.type === 'BoolProperty';\n\nexport class BoolProperty extends AbstractBaseProperty {\n\n constructor(public value: boolean, ueType: string = 'BoolProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'BoolProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty {\n const value = BoolProperty.ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n return new BoolProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): boolean {\n return reader.readByte() > 0;\n }\n\n public static CalcOverhead(property: BoolProperty): number {\n return 1 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: BoolProperty): void {\n BoolProperty.SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n public static SerializeValue(writer: ByteWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isByteProperty: (property: BasicProperty) => property is ByteProperty;
6
- export declare class ByteProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isByteProperty: (property: any) => property is ByteProperty;
6
+ export declare class ByteProperty extends AbstractBaseProperty {
7
7
  value: BytePropertyValue;
8
8
  constructor(value: BytePropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): ByteProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,Y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AE,KAAK,GAAE,MAAU,GAAG,YAAY;WAwB9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAY3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ByteProperty = exports.isByteProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isByteProperty = (property) => property.type === 'ByteProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isByteProperty = (property) => !Array.isArray(property) && property.type === 'ByteProperty';
7
7
  exports.isByteProperty = isByteProperty;
8
- class ByteProperty extends BasicProperty_1.BasicProperty {
8
+ class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'ByteProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'ByteProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAwB,EAAE,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AAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACxE,CAAC;aACI,CAAC;YACF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AArDD,oCAqDC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isByteProperty = (property: BasicProperty): property is ByteProperty => property.type === 'ByteProperty';\n\nexport class ByteProperty extends BasicProperty {\n\n constructor(public value: BytePropertyValue, ueType: string = 'ByteProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ByteProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ByteProperty.ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n const property = new ByteProperty(value, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readByte();\n }\n\n public static CalcOverhead(property: ByteProperty): number {\n return property.value.type.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ByteProperty): void {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n ByteProperty.SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
1
+ {"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAwB,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC3H,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAmB;IAE3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QAEzE,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAGvC,IAAI,KAAK,CAAC;QACV,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YAClB,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC;aACxC,CAAC;QACN,CAAC;aACI,CAAC;YACF,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE;aAC7B,CAAC;QACN,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAClE,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACxE,CAAC;aACI,CAAC;YACF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AArDD,oCAqDC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isByteProperty = (property: any): property is ByteProperty => !Array.isArray(property) && property.type === 'ByteProperty';\n\nexport class ByteProperty extends AbstractBaseProperty {\n\n constructor(public value: BytePropertyValue, ueType: string = 'ByteProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ByteProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ByteProperty.ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n const property = new ByteProperty(value, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readByte();\n }\n\n public static CalcOverhead(property: ByteProperty): number {\n return property.value.type.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ByteProperty): void {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n ByteProperty.SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isDoubleProperty: (property: BasicProperty) => property is DoubleProperty;
6
- export declare class DoubleProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
6
+ export declare class DoubleProperty extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): DoubleProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OA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Ab,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIxG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,cAAc;WAMhF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAK7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DoubleProperty = exports.isDoubleProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isDoubleProperty = (property) => property.type === 'DoubleProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
7
7
  exports.isDoubleProperty = isDoubleProperty;
8
- class DoubleProperty extends BasicProperty_1.BasicProperty {
8
+ class DoubleProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'DoubleProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'DoubleProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAGzC,MAAM,gBAAgB,GAAG,CAAC,QAAuB,EAA8B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAA/G,QAAA,gBAAgB,oBAA+F;AAE5H,MAAa,cAAe,SAAQ,6BAAa;IAE7C,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\n\nexport const isDoubleProperty = (property: BasicProperty): property is DoubleProperty => property.type === 'DoubleProperty';\n\nexport class DoubleProperty extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'DoubleProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'DoubleProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = DoubleProperty.ReadValue(reader);\n return new DoubleProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readDouble();\n }\n\n public static CalcOverhead(property: DoubleProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: DoubleProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n DoubleProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}
1
+ {"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAE9I,MAAa,cAAe,SAAQ,2CAAoB;IAEpD,YAAmB,KAAa,EAAE,SAAiB,gBAAgB,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAClH,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD5C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAwB;QAC/C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAwB;QAChE,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isDoubleProperty = (property: any): property is DoubleProperty => !Array.isArray(property) && property.type === 'DoubleProperty';\n\nexport class DoubleProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'DoubleProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'DoubleProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = DoubleProperty.ReadValue(reader);\n return new DoubleProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readDouble();\n }\n\n public static CalcOverhead(property: DoubleProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: DoubleProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n DoubleProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isEnumProperty: (property: BasicProperty) => property is EnumProperty;
6
- export declare class EnumProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isEnumProperty: (property: any) => property is EnumProperty;
6
+ export declare class EnumProperty extends AbstractBaseProperty {
7
7
  value: {
8
8
  name: string;
9
9
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa,SAAQ,aAAa;IAExB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE;gBAAvC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,E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MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAM3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnumProperty = exports.isEnumProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isEnumProperty = (property) => property.type === 'EnumProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isEnumProperty = (property) => !Array.isArray(property) && property.type === 'EnumProperty';
7
7
  exports.isEnumProperty = isEnumProperty;
8
- class EnumProperty extends BasicProperty_1.BasicProperty {
8
+ class EnumProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'EnumProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'EnumProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAuC,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC1I,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAkC;IAE1D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,IAAI,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AAhCD,oCAgCC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isEnumProperty = (property: BasicProperty): property is EnumProperty => property.type === 'EnumProperty';\n\nexport class EnumProperty extends BasicProperty {\n\n constructor(public value: { name: string; value: string; }, ueType: string = 'EnumProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'EnumProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = EnumProperty.ReadValue(reader);\n\n const property = new EnumProperty({ name, value }, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: EnumProperty): number {\n return property.value.name.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: EnumProperty): void {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n EnumProperty.SerializeValue(writer, property.value.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
1
+ {"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAuC,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC1I,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAkC;IAE1D,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,IAAI,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,IAAI,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AAhCD,oCAgCC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isEnumProperty = (property: any): property is EnumProperty => !Array.isArray(property) && property.type === 'EnumProperty';\n\nexport class EnumProperty extends AbstractBaseProperty {\n\n constructor(public value: { name: string; value: string; }, ueType: string = 'EnumProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'EnumProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = EnumProperty.ReadValue(reader);\n\n const property = new EnumProperty({ name, value }, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: EnumProperty): number {\n return property.value.name.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: EnumProperty): void {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n EnumProperty.SerializeValue(writer, property.value.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isFloatProperty: (property: BasicProperty) => property is FloatProperty;
6
- export declare class FloatProperty extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isFloatProperty: (property: any) => property is FloatProperty;
6
+ export declare class FloatProperty extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): FloatProperty;
@@ -1 +1 @@
1
- {"version":3,"file":"FloatProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4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AAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FloatProperty = exports.isFloatProperty = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isFloatProperty = (property) => property.type === 'FloatProperty';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isFloatProperty = (property) => !Array.isArray(property) && property.type === 'FloatProperty';
7
7
  exports.isFloatProperty = isFloatProperty;
8
- class FloatProperty extends BasicProperty_1.BasicProperty {
8
+ class FloatProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'FloatProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'FloatProperty', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,eAAe,GAAG,CAAC,QAAuB,EAA6B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA5G,QAAA,eAAe,mBAA6F;AAEzH,MAAa,aAAc,SAAQ,6BAAa;IAE5C,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isFloatProperty = (property: BasicProperty): property is FloatProperty => property.type === 'FloatProperty';\n\nexport class FloatProperty extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'FloatProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'FloatProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = FloatProperty.ReadValue(reader);\n return new FloatProperty(value, ueType, guidInfo, index);\n }\n\n public static CalcOverhead(property: FloatProperty): number {\n return 1;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readFloat32();\n }\n\n public static Serialize(writer: ByteWriter, property: FloatProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n FloatProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
1
+ {"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9H,QAAA,eAAe,mBAA+G;AAE3I,MAAa,aAAc,SAAQ,2CAAoB;IAEnD,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isFloatProperty = (property: any): property is FloatProperty => !Array.isArray(property) && property.type === 'FloatProperty';\n\nexport class FloatProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'FloatProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'FloatProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = FloatProperty.ReadValue(reader);\n return new FloatProperty(value, ueType, guidInfo, index);\n }\n\n public static CalcOverhead(property: FloatProperty): number {\n return 1;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readFloat32();\n }\n\n public static Serialize(writer: ByteWriter, property: FloatProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n FloatProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isInt32Property: (property: BasicProperty) => property is Int32Property;
6
- export declare class Int32Property extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isInt32Property: (property: any) => property is Int32Property;
6
+ export declare class Int32Property extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): Int32Property;
@@ -1 +1 @@
1
- {"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,aAAc,aAAa,KAAG,QAAQ,IAAI,aAAkD,CAAC;AAEzH,qBAAa,aAAc,SAAQ,aAAa;IAEzB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIrG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
1
+ {"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,qBAAa,aAAc,SAAQ,oBAAoB;IAEhC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIrG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Int32Property = exports.isInt32Property = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isInt32Property = (property) => property.type === 'Int32Property';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isInt32Property = (property) => !Array.isArray(property) && property.type === 'Int32Property';
7
7
  exports.isInt32Property = isInt32Property;
8
- class Int32Property extends BasicProperty_1.BasicProperty {
8
+ class Int32Property extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'IntProperty', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'Int32Property', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"Int32Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,eAAe,GAAG,CAAC,QAAuB,EAA6B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA5G,QAAA,eAAe,mBAA6F;AAEzH,MAAa,aAAc,SAAQ,6BAAa;IAE5C,YAAmB,KAAa,EAAE,SAAiB,aAAa,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC/G,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isInt32Property = (property: BasicProperty): property is Int32Property => property.type === 'Int32Property';\n\nexport class Int32Property extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'IntProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int32Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int32Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int32Property.ReadValue(reader);\n return new Int32Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readInt32();\n }\n\n public static CalcOverhead(property: Int32Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int32Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int32Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeInt32(value);\n }\n}\n"]}
1
+ {"version":3,"file":"Int32Property.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AAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt32Property = (property: any): property is Int32Property => !Array.isArray(property) && property.type === 'Int32Property';\n\nexport class Int32Property extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'IntProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int32Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int32Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int32Property.ReadValue(reader);\n return new Int32Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readInt32();\n }\n\n public static CalcOverhead(property: Int32Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int32Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int32Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeInt32(value);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isInt64Property: (property: BasicProperty) => property is Int64Property;
6
- export declare class Int64Property extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isInt64Property: (property: any) => property is Int64Property;
6
+ export declare class Int64Property extends AbstractBaseProperty {
7
7
  value: string;
8
8
  constructor(value: string, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): Int64Property;
@@ -1 +1 @@
1
- {"version":3,"file":"Int64Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,aAAc,aAAa,KAAG,QAAQ,IAAI,aAAkD,CAAC;AAEzH,qBAAa,aAAc,SAAQ,aAAa;IAEzB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
1
+ {"version":3,"file":"Int64Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,qBAAa,aAAc,SAAQ,oBAAoB;IAEhC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Int64Property = exports.isInt64Property = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isInt64Property = (property) => property.type === 'Int64Property';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isInt64Property = (property) => !Array.isArray(property) && property.type === 'Int64Property';
7
7
  exports.isInt64Property = isInt64Property;
8
- class Int64Property extends BasicProperty_1.BasicProperty {
8
+ class Int64Property extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'Int64Property', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'Int64Property', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"Int64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,m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sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isInt64Property = (property: BasicProperty): property is Int64Property => property.type === 'Int64Property';\n\nexport class Int64Property extends BasicProperty {\n\n constructor(public value: string, ueType: string = 'Int64Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int64Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int64Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int64Property.ReadValue(reader);\n return new Int64Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readInt64().toString();\n }\n\n public static CalcOverhead(property: Int64Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int64Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int64Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeInt64(BigInt(value));\n }\n}\n"]}
1
+ {"version":3,"file":"Int64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9H,QAAA,eAAe,mBAA+G;AAE3I,MAAa,aAAc,SAAQ,2CAAoB;IAEnD,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt64Property = (property: any): property is Int64Property => !Array.isArray(property) && property.type === 'Int64Property';\n\nexport class Int64Property extends AbstractBaseProperty {\n\n constructor(public value: string, ueType: string = 'Int64Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int64Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int64Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int64Property.ReadValue(reader);\n return new Int64Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readInt64().toString();\n }\n\n public static CalcOverhead(property: Int64Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int64Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int64Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeInt64(BigInt(value));\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { GUIDInfo } from '../../structs/GUIDInfo';
4
- import { BasicProperty } from './BasicProperty';
5
- export declare const isInt8Property: (property: BasicProperty) => property is Int8Property;
6
- export declare class Int8Property extends BasicProperty {
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
+ export declare const isInt8Property: (property: any) => property is Int8Property;
6
+ export declare class Int8Property extends AbstractBaseProperty {
7
7
  value: number;
8
8
  constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
9
  static Parse(reader: BinaryReadable, ueType: string, index?: number): Int8Property;
@@ -1 +1 @@
1
- {"version":3,"file":"Int8Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,cAAc,aAAc,aAAa,KAAG,QAAQ,IAAI,YAAgD,CAAC;AAEtH,qBAAa,YAAa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C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Int8Property = exports.isInt8Property = void 0;
4
4
  const GUIDInfo_1 = require("../../structs/GUIDInfo");
5
- const BasicProperty_1 = require("./BasicProperty");
6
- const isInt8Property = (property) => property.type === 'Int8Property';
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
+ const isInt8Property = (property) => !Array.isArray(property) && property.type === 'Int8Property';
7
7
  exports.isInt8Property = isInt8Property;
8
- class Int8Property extends BasicProperty_1.BasicProperty {
8
+ class Int8Property extends AbstractBaseProperty_1.AbstractBaseProperty {
9
9
  constructor(value, ueType = 'Int8Property', guidInfo = undefined, index = 0) {
10
10
  super({ type: 'Int8Property', ueType, guidInfo, index });
11
11
  this.value = value;
@@ -1 +1 @@
1
- {"version":3,"file":"Int8Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,mDAAgD;AAEzC,MAAM,cAAc,GAAG,CAAC,QAAuB,EAA4B,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAAzG,QAAA,cAAc,kBAA2F;AAEtH,MAAa,YAAa,SAAQ,6BAAa;IAE3C,YAAmB,KAAa,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAChH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { BasicProperty } from './BasicProperty';\n\nexport const isInt8Property = (property: BasicProperty): property is Int8Property => property.type === 'Int8Property';\n\nexport class Int8Property extends BasicProperty {\n\n constructor(public value: number, ueType: string = 'Int8Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int8Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int8Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int8Property.ReadValue(reader);\n return new Int8Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readInt8();\n }\n\n public static CalcOverhead(property: Int8Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int8Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int8Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeInt8(value);\n }\n}\n"]}
1
+ {"version":3,"file":"Int8Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int8Property.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAa,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAChH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isInt8Property = (property: any): property is Int8Property => !Array.isArray(property) && property.type === 'Int8Property';\n\nexport class Int8Property extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'Int8Property', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'Int8Property', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): Int8Property {\n const guidInfo = GUIDInfo.read(reader);\n const value = Int8Property.ReadValue(reader);\n return new Int8Property(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readInt8();\n }\n\n public static CalcOverhead(property: Int8Property): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: Int8Property): void {\n GUIDInfo.write(writer, property.guidInfo);\n Int8Property.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeInt8(value);\n }\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
3
3
  import { ObjectReference } from '../../structs/ObjectReference';
4
- import { BasicProperty } from './BasicProperty';
4
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
5
5
  import { GENERIC_STRUCT_PROPERTY_VALUE } from './StructProperty';
6
6
  export type MAP_STRUCT_KEY_PROXY = [number, number, number, number, number, number, number, number, number, number, number, number];
7
7
  export type GENERIC_MAP_KEY_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | MAP_STRUCT_KEY_PROXY;
8
8
  export type GENERIC_MAP_VALUE_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE;
9
- export declare const isMapProperty: (property: BasicProperty) => property is MapProperty;
10
- export declare class MapProperty extends BasicProperty {
9
+ export declare const isMapProperty: (property: any) => property is MapProperty;
10
+ export declare class MapProperty extends AbstractBaseProperty {
11
11
  keyType: string;
12
12
  valueType: string;
13
13
  modeType: number;
@@ -1 +1 @@
1
- {"version":3,"file":"MapProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/MapProperty.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;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOhD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACpI,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BAA6B,GAAG,oBAAoB,CAAC;AAC7H,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BA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AE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACpI,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BAA6B,GAAG,oBAAoB,CAAC;AAC7H,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BAA6B,CAAC;AAExG,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0E,CAAC;AAErI,qBAAa,WAAY,SAAQ,oBAAoB;IAS9B,OAAO,EAAE,MAAM;IAAS,SAAS,EAAE,MAAM;IAPrD,QAAQ,EAAE,MAAM,CAAK;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAM;IACtB,QAAQ,EAAE,MAAM,CAAM;IAEtB,MAAM,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,sBAAsB,CAAC,EAAE,CAAM;gBAE9D,OAAO,EAAE,MAAM,EAAS,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;WAI7E,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;WAwFvJ,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM;WAI3C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI;CA0E3E"}
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MapProperty = exports.isMapProperty = void 0;
4
4
  const DynamicStructPropertyValue_1 = require("../../structs/DynamicStructPropertyValue");
5
- const BasicProperty_1 = require("./BasicProperty");
5
+ const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
6
6
  const ByteProperty_1 = require("./ByteProperty");
7
7
  const EnumProperty_1 = require("./EnumProperty");
8
8
  const Int32Property_1 = require("./Int32Property");
9
9
  const Int64Property_1 = require("./Int64Property");
10
10
  const ObjectProperty_1 = require("./ObjectProperty");
11
11
  const StrProperty_1 = require("./StrProperty");
12
- const isMapProperty = (property) => property.type === 'MapProperty';
12
+ const isMapProperty = (property) => !Array.isArray(property) && property.type === 'MapProperty';
13
13
  exports.isMapProperty = isMapProperty;
14
- class MapProperty extends BasicProperty_1.BasicProperty {
14
+ class MapProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
15
15
  constructor(keyType, valueType, ueType, index) {
16
16
  super({ type: 'MapProperty', ueType, index });
17
17
  this.keyType = keyType;