@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.
- package/.github/workflows/tests.yml +24 -0
- package/CHANGELOG.md +95 -0
- package/GUIDE.md +81 -0
- package/README.md +96 -125
- package/build/index.d.ts +21 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +21 -3
- package/build/index.js.map +1 -1
- package/build/parser/byte/byte-reader.class.d.ts +1 -1
- package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
- package/build/parser/byte/byte-reader.class.js +4 -4
- package/build/parser/byte/byte-reader.class.js.map +1 -1
- package/build/parser/parser.d.ts +1 -1
- package/build/parser/parser.d.ts.map +1 -1
- package/build/parser/parser.js +1 -1
- package/build/parser/parser.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.js +5 -6
- package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.js +3 -4
- package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -2
- package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
- package/build/parser/satisfactory/edit/edit-constants.d.ts +4 -0
- package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
- package/build/parser/satisfactory/edit/edit-constants.js +4 -0
- package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
- package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
- package/build/parser/satisfactory/save/level.class.js +3 -1
- package/build/parser/satisfactory/save/level.class.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts +2 -2
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +6 -6
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +23 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +14 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +22 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +128 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +26 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +75 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js +20 -21
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +11 -13
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js +20 -21
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +9 -7
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.js +24 -22
- package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +73 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +43 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +23 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +22 -22
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.js +27 -25
- package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js +20 -20
- package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +11 -10
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js +20 -20
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +1 -1
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.js +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BlueprintConfigReader.html +5 -4
- package/docs/classes/BlueprintConfigWriter.html +3 -3
- package/docs/classes/BlueprintReader.html +5 -4
- package/docs/classes/BlueprintWriter.html +3 -3
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/Parser.html +7 -7
- package/docs/classes/ParserError.html +2 -2
- package/docs/classes/ReadableStreamParser.html +3 -3
- package/docs/classes/SatisfactorySave.html +2 -2
- package/docs/classes/SaveComponent.html +2 -2
- package/docs/classes/SaveEntity.html +2 -2
- package/docs/classes/SaveObject.html +14 -0
- package/docs/classes/SaveReader.html +5 -4
- package/docs/classes/SaveStreamJsonStringifier.html +2 -2
- package/docs/classes/SaveStreamWriter.html +2 -2
- package/docs/classes/SaveWriter.html +3 -3
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- package/docs/functions/AbstractBaseProperty.Create.html +1 -0
- package/docs/functions/ArrayProperty.CalcOverhead.html +1 -0
- package/docs/functions/ArrayProperty.Parse.html +1 -0
- package/docs/functions/ArrayProperty.Serialize.html +1 -0
- package/docs/functions/BoolArrayProperty.Parse.html +1 -0
- package/docs/functions/BoolArrayProperty.Serialize.html +1 -0
- package/docs/functions/BoolProperty.CalcOverhead.html +1 -0
- package/docs/functions/BoolProperty.Parse.html +1 -0
- package/docs/functions/BoolProperty.ReadValue.html +1 -0
- package/docs/functions/BoolProperty.Serialize.html +1 -0
- package/docs/functions/BoolProperty.SerializeValue.html +1 -0
- package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
- package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ByteArrayProperty.Parse.html +1 -0
- package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
- package/docs/functions/ByteProperty.CalcOverhead.html +1 -0
- package/docs/functions/ByteProperty.Parse.html +1 -0
- package/docs/functions/ByteProperty.ReadValue.html +1 -0
- package/docs/functions/ByteProperty.Serialize.html +1 -0
- package/docs/functions/ByteProperty.SerializeValue.html +1 -0
- package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
- package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
- package/docs/functions/DoubleArrayProperty.Serialize.html +1 -0
- package/docs/functions/DoubleProperty.CalcOverhead.html +1 -0
- package/docs/functions/DoubleProperty.Parse.html +1 -0
- package/docs/functions/DoubleProperty.ReadValue.html +1 -0
- package/docs/functions/DoubleProperty.Serialize.html +1 -0
- package/docs/functions/DoubleProperty.SerializeValue.html +1 -0
- package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
- package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
- package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
- package/docs/functions/EnumArrayProperty.Parse.html +1 -0
- package/docs/functions/EnumArrayProperty.Serialize.html +1 -0
- package/docs/functions/EnumProperty.CalcOverhead.html +1 -0
- package/docs/functions/EnumProperty.Parse.html +1 -0
- package/docs/functions/EnumProperty.ReadValue.html +1 -0
- package/docs/functions/EnumProperty.Serialize.html +1 -0
- package/docs/functions/EnumProperty.SerializeValue.html +1 -0
- package/docs/functions/FICFrameRange.Parse.html +1 -1
- package/docs/functions/FICFrameRange.Serialize.html +1 -1
- package/docs/functions/FloatArrayProperty.Parse.html +1 -0
- package/docs/functions/FloatArrayProperty.Serialize.html +1 -0
- package/docs/functions/FloatProperty.CalcOverhead.html +1 -0
- package/docs/functions/FloatProperty.Parse.html +1 -0
- package/docs/functions/FloatProperty.ReadValue.html +1 -0
- package/docs/functions/FloatProperty.Serialize.html +1 -0
- package/docs/functions/FloatProperty.SerializeValue.html +1 -0
- package/docs/functions/GUID.read.html +1 -1
- package/docs/functions/GUID.write.html +1 -1
- package/docs/functions/GUIDInfo.read.html +1 -1
- package/docs/functions/GUIDInfo.write.html +1 -1
- package/docs/functions/Int32ArrayProperty.Parse.html +1 -0
- package/docs/functions/Int32ArrayProperty.Serialize.html +1 -0
- package/docs/functions/Int32Property.CalcOverhead.html +1 -0
- package/docs/functions/Int32Property.Parse.html +1 -0
- package/docs/functions/Int32Property.ReadValue.html +1 -0
- package/docs/functions/Int32Property.Serialize.html +1 -0
- package/docs/functions/Int32Property.SerializeValue.html +1 -0
- package/docs/functions/Int32SetProperty.Parse.html +1 -0
- package/docs/functions/Int32SetProperty.Serialize.html +1 -0
- package/docs/functions/Int64ArrayProperty.Parse.html +1 -0
- package/docs/functions/Int64ArrayProperty.Serialize.html +1 -0
- package/docs/functions/Int64Property.CalcOverhead.html +1 -0
- package/docs/functions/Int64Property.Parse.html +1 -0
- package/docs/functions/Int64Property.ReadValue.html +1 -0
- package/docs/functions/Int64Property.Serialize.html +1 -0
- package/docs/functions/Int64Property.SerializeValue.html +1 -0
- package/docs/functions/Int8Property.CalcOverhead.html +1 -0
- package/docs/functions/Int8Property.Parse.html +1 -0
- package/docs/functions/Int8Property.ReadValue.html +1 -0
- package/docs/functions/Int8Property.Serialize.html +1 -0
- package/docs/functions/Int8Property.SerializeValue.html +1 -0
- package/docs/functions/Level.ReadAllObjectContents.html +1 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
- package/docs/functions/Level.ReadLevel.html +1 -1
- package/docs/functions/Level.ReadNObjectContents.html +1 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeLevel.html +1 -1
- package/docs/functions/MD5Hash.read.html +1 -1
- package/docs/functions/MD5Hash.write.html +1 -1
- package/docs/functions/MapProperty.CalcOverhead.html +1 -0
- package/docs/functions/MapProperty.Parse.html +1 -0
- package/docs/functions/MapProperty.Serialize.html +1 -0
- package/docs/functions/ObjectArrayProperty.Parse.html +1 -0
- package/docs/functions/ObjectArrayProperty.Serialize.html +1 -0
- package/docs/functions/ObjectProperty.CalcOverhead.html +1 -0
- package/docs/functions/ObjectProperty.Parse.html +1 -0
- package/docs/functions/ObjectProperty.ReadValue.html +1 -0
- package/docs/functions/ObjectProperty.Serialize.html +1 -0
- package/docs/functions/ObjectProperty.SerializeValue.html +1 -0
- package/docs/functions/ObjectReference.read.html +1 -1
- package/docs/functions/ObjectReference.write.html +1 -1
- package/docs/functions/ObjectSetProperty.Parse.html +1 -0
- package/docs/functions/ObjectSetProperty.Serialize.html +1 -0
- package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PropertiesList.ParseList.html +1 -1
- package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
- package/docs/functions/PropertiesList.SerializeList.html +1 -1
- package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
- package/docs/functions/SetProperty.CalcOverhead.html +1 -0
- package/docs/functions/SetProperty.Parse.html +1 -0
- package/docs/functions/SetProperty.Serialize.html +1 -0
- package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -0
- package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -0
- package/docs/functions/SoftObjectReference.read.html +1 -1
- package/docs/functions/SoftObjectReference.write.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
- package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/StrArrayProperty.Parse.html +1 -0
- package/docs/functions/StrArrayProperty.Serialize.html +1 -0
- package/docs/functions/StrProperty.CalcOverhead.html +1 -0
- package/docs/functions/StrProperty.Parse.html +1 -0
- package/docs/functions/StrProperty.ReadValue.html +1 -0
- package/docs/functions/StrProperty.Serialize.html +1 -0
- package/docs/functions/StrProperty.SerializeValue.html +1 -0
- package/docs/functions/StrSetProperty.Parse.html +1 -0
- package/docs/functions/StrSetProperty.Serialize.html +1 -0
- package/docs/functions/StructArrayProperty.Parse.html +1 -0
- package/docs/functions/StructArrayProperty.Serialize.html +1 -0
- package/docs/functions/StructProperty.CalcOverhead.html +1 -0
- package/docs/functions/StructProperty.Parse.html +1 -0
- package/docs/functions/StructProperty.ParseValue.html +1 -0
- package/docs/functions/StructProperty.Serialize.html +1 -0
- package/docs/functions/StructProperty.SerializeValue.html +1 -0
- package/docs/functions/StructSetProperty.Parse.html +1 -0
- package/docs/functions/StructSetProperty.Serialize.html +1 -0
- package/docs/functions/TextArrayProperty.Parse.html +1 -0
- package/docs/functions/TextArrayProperty.Serialize.html +1 -0
- package/docs/functions/TextProperty.CalcOverhead.html +1 -0
- package/docs/functions/TextProperty.Parse.html +1 -0
- package/docs/functions/TextProperty.ReadValue.html +1 -0
- package/docs/functions/TextProperty.Serialize.html +1 -0
- package/docs/functions/TextProperty.SerializeValue.html +1 -0
- package/docs/functions/Transform.Parse.html +1 -1
- package/docs/functions/Transform.ParseF.html +1 -1
- package/docs/functions/Transform.Serialize.html +1 -1
- package/docs/functions/Transform.SerializeF.html +1 -1
- package/docs/functions/Uint32Property.CalcOverhead.html +1 -0
- package/docs/functions/Uint32Property.Parse.html +1 -0
- package/docs/functions/Uint32Property.ReadValue.html +1 -0
- package/docs/functions/Uint32Property.Serialize.html +1 -0
- package/docs/functions/Uint32Property.SerializeValue.html +1 -0
- package/docs/functions/Uint32SetProperty.Parse.html +1 -0
- package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
- package/docs/functions/Uint64Property.CalcOverhead.html +1 -0
- package/docs/functions/Uint64Property.Parse.html +1 -0
- package/docs/functions/Uint64Property.ReadValue.html +1 -0
- package/docs/functions/Uint64Property.Serialize.html +1 -0
- package/docs/functions/Uint64Property.SerializeValue.html +1 -0
- package/docs/functions/Uint8Property.CalcOverhead.html +1 -0
- package/docs/functions/Uint8Property.Parse.html +1 -0
- package/docs/functions/Uint8Property.ReadValue.html +1 -0
- package/docs/functions/Uint8Property.Serialize.html +1 -0
- package/docs/functions/Uint8Property.SerializeValue.html +1 -0
- package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
- package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
- package/docs/functions/col4.ParseBGRA.html +1 -1
- package/docs/functions/col4.ParseRGBA.html +1 -1
- package/docs/functions/col4.SerializeBGRA.html +1 -1
- package/docs/functions/col4.SerializeRGBA.html +1 -1
- package/docs/functions/isArrayProperty.html +1 -1
- package/docs/functions/isBoolArrayProperty.html +1 -0
- package/docs/functions/isBoolProperty.html +1 -1
- package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
- package/docs/functions/isByteArrayProperty.html +1 -0
- package/docs/functions/isByteProperty.html +1 -1
- package/docs/functions/isCircuitSpecialProperties.html +1 -1
- package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
- package/docs/functions/isConveyorSpecialProperties.html +1 -1
- package/docs/functions/isDoubleArrayProperty.html +1 -0
- package/docs/functions/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -1
- package/docs/functions/isEnumArrayProperty.html +1 -0
- package/docs/functions/isEnumProperty.html +1 -1
- package/docs/functions/isFloatArrayProperty.html +1 -0
- package/docs/functions/isFloatProperty.html +1 -1
- package/docs/functions/isInt32ArrayProperty.html +1 -0
- package/docs/functions/isInt32Property.html +1 -1
- package/docs/functions/isInt32SetProperty.html +1 -0
- package/docs/functions/isInt64ArrayProperty.html +1 -0
- package/docs/functions/isInt64Property.html +1 -1
- package/docs/functions/isInt8Property.html +1 -1
- package/docs/functions/isMapProperty.html +1 -1
- package/docs/functions/isObjectArrayProperty.html +1 -0
- package/docs/functions/isObjectProperty.html +1 -1
- package/docs/functions/isObjectSetProperty.html +1 -0
- package/docs/functions/isObjectsListSpecialProperties.html +1 -1
- package/docs/functions/isPlayerSpecialProperties.html +1 -1
- package/docs/functions/isPowerLineSpecialProperties.html +1 -1
- package/docs/functions/isSaveComponent.html +1 -1
- package/docs/functions/isSaveEntity.html +1 -1
- package/docs/functions/isSetProperty.html +1 -1
- package/docs/functions/isSoftObjectArrayProperty.html +1 -0
- package/docs/functions/isSpecialDroneActionProperties.html +1 -1
- package/docs/functions/isStrArrayProperty.html +1 -0
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStrSetProperty.html +1 -0
- package/docs/functions/isStructArrayProperty.html +1 -0
- package/docs/functions/isStructProperty.html +1 -1
- package/docs/functions/isStructSetProperty.html +1 -0
- package/docs/functions/isTextArrayProperty.html +1 -0
- package/docs/functions/isTextProperty.html +1 -1
- package/docs/functions/isUInt64Property.html +1 -1
- package/docs/functions/isUint32Property.html +1 -1
- package/docs/functions/isUint32SetProperty.html +1 -0
- package/docs/functions/isUint8Property.html +1 -1
- package/docs/functions/isVehicleSpecialProperties.html +1 -1
- package/docs/functions/vec2.Parse.html +1 -1
- package/docs/functions/vec2.ParseF.html +1 -1
- package/docs/functions/vec2.Serialize.html +1 -1
- package/docs/functions/vec2.SerializeF.html +1 -1
- package/docs/functions/vec3.Parse.html +1 -1
- package/docs/functions/vec3.ParseF.html +1 -1
- package/docs/functions/vec3.ParseInt.html +1 -1
- package/docs/functions/vec3.Serialize.html +1 -1
- package/docs/functions/vec3.SerializeF.html +1 -1
- package/docs/functions/vec3.SerializeInt.html +1 -1
- package/docs/functions/vec3.add.html +1 -1
- package/docs/functions/vec3.length.html +1 -1
- package/docs/functions/vec3.mult.html +1 -1
- package/docs/functions/vec3.norm.html +1 -1
- package/docs/functions/vec3.sub.html +1 -1
- package/docs/functions/vec4.Parse.html +1 -1
- package/docs/functions/vec4.ParseF.html +1 -1
- package/docs/functions/vec4.Serialize.html +1 -1
- package/docs/functions/vec4.SerializeF.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +26 -87
- package/docs/interfaces/Blueprint.html +2 -2
- package/docs/interfaces/BlueprintConfig.html +2 -2
- package/docs/interfaces/ModData.html +2 -2
- package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
- package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
- package/docs/interfaces/SaveComponentHeader.html +2 -2
- package/docs/interfaces/SaveEntityHeader.html +2 -2
- package/docs/interfaces/SaveObjectHeader.html +4 -0
- package/docs/modules/AbstractBaseProperty.html +2 -0
- package/docs/modules/ArrayProperty.html +5 -0
- package/docs/modules/BoolArrayProperty.html +3 -0
- package/docs/modules/BoolProperty.html +6 -0
- package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
- package/docs/modules/ByteArrayProperty.html +3 -0
- package/docs/modules/ByteProperty.html +6 -0
- package/docs/modules/CircuitSpecialProperties.html +1 -1
- package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
- package/docs/modules/ConveyorSpecialProperties.html +1 -1
- package/docs/modules/DoubleArrayProperty.html +3 -0
- package/docs/modules/DoubleProperty.html +6 -0
- package/docs/modules/DynamicStructPropertyValue.html +1 -1
- package/docs/modules/EmptySpecialProperties.html +1 -1
- package/docs/modules/EnumArrayProperty.html +3 -0
- package/docs/modules/EnumProperty.html +6 -0
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/FloatArrayProperty.html +3 -0
- package/docs/modules/FloatProperty.html +6 -0
- package/docs/modules/GUID.html +1 -1
- package/docs/modules/GUIDInfo.html +1 -1
- package/docs/modules/Int32ArrayProperty.html +3 -0
- package/docs/modules/Int32Property.html +6 -0
- package/docs/modules/Int32SetProperty.html +3 -0
- package/docs/modules/Int64ArrayProperty.html +3 -0
- package/docs/modules/Int64Property.html +6 -0
- package/docs/modules/Int8Property.html +6 -0
- package/docs/modules/Level.html +1 -1
- package/docs/modules/MD5Hash.html +1 -1
- package/docs/modules/MapProperty.html +4 -0
- package/docs/modules/ObjectArrayProperty.html +3 -0
- package/docs/modules/ObjectProperty.html +6 -0
- package/docs/modules/ObjectReference.html +1 -1
- package/docs/modules/ObjectSetProperty.html +3 -0
- package/docs/modules/ObjectsListSpecialProperties.html +1 -1
- package/docs/modules/PlayerSpecialProperties.html +1 -1
- package/docs/modules/PowerLineSpecialProperties.html +1 -1
- package/docs/modules/PropertiesList.html +1 -1
- package/docs/modules/SetProperty.html +5 -0
- package/docs/modules/SoftObjectArrayProperty.html +3 -0
- package/docs/modules/SoftObjectReference.html +1 -1
- package/docs/modules/SpecialDroneActionProperties.html +1 -1
- package/docs/modules/SpecialProperties.html +1 -1
- package/docs/modules/StrArrayProperty.html +3 -0
- package/docs/modules/StrProperty.html +6 -0
- package/docs/modules/StrSetProperty.html +3 -0
- package/docs/modules/StructArrayProperty.html +3 -0
- package/docs/modules/StructProperty.html +6 -0
- package/docs/modules/StructSetProperty.html +3 -0
- package/docs/modules/TextArrayProperty.html +3 -0
- package/docs/modules/TextProperty.html +6 -0
- package/docs/modules/Transform.html +1 -1
- package/docs/modules/Uint32Property.html +6 -0
- package/docs/modules/Uint32SetProperty.html +3 -0
- package/docs/modules/Uint64Property.html +6 -0
- package/docs/modules/Uint8Property.html +6 -0
- package/docs/modules/VehicleSpecialProperties.html +1 -1
- package/docs/modules/col4.html +1 -1
- package/docs/modules/vec2.html +1 -1
- package/docs/modules/vec3.html +1 -1
- package/docs/modules/vec4.html +1 -1
- package/docs/modules.html +92 -24
- package/docs/types/AbstractBaseProperty-1.html +1 -0
- package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -0
- package/docs/types/ArrayPropertyStructValueFields.html +1 -1
- package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
- package/docs/types/BasicStructPropertyValue.html +1 -1
- package/docs/types/BlueprintHeader.html +1 -1
- package/docs/types/BoolArrayProperty-1.html +1 -0
- package/docs/types/BoolProperty-1.html +1 -0
- package/docs/types/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
- package/docs/types/BuildableTypeInstance.html +1 -1
- package/docs/types/ByteArrayProperty-1.html +1 -0
- package/docs/types/ByteProperty-1.html +1 -0
- package/docs/types/BytePropertyValue.html +1 -1
- package/docs/types/CircuitSpecialProperties-1.html +1 -1
- package/docs/types/ClientIdentityInfo.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -1
- package/docs/types/DoubleArrayProperty-1.html +1 -0
- package/docs/types/DoubleProperty-1.html +1 -0
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -1
- package/docs/types/EnumArrayProperty-1.html +1 -0
- package/docs/types/EnumProperty-1.html +1 -0
- package/docs/types/FICFrameRange-1.html +1 -1
- package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
- package/docs/types/FloatArrayProperty-1.html +1 -0
- package/docs/types/FloatProperty-1.html +1 -0
- package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
- package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
- package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
- package/docs/types/GUID-1.html +1 -1
- package/docs/types/GUIDInfo-1.html +1 -1
- package/docs/types/Int32ArrayProperty-1.html +1 -0
- package/docs/types/Int32Property-1.html +1 -0
- package/docs/types/Int32SetProperty-1.html +1 -0
- package/docs/types/Int64ArrayProperty-1.html +1 -0
- package/docs/types/Int64Property-1.html +1 -0
- package/docs/types/Int8Property-1.html +1 -0
- package/docs/types/InventoryItemStructPropertyValue.html +1 -1
- package/docs/types/Level-1.html +1 -1
- package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
- package/docs/types/MD5Hash-1.html +1 -1
- package/docs/types/MapProperty-1.html +1 -0
- package/docs/types/ObjectArrayProperty-1.html +1 -0
- package/docs/types/ObjectProperty-1.html +1 -0
- package/docs/types/ObjectReference-1.html +1 -1
- package/docs/types/ObjectSetProperty-1.html +1 -0
- package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
- package/docs/types/PlayerSpecialProperties-1.html +1 -1
- package/docs/types/PowerLineSpecialProperties-1.html +1 -1
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -0
- package/docs/types/SoftObjectArrayProperty-1.html +1 -0
- package/docs/types/SoftObjectReference-1.html +1 -1
- package/docs/types/SpecialDroneAction.html +1 -1
- package/docs/types/SpecialDroneActionProperties-1.html +1 -1
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
- package/docs/types/StrArrayProperty-1.html +1 -0
- package/docs/types/StrProperty-1.html +1 -0
- package/docs/types/StrSetProperty-1.html +1 -0
- package/docs/types/StructArrayProperty-1.html +1 -0
- package/docs/types/StructProperty-1.html +1 -0
- package/docs/types/StructSetProperty-1.html +1 -0
- package/docs/types/TextArrayProperty-1.html +1 -0
- package/docs/types/TextProperty-1.html +1 -0
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/Uint32Property-1.html +1 -0
- package/docs/types/Uint32SetProperty-1.html +1 -0
- package/docs/types/Uint64Property-1.html +1 -0
- package/docs/types/Uint8Property-1.html +1 -0
- package/docs/types/VehicleSpecialProperties-1.html +1 -1
- package/docs/types/col4-1.html +1 -1
- package/docs/types/vec2-1.html +1 -1
- package/docs/types/vec3-1.html +1 -1
- package/docs/types/vec4-1.html +1 -1
- package/docs/variables/EDIT.html +1 -1
- package/package.json +3 -3
- package/LICENSE +0 -21
- package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty.js +0 -172
- package/build/parser/satisfactory/types/property/generic/ArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts +0 -26
- package/build/parser/satisfactory/types/property/generic/BasicProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/BasicProperty.js +0 -29
- package/build/parser/satisfactory/types/property/generic/BasicProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts +0 -13
- package/build/parser/satisfactory/types/property/generic/SetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty.js +0 -95
- package/build/parser/satisfactory/types/property/generic/SetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts +0 -55
- package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js +0 -3
- package/build/parser/satisfactory/types/property/special/SpecialAnyProperties.js.map +0 -1
- package/docs/classes/AbstractBaseProperty.html +0 -6
- package/docs/classes/AbstractProperty.html +0 -4
- package/docs/classes/ArrayProperty.html +0 -13
- package/docs/classes/BasicProperty.html +0 -7
- package/docs/classes/BoolProperty.html +0 -13
- package/docs/classes/ByteProperty.html +0 -13
- package/docs/classes/DoubleProperty.html +0 -13
- package/docs/classes/EnumProperty.html +0 -13
- package/docs/classes/FloatProperty.html +0 -13
- package/docs/classes/Int32Property.html +0 -13
- package/docs/classes/Int64Property.html +0 -13
- package/docs/classes/Int8Property.html +0 -13
- package/docs/classes/MapProperty.html +0 -17
- package/docs/classes/ObjectProperty.html +0 -13
- package/docs/classes/SetProperty.html +0 -12
- package/docs/classes/StrProperty.html +0 -13
- package/docs/classes/StructProperty.html +0 -18
- package/docs/classes/TextProperty.html +0 -13
- package/docs/classes/Uint32Property.html +0 -13
- package/docs/classes/Uint64Property.html +0 -13
- package/docs/classes/Uint8Property.html +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"level.class.d.ts","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/level.class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAmB,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAgB,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC;IACxC,YAAY,EAAE,eAAe,EAAE,CAAC;CAChC,CAAA;AAED,yBAAiB,KAAK,CAAC;IAEf,MAAM,SAAS,WAAY,UAAU,aAAa,MAAM,gBAAgB,MAAM,KAAG,KA6CvF,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,KAAK,gBAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"level.class.d.ts","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/level.class.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAmB,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAgB,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAA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
|
46
|
-
|
|
46
|
+
if (level.collectables.length > 0) {
|
|
47
|
+
object_references_list_1.ObjectReferencesList.SerializeList(writer, level.collectables);
|
|
48
|
+
}
|
|
47
49
|
writer.writeBinarySizeFromPosition(lenIndicatorHeaderAndDestroyedEntitiesSize, lenIndicatorHeaderAndDestroyedEntitiesSize + 8);
|
|
48
50
|
Level.SerializeAllObjectContents(writer, level.objects, buildVersion, level.name);
|
|
49
51
|
object_references_list_1.ObjectReferencesList.SerializeList(writer, level.collectables);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"level.class.js","sourceRoot":"","sources":["../../../../src/parser/satisfactory/save/level.class.ts"],"names":[],"mappings":";;;AAGA,2DAAgF;AAChF,kEAAgF;AAChF,4DAAuE;AAGvE,qEAAgE;AAShE,IAAiB,KAAK,CA6LrB;AA7LD,WAAiB,KAAK;IAER,eAAS,GAAG,CAAC,MAAkB,EAAE,SAAiB,EAAE,YAAoB,EAAS,EAAE;QAC/F,MAAM,KAAK,GAAU;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,EAAE;YACX,YAAY,EAAE,EAAE;SAChB,CAAA;QAGD,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACzC,MAAM,CAAC,SAAS,EAAE,CAAC;QAGnB,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QACpD,MAAA,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAG5C,IAAI,aAAa,GAAG,aAAa,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,gBAAgB,CAAC,CAAC;QACpF,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,0BAA0B,GAAG,6CAAoB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;QAER,CAAC;QAED,aAAa,GAAG,aAAa,GAAG,CAAC,MAAM,CAAC,iBAAiB,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QACD,OAAO,OAAO,CAAC;IAChB,CAAC,CAAA;IAEY,+BAAyB,GAAG,CAAC,MAAkB,EAAE,OAAuC,EAAQ,EAAE;QAC9G,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClC,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;YAE3B,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;gBAClB,KAAK,YAAY;oBAChB,MAAM,CAAC,UAAU,CAAC,uBAAU,CAAC,MAAM,CAAC,CAAC;oBACrC,uBAAU,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;oBACxC,MAAM;gBACP,KAAK,eAAe;oBACnB,MAAM,CAAC,UAAU,CAAC,6BAAa,CAAC,MAAM,CAAC,CAAC;oBACxC,6BAAa,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;oBAC3C,MAAM;gBACP;oBACC,MAAM,IAAI,iCAAkB,CAAC,uBAAwB,GAAsB,CAAC,IAAI,oBAAoB,CAAC,CAAC;oBACtG,MAAM;YACR,CAAC;QACF,CAAC;IACF,CAAC,CAAA;AACF,CAAC,EA7LgB,KAAK,qBAAL,KAAK,QA6LrB","sourcesContent":["\nimport { BinaryReadable } from \"../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../byte/byte-writer.class\";\nimport { CorruptSaveError, UnimplementedError } from '../../error/parser.error';\nimport { SaveComponent, isSaveComponent } from \"../types/objects/SaveComponent\";\nimport { SaveEntity, isSaveEntity } from \"../types/objects/SaveEntity\";\nimport { SaveObject } from \"../types/objects/SaveObject\";\nimport { ObjectReference } from \"../types/structs/ObjectReference\";\nimport { ObjectReferencesList } from './object-references-list';\nimport { SaveReader } from './save-reader';\n\nexport type Level = {\n\tname: string;\n\tobjects: (SaveEntity | SaveComponent)[];\n\tcollectables: ObjectReference[];\n}\n\nexport namespace Level {\n\n\texport const ReadLevel = (reader: SaveReader, levelName: string, buildVersion: number): Level => {\n\t\tconst level: Level = {\n\t\t\tname: levelName,\n\t\t\tobjects: [],\n\t\t\tcollectables: []\n\t\t}\n\n\t\t// checksum object headers.\n\t\tconst headersBinLen = reader.readInt32(); // object headers + binary length\n\t\treader.readInt32();\t// 0\n\n\t\t// object headers\n\t\tconst posBeforeHeaders = reader.getBufferPosition();\n\t\tReadAllObjectHeaders(reader, level.objects);\n\n\t\t// collected, like slugs Only listed here since U8.\n\t\tlet remainingSize = headersBinLen - (reader.getBufferPosition() - posBeforeHeaders);\n\t\tif (remainingSize > 0) {\n\t\t\tconst doubledCollectablesIgnored = ObjectReferencesList.ReadList(reader);\n\t\t} else {\n\t\t\t// its perfectly possible for ported saves to have nothing here.\n\t\t}\n\n\t\tremainingSize = headersBinLen - (reader.getBufferPosition() - posBeforeHeaders);\n\t\tif (remainingSize !== 0) {\n\t\t\tconsole.warn('remaining size not 0. Save may be corrupt.', remainingSize, levelName);\n\t\t}\n\n\t\t// checksum for object content size\n\t\tconst objectContentsBinLen = reader.readInt32();\n\t\treader.readInt32();\t// 0\n\n\t\t// objects contents\n\t\tconst posBeforeContents = reader.getBufferPosition();\n\t\tReadAllObjectContents(levelName, reader, level.objects, buildVersion, reader.onProgressCallback);\n\t\tconst posAfterContents = reader.getBufferPosition();\n\t\tif (posAfterContents - posBeforeContents !== objectContentsBinLen) {\n\t\t\t//WARNING\n\t\t\tconsole.warn('save seems corrupt.', level.name);\n\t\t}\n\n\t\t// collectables 2nd time. Listed here since < U8 and in U8 as well. So this is the best list you can rely on.\n\t\tlevel.collectables = ObjectReferencesList.ReadList(reader);\n\n\t\treturn level;\n\t}\n\n\texport const SerializeLevel = (writer: ByteWriter, level: Level, buildVersion: number) => {\n\t\tconst lenIndicatorHeaderAndDestroyedEntitiesSize = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\t// len indicator\n\t\twriter.writeInt32(0);\t// unk\n\n\t\tSerializeAllObjectHeaders(writer, level.objects);\n\n\t\t// <--- destroyed actors is the same as collectables list.\n\t\tObjectReferencesList.SerializeList(writer, level.collectables);\n\n\t\t// replace binary size from earlier for - object headers + collectables\n\t\twriter.writeBinarySizeFromPosition(lenIndicatorHeaderAndDestroyedEntitiesSize, lenIndicatorHeaderAndDestroyedEntitiesSize + 8);\n\n\t\t// write entities\n\t\tSerializeAllObjectContents(writer, level.objects, buildVersion, level.name);\n\n\t\tObjectReferencesList.SerializeList(writer, level.collectables);\n\t}\n\n\texport const ReadAllObjectContents = (levelName: string, reader: BinaryReadable, objectsList: SaveObject[], buildVersion: number, onProgressCallback: (progress: number, msg?: string) => void): void => {\n\t\tconst countEntities = reader.readInt32();\n\t\tif (countEntities !== objectsList.length) {\n\t\t\tthrow new Error(`possibly corrupt. entity content count ${countEntities} does not equal object count of ${objectsList.length}`);\n\t\t}\n\n\t\t// read in batches\n\t\tconst batchSize = 10000;\n\t\tlet readObjectsCount = 0;\n\t\tlet lastProgressReport = 0;\n\t\twhile (readObjectsCount < countEntities) {\n\t\t\tReadNObjectContents(reader, Math.min(batchSize, countEntities - readObjectsCount), objectsList, readObjectsCount);\n\t\t\treadObjectsCount += Math.min(batchSize, countEntities - readObjectsCount);\n\n\t\t\tif (readObjectsCount - lastProgressReport > batchSize) {\n\t\t\t\tonProgressCallback(reader.getBufferProgress(), `read object count [${(readObjectsCount)}/${(countEntities)}] in level ${levelName}`);\n\t\t\t\tlastProgressReport = readObjectsCount;\n\t\t\t}\n\t\t}\n\t}\n\n\texport const ReadNObjectContents = (reader: BinaryReadable, count: number, objects: SaveObject[], objectListOffset: number = 0, buildVersion: number = 0) => {\n\t\tfor (let i = 0; i < count; i++) {\n\t\t\tobjects[i + objectListOffset].objectVersion = reader.readInt32();\t// 36, 41..... 42, 46 at 1.0 Release - so its probably an object version\n\t\t\tobjects[i + objectListOffset].unknownType2 = reader.readInt32();\t//1 - //occasionally 0 ?\n\t\t\tconst binarySize = reader.readInt32();\n\n\t\t\tconst before = reader.getBufferPosition();\n\t\t\tif (isSaveEntity(objects[i + objectListOffset])) {\n\t\t\t\tSaveEntity.ParseData(objects[i + objectListOffset] as SaveEntity, binarySize, reader, buildVersion, objects[i + objectListOffset].typePath);\n\t\t\t} else if (isSaveComponent(objects[i + objectListOffset])) {\n\t\t\t\tSaveComponent.ParseData(objects[i + objectListOffset] as SaveComponent, binarySize, reader, buildVersion, objects[i + objectListOffset].typePath);\n\t\t\t}\n\n\t\t\tconst after = reader.getBufferPosition();\n\t\t\tif (after - before !== binarySize) {\n\t\t\t\tthrow new CorruptSaveError(`Could not read entity ${objects[i + objectListOffset].instanceName}, as ${after - before} bytes were read, but ${binarySize} bytes were indicated.`);\n\t\t\t}\n\t\t}\n\t}\n\n\texport const SerializeAllObjectContents = (writer: ByteWriter, objects: (SaveEntity | SaveComponent)[], buildVersion: number, levelName: string): void => {\n\t\tconst lenIndicatorEntities = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\twriter.writeInt32(0);\t// 0\n\n\t\twriter.writeInt32(objects.length);\n\t\tfor (const obj of objects) {\n\n\t\t\twriter.writeInt32(obj.objectVersion);\n\t\t\twriter.writeInt32(obj.unknownType2);\n\t\t\tconst lenReplacementPosition = writer.getBufferPosition();\n\t\t\twriter.writeInt32(0);\n\n\t\t\tif (isSaveEntity(obj)) {\n\t\t\t\tSaveEntity.SerializeData(writer, obj, buildVersion);\n\t\t\t} else if (isSaveComponent(obj)) {\n\t\t\t\tSaveComponent.SerializeData(writer, obj, buildVersion);\n\t\t\t}\n\n\t\t\twriter.writeBinarySizeFromPosition(lenReplacementPosition, lenReplacementPosition + 4);\n\t\t}\n\t\twriter.writeBinarySizeFromPosition(lenIndicatorEntities, lenIndicatorEntities + 8);\n\t}\n\n\texport const ReadAllObjectHeaders = (reader: BinaryReadable, objectsList: SaveObject[]): void => {\n\t\tlet countObjectHeaders = reader.readInt32();\n\n\t\t// read in batches\n\t\tconst batchSize = 10000;\n\t\tlet readObjectHeadersCount = 0;\n\t\twhile (readObjectHeadersCount < countObjectHeaders) {\n\t\t\tobjectsList.push(...ReadNObjectHeaders(reader, Math.min(batchSize, countObjectHeaders - readObjectHeadersCount)));\n\t\t\treadObjectHeadersCount += Math.min(batchSize, countObjectHeaders - readObjectHeadersCount);\n\t\t}\n\t}\n\n\texport const ReadNObjectHeaders = (reader: BinaryReadable, count: number): (SaveEntity | SaveComponent)[] => {\n\t\tlet objects: (SaveEntity | SaveComponent)[] = [];\n\t\tlet objectsRead = 0;\n\t\tfor (; objectsRead < count; objectsRead++) {\n\n\t\t\tlet obj: SaveEntity | SaveComponent;\n\t\t\tlet objectType = reader.readInt32();\n\t\t\tswitch (objectType) {\n\t\t\t\tcase SaveEntity.TypeID:\n\t\t\t\t\tobj = new SaveEntity('', '', '', '');\n\t\t\t\t\tSaveEntity.ParseHeader(reader, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tcase SaveComponent.TypeID:\n\t\t\t\t\tobj = new SaveComponent('', '', '', '');\n\t\t\t\t\tSaveComponent.ParseHeader(reader, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new CorruptSaveError('Unknown object type' + objectType);\n\t\t\t}\n\t\t\tobjects.push(obj);\n\t\t}\n\t\treturn objects;\n\t}\n\n\texport const SerializeAllObjectHeaders = (writer: ByteWriter, objects: (SaveEntity | SaveComponent)[]): void => {\n\t\twriter.writeInt32(objects.length);\n\t\tfor (const obj of objects) {\n\n\t\t\tswitch (obj.type) {\n\t\t\t\tcase 'SaveEntity':\n\t\t\t\t\twriter.writeInt32(SaveEntity.TypeID);\n\t\t\t\t\tSaveEntity.SerializeHeader(writer, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'SaveComponent':\n\t\t\t\t\twriter.writeInt32(SaveComponent.TypeID);\n\t\t\t\t\tSaveComponent.SerializeHeader(writer, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new UnimplementedError(`Unknown object type ${(obj as unknown as any).type}. Not implemented.`);\n\t\t\t\t\tbreak;\n\t\t\t}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,IAAI,EAAE,CAAC;gBAClB,KAAK,YAAY;oBAChB,MAAM,CAAC,UAAU,CAAC,uBAAU,CAAC,MAAM,CAAC,CAAC;oBACrC,uBAAU,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;oBACxC,MAAM;gBACP,KAAK,eAAe;oBACnB,MAAM,CAAC,UAAU,CAAC,6BAAa,CAAC,MAAM,CAAC,CAAC;oBACxC,6BAAa,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;oBAC3C,MAAM;gBACP;oBACC,MAAM,IAAI,iCAAkB,CAAC,uBAAwB,GAAsB,CAAC,IAAI,oBAAoB,CAAC,CAAC;oBACtG,MAAM;YACR,CAAC;QACF,CAAC;IACF,CAAC,CAAA;AACF,CAAC,EA/LgB,KAAK,qBAAL,KAAK,QA+LrB","sourcesContent":["\nimport { BinaryReadable } from \"../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../byte/byte-writer.class\";\nimport { CorruptSaveError, UnimplementedError } from '../../error/parser.error';\nimport { SaveComponent, isSaveComponent } from \"../types/objects/SaveComponent\";\nimport { SaveEntity, isSaveEntity } from \"../types/objects/SaveEntity\";\nimport { SaveObject } from \"../types/objects/SaveObject\";\nimport { ObjectReference } from \"../types/structs/ObjectReference\";\nimport { ObjectReferencesList } from './object-references-list';\nimport { SaveReader } from './save-reader';\n\nexport type Level = {\n\tname: string;\n\tobjects: (SaveEntity | SaveComponent)[];\n\tcollectables: ObjectReference[];\n}\n\nexport namespace Level {\n\n\texport const ReadLevel = (reader: SaveReader, levelName: string, buildVersion: number): Level => {\n\t\tconst level: Level = {\n\t\t\tname: levelName,\n\t\t\tobjects: [],\n\t\t\tcollectables: []\n\t\t}\n\n\t\t// checksum object headers.\n\t\tconst headersBinLen = reader.readInt32(); // object headers + binary length\n\t\treader.readInt32();\t// 0\n\n\t\t// object headers\n\t\tconst posBeforeHeaders = reader.getBufferPosition();\n\t\tReadAllObjectHeaders(reader, level.objects);\n\n\t\t// collected, like slugs Only listed here since U8.\n\t\tlet remainingSize = headersBinLen - (reader.getBufferPosition() - posBeforeHeaders);\n\t\tif (remainingSize > 0) {\n\t\t\tconst doubledCollectablesIgnored = ObjectReferencesList.ReadList(reader);\n\t\t} else {\n\t\t\t// its perfectly possible for ported saves to have nothing here.\n\t\t}\n\n\t\tremainingSize = headersBinLen - (reader.getBufferPosition() - posBeforeHeaders);\n\t\tif (remainingSize !== 0) {\n\t\t\tconsole.warn('remaining size not 0. Save may be corrupt.', remainingSize, levelName);\n\t\t}\n\n\t\t// checksum for object content size\n\t\tconst objectContentsBinLen = reader.readInt32();\n\t\treader.readInt32();\t// 0\n\n\t\t// objects contents\n\t\tconst posBeforeContents = reader.getBufferPosition();\n\t\tReadAllObjectContents(levelName, reader, level.objects, buildVersion, reader.onProgressCallback);\n\t\tconst posAfterContents = reader.getBufferPosition();\n\t\tif (posAfterContents - posBeforeContents !== objectContentsBinLen) {\n\t\t\t//WARNING\n\t\t\tconsole.warn('save seems corrupt.', level.name);\n\t\t}\n\n\t\t// collectables 2nd time. Listed here since < U8 and in U8 as well. So this is the best list you can rely on.\n\t\tlevel.collectables = ObjectReferencesList.ReadList(reader);\n\n\t\treturn level;\n\t}\n\n\texport const SerializeLevel = (writer: ByteWriter, level: Level, buildVersion: number) => {\n\t\tconst lenIndicatorHeaderAndDestroyedEntitiesSize = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\t// len indicator\n\t\twriter.writeInt32(0);\t// unk\n\n\t\tSerializeAllObjectHeaders(writer, level.objects);\n\n\t\t// <--- destroyed actors is the same as collectables list. Seems like its not there if count 0.\n\t\tif (level.collectables.length > 0) {\n\t\t\tObjectReferencesList.SerializeList(writer, level.collectables);\n\t\t}\n\n\t\t// replace binary size from earlier for - object headers + collectables\n\t\twriter.writeBinarySizeFromPosition(lenIndicatorHeaderAndDestroyedEntitiesSize, lenIndicatorHeaderAndDestroyedEntitiesSize + 8);\n\n\t\t// write entities\n\t\tSerializeAllObjectContents(writer, level.objects, buildVersion, level.name);\n\n\t\tObjectReferencesList.SerializeList(writer, level.collectables);\n\t}\n\n\texport const ReadAllObjectContents = (levelName: string, reader: BinaryReadable, objectsList: SaveObject[], buildVersion: number, onProgressCallback: (progress: number, msg?: string) => void): void => {\n\t\tconst countEntities = reader.readInt32();\n\t\tif (countEntities !== objectsList.length) {\n\t\t\tthrow new Error(`possibly corrupt. entity content count ${countEntities} does not equal object count of ${objectsList.length}`);\n\t\t}\n\n\t\t// read in batches\n\t\tconst batchSize = 10000;\n\t\tlet readObjectsCount = 0;\n\t\tlet lastProgressReport = 0;\n\t\twhile (readObjectsCount < countEntities) {\n\t\t\tReadNObjectContents(reader, Math.min(batchSize, countEntities - readObjectsCount), objectsList, readObjectsCount);\n\t\t\treadObjectsCount += Math.min(batchSize, countEntities - readObjectsCount);\n\n\t\t\tif (readObjectsCount - lastProgressReport > batchSize) {\n\t\t\t\tonProgressCallback(reader.getBufferProgress(), `read object count [${(readObjectsCount)}/${(countEntities)}] in level ${levelName}`);\n\t\t\t\tlastProgressReport = readObjectsCount;\n\t\t\t}\n\t\t}\n\t}\n\n\texport const ReadNObjectContents = (reader: BinaryReadable, count: number, objects: SaveObject[], objectListOffset: number = 0, buildVersion: number = 0) => {\n\t\tfor (let i = 0; i < count; i++) {\n\t\t\tobjects[i + objectListOffset].objectVersion = reader.readInt32();\t// 36, 41..... 42, 46 at 1.0 Release - so its probably an object version\n\t\t\tobjects[i + objectListOffset].unknownType2 = reader.readInt32();\t//1 - //occasionally 0 ?\n\t\t\tconst binarySize = reader.readInt32();\n\n\t\t\tconst before = reader.getBufferPosition();\n\t\t\tif (isSaveEntity(objects[i + objectListOffset])) {\n\t\t\t\tSaveEntity.ParseData(objects[i + objectListOffset] as SaveEntity, binarySize, reader, buildVersion, objects[i + objectListOffset].typePath);\n\t\t\t} else if (isSaveComponent(objects[i + objectListOffset])) {\n\t\t\t\tSaveComponent.ParseData(objects[i + objectListOffset] as SaveComponent, binarySize, reader, buildVersion, objects[i + objectListOffset].typePath);\n\t\t\t}\n\n\t\t\tconst after = reader.getBufferPosition();\n\t\t\tif (after - before !== binarySize) {\n\t\t\t\tthrow new CorruptSaveError(`Could not read entity ${objects[i + objectListOffset].instanceName}, as ${after - before} bytes were read, but ${binarySize} bytes were indicated.`);\n\t\t\t}\n\t\t}\n\t}\n\n\texport const SerializeAllObjectContents = (writer: ByteWriter, objects: (SaveEntity | SaveComponent)[], buildVersion: number, levelName: string): void => {\n\t\tconst lenIndicatorEntities = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\twriter.writeInt32(0);\t// 0\n\n\t\twriter.writeInt32(objects.length);\n\t\tfor (const obj of objects) {\n\n\t\t\twriter.writeInt32(obj.objectVersion);\n\t\t\twriter.writeInt32(obj.unknownType2);\n\t\t\tconst lenReplacementPosition = writer.getBufferPosition();\n\t\t\twriter.writeInt32(0);\n\n\t\t\tif (isSaveEntity(obj)) {\n\t\t\t\tSaveEntity.SerializeData(writer, obj, buildVersion);\n\t\t\t} else if (isSaveComponent(obj)) {\n\t\t\t\tSaveComponent.SerializeData(writer, obj, buildVersion);\n\t\t\t}\n\n\t\t\twriter.writeBinarySizeFromPosition(lenReplacementPosition, lenReplacementPosition + 4);\n\t\t}\n\t\twriter.writeBinarySizeFromPosition(lenIndicatorEntities, lenIndicatorEntities + 8);\n\t}\n\n\texport const ReadAllObjectHeaders = (reader: BinaryReadable, objectsList: SaveObject[]): void => {\n\t\tlet countObjectHeaders = reader.readInt32();\n\n\t\t// read in batches\n\t\tconst batchSize = 10000;\n\t\tlet readObjectHeadersCount = 0;\n\t\twhile (readObjectHeadersCount < countObjectHeaders) {\n\t\t\tobjectsList.push(...ReadNObjectHeaders(reader, Math.min(batchSize, countObjectHeaders - readObjectHeadersCount)));\n\t\t\treadObjectHeadersCount += Math.min(batchSize, countObjectHeaders - readObjectHeadersCount);\n\t\t}\n\t}\n\n\texport const ReadNObjectHeaders = (reader: BinaryReadable, count: number): (SaveEntity | SaveComponent)[] => {\n\t\tlet objects: (SaveEntity | SaveComponent)[] = [];\n\t\tlet objectsRead = 0;\n\t\tfor (; objectsRead < count; objectsRead++) {\n\n\t\t\tlet obj: SaveEntity | SaveComponent;\n\t\t\tlet objectType = reader.readInt32();\n\t\t\tswitch (objectType) {\n\t\t\t\tcase SaveEntity.TypeID:\n\t\t\t\t\tobj = new SaveEntity('', '', '', '');\n\t\t\t\t\tSaveEntity.ParseHeader(reader, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tcase SaveComponent.TypeID:\n\t\t\t\t\tobj = new SaveComponent('', '', '', '');\n\t\t\t\t\tSaveComponent.ParseHeader(reader, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new CorruptSaveError('Unknown object type' + objectType);\n\t\t\t}\n\t\t\tobjects.push(obj);\n\t\t}\n\t\treturn objects;\n\t}\n\n\texport const SerializeAllObjectHeaders = (writer: ByteWriter, objects: (SaveEntity | SaveComponent)[]): void => {\n\t\twriter.writeInt32(objects.length);\n\t\tfor (const obj of objects) {\n\n\t\t\tswitch (obj.type) {\n\t\t\t\tcase 'SaveEntity':\n\t\t\t\t\twriter.writeInt32(SaveEntity.TypeID);\n\t\t\t\t\tSaveEntity.SerializeHeader(writer, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'SaveComponent':\n\t\t\t\t\twriter.writeInt32(SaveComponent.TypeID);\n\t\t\t\t\tSaveComponent.SerializeHeader(writer, obj);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new UnimplementedError(`Unknown object type ${(obj as unknown as any).type}. Not implemented.`);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReadable } from "../../../byte/binary-readable.interface";
|
|
2
2
|
import { ByteWriter } from "../../../byte/byte-writer.class";
|
|
3
|
-
import { PropertiesMap } from "../property/generic/
|
|
3
|
+
import { PropertiesMap } from "../property/generic/AbstractBaseProperty";
|
|
4
4
|
import { SpecialProperties } from '../property/special/SpecialProperties';
|
|
5
5
|
export interface SaveObjectHeader {
|
|
6
6
|
typePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveObject.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SaveObject.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,8BAAsB,UAAW,YAAW,gBAAgB;IASxC,QAAQ,EAAE,MAAM;IAAS,UAAU,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAPpF,UAAU,EAAE,aAAa,CAAM;IAC/B,iBAAiB,EAAE,iBAAiB,CAAC,+BAA+B,CAAsC;IAC1G,YAAY,EAAE,MAAM,EAAE,CAAM;IAE5B,aAAa,EAAE,MAAM,CAAK;IAC1B,YAAY,EAAE,MAAM,CAAK;gBAEb,QAAQ,EAAE,MAAM,EAAS,UAAU,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM;IAI3F,SAAS,CAAC,MAAM,CAAC,WAAW,CA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AC;QACnE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrB,qCAAiB,CAAC,uCAAuC,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACvG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;CACD;AAjDD,gCAiDC","sourcesContent":["import { BinaryReadable } from \"../../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../../byte/byte-writer.class\";\nimport { ParserError } from '../../../error/parser.error';\nimport { PropertiesMap } from \"../property/generic/
|
|
1
|
+
{"version":3,"file":"SaveObject.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,+DAA4D;AAC5D,6EAA0E;AAQ1E,MAAsB,UAAU;IAS/B,YAAmB,QAAgB,EAAS,UAAkB,EAAS,YAAoB;QAAxE,aAAQ,GAAR,QAAQ,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAQ;QAAS,iBAAY,GAAZ,YAAY,CAAQ;QAPpF,eAAU,GAAkB,EAAE,CAAC;QAC/B,sBAAiB,GAAsD,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;QAC1G,iBAAY,GAAa,EAAE,CAAC;QAE5B,kBAAa,GAAW,CAAC,CAAC;QAC1B,iBAAY,GAAW,CAAC,CAAC;IAIhC,CAAC;IAES,MAAM,CAAC,WAAW,CAAC,MAAsB,EAAE,GAAe;QACnE,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACnC,GAAG,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACrC,GAAG,CAAC,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC;IAES,MAAM,CAAC,eAAe,CAAC,MAAkB,EAAE,GAAe;QACnE,MAAM,CAAC,WAAW,CAAC,GAAG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AAC;QACrB,qCAAiB,CAAC,uCAAuC,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACvG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;CACD;AAjDD,gCAiDC","sourcesContent":["import { BinaryReadable } from \"../../../byte/binary-readable.interface\";\nimport { ByteWriter } from \"../../../byte/byte-writer.class\";\nimport { ParserError } from '../../../error/parser.error';\nimport { PropertiesMap } from \"../property/generic/AbstractBaseProperty\";\nimport { PropertiesList } from '../property/PropertiesList';\nimport { SpecialProperties } from '../property/special/SpecialProperties';\n\nexport interface SaveObjectHeader {\n\ttypePath: string;\n\trootObject: string;\n\tinstanceName: string;\n}\n\nexport abstract class SaveObject implements SaveObjectHeader {\n\n\tpublic properties: PropertiesMap = {};\n\tpublic specialProperties: SpecialProperties.AvailableSpecialPropertiesTypes = { type: 'EmptySpecialProperties' };\n\tpublic trailingData: number[] = [];\n\n\tpublic objectVersion: number = 0;\n\tpublic unknownType2: number = 0;\n\n\tconstructor(public typePath: string, public rootObject: string, public instanceName: string) {\n\n\t}\n\n\tprotected static ParseHeader(reader: BinaryReadable, obj: SaveObject): void {\n\t\tobj.typePath = reader.readString();\n\t\tobj.rootObject = reader.readString();\n\t\tobj.instanceName = reader.readString();\n\t}\n\n\tprotected static SerializeHeader(writer: ByteWriter, obj: SaveObject): void {\n\t\twriter.writeString(obj.typePath);\n\t\twriter.writeString(obj.rootObject);\n\t\twriter.writeString(obj.instanceName);\n\t}\n\n\tpublic static ParseData(obj: SaveObject, length: number, reader: BinaryReadable, buildVersion: number, typePath: string): void {\n\t\tconst start = reader.getBufferPosition();\n\n\t\tobj.properties = PropertiesList.ParseList(reader, buildVersion);\n\n\t\treader.readInt32(); // 0\n\n\t\tlet remainingSize = length - (reader.getBufferPosition() - start);\n\t\tobj.specialProperties = SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);\n\n\t\tremainingSize = length - (reader.getBufferPosition() - start);\n\t\tif (remainingSize > 0) {\n\t\t\tobj.trailingData = Array.from(reader.readBytes(remainingSize));\n\t\t} else if (remainingSize < 0) {\n\t\t\tthrow new ParserError('ParserError', `Unexpected. Read more bytes than are indicated for entity ${obj.instanceName}. bytes left to read is ${remainingSize}`);\n\t\t}\n\t}\n\n\tpublic static SerializeData(writer: any, obj: SaveObject, buildVersion: number): void {\n\t\tPropertiesList.SerializeList(obj.properties, writer, buildVersion);\n\t\twriter.writeInt32(0);\n\t\tSpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);\n\t\twriter.writeBytesArray(obj.trailingData);\n\t}\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../byte/byte-writer.class';
|
|
3
|
-
import { AbstractBaseProperty, PropertiesMap } from './generic/
|
|
3
|
+
import { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';
|
|
4
4
|
export declare namespace PropertiesList {
|
|
5
5
|
const ParseList: (reader: BinaryReadable, buildVersion: number) => PropertiesMap;
|
|
6
6
|
const SerializeList: (properties: PropertiesMap, writer: ByteWriter, buildVersion: number) => void;
|
|
7
7
|
const ParseSingleProperty: (reader: BinaryReadable, buildVersion: number, propertyName: string) => AbstractBaseProperty;
|
|
8
|
-
const SerializeSingleProperty: (writer: ByteWriter, property: AbstractBaseProperty,
|
|
8
|
+
const SerializeSingleProperty: (writer: ByteWriter, property: AbstractBaseProperty, buildVersion: number) => void;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=PropertiesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAsBrF,yBAAiB,cAAc,CAAC;IAExB,MAAM,SAAS,WAAY,cAAc,gBAAgB,MAAM,KAAG,aAqBxE,CAAA;IAEM,MAAM,aAAa,eAAgB,aAAa,UAAU,UAAU,gBAAgB,MAAM,KAAG,IAMnG,CAAA;IAEM,MAAM,mBAAmB,WAAY,cAAc,gBAAgB,MAAM,gBAAgB,MAAM,KAAG,oBA4HxG,CAAA;IAEM,MAAM,uBAAuB,WAAY,UAAU,YAAY,oBAAoB,gBAAgB,MAAM,KAAG,IA4HlH,CAAA;CACD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PropertiesList = void 0;
|
|
4
4
|
const parser_error_1 = require("../../../error/parser.error");
|
|
5
|
-
const ArrayProperty_1 = require("./generic/ArrayProperty");
|
|
5
|
+
const ArrayProperty_1 = require("./generic/ArrayProperty/ArrayProperty");
|
|
6
6
|
const BoolProperty_1 = require("./generic/BoolProperty");
|
|
7
7
|
const ByteProperty_1 = require("./generic/ByteProperty");
|
|
8
8
|
const DoubleProperty_1 = require("./generic/DoubleProperty");
|
|
@@ -13,7 +13,7 @@ const Int64Property_1 = require("./generic/Int64Property");
|
|
|
13
13
|
const Int8Property_1 = require("./generic/Int8Property");
|
|
14
14
|
const MapProperty_1 = require("./generic/MapProperty");
|
|
15
15
|
const ObjectProperty_1 = require("./generic/ObjectProperty");
|
|
16
|
-
const SetProperty_1 = require("./generic/SetProperty");
|
|
16
|
+
const SetProperty_1 = require("./generic/SetProperty/SetProperty");
|
|
17
17
|
const SoftObjectProperty_1 = require("./generic/SoftObjectProperty");
|
|
18
18
|
const StrProperty_1 = require("./generic/StrProperty");
|
|
19
19
|
const StructProperty_1 = require("./generic/StructProperty");
|
|
@@ -44,7 +44,7 @@ var PropertiesList;
|
|
|
44
44
|
PropertiesList.SerializeList = (properties, writer, buildVersion) => {
|
|
45
45
|
for (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {
|
|
46
46
|
writer.writeString(property.name);
|
|
47
|
-
PropertiesList.SerializeSingleProperty(writer, property,
|
|
47
|
+
PropertiesList.SerializeSingleProperty(writer, property, buildVersion);
|
|
48
48
|
}
|
|
49
49
|
writer.writeString('None');
|
|
50
50
|
};
|
|
@@ -120,7 +120,7 @@ var PropertiesList;
|
|
|
120
120
|
overhead = StructProperty_1.StructProperty.CalcOverhead(currentProperty);
|
|
121
121
|
break;
|
|
122
122
|
case 'ArrayProperty':
|
|
123
|
-
currentProperty = ArrayProperty_1.ArrayProperty.Parse(reader, propertyType, index,
|
|
123
|
+
currentProperty = ArrayProperty_1.ArrayProperty.Parse(reader, propertyType, index, binarySize);
|
|
124
124
|
overhead = ArrayProperty_1.ArrayProperty.CalcOverhead(currentProperty);
|
|
125
125
|
break;
|
|
126
126
|
case 'MapProperty':
|
|
@@ -146,7 +146,7 @@ var PropertiesList;
|
|
|
146
146
|
}
|
|
147
147
|
return currentProperty;
|
|
148
148
|
};
|
|
149
|
-
PropertiesList.SerializeSingleProperty = (writer, property,
|
|
149
|
+
PropertiesList.SerializeSingleProperty = (writer, property, buildVersion) => {
|
|
150
150
|
writer.writeString(property.ueType);
|
|
151
151
|
const lenIndicator = writer.getBufferPosition();
|
|
152
152
|
writer.writeInt32(0);
|
|
@@ -224,7 +224,7 @@ var PropertiesList;
|
|
|
224
224
|
break;
|
|
225
225
|
case 'ArrayProperty':
|
|
226
226
|
overhead = ArrayProperty_1.ArrayProperty.CalcOverhead(property);
|
|
227
|
-
ArrayProperty_1.ArrayProperty.Serialize(writer, property
|
|
227
|
+
ArrayProperty_1.ArrayProperty.Serialize(writer, property);
|
|
228
228
|
break;
|
|
229
229
|
case 'MapProperty':
|
|
230
230
|
overhead = MapProperty_1.MapProperty.CalcOverhead(property);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAC1D,2DAAwD;AAExD,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,uDAAoD;AACpD,qEAAkE;AAClE,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CA4R9B;AA5RD,WAAiB,cAAc;IAEjB,wBAAS,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAiB,EAAE;QAExF,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,IAAI,YAAY,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/C,OAAO,YAAY,KAAK,MAAM,EAAE,CAAC;YAChC,MAAM,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;YAG9F,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;oBAC9C,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAyB,CAAC,CAAC;gBAC/E,CAAC;gBACA,UAAU,CAAC,YAAY,CAA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AAW,CAAC,YAAY,CAAC,QAAuB,CAAC,CAAC;gBAC7D,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAuB,CAAC,CAAC;gBACvD,MAAM;YAEP,KAAK,cAAc;gBAClB,QAAQ,GAAG,2BAAY,CAAC,YAAY,CAAC,QAAwB,CAAC,CAAC;gBAC/D,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAA4B,CAAC,CAAC;gBAClE,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAA4B,CAAC,CAAC;gBAC5D,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EA5RgB,cAAc,8BAAd,cAAc,QA4R9B","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { ParserError } from '../../../error/parser.error';\nimport { ArrayProperty } from './generic/ArrayProperty';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/BasicProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: BinaryReadable, buildVersion: number): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (properties: PropertiesMap, writer: ByteWriter, buildVersion: number): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property, property.name, buildVersion);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: BinaryReadable, buildVersion: number, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, buildVersion, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ByteWriter, property: AbstractBaseProperty, propertyName: string, buildVersion: number): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty<any>);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty<any>, propertyName);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty<any>);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty<any>);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,yEAAsE;AACtE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;A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;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EA5RgB,cAAc,8BAAd,cAAc,QA4R9B","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { ParserError } from '../../../error/parser.error';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';\nimport { ArrayProperty } from './generic/ArrayProperty/ArrayProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: BinaryReadable, buildVersion: number): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (properties: PropertiesMap, writer: ByteWriter, buildVersion: number): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property, buildVersion);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: BinaryReadable, buildVersion: number, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, buildVersion, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ByteWriter, property: AbstractBaseProperty, buildVersion: number): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Uint64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Uint64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
2
|
+
export type PropertiesMap = {
|
|
3
|
+
[name: string]: AbstractBaseProperty | AbstractBaseProperty[];
|
|
4
|
+
};
|
|
5
|
+
type AbstractBasePropertyOptions = {
|
|
6
|
+
type: string;
|
|
7
|
+
ueType: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
guidInfo?: GUIDInfo;
|
|
10
|
+
index?: number;
|
|
11
|
+
};
|
|
12
|
+
export type AbstractBaseProperty = {
|
|
13
|
+
type: string;
|
|
14
|
+
ueType: string;
|
|
15
|
+
name: string;
|
|
16
|
+
index?: number;
|
|
17
|
+
guidInfo?: GUIDInfo;
|
|
18
|
+
};
|
|
19
|
+
export declare namespace AbstractBaseProperty {
|
|
20
|
+
const Create: (options: AbstractBasePropertyOptions) => AbstractBaseProperty;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=AbstractBaseProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractBaseProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAUF,KAAK,2BAA2B,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAA;AAED,yBAAiB,oBAAoB,CAAC;IAC9B,MAAM,MAAM,YAAa,2BAA2B,KAAG,oBAS7D,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractBaseProperty = void 0;
|
|
4
|
+
var AbstractBaseProperty;
|
|
5
|
+
(function (AbstractBaseProperty) {
|
|
6
|
+
AbstractBaseProperty.Create = (options) => ({
|
|
7
|
+
type: options.type,
|
|
8
|
+
ueType: options.ueType,
|
|
9
|
+
name: (options.name !== undefined && options.name !== null) ? options.name : '',
|
|
10
|
+
...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),
|
|
11
|
+
...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})
|
|
12
|
+
});
|
|
13
|
+
})(AbstractBaseProperty || (exports.AbstractBaseProperty = AbstractBaseProperty = {}));
|
|
14
|
+
//# sourceMappingURL=AbstractBaseProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractBaseProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":";;;AA+BA,IAAiB,oBAAoB,CAWpC;AAXD,WAAiB,oBAAoB;IACvB,2BAAM,GAAG,CAAC,OAAoC,EAAwB,EAAE,CAAC,CACrF;QACC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC/E,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnH,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAG5E,CAAA,CAAC;AACH,CAAC,EAXgB,oBAAoB,oCAApB,oBAAoB,QAWpC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: AbstractBaseProperty | AbstractBaseProperty[];\n};\n\n\n/**\n * @type denotes the parser's internal type.\n * @ueType denotes the type like Unreal Engine calls it, like IntProperty. Several UE Types can be mapped to a single type in the parsers view.\n * @name property name\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array.\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tname?: string;\n\tguidInfo?: GUIDInfo;\n\tindex?: number;\n};\n\nexport type AbstractBaseProperty = {\n\ttype: string;\n\tueType: string;\n\tname: string;\n\tindex?: number;\n\tguidInfo?: GUIDInfo;\n}\n\nexport namespace AbstractBaseProperty {\n\texport const Create = (options: AbstractBasePropertyOptions): AbstractBaseProperty => (\n\t\t{\n\t\t\ttype: options.type,\n\t\t\tueType: options.ueType,\n\t\t\tname: (options.name !== undefined && options.name !== null) ? options.name : '',\n\t\t\t...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),\n\t\t\t...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})\n\n\t\t} satisfies AbstractBaseProperty\n\t);\n}"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { BoolArrayProperty } from './BoolArrayProperty';
|
|
4
|
+
import { ByteArrayProperty } from './ByteArrayProperty';
|
|
5
|
+
import { DoubleArrayProperty } from './DoubleArrayProperty';
|
|
6
|
+
import { EnumArrayProperty } from './EnumArrayProperty';
|
|
7
|
+
import { FloatArrayProperty } from './FloatArrayProperty';
|
|
8
|
+
import { Int32ArrayProperty } from './Int32ArrayProperty';
|
|
9
|
+
import { Int64ArrayProperty } from './Int64ArrayProperty';
|
|
10
|
+
import { ObjectArrayProperty } from './ObjectArrayProperty';
|
|
11
|
+
import { SoftObjectArrayProperty } from './SoftObjectArrayProperty';
|
|
12
|
+
import { StrArrayProperty } from './StrArrayProperty';
|
|
13
|
+
import { StructArrayProperty } from './StructArrayProperty';
|
|
14
|
+
import { TextArrayProperty } from './TextArrayProperty';
|
|
15
|
+
export declare const isArrayProperty: (obj: any) => obj is BoolArrayProperty | ByteArrayProperty | DoubleArrayProperty | EnumArrayProperty | FloatArrayProperty | Int32ArrayProperty | Int64ArrayProperty | ObjectArrayProperty | SoftObjectArrayProperty | StrArrayProperty | StructArrayProperty | TextArrayProperty;
|
|
16
|
+
export declare namespace ArrayProperty {
|
|
17
|
+
type AvailableArrayPropertyTypes = ReturnType<typeof Parse>;
|
|
18
|
+
const Parse: (reader: BinaryReadable, ueType: string, index: number, size: number) => BoolArrayProperty | ByteArrayProperty | DoubleArrayProperty | EnumArrayProperty | FloatArrayProperty | Int32ArrayProperty | Int64ArrayProperty | ObjectArrayProperty | SoftObjectArrayProperty | StrArrayProperty | StructArrayProperty | TextArrayProperty;
|
|
19
|
+
const CalcOverhead: (property: AvailableArrayPropertyTypes) => number;
|
|
20
|
+
const Serialize: (writer: ByteWriter, property: AvailableArrayPropertyTypes) => void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ArrayProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAyB,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAyB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAA6B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAsB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAyB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAuB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,eAAO,MAAM,eAAe,QAAS,GAAG,uQAYT,CAAC;AAEhC,yBAAiB,aAAa,CAAC;IAE3B,KAAY,2BAA2B,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;IAE5D,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,gQA+DxF,CAAA;IAEM,MAAM,YAAY,aAAc,2BAA2B,KAAG,MAEpE,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,2BAA2B,KAAG,IAiCrF,CAAA;CACJ"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayProperty = exports.isArrayProperty = void 0;
|
|
4
|
+
const parser_error_1 = require("../../../../../error/parser.error");
|
|
5
|
+
const BoolArrayProperty_1 = require("./BoolArrayProperty");
|
|
6
|
+
const ByteArrayProperty_1 = require("./ByteArrayProperty");
|
|
7
|
+
const DoubleArrayProperty_1 = require("./DoubleArrayProperty");
|
|
8
|
+
const EnumArrayProperty_1 = require("./EnumArrayProperty");
|
|
9
|
+
const FloatArrayProperty_1 = require("./FloatArrayProperty");
|
|
10
|
+
const Int32ArrayProperty_1 = require("./Int32ArrayProperty");
|
|
11
|
+
const Int64ArrayProperty_1 = require("./Int64ArrayProperty");
|
|
12
|
+
const ObjectArrayProperty_1 = require("./ObjectArrayProperty");
|
|
13
|
+
const SoftObjectArrayProperty_1 = require("./SoftObjectArrayProperty");
|
|
14
|
+
const StrArrayProperty_1 = require("./StrArrayProperty");
|
|
15
|
+
const StructArrayProperty_1 = require("./StructArrayProperty");
|
|
16
|
+
const TextArrayProperty_1 = require("./TextArrayProperty");
|
|
17
|
+
const isArrayProperty = (obj) => (0, BoolArrayProperty_1.isBoolArrayProperty)(obj)
|
|
18
|
+
|| (0, ByteArrayProperty_1.isByteArrayProperty)(obj)
|
|
19
|
+
|| (0, DoubleArrayProperty_1.isDoubleArrayProperty)(obj)
|
|
20
|
+
|| (0, EnumArrayProperty_1.isEnumArrayProperty)(obj)
|
|
21
|
+
|| (0, FloatArrayProperty_1.isFloatArrayProperty)(obj)
|
|
22
|
+
|| (0, Int32ArrayProperty_1.isInt32ArrayProperty)(obj)
|
|
23
|
+
|| (0, Int64ArrayProperty_1.isInt64ArrayProperty)(obj)
|
|
24
|
+
|| (0, ObjectArrayProperty_1.isObjectArrayProperty)(obj)
|
|
25
|
+
|| (0, SoftObjectArrayProperty_1.isSoftObjectArrayProperty)(obj)
|
|
26
|
+
|| (0, StrArrayProperty_1.isStrArrayProperty)(obj)
|
|
27
|
+
|| (0, StructArrayProperty_1.isStructArrayProperty)(obj)
|
|
28
|
+
|| (0, TextArrayProperty_1.isTextArrayProperty)(obj);
|
|
29
|
+
exports.isArrayProperty = isArrayProperty;
|
|
30
|
+
var ArrayProperty;
|
|
31
|
+
(function (ArrayProperty) {
|
|
32
|
+
ArrayProperty.Parse = (reader, ueType, index, size) => {
|
|
33
|
+
const subtype = reader.readString();
|
|
34
|
+
reader.skipBytes(1);
|
|
35
|
+
let property;
|
|
36
|
+
const elementCount = reader.readInt32();
|
|
37
|
+
switch (subtype) {
|
|
38
|
+
case "FloatProperty":
|
|
39
|
+
property = FloatArrayProperty_1.FloatArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
40
|
+
break;
|
|
41
|
+
case "BoolProperty":
|
|
42
|
+
property = BoolArrayProperty_1.BoolArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
43
|
+
break;
|
|
44
|
+
case "IntProperty":
|
|
45
|
+
property = Int32ArrayProperty_1.Int32ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
46
|
+
break;
|
|
47
|
+
case "Int64Property":
|
|
48
|
+
property = Int64ArrayProperty_1.Int64ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
49
|
+
break;
|
|
50
|
+
case "DoubleProperty":
|
|
51
|
+
property = DoubleArrayProperty_1.DoubleArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
52
|
+
break;
|
|
53
|
+
case "ByteProperty":
|
|
54
|
+
property = ByteArrayProperty_1.ByteArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
55
|
+
break;
|
|
56
|
+
case "StrProperty":
|
|
57
|
+
property = StrArrayProperty_1.StrArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
58
|
+
break;
|
|
59
|
+
case "EnumProperty":
|
|
60
|
+
property = EnumArrayProperty_1.EnumArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
61
|
+
break;
|
|
62
|
+
case "TextProperty":
|
|
63
|
+
property = TextArrayProperty_1.TextArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
64
|
+
break;
|
|
65
|
+
case "InterfaceProperty":
|
|
66
|
+
case "ObjectProperty":
|
|
67
|
+
property = ObjectArrayProperty_1.ObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
68
|
+
break;
|
|
69
|
+
case "SoftObjectProperty":
|
|
70
|
+
property = SoftObjectArrayProperty_1.SoftObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
71
|
+
break;
|
|
72
|
+
case "StructProperty":
|
|
73
|
+
property = StructArrayProperty_1.StructArrayProperty.Parse(reader, elementCount, subtype, ueType, index);
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
throw new parser_error_1.UnimplementedError(`Unknown array property subtype ${subtype} for ${ueType}. Not implemented.`);
|
|
77
|
+
}
|
|
78
|
+
return property;
|
|
79
|
+
};
|
|
80
|
+
ArrayProperty.CalcOverhead = (property) => {
|
|
81
|
+
return property.subtype.length + 5 + 1;
|
|
82
|
+
};
|
|
83
|
+
ArrayProperty.Serialize = (writer, property) => {
|
|
84
|
+
writer.writeString(property.subtype);
|
|
85
|
+
writer.writeByte(0);
|
|
86
|
+
writer.writeInt32(property.values.length);
|
|
87
|
+
if ((0, FloatArrayProperty_1.isFloatArrayProperty)(property)) {
|
|
88
|
+
FloatArrayProperty_1.FloatArrayProperty.Serialize(writer, property);
|
|
89
|
+
}
|
|
90
|
+
else if ((0, BoolArrayProperty_1.isBoolArrayProperty)(property)) {
|
|
91
|
+
BoolArrayProperty_1.BoolArrayProperty.Serialize(writer, property);
|
|
92
|
+
}
|
|
93
|
+
else if ((0, Int32ArrayProperty_1.isInt32ArrayProperty)(property)) {
|
|
94
|
+
Int32ArrayProperty_1.Int32ArrayProperty.Serialize(writer, property);
|
|
95
|
+
}
|
|
96
|
+
else if ((0, Int64ArrayProperty_1.isInt64ArrayProperty)(property)) {
|
|
97
|
+
Int64ArrayProperty_1.Int64ArrayProperty.Serialize(writer, property);
|
|
98
|
+
}
|
|
99
|
+
else if ((0, DoubleArrayProperty_1.isDoubleArrayProperty)(property)) {
|
|
100
|
+
DoubleArrayProperty_1.DoubleArrayProperty.Serialize(writer, property);
|
|
101
|
+
}
|
|
102
|
+
else if ((0, ByteArrayProperty_1.isByteArrayProperty)(property)) {
|
|
103
|
+
ByteArrayProperty_1.ByteArrayProperty.Serialize(writer, property);
|
|
104
|
+
}
|
|
105
|
+
else if ((0, StrArrayProperty_1.isStrArrayProperty)(property)) {
|
|
106
|
+
StrArrayProperty_1.StrArrayProperty.Serialize(writer, property);
|
|
107
|
+
}
|
|
108
|
+
else if ((0, EnumArrayProperty_1.isEnumArrayProperty)(property)) {
|
|
109
|
+
EnumArrayProperty_1.EnumArrayProperty.Serialize(writer, property);
|
|
110
|
+
}
|
|
111
|
+
else if ((0, TextArrayProperty_1.isTextArrayProperty)(property)) {
|
|
112
|
+
TextArrayProperty_1.TextArrayProperty.Serialize(writer, property);
|
|
113
|
+
}
|
|
114
|
+
else if ((0, ObjectArrayProperty_1.isObjectArrayProperty)(property)) {
|
|
115
|
+
ObjectArrayProperty_1.ObjectArrayProperty.Serialize(writer, property);
|
|
116
|
+
}
|
|
117
|
+
else if ((0, SoftObjectArrayProperty_1.isSoftObjectArrayProperty)(property)) {
|
|
118
|
+
SoftObjectArrayProperty_1.SoftObjectArrayProperty.Serialize(writer, property);
|
|
119
|
+
}
|
|
120
|
+
else if ((0, StructArrayProperty_1.isStructArrayProperty)(property)) {
|
|
121
|
+
StructArrayProperty_1.StructArrayProperty.Serialize(writer, property);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
throw new parser_error_1.UnimplementedError(`Unknown array property to serialize. ${property.type ?? ''}, ${property.subtype ?? ''}`);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
})(ArrayProperty || (exports.ArrayProperty = ArrayProperty = {}));
|
|
128
|
+
//# sourceMappingURL=ArrayProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,2DAA6E;AAC7E,2DAA6E;AAC7E,+DAAmF;AACnF,2DAA6E;AAC7E,6DAAgF;AAChF,6DAAgF;AAChF,6DAAgF;AAChF,+DAAmF;AACnF,uEAA+F;AAC/F,yDAA0E;AAC1E,+DAAmF;AACnF,2DAA6E;AAEtE,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAE,EAAE,CACxC,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACrB,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,2CAAqB,EAAC,GAAG,CAAC;OAC1B,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,yCAAoB,EAAC,GAAG,CAAC;OACzB,IA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AQ,CAAC,CAAC;QAClD,CAAC;aAAM,IAAI,IAAA,qCAAkB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACtC,mCAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACjD,CAAC;aAAM,IAAI,IAAA,uCAAmB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,qCAAiB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,IAAI,IAAA,uCAAmB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,qCAAiB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,IAAI,IAAA,2CAAqB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACzC,yCAAmB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;aAAM,IAAI,IAAA,mDAAyB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC7C,iDAAuB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxD,CAAC;aAAM,IAAI,IAAA,2CAAqB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACzC,yCAAmB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,iCAAkB,CAAC,wCAAyC,QAAgB,CAAC,IAAI,IAAI,EAAE,KAAM,QAAgB,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7I,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA3GgB,aAAa,6BAAb,aAAa,QA2G7B","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { BoolArrayProperty, isBoolArrayProperty } from './BoolArrayProperty';\nimport { ByteArrayProperty, isByteArrayProperty } from './ByteArrayProperty';\nimport { DoubleArrayProperty, isDoubleArrayProperty } from './DoubleArrayProperty';\nimport { EnumArrayProperty, isEnumArrayProperty } from './EnumArrayProperty';\nimport { FloatArrayProperty, isFloatArrayProperty } from './FloatArrayProperty';\nimport { Int32ArrayProperty, isInt32ArrayProperty } from './Int32ArrayProperty';\nimport { Int64ArrayProperty, isInt64ArrayProperty } from './Int64ArrayProperty';\nimport { isObjectArrayProperty, ObjectArrayProperty } from './ObjectArrayProperty';\nimport { isSoftObjectArrayProperty, SoftObjectArrayProperty } from './SoftObjectArrayProperty';\nimport { isStrArrayProperty, StrArrayProperty } from './StrArrayProperty';\nimport { isStructArrayProperty, StructArrayProperty } from './StructArrayProperty';\nimport { isTextArrayProperty, TextArrayProperty } from './TextArrayProperty';\n\nexport const isArrayProperty = (obj: any) =>\n isBoolArrayProperty(obj)\n || isByteArrayProperty(obj)\n || isDoubleArrayProperty(obj)\n || isEnumArrayProperty(obj)\n || isFloatArrayProperty(obj)\n || isInt32ArrayProperty(obj)\n || isInt64ArrayProperty(obj)\n || isObjectArrayProperty(obj)\n || isSoftObjectArrayProperty(obj)\n || isStrArrayProperty(obj)\n || isStructArrayProperty(obj)\n || isTextArrayProperty(obj);\n\nexport namespace ArrayProperty {\n\n export type AvailableArrayPropertyTypes = ReturnType<typeof Parse>;\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number, size: number) => {\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n\n let property;\n const elementCount = reader.readInt32();\n switch (subtype) {\n case \"FloatProperty\":\n property = FloatArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"BoolProperty\":\n property = BoolArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"IntProperty\":\n property = Int32ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"Int64Property\":\n property = Int64ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"DoubleProperty\":\n property = DoubleArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"ByteProperty\":\n property = ByteArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"StrProperty\":\n property = StrArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"EnumProperty\":\n property = EnumArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"TextProperty\":\n property = TextArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property = ObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"SoftObjectProperty\":\n property = SoftObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n\n case \"StructProperty\":\n property = StructArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n default:\n throw new UnimplementedError(`Unknown array property subtype ${subtype} for ${ueType}. Not implemented.`);\n\n }\n\n return property;\n }\n\n export const CalcOverhead = (property: AvailableArrayPropertyTypes): number => {\n return property.subtype.length + 5 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: AvailableArrayPropertyTypes): void => {\n\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(property.values.length);\n\n if (isFloatArrayProperty(property)) {\n FloatArrayProperty.Serialize(writer, property);\n } else if (isBoolArrayProperty(property)) {\n BoolArrayProperty.Serialize(writer, property);\n } else if (isInt32ArrayProperty(property)) {\n Int32ArrayProperty.Serialize(writer, property);\n } else if (isInt64ArrayProperty(property)) {\n Int64ArrayProperty.Serialize(writer, property);\n } else if (isDoubleArrayProperty(property)) {\n DoubleArrayProperty.Serialize(writer, property);\n } else if (isByteArrayProperty(property)) {\n ByteArrayProperty.Serialize(writer, property);\n } else if (isStrArrayProperty(property)) {\n StrArrayProperty.Serialize(writer, property);\n } else if (isEnumArrayProperty(property)) {\n EnumArrayProperty.Serialize(writer, property);\n } else if (isTextArrayProperty(property)) {\n TextArrayProperty.Serialize(writer, property);\n } else if (isObjectArrayProperty(property)) {\n ObjectArrayProperty.Serialize(writer, property);\n } else if (isSoftObjectArrayProperty(property)) {\n SoftObjectArrayProperty.Serialize(writer, property);\n } else if (isStructArrayProperty(property)) {\n StructArrayProperty.Serialize(writer, property);\n } else {\n throw new UnimplementedError(`Unknown array property to serialize. ${(property as any).type ?? ''}, ${(property as any).subtype ?? ''}`);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
+
export declare const isBoolArrayProperty: (property: any) => property is BoolArrayProperty;
|
|
5
|
+
export type BoolArrayProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'BoolArrayProperty';
|
|
7
|
+
subtype: string;
|
|
8
|
+
values: boolean[];
|
|
9
|
+
};
|
|
10
|
+
export declare namespace BoolArrayProperty {
|
|
11
|
+
const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => BoolArrayProperty;
|
|
12
|
+
const Serialize: (writer: ByteWriter, property: BoolArrayProperty) => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BoolArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoolArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,iBASxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BoolArrayProperty = exports.isBoolArrayProperty = void 0;
|
|
4
|
+
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
5
|
+
const BoolProperty_1 = require("../BoolProperty");
|
|
6
|
+
const isBoolArrayProperty = (property) => !Array.isArray(property) && property.type === 'BoolArrayProperty';
|
|
7
|
+
exports.isBoolArrayProperty = isBoolArrayProperty;
|
|
8
|
+
var BoolArrayProperty;
|
|
9
|
+
(function (BoolArrayProperty) {
|
|
10
|
+
BoolArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
11
|
+
const values = new Array(elementCount).fill(0).map(() => BoolProperty_1.BoolProperty.ReadValue(reader));
|
|
12
|
+
return {
|
|
13
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
|
|
14
|
+
type: 'BoolArrayProperty',
|
|
15
|
+
subtype,
|
|
16
|
+
values
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
BoolArrayProperty.Serialize = (writer, property) => {
|
|
20
|
+
property.values.forEach(value => BoolProperty_1.BoolProperty.SerializeValue(writer, value));
|
|
21
|
+
};
|
|
22
|
+
})(BoolArrayProperty || (exports.BoolArrayProperty = BoolArrayProperty = {}));
|
|
23
|
+
//# sourceMappingURL=BoolArrayProperty.js.map
|