@etothepii/satisfactory-file-parser 1.1.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/.github/workflows/tests.yml +24 -0
  2. package/CHANGELOG.md +95 -0
  3. package/GUIDE.md +81 -0
  4. package/README.md +96 -125
  5. package/build/index.d.ts +21 -3
  6. package/build/index.d.ts.map +1 -1
  7. package/build/index.js +21 -3
  8. package/build/index.js.map +1 -1
  9. package/build/parser/byte/byte-reader.class.d.ts +1 -1
  10. package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
  11. package/build/parser/byte/byte-reader.class.js +4 -4
  12. package/build/parser/byte/byte-reader.class.js.map +1 -1
  13. package/build/parser/parser.d.ts +1 -1
  14. package/build/parser/parser.d.ts.map +1 -1
  15. package/build/parser/parser.js +1 -1
  16. package/build/parser/parser.js.map +1 -1
  17. package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
  18. package/build/parser/satisfactory/blueprint/blueprint-reader.js +5 -6
  19. package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
  20. package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
  21. package/build/parser/satisfactory/blueprint/blueprint-writer.js +3 -4
  22. package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
  23. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -2
  24. package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
  25. package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
  26. package/build/parser/satisfactory/edit/edit-constants.d.ts +4 -0
  27. package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
  28. package/build/parser/satisfactory/edit/edit-constants.js +4 -0
  29. package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
  30. package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
  31. package/build/parser/satisfactory/save/level.class.js +3 -1
  32. package/build/parser/satisfactory/save/level.class.js.map +1 -1
  33. package/build/parser/satisfactory/types/objects/SaveObject.d.ts +1 -1
  34. package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
  35. package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
  36. package/build/parser/satisfactory/types/property/PropertiesList.d.ts +2 -2
  37. package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
  38. package/build/parser/satisfactory/types/property/PropertiesList.js +6 -6
  39. package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
  40. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +23 -0
  41. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
  42. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +14 -0
  43. package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
  44. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
  45. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
  46. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
  47. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
  48. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
  49. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
  50. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +23 -0
  51. package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
  52. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
  53. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
  54. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +23 -0
  55. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
  56. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
  57. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
  58. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +23 -0
  59. package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
  60. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
  61. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
  62. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +23 -0
  63. package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
  64. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
  65. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
  66. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +23 -0
  67. package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
  68. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
  69. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
  70. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +23 -0
  71. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
  72. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
  73. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
  74. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +23 -0
  75. package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
  76. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
  77. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
  78. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +23 -0
  79. package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
  80. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
  81. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
  82. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +23 -0
  83. package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
  84. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
  85. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
  86. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +23 -0
  87. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
  88. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
  89. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
  90. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +75 -0
  91. package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
  92. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
  93. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
  94. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +23 -0
  95. package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
  96. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +11 -10
  97. package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
  98. package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -20
  99. package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
  100. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +11 -10
  101. package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
  102. package/build/parser/satisfactory/types/property/generic/ByteProperty.js +20 -21
  103. package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
  104. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +11 -10
  105. package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
  106. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +20 -20
  107. package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
  108. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +11 -13
  109. package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
  110. package/build/parser/satisfactory/types/property/generic/EnumProperty.js +20 -21
  111. package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
  112. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +11 -10
  113. package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
  114. package/build/parser/satisfactory/types/property/generic/FloatProperty.js +20 -20
  115. package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
  116. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +11 -10
  117. package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
  118. package/build/parser/satisfactory/types/property/generic/Int32Property.js +20 -20
  119. package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
  120. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +11 -10
  121. package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
  122. package/build/parser/satisfactory/types/property/generic/Int64Property.js +20 -20
  123. package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
  124. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +11 -10
  125. package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
  126. package/build/parser/satisfactory/types/property/generic/Int8Property.js +20 -20
  127. package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
  128. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +9 -7
  129. package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
  130. package/build/parser/satisfactory/types/property/generic/MapProperty.js +24 -22
  131. package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
  132. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +11 -10
  133. package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
  134. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +20 -20
  135. package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
  136. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
  137. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
  138. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +23 -0
  139. package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
  140. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
  141. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
  142. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +23 -0
  143. package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
  144. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
  145. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
  146. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
  147. package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
  148. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
  149. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
  150. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +23 -0
  151. package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
  152. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
  153. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
  154. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +43 -0
  155. package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
  156. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
  157. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
  158. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +23 -0
  159. package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
  160. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +11 -10
  161. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
  162. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +22 -22
  163. package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
  164. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +11 -10
  165. package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
  166. package/build/parser/satisfactory/types/property/generic/StrProperty.js +20 -20
  167. package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
  168. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +11 -10
  169. package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
  170. package/build/parser/satisfactory/types/property/generic/StructProperty.js +27 -25
  171. package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
  172. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +11 -10
  173. package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
  174. package/build/parser/satisfactory/types/property/generic/TextProperty.js +20 -20
  175. package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
  176. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +11 -10
  177. package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
  178. package/build/parser/satisfactory/types/property/generic/Uint32Property.js +20 -20
  179. package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
  180. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +11 -10
  181. package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
  182. package/build/parser/satisfactory/types/property/generic/Uint64Property.js +20 -20
  183. package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
  184. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +11 -10
  185. package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
  186. package/build/parser/satisfactory/types/property/generic/Uint8Property.js +20 -20
  187. package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
  188. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +1 -1
  189. package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
  190. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +1 -1
  191. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
  192. package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
  193. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
  194. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
  195. package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
  196. package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
  197. package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
  198. package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
  199. package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
  200. package/docs/assets/highlight.css +7 -0
  201. package/docs/assets/navigation.js +1 -1
  202. package/docs/assets/search.js +1 -1
  203. package/docs/classes/BlueprintConfigReader.html +5 -4
  204. package/docs/classes/BlueprintConfigWriter.html +3 -3
  205. package/docs/classes/BlueprintReader.html +5 -4
  206. package/docs/classes/BlueprintWriter.html +3 -3
  207. package/docs/classes/CompressionLibraryError.html +2 -2
  208. package/docs/classes/CorruptSaveError.html +2 -2
  209. package/docs/classes/Parser.html +7 -7
  210. package/docs/classes/ParserError.html +2 -2
  211. package/docs/classes/ReadableStreamParser.html +3 -3
  212. package/docs/classes/SatisfactorySave.html +2 -2
  213. package/docs/classes/SaveComponent.html +2 -2
  214. package/docs/classes/SaveEntity.html +2 -2
  215. package/docs/classes/SaveObject.html +14 -0
  216. package/docs/classes/SaveReader.html +5 -4
  217. package/docs/classes/SaveStreamJsonStringifier.html +2 -2
  218. package/docs/classes/SaveStreamWriter.html +2 -2
  219. package/docs/classes/SaveWriter.html +3 -3
  220. package/docs/classes/TimeoutError.html +2 -2
  221. package/docs/classes/UnimplementedError.html +2 -2
  222. package/docs/classes/UnsupportedVersionError.html +2 -2
  223. package/docs/functions/AbstractBaseProperty.Create.html +1 -0
  224. package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
  225. package/docs/functions/ArrayProperty.Parse.html +1 -0
  226. package/docs/functions/ArrayProperty.Serialize.html +1 -0
  227. package/docs/functions/BoolArrayProperty.Parse.html +1 -0
  228. package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
  229. package/docs/functions/BoolProperty.CalcOverhead.html +1 -0
  230. package/docs/functions/BoolProperty.Parse.html +1 -0
  231. package/docs/functions/BoolProperty.ReadValue.html +1 -0
  232. package/docs/functions/BoolProperty.Serialize.html +1 -0
  233. package/docs/functions/BoolProperty.SerializeValue.html +1 -0
  234. package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
  235. package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
  236. package/docs/functions/ByteArrayProperty.Parse.html +1 -0
  237. package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
  238. package/docs/functions/ByteProperty.CalcOverhead.html +1 -0
  239. package/docs/functions/ByteProperty.Parse.html +1 -0
  240. package/docs/functions/ByteProperty.ReadValue.html +1 -0
  241. package/docs/functions/ByteProperty.Serialize.html +1 -0
  242. package/docs/functions/ByteProperty.SerializeValue.html +1 -0
  243. package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
  244. package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
  245. package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
  246. package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
  247. package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
  248. package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
  249. package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
  250. package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
  251. package/docs/functions/DoubleProperty.CalcOverhead.html +1 -0
  252. package/docs/functions/DoubleProperty.Parse.html +1 -0
  253. package/docs/functions/DoubleProperty.ReadValue.html +1 -0
  254. package/docs/functions/DoubleProperty.Serialize.html +1 -0
  255. package/docs/functions/DoubleProperty.SerializeValue.html +1 -0
  256. package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
  257. package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
  258. package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
  259. package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
  260. package/docs/functions/EnumArrayProperty.Parse.html +1 -0
  261. package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
  262. package/docs/functions/EnumProperty.CalcOverhead.html +1 -0
  263. package/docs/functions/EnumProperty.Parse.html +1 -0
  264. package/docs/functions/EnumProperty.ReadValue.html +1 -0
  265. package/docs/functions/EnumProperty.Serialize.html +1 -0
  266. package/docs/functions/EnumProperty.SerializeValue.html +1 -0
  267. package/docs/functions/FICFrameRange.Parse.html +1 -1
  268. package/docs/functions/FICFrameRange.Serialize.html +1 -1
  269. package/docs/functions/FloatArrayProperty.Parse.html +1 -0
  270. package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
  271. package/docs/functions/FloatProperty.CalcOverhead.html +1 -0
  272. package/docs/functions/FloatProperty.Parse.html +1 -0
  273. package/docs/functions/FloatProperty.ReadValue.html +1 -0
  274. package/docs/functions/FloatProperty.Serialize.html +1 -0
  275. package/docs/functions/FloatProperty.SerializeValue.html +1 -0
  276. package/docs/functions/GUID.read.html +1 -1
  277. package/docs/functions/GUID.write.html +1 -1
  278. package/docs/functions/GUIDInfo.read.html +1 -1
  279. package/docs/functions/GUIDInfo.write.html +1 -1
  280. package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
  281. package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
  282. package/docs/functions/Int32Property.CalcOverhead.html +1 -0
  283. package/docs/functions/Int32Property.Parse.html +1 -0
  284. package/docs/functions/Int32Property.ReadValue.html +1 -0
  285. package/docs/functions/Int32Property.Serialize.html +1 -0
  286. package/docs/functions/Int32Property.SerializeValue.html +1 -0
  287. package/docs/functions/Int32SetProperty.Parse.html +1 -0
  288. package/docs/functions/Int32SetProperty.Serialize.html +1 -0
  289. package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
  290. package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
  291. package/docs/functions/Int64Property.CalcOverhead.html +1 -0
  292. package/docs/functions/Int64Property.Parse.html +1 -0
  293. package/docs/functions/Int64Property.ReadValue.html +1 -0
  294. package/docs/functions/Int64Property.Serialize.html +1 -0
  295. package/docs/functions/Int64Property.SerializeValue.html +1 -0
  296. package/docs/functions/Int8Property.CalcOverhead.html +1 -0
  297. package/docs/functions/Int8Property.Parse.html +1 -0
  298. package/docs/functions/Int8Property.ReadValue.html +1 -0
  299. package/docs/functions/Int8Property.Serialize.html +1 -0
  300. package/docs/functions/Int8Property.SerializeValue.html +1 -0
  301. package/docs/functions/Level.ReadAllObjectContents.html +1 -1
  302. package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
  303. package/docs/functions/Level.ReadLevel.html +1 -1
  304. package/docs/functions/Level.ReadNObjectContents.html +1 -1
  305. package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
  306. package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
  307. package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
  308. package/docs/functions/Level.SerializeLevel.html +1 -1
  309. package/docs/functions/MD5Hash.read.html +1 -1
  310. package/docs/functions/MD5Hash.write.html +1 -1
  311. package/docs/functions/MapProperty.CalcOverhead.html +1 -0
  312. package/docs/functions/MapProperty.Parse.html +1 -0
  313. package/docs/functions/MapProperty.Serialize.html +1 -0
  314. package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
  315. package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
  316. package/docs/functions/ObjectProperty.CalcOverhead.html +1 -0
  317. package/docs/functions/ObjectProperty.Parse.html +1 -0
  318. package/docs/functions/ObjectProperty.ReadValue.html +1 -0
  319. package/docs/functions/ObjectProperty.Serialize.html +1 -0
  320. package/docs/functions/ObjectProperty.SerializeValue.html +1 -0
  321. package/docs/functions/ObjectReference.read.html +1 -1
  322. package/docs/functions/ObjectReference.write.html +1 -1
  323. package/docs/functions/ObjectSetProperty.Parse.html +1 -0
  324. package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
  325. package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
  326. package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
  327. package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
  328. package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
  329. package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
  330. package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
  331. package/docs/functions/PropertiesList.ParseList.html +1 -1
  332. package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
  333. package/docs/functions/PropertiesList.SerializeList.html +1 -1
  334. package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
  335. package/docs/functions/SetProperty.CalcOverhead.html +1 -0
  336. package/docs/functions/SetProperty.Parse.html +1 -0
  337. package/docs/functions/SetProperty.Serialize.html +1 -0
  338. package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
  339. package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
  340. package/docs/functions/SoftObjectReference.read.html +1 -1
  341. package/docs/functions/SoftObjectReference.write.html +1 -1
  342. package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
  343. package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
  344. package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
  345. package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
  346. package/docs/functions/StrArrayProperty.Parse.html +1 -0
  347. package/docs/functions/StrArrayProperty.Serialize.html +1 -0
  348. package/docs/functions/StrProperty.CalcOverhead.html +1 -0
  349. package/docs/functions/StrProperty.Parse.html +1 -0
  350. package/docs/functions/StrProperty.ReadValue.html +1 -0
  351. package/docs/functions/StrProperty.Serialize.html +1 -0
  352. package/docs/functions/StrProperty.SerializeValue.html +1 -0
  353. package/docs/functions/StrSetProperty.Parse.html +1 -0
  354. package/docs/functions/StrSetProperty.Serialize.html +1 -0
  355. package/docs/functions/StructArrayProperty.Parse.html +1 -0
  356. package/docs/functions/StructArrayProperty.Serialize.html +1 -0
  357. package/docs/functions/StructProperty.CalcOverhead.html +1 -0
  358. package/docs/functions/StructProperty.Parse.html +1 -0
  359. package/docs/functions/StructProperty.ParseValue.html +1 -0
  360. package/docs/functions/StructProperty.Serialize.html +1 -0
  361. package/docs/functions/StructProperty.SerializeValue.html +1 -0
  362. package/docs/functions/StructSetProperty.Parse.html +1 -0
  363. package/docs/functions/StructSetProperty.Serialize.html +1 -0
  364. package/docs/functions/TextArrayProperty.Parse.html +1 -0
  365. package/docs/functions/TextArrayProperty.Serialize.html +1 -0
  366. package/docs/functions/TextProperty.CalcOverhead.html +1 -0
  367. package/docs/functions/TextProperty.Parse.html +1 -0
  368. package/docs/functions/TextProperty.ReadValue.html +1 -0
  369. package/docs/functions/TextProperty.Serialize.html +1 -0
  370. package/docs/functions/TextProperty.SerializeValue.html +1 -0
  371. package/docs/functions/Transform.Parse.html +1 -1
  372. package/docs/functions/Transform.ParseF.html +1 -1
  373. package/docs/functions/Transform.Serialize.html +1 -1
  374. package/docs/functions/Transform.SerializeF.html +1 -1
  375. package/docs/functions/Uint32Property.CalcOverhead.html +1 -0
  376. package/docs/functions/Uint32Property.Parse.html +1 -0
  377. package/docs/functions/Uint32Property.ReadValue.html +1 -0
  378. package/docs/functions/Uint32Property.Serialize.html +1 -0
  379. package/docs/functions/Uint32Property.SerializeValue.html +1 -0
  380. package/docs/functions/Uint32SetProperty.Parse.html +1 -0
  381. package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
  382. package/docs/functions/Uint64Property.CalcOverhead.html +1 -0
  383. package/docs/functions/Uint64Property.Parse.html +1 -0
  384. package/docs/functions/Uint64Property.ReadValue.html +1 -0
  385. package/docs/functions/Uint64Property.Serialize.html +1 -0
  386. package/docs/functions/Uint64Property.SerializeValue.html +1 -0
  387. package/docs/functions/Uint8Property.CalcOverhead.html +1 -0
  388. package/docs/functions/Uint8Property.Parse.html +1 -0
  389. package/docs/functions/Uint8Property.ReadValue.html +1 -0
  390. package/docs/functions/Uint8Property.Serialize.html +1 -0
  391. package/docs/functions/Uint8Property.SerializeValue.html +1 -0
  392. package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
  393. package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
  394. package/docs/functions/col4.ParseBGRA.html +1 -1
  395. package/docs/functions/col4.ParseRGBA.html +1 -1
  396. package/docs/functions/col4.SerializeBGRA.html +1 -1
  397. package/docs/functions/col4.SerializeRGBA.html +1 -1
  398. package/docs/functions/isArrayProperty.html +1 -1
  399. package/docs/functions/isBoolArrayProperty.html +1 -0
  400. package/docs/functions/isBoolProperty.html +1 -1
  401. package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
  402. package/docs/functions/isByteArrayProperty.html +1 -0
  403. package/docs/functions/isByteProperty.html +1 -1
  404. package/docs/functions/isCircuitSpecialProperties.html +1 -1
  405. package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
  406. package/docs/functions/isConveyorSpecialProperties.html +1 -1
  407. package/docs/functions/isDoubleArrayProperty.html +1 -0
  408. package/docs/functions/isDoubleProperty.html +1 -1
  409. package/docs/functions/isEmptySpecialProperties.html +1 -1
  410. package/docs/functions/isEnumArrayProperty.html +1 -0
  411. package/docs/functions/isEnumProperty.html +1 -1
  412. package/docs/functions/isFloatArrayProperty.html +1 -0
  413. package/docs/functions/isFloatProperty.html +1 -1
  414. package/docs/functions/isInt32ArrayProperty.html +1 -0
  415. package/docs/functions/isInt32Property.html +1 -1
  416. package/docs/functions/isInt32SetProperty.html +1 -0
  417. package/docs/functions/isInt64ArrayProperty.html +1 -0
  418. package/docs/functions/isInt64Property.html +1 -1
  419. package/docs/functions/isInt8Property.html +1 -1
  420. package/docs/functions/isMapProperty.html +1 -1
  421. package/docs/functions/isObjectArrayProperty.html +1 -0
  422. package/docs/functions/isObjectProperty.html +1 -1
  423. package/docs/functions/isObjectSetProperty.html +1 -0
  424. package/docs/functions/isObjectsListSpecialProperties.html +1 -1
  425. package/docs/functions/isPlayerSpecialProperties.html +1 -1
  426. package/docs/functions/isPowerLineSpecialProperties.html +1 -1
  427. package/docs/functions/isSaveComponent.html +1 -1
  428. package/docs/functions/isSaveEntity.html +1 -1
  429. package/docs/functions/isSetProperty.html +1 -1
  430. package/docs/functions/isSoftObjectArrayProperty.html +1 -0
  431. package/docs/functions/isSpecialDroneActionProperties.html +1 -1
  432. package/docs/functions/isStrArrayProperty.html +1 -0
  433. package/docs/functions/isStrProperty.html +1 -1
  434. package/docs/functions/isStrSetProperty.html +1 -0
  435. package/docs/functions/isStructArrayProperty.html +1 -0
  436. package/docs/functions/isStructProperty.html +1 -1
  437. package/docs/functions/isStructSetProperty.html +1 -0
  438. package/docs/functions/isTextArrayProperty.html +1 -0
  439. package/docs/functions/isTextProperty.html +1 -1
  440. package/docs/functions/isUInt64Property.html +1 -1
  441. package/docs/functions/isUint32Property.html +1 -1
  442. package/docs/functions/isUint32SetProperty.html +1 -0
  443. package/docs/functions/isUint8Property.html +1 -1
  444. package/docs/functions/isVehicleSpecialProperties.html +1 -1
  445. package/docs/functions/vec2.Parse.html +1 -1
  446. package/docs/functions/vec2.ParseF.html +1 -1
  447. package/docs/functions/vec2.Serialize.html +1 -1
  448. package/docs/functions/vec2.SerializeF.html +1 -1
  449. package/docs/functions/vec3.Parse.html +1 -1
  450. package/docs/functions/vec3.ParseF.html +1 -1
  451. package/docs/functions/vec3.ParseInt.html +1 -1
  452. package/docs/functions/vec3.Serialize.html +1 -1
  453. package/docs/functions/vec3.SerializeF.html +1 -1
  454. package/docs/functions/vec3.SerializeInt.html +1 -1
  455. package/docs/functions/vec3.add.html +1 -1
  456. package/docs/functions/vec3.length.html +1 -1
  457. package/docs/functions/vec3.mult.html +1 -1
  458. package/docs/functions/vec3.norm.html +1 -1
  459. package/docs/functions/vec3.sub.html +1 -1
  460. package/docs/functions/vec4.Parse.html +1 -1
  461. package/docs/functions/vec4.ParseF.html +1 -1
  462. package/docs/functions/vec4.Serialize.html +1 -1
  463. package/docs/functions/vec4.SerializeF.html +1 -1
  464. package/docs/hierarchy.html +1 -1
  465. package/docs/index.html +26 -87
  466. package/docs/interfaces/Blueprint.html +2 -2
  467. package/docs/interfaces/BlueprintConfig.html +2 -2
  468. package/docs/interfaces/ModData.html +2 -2
  469. package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
  470. package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
  471. package/docs/interfaces/SaveComponentHeader.html +2 -2
  472. package/docs/interfaces/SaveEntityHeader.html +2 -2
  473. package/docs/interfaces/SaveObjectHeader.html +4 -0
  474. package/docs/modules/AbstractBaseProperty.html +2 -0
  475. package/docs/modules/ArrayProperty.html +5 -0
  476. package/docs/modules/BoolArrayProperty.html +3 -0
  477. package/docs/modules/BoolProperty.html +6 -0
  478. package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
  479. package/docs/modules/ByteArrayProperty.html +3 -0
  480. package/docs/modules/ByteProperty.html +6 -0
  481. package/docs/modules/CircuitSpecialProperties.html +1 -1
  482. package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
  483. package/docs/modules/ConveyorSpecialProperties.html +1 -1
  484. package/docs/modules/DoubleArrayProperty.html +3 -0
  485. package/docs/modules/DoubleProperty.html +6 -0
  486. package/docs/modules/DynamicStructPropertyValue.html +1 -1
  487. package/docs/modules/EmptySpecialProperties.html +1 -1
  488. package/docs/modules/EnumArrayProperty.html +3 -0
  489. package/docs/modules/EnumProperty.html +6 -0
  490. package/docs/modules/FICFrameRange.html +1 -1
  491. package/docs/modules/FloatArrayProperty.html +3 -0
  492. package/docs/modules/FloatProperty.html +6 -0
  493. package/docs/modules/GUID.html +1 -1
  494. package/docs/modules/GUIDInfo.html +1 -1
  495. package/docs/modules/Int32ArrayProperty.html +3 -0
  496. package/docs/modules/Int32Property.html +6 -0
  497. package/docs/modules/Int32SetProperty.html +3 -0
  498. package/docs/modules/Int64ArrayProperty.html +3 -0
  499. package/docs/modules/Int64Property.html +6 -0
  500. package/docs/modules/Int8Property.html +6 -0
  501. package/docs/modules/Level.html +1 -1
  502. package/docs/modules/MD5Hash.html +1 -1
  503. package/docs/modules/MapProperty.html +4 -0
  504. package/docs/modules/ObjectArrayProperty.html +3 -0
  505. package/docs/modules/ObjectProperty.html +6 -0
  506. package/docs/modules/ObjectReference.html +1 -1
  507. package/docs/modules/ObjectSetProperty.html +3 -0
  508. package/docs/modules/ObjectsListSpecialProperties.html +1 -1
  509. package/docs/modules/PlayerSpecialProperties.html +1 -1
  510. package/docs/modules/PowerLineSpecialProperties.html +1 -1
  511. package/docs/modules/PropertiesList.html +1 -1
  512. package/docs/modules/SetProperty.html +5 -0
  513. package/docs/modules/SoftObjectArrayProperty.html +3 -0
  514. package/docs/modules/SoftObjectReference.html +1 -1
  515. package/docs/modules/SpecialDroneActionProperties.html +1 -1
  516. package/docs/modules/SpecialProperties.html +1 -1
  517. package/docs/modules/StrArrayProperty.html +3 -0
  518. package/docs/modules/StrProperty.html +6 -0
  519. package/docs/modules/StrSetProperty.html +3 -0
  520. package/docs/modules/StructArrayProperty.html +3 -0
  521. package/docs/modules/StructProperty.html +6 -0
  522. package/docs/modules/StructSetProperty.html +3 -0
  523. package/docs/modules/TextArrayProperty.html +3 -0
  524. package/docs/modules/TextProperty.html +6 -0
  525. package/docs/modules/Transform.html +1 -1
  526. package/docs/modules/Uint32Property.html +6 -0
  527. package/docs/modules/Uint32SetProperty.html +3 -0
  528. package/docs/modules/Uint64Property.html +6 -0
  529. package/docs/modules/Uint8Property.html +6 -0
  530. package/docs/modules/VehicleSpecialProperties.html +1 -1
  531. package/docs/modules/col4.html +1 -1
  532. package/docs/modules/vec2.html +1 -1
  533. package/docs/modules/vec3.html +1 -1
  534. package/docs/modules/vec4.html +1 -1
  535. package/docs/modules.html +92 -24
  536. package/docs/types/AbstractBaseProperty-1.html +1 -0
  537. package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
  538. package/docs/types/ArrayPropertyStructValueFields.html +1 -1
  539. package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
  540. package/docs/types/BasicStructPropertyValue.html +1 -1
  541. package/docs/types/BlueprintHeader.html +1 -1
  542. package/docs/types/BoolArrayProperty-1.html +1 -0
  543. package/docs/types/BoolProperty-1.html +1 -0
  544. package/docs/types/BoxStructPropertyValue.html +1 -1
  545. package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
  546. package/docs/types/BuildableTypeInstance.html +1 -1
  547. package/docs/types/ByteArrayProperty-1.html +1 -0
  548. package/docs/types/ByteProperty-1.html +1 -0
  549. package/docs/types/BytePropertyValue.html +1 -1
  550. package/docs/types/CircuitSpecialProperties-1.html +1 -1
  551. package/docs/types/ClientIdentityInfo.html +1 -1
  552. package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
  553. package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
  554. package/docs/types/ConveyorItemSpecialProperties.html +1 -1
  555. package/docs/types/ConveyorSpecialProperties-1.html +1 -1
  556. package/docs/types/DoubleArrayProperty-1.html +1 -0
  557. package/docs/types/DoubleProperty-1.html +1 -0
  558. package/docs/types/DynamicStructPropertyValue-1.html +1 -1
  559. package/docs/types/EmptySpecialProperties-1.html +1 -1
  560. package/docs/types/EnumArrayProperty-1.html +1 -0
  561. package/docs/types/EnumProperty-1.html +1 -0
  562. package/docs/types/FICFrameRange-1.html +1 -1
  563. package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
  564. package/docs/types/FloatArrayProperty-1.html +1 -0
  565. package/docs/types/FloatProperty-1.html +1 -0
  566. package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
  567. package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
  568. package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
  569. package/docs/types/GUID-1.html +1 -1
  570. package/docs/types/GUIDInfo-1.html +1 -1
  571. package/docs/types/Int32ArrayProperty-1.html +1 -0
  572. package/docs/types/Int32Property-1.html +1 -0
  573. package/docs/types/Int32SetProperty-1.html +1 -0
  574. package/docs/types/Int64ArrayProperty-1.html +1 -0
  575. package/docs/types/Int64Property-1.html +1 -0
  576. package/docs/types/Int8Property-1.html +1 -0
  577. package/docs/types/InventoryItemStructPropertyValue.html +1 -1
  578. package/docs/types/Level-1.html +1 -1
  579. package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
  580. package/docs/types/MD5Hash-1.html +1 -1
  581. package/docs/types/MapProperty-1.html +1 -0
  582. package/docs/types/ObjectArrayProperty-1.html +1 -0
  583. package/docs/types/ObjectProperty-1.html +1 -0
  584. package/docs/types/ObjectReference-1.html +1 -1
  585. package/docs/types/ObjectSetProperty-1.html +1 -0
  586. package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
  587. package/docs/types/PlayerSpecialProperties-1.html +1 -1
  588. package/docs/types/PowerLineSpecialProperties-1.html +1 -1
  589. package/docs/types/PropertiesMap.html +1 -1
  590. package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
  591. package/docs/types/RoughSaveVersion.html +1 -1
  592. package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
  593. package/docs/types/SoftObjectArrayProperty-1.html +1 -0
  594. package/docs/types/SoftObjectReference-1.html +1 -1
  595. package/docs/types/SpecialDroneAction.html +1 -1
  596. package/docs/types/SpecialDroneActionProperties-1.html +1 -1
  597. package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
  598. package/docs/types/StrArrayProperty-1.html +1 -0
  599. package/docs/types/StrProperty-1.html +1 -0
  600. package/docs/types/StrSetProperty-1.html +1 -0
  601. package/docs/types/StructArrayProperty-1.html +1 -0
  602. package/docs/types/StructProperty-1.html +1 -0
  603. package/docs/types/StructSetProperty-1.html +1 -0
  604. package/docs/types/TextArrayProperty-1.html +1 -0
  605. package/docs/types/TextProperty-1.html +1 -0
  606. package/docs/types/TextPropertyValue.html +1 -1
  607. package/docs/types/Transform-1.html +1 -1
  608. package/docs/types/Uint32Property-1.html +1 -0
  609. package/docs/types/Uint32SetProperty-1.html +1 -0
  610. package/docs/types/Uint64Property-1.html +1 -0
  611. package/docs/types/Uint8Property-1.html +1 -0
  612. package/docs/types/VehicleSpecialProperties-1.html +1 -1
  613. package/docs/types/col4-1.html +1 -1
  614. package/docs/types/vec2-1.html +1 -1
  615. package/docs/types/vec3-1.html +1 -1
  616. package/docs/types/vec4-1.html +1 -1
  617. package/docs/variables/EDIT.html +1 -1
  618. package/package.json +3 -3
  619. package/LICENSE +0 -21
  620. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts +0 -23
  621. package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts.map +0 -1
  622. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js +0 -172
  623. package/build/parser/satisfactory/types/property/generic/ArrayProperty.js.map +0 -1
  624. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts +0 -26
  625. package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts.map +0 -1
  626. package/build/parser/satisfactory/types/property/generic/BasicProperty.js +0 -29
  627. package/build/parser/satisfactory/types/property/generic/BasicProperty.js.map +0 -1
  628. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts +0 -13
  629. package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts.map +0 -1
  630. package/build/parser/satisfactory/types/property/generic/SetProperty.js +0 -95
  631. package/build/parser/satisfactory/types/property/generic/SetProperty.js.map +0 -1
  632. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts +0 -55
  633. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts.map +0 -1
  634. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js +0 -3
  635. package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js.map +0 -1
  636. package/docs/classes/AbstractBaseProperty.html +0 -6
  637. package/docs/classes/AbstractProperty.html +0 -4
  638. package/docs/classes/ArrayProperty.html +0 -13
  639. package/docs/classes/BasicProperty.html +0 -7
  640. package/docs/classes/BoolProperty.html +0 -13
  641. package/docs/classes/ByteProperty.html +0 -13
  642. package/docs/classes/DoubleProperty.html +0 -13
  643. package/docs/classes/EnumProperty.html +0 -13
  644. package/docs/classes/FloatProperty.html +0 -13
  645. package/docs/classes/Int32Property.html +0 -13
  646. package/docs/classes/Int64Property.html +0 -13
  647. package/docs/classes/Int8Property.html +0 -13
  648. package/docs/classes/MapProperty.html +0 -17
  649. package/docs/classes/ObjectProperty.html +0 -13
  650. package/docs/classes/SetProperty.html +0 -12
  651. package/docs/classes/StrProperty.html +0 -13
  652. package/docs/classes/StructProperty.html +0 -18
  653. package/docs/classes/TextProperty.html +0 -13
  654. package/docs/classes/Uint32Property.html +0 -13
  655. package/docs/classes/Uint64Property.html +0 -13
  656. package/docs/classes/Uint8Property.html +0 -13
@@ -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,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,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"}
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,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG;IAC/C,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAEpB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,aASjF,CAAA;IAEM,MAAM,YAAY,aAAc,aAAa,KAAG,MAEtD,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,aAAa,KAAG,IAGvE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
@@ -2,32 +2,32 @@
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 {
9
- constructor(value, ueType = 'FloatProperty', guidInfo = undefined, index = 0) {
10
- super({ type: 'FloatProperty', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var FloatProperty;
9
+ (function (FloatProperty) {
10
+ FloatProperty.Parse = (reader, ueType, index = 0) => {
14
11
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
15
12
  const value = FloatProperty.ReadValue(reader);
16
- return new FloatProperty(value, ueType, guidInfo, index);
17
- }
18
- static CalcOverhead(property) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'FloatProperty',
16
+ value,
17
+ };
18
+ };
19
+ FloatProperty.CalcOverhead = (property) => {
19
20
  return 1;
20
- }
21
- static ReadValue(reader) {
21
+ };
22
+ FloatProperty.ReadValue = (reader) => {
22
23
  return reader.readFloat32();
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ FloatProperty.Serialize = (writer, property) => {
25
26
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
26
27
  FloatProperty.SerializeValue(writer, property.value);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ FloatProperty.SerializeValue = (writer, value) => {
29
30
  writer.writeFloat32(value);
30
- }
31
- }
32
- exports.FloatProperty = FloatProperty;
31
+ };
32
+ })(FloatProperty || (exports.FloatProperty = FloatProperty = {}));
33
33
  //# sourceMappingURL=FloatProperty.js.map
@@ -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;AAO3I,IAAiB,aAAa,CA6B7B;AA7BD,WAAiB,aAAa;IAEb,mBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAiB,EAAE;QAC9F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,eAAe;YACrB,KAAK;SACgB,CAAC;IAC9B,CAAC,CAAA;IAEY,0BAAY,GAAG,CAAC,QAAuB,EAAU,EAAE;QAC5D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAkB,EAAE,QAAuB,EAAQ,EAAE;QAC3E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,4BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC,CAAA;AACL,CAAC,EA7BgB,aAAa,6BAAb,aAAa,QA6B7B","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 type FloatProperty = AbstractBaseProperty & {\n type: 'FloatProperty';\n value: number;\n};\n\nexport namespace FloatProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'FloatProperty',\n value,\n } satisfies FloatProperty;\n }\n\n export const CalcOverhead = (property: FloatProperty): number => {\n return 1;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readFloat32();\n }\n\n export const Serialize = (writer: ByteWriter, property: FloatProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeFloat32(value);\n }\n}\n"]}
@@ -1,15 +1,16 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
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 {
3
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
4
+ export declare const isInt32Property: (property: any) => property is Int32Property;
5
+ export type Int32Property = AbstractBaseProperty & {
6
+ type: 'Int32Property';
7
7
  value: number;
8
- constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): Int32Property;
10
- static ReadValue(reader: BinaryReadable): number;
11
- static CalcOverhead(property: Int32Property): number;
12
- static Serialize(writer: ByteWriter, property: Int32Property): void;
13
- static SerializeValue(writer: ByteWriter, value: number): void;
8
+ };
9
+ export declare namespace Int32Property {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => Int32Property;
11
+ const ReadValue: (reader: BinaryReadable) => number;
12
+ const CalcOverhead: (property: Int32Property) => number;
13
+ const Serialize: (writer: ByteWriter, property: Int32Property) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: number) => void;
14
15
  }
15
16
  //# sourceMappingURL=Int32Property.d.ts.map
@@ -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;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG;IAC/C,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAEpB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,aASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,aAAa,KAAG,MAEtD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,aAAa,KAAG,IAGvE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
@@ -2,32 +2,32 @@
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 {
9
- constructor(value, ueType = 'IntProperty', guidInfo = undefined, index = 0) {
10
- super({ type: 'Int32Property', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var Int32Property;
9
+ (function (Int32Property) {
10
+ Int32Property.Parse = (reader, ueType, index = 0) => {
14
11
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
15
12
  const value = Int32Property.ReadValue(reader);
16
- return new Int32Property(value, ueType, guidInfo, index);
17
- }
18
- static ReadValue(reader) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'Int32Property',
16
+ value,
17
+ };
18
+ };
19
+ Int32Property.ReadValue = (reader) => {
19
20
  return reader.readInt32();
20
- }
21
- static CalcOverhead(property) {
21
+ };
22
+ Int32Property.CalcOverhead = (property) => {
22
23
  return 1;
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ Int32Property.Serialize = (writer, property) => {
25
26
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
26
27
  Int32Property.SerializeValue(writer, property.value);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ Int32Property.SerializeValue = (writer, value) => {
29
30
  writer.writeInt32(value);
30
- }
31
- }
32
- exports.Int32Property = Int32Property;
31
+ };
32
+ })(Int32Property || (exports.Int32Property = Int32Property = {}));
33
33
  //# sourceMappingURL=Int32Property.js.map
@@ -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.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.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;AAO3I,IAAiB,aAAa,CA6B7B;AA7BD,WAAiB,aAAa;IAEb,mBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAiB,EAAE;QAC9F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,eAAe;YACrB,KAAK;SACgB,CAAC;IAC9B,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC,CAAA;IAEY,0BAAY,GAAG,CAAC,QAAuB,EAAU,EAAE;QAC5D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAkB,EAAE,QAAuB,EAAQ,EAAE;QAC3E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,4BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAA;AACL,CAAC,EA7BgB,aAAa,6BAAb,aAAa,QA6B7B","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 type Int32Property = AbstractBaseProperty & {\n type: 'Int32Property';\n value: number;\n};\n\nexport namespace Int32Property {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): Int32Property => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'Int32Property',\n value,\n } satisfies Int32Property;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readInt32();\n }\n\n export const CalcOverhead = (property: Int32Property): number => {\n return 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: Int32Property): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeInt32(value);\n }\n}\n"]}
@@ -1,15 +1,16 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
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 {
3
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
4
+ export declare const isInt64Property: (property: any) => property is Int64Property;
5
+ export type Int64Property = AbstractBaseProperty & {
6
+ type: 'Int64Property';
7
7
  value: string;
8
- constructor(value: string, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): Int64Property;
10
- static ReadValue(reader: BinaryReadable): string;
11
- static CalcOverhead(property: Int64Property): number;
12
- static Serialize(writer: ByteWriter, property: Int64Property): void;
13
- static SerializeValue(writer: ByteWriter, value: string): void;
8
+ };
9
+ export declare namespace Int64Property {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => Int64Property;
11
+ const ReadValue: (reader: BinaryReadable) => string;
12
+ const CalcOverhead: (property: Int64Property) => number;
13
+ const Serialize: (writer: ByteWriter, property: Int64Property) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: string) => void;
14
15
  }
15
16
  //# sourceMappingURL=Int64Property.d.ts.map
@@ -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;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG;IAC/C,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAEpB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,aASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,aAAa,KAAG,MAEtD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,aAAa,KAAG,IAGvE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
@@ -2,32 +2,32 @@
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 {
9
- constructor(value, ueType = 'Int64Property', guidInfo = undefined, index = 0) {
10
- super({ type: 'Int64Property', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var Int64Property;
9
+ (function (Int64Property) {
10
+ Int64Property.Parse = (reader, ueType, index = 0) => {
14
11
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
15
12
  const value = Int64Property.ReadValue(reader);
16
- return new Int64Property(value, ueType, guidInfo, index);
17
- }
18
- static ReadValue(reader) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'Int64Property',
16
+ value,
17
+ };
18
+ };
19
+ Int64Property.ReadValue = (reader) => {
19
20
  return reader.readInt64().toString();
20
- }
21
- static CalcOverhead(property) {
21
+ };
22
+ Int64Property.CalcOverhead = (property) => {
22
23
  return 1;
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ Int64Property.Serialize = (writer, property) => {
25
26
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
26
27
  Int64Property.SerializeValue(writer, property.value);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ Int64Property.SerializeValue = (writer, value) => {
29
30
  writer.writeInt64(BigInt(value));
30
- }
31
- }
32
- exports.Int64Property = Int64Property;
31
+ };
32
+ })(Int64Property || (exports.Int64Property = Int64Property = {}));
33
33
  //# sourceMappingURL=Int64Property.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Int64Property.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int64Property.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,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 { 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;AAO3I,IAAiB,aAAa,CA6B7B;AA7BD,WAAiB,aAAa;IAEb,mBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAiB,EAAE;QAC9F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,cAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,eAAe;YACrB,KAAK;SACgB,CAAC;IAC9B,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC,CAAA;IAEY,0BAAY,GAAG,CAAC,QAAuB,EAAU,EAAE;QAC5D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,uBAAS,GAAG,CAAC,MAAkB,EAAE,QAAuB,EAAQ,EAAE;QAC3E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,cAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,4BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrC,CAAC,CAAA;AACL,CAAC,EA7BgB,aAAa,6BAAb,aAAa,QA6B7B","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 type Int64Property = AbstractBaseProperty & {\n type: 'Int64Property';\n value: string;\n};\n\nexport namespace Int64Property {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): Int64Property => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'Int64Property',\n value,\n } satisfies Int64Property;\n }\n\n export const ReadValue = (reader: BinaryReadable): string => {\n return reader.readInt64().toString();\n }\n\n export const CalcOverhead = (property: Int64Property): number => {\n return 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: Int64Property): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: string): void => {\n writer.writeInt64(BigInt(value));\n }\n}\n"]}
@@ -1,15 +1,16 @@
1
1
  import { BinaryReadable } from '../../../../byte/binary-readable.interface';
2
2
  import { ByteWriter } from '../../../../byte/byte-writer.class';
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 {
3
+ import { AbstractBaseProperty } from './AbstractBaseProperty';
4
+ export declare const isInt8Property: (property: any) => property is Int8Property;
5
+ export type Int8Property = AbstractBaseProperty & {
6
+ type: 'Int8Property';
7
7
  value: number;
8
- constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
9
- static Parse(reader: BinaryReadable, ueType: string, index?: number): Int8Property;
10
- static ReadValue(reader: BinaryReadable): number;
11
- static CalcOverhead(property: Int8Property): number;
12
- static Serialize(writer: ByteWriter, property: Int8Property): void;
13
- static SerializeValue(writer: ByteWriter, value: number): void;
8
+ };
9
+ export declare namespace Int8Property {
10
+ const Parse: (reader: BinaryReadable, ueType: string, index?: number) => Int8Property;
11
+ const ReadValue: (reader: BinaryReadable) => number;
12
+ const CalcOverhead: (property: Int8Property) => number;
13
+ const Serialize: (writer: ByteWriter, property: Int8Property) => void;
14
+ const SerializeValue: (writer: ByteWriter, value: number) => void;
14
15
  }
15
16
  //# sourceMappingURL=Int8Property.d.ts.map
@@ -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,SAAQ,aAAa;IAExB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAItG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAM9E,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;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
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;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,YASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAGtE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
@@ -2,32 +2,32 @@
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 {
9
- constructor(value, ueType = 'Int8Property', guidInfo = undefined, index = 0) {
10
- super({ type: 'Int8Property', ueType, guidInfo, index });
11
- this.value = value;
12
- }
13
- static Parse(reader, ueType, index = 0) {
8
+ var Int8Property;
9
+ (function (Int8Property) {
10
+ Int8Property.Parse = (reader, ueType, index = 0) => {
14
11
  const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
15
12
  const value = Int8Property.ReadValue(reader);
16
- return new Int8Property(value, ueType, guidInfo, index);
17
- }
18
- static ReadValue(reader) {
13
+ return {
14
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
15
+ type: 'Int8Property',
16
+ value,
17
+ };
18
+ };
19
+ Int8Property.ReadValue = (reader) => {
19
20
  return reader.readInt8();
20
- }
21
- static CalcOverhead(property) {
21
+ };
22
+ Int8Property.CalcOverhead = (property) => {
22
23
  return 1;
23
- }
24
- static Serialize(writer, property) {
24
+ };
25
+ Int8Property.Serialize = (writer, property) => {
25
26
  GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
26
27
  Int8Property.SerializeValue(writer, property.value);
27
- }
28
- static SerializeValue(writer, value) {
28
+ };
29
+ Int8Property.SerializeValue = (writer, value) => {
29
30
  writer.writeInt8(value);
30
- }
31
- }
32
- exports.Int8Property = Int8Property;
31
+ };
32
+ })(Int8Property || (exports.Int8Property = Int8Property = {}));
33
33
  //# sourceMappingURL=Int8Property.js.map
@@ -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;AAOxI,IAAiB,YAAY,CA6B5B;AA7BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC7F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,cAAc;YACpB,KAAK;SACe,CAAC;IAC7B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAU,EAAE;QAC3D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAkB,EAAE,QAAsB,EAAQ,EAAE;QAC1E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAA;AACL,CAAC,EA7BgB,YAAY,4BAAZ,YAAY,QA6B5B","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 type Int8Property = AbstractBaseProperty & {\n type: 'Int8Property';\n value: number;\n};\n\nexport namespace Int8Property {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): Int8Property => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'Int8Property',\n value,\n } satisfies Int8Property;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readInt8();\n }\n\n export const CalcOverhead = (property: Int8Property): number => {\n return 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: Int8Property): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeInt8(value);\n }\n}\n"]}
@@ -1,13 +1,14 @@
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 type MapProperty = AbstractBaseProperty & {
11
+ type: 'MapProperty';
11
12
  keyType: string;
12
13
  valueType: string;
13
14
  modeType: number;
@@ -15,9 +16,10 @@ export declare class MapProperty extends BasicProperty {
15
16
  modeUnk2: string;
16
17
  modeUnk3: string;
17
18
  values: [key: GENERIC_MAP_KEY_TYPE, value: GENERIC_MAP_VALUE_TYPE][];
18
- constructor(keyType: string, valueType: string, ueType: string, index: number);
19
- static Parse(reader: BinaryReadable, propertyName: string, buildVersion: number, size: number, ueType?: string, index?: number): MapProperty;
20
- static CalcOverhead(property: MapProperty): number;
21
- static Serialize(writer: ByteWriter, property: MapProperty): void;
19
+ };
20
+ export declare namespace MapProperty {
21
+ const Parse: (reader: BinaryReadable, propertyName: string, buildVersion: number, size: number, ueType?: string, index?: number) => MapProperty;
22
+ const CalcOverhead: (property: MapProperty) => number;
23
+ const Serialize: (writer: ByteWriter, property: MapProperty) => void;
22
24
  }
23
25
  //# sourceMappingURL=MapProperty.d.ts.map
@@ -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,6BAA6B,CAAC;AAExG,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,QAAQ,IAAI,WAA8C,CAAC;AAEnH,qBAAa,WAAY,SAAQ,aAAa;IASvB,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"}
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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAO9D,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,6BAA6B,CAAC;AAExG,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0E,CAAC;AAErI,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG;IAC7C,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,sBAAsB,CAAC,EAAE,CAAC;CACxE,CAAC;AAGF,yBAAiB,WAAW,CAAC;IAElB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,gBAAgB,MAAM,QAAQ,MAAM,WAAU,MAAM,UAAyB,MAAM,KAAO,WA8F3J,CAAA;IAEM,MAAM,YAAY,aAAc,WAAW,KAAG,MAEpD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,WAAW,KAAG,IAyErE,CAAA;CACJ"}
@@ -2,29 +2,32 @@
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 {
15
- constructor(keyType, valueType, ueType, index) {
16
- super({ type: 'MapProperty', ueType, index });
17
- this.keyType = keyType;
18
- this.valueType = valueType;
19
- this.modeType = 0;
20
- this.modeUnk2 = '';
21
- this.modeUnk3 = '';
22
- this.values = [];
23
- }
24
- static Parse(reader, propertyName, buildVersion, size, ueType = 'MapProperty', index = 0) {
14
+ var MapProperty;
15
+ (function (MapProperty) {
16
+ MapProperty.Parse = (reader, propertyName, buildVersion, size, ueType = 'MapProperty', index = 0) => {
25
17
  const start = reader.getBufferPosition();
26
- const property = new MapProperty(reader.readString(), reader.readString(), ueType, index);
27
- const unk = reader.readByte();
18
+ const property = {
19
+ ...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
20
+ type: 'MapProperty',
21
+ keyType: reader.readString(),
22
+ valueType: reader.readString(),
23
+ guidInfo: undefined,
24
+ modeType: 0,
25
+ values: [],
26
+ modeUnk1: undefined,
27
+ modeUnk2: '',
28
+ modeUnk3: ''
29
+ };
30
+ reader.readByte();
28
31
  property.modeType = reader.readInt32();
29
32
  const elementCount = reader.readInt32();
30
33
  for (let i = 0; i < elementCount; i++) {
@@ -92,11 +95,11 @@ class MapProperty extends BasicProperty_1.BasicProperty {
92
95
  property.values.push([key, value]);
93
96
  }
94
97
  return property;
95
- }
96
- static CalcOverhead(property) {
98
+ };
99
+ MapProperty.CalcOverhead = (property) => {
97
100
  return property.keyType.length + 5 + property.valueType.length + 5 + 1;
98
- }
99
- static Serialize(writer, property) {
101
+ };
102
+ MapProperty.Serialize = (writer, property) => {
100
103
  writer.writeString(property.keyType);
101
104
  writer.writeString(property.valueType);
102
105
  writer.writeByte(0);
@@ -163,7 +166,6 @@ class MapProperty extends BasicProperty_1.BasicProperty {
163
166
  throw new Error(`not implemented map value type ${property.valueType}`);
164
167
  }
165
168
  }
166
- }
167
- }
168
- exports.MapProperty = MapProperty;
169
+ };
170
+ })(MapProperty || (exports.MapProperty = MapProperty = {}));
169
171
  //# sourceMappingURL=MapProperty.js.map