@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etothepii/satisfactory-file-parser",
|
|
3
3
|
"author": "etothepii",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"description": "A file parser for satisfactory files. Includes save files and blueprint files.",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"main": "./build/index.js",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"typescript"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"test": "set PARSER_DEBUG=debug&& jest --config=jest.config.json --max_old_space_size=30720",
|
|
17
|
+
"test": "tsc --noEmit && set PARSER_DEBUG=debug&& jest --config=jest.config.json --max_old_space_size=30720",
|
|
18
18
|
"doc": "typedoc src/index.ts",
|
|
19
|
-
"build": "tsc
|
|
19
|
+
"build": "tsc",
|
|
20
20
|
"prepublishOnly": "npm run build && npm version patch"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021-2024 etothepii
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
-
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import { BasicProperty } from './BasicProperty';
|
|
4
|
-
export type ArrayPropertyStructValueFields = {
|
|
5
|
-
allStructType: string;
|
|
6
|
-
allIndex: number;
|
|
7
|
-
allGuid: number;
|
|
8
|
-
allUnk1?: number;
|
|
9
|
-
allUnk2?: number;
|
|
10
|
-
allUnk3?: number;
|
|
11
|
-
allUnk4?: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const isArrayProperty: (property: BasicProperty) => property is ArrayProperty<any>;
|
|
14
|
-
export declare class ArrayProperty<T> extends BasicProperty {
|
|
15
|
-
subtype: string;
|
|
16
|
-
values: T[];
|
|
17
|
-
structValueFields?: ArrayPropertyStructValueFields | undefined;
|
|
18
|
-
constructor(subtype: string, values: T[], ueType?: string, index?: number, structValueFields?: ArrayPropertyStructValueFields | undefined);
|
|
19
|
-
static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): ArrayProperty<any>;
|
|
20
|
-
static CalcOverhead(property: ArrayProperty<any>): number;
|
|
21
|
-
static Serialize(writer: ByteWriter, property: ArrayProperty<any>, propertyName: string): void;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ArrayProperty.d.ts.map
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,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;CA8ExG"}
|
|
@@ -1,172 +0,0 @@
|
|
|
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 BasicProperty_1 = require("./BasicProperty");
|
|
6
|
-
const BoolProperty_1 = require("./BoolProperty");
|
|
7
|
-
const ByteProperty_1 = require("./ByteProperty");
|
|
8
|
-
const DoubleProperty_1 = require("./DoubleProperty");
|
|
9
|
-
const EnumProperty_1 = require("./EnumProperty");
|
|
10
|
-
const FloatProperty_1 = require("./FloatProperty");
|
|
11
|
-
const Int32Property_1 = require("./Int32Property");
|
|
12
|
-
const Int64Property_1 = require("./Int64Property");
|
|
13
|
-
const ObjectProperty_1 = require("./ObjectProperty");
|
|
14
|
-
const SoftObjectProperty_1 = require("./SoftObjectProperty");
|
|
15
|
-
const StrProperty_1 = require("./StrProperty");
|
|
16
|
-
const StructProperty_1 = require("./StructProperty");
|
|
17
|
-
const TextProperty_1 = require("./TextProperty");
|
|
18
|
-
const isArrayProperty = (property) => property.type === 'ArrayProperty';
|
|
19
|
-
exports.isArrayProperty = isArrayProperty;
|
|
20
|
-
class ArrayProperty extends BasicProperty_1.BasicProperty {
|
|
21
|
-
constructor(subtype, values, ueType = 'ArrayProperty', index = 0, structValueFields) {
|
|
22
|
-
super({ type: 'ArrayProperty', ueType, index });
|
|
23
|
-
this.subtype = subtype;
|
|
24
|
-
this.values = values;
|
|
25
|
-
this.structValueFields = structValueFields;
|
|
26
|
-
}
|
|
27
|
-
static Parse(reader, ueType, index, propertyName) {
|
|
28
|
-
const subtype = reader.readString();
|
|
29
|
-
reader.skipBytes(1);
|
|
30
|
-
let property;
|
|
31
|
-
const elementCount = reader.readInt32();
|
|
32
|
-
switch (subtype) {
|
|
33
|
-
case "FloatProperty":
|
|
34
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => FloatProperty_1.FloatProperty.ReadValue(reader)), ueType, index);
|
|
35
|
-
break;
|
|
36
|
-
case "BoolProperty":
|
|
37
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => BoolProperty_1.BoolProperty.ReadValue(reader)), ueType, index);
|
|
38
|
-
break;
|
|
39
|
-
case "IntProperty":
|
|
40
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => Int32Property_1.Int32Property.ReadValue(reader)), ueType, index);
|
|
41
|
-
break;
|
|
42
|
-
case "Int64Property":
|
|
43
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => Int64Property_1.Int64Property.ReadValue(reader)), ueType, index);
|
|
44
|
-
break;
|
|
45
|
-
case "DoubleProperty":
|
|
46
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => DoubleProperty_1.DoubleProperty.ReadValue(reader)), ueType, index);
|
|
47
|
-
break;
|
|
48
|
-
case "ByteProperty":
|
|
49
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => ByteProperty_1.ByteProperty.ReadValue(reader)), ueType, index);
|
|
50
|
-
break;
|
|
51
|
-
case "StrProperty":
|
|
52
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader)), ueType, index);
|
|
53
|
-
break;
|
|
54
|
-
case "EnumProperty":
|
|
55
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => EnumProperty_1.EnumProperty.ReadValue(reader)), ueType, index);
|
|
56
|
-
break;
|
|
57
|
-
case "TextProperty":
|
|
58
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader)), ueType, index);
|
|
59
|
-
break;
|
|
60
|
-
case "InterfaceProperty":
|
|
61
|
-
case "ObjectProperty":
|
|
62
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty_1.ObjectProperty.ReadValue(reader)), ueType, index);
|
|
63
|
-
break;
|
|
64
|
-
case "SoftObjectProperty":
|
|
65
|
-
property = new ArrayProperty(subtype, new Array(elementCount).fill(0).map(() => SoftObjectProperty_1.SoftObjectProperty.ReadValue(reader)), ueType, index);
|
|
66
|
-
break;
|
|
67
|
-
case "StructProperty":
|
|
68
|
-
const name = reader.readString();
|
|
69
|
-
const type = reader.readString();
|
|
70
|
-
const binarySize = reader.readInt32();
|
|
71
|
-
const allIndex = reader.readInt32();
|
|
72
|
-
const allStructType = reader.readString();
|
|
73
|
-
const allGuid = reader.readInt32();
|
|
74
|
-
const allUnk1 = reader.readInt32();
|
|
75
|
-
const allUnk2 = reader.readInt32();
|
|
76
|
-
const allUnk3 = reader.readInt32();
|
|
77
|
-
const allUnk4 = reader.readByte();
|
|
78
|
-
const innerStructValueFields = { allStructType, allIndex, allGuid };
|
|
79
|
-
if (allUnk1 !== 0) {
|
|
80
|
-
innerStructValueFields.allUnk1 = allUnk1;
|
|
81
|
-
}
|
|
82
|
-
if (allUnk2 !== 0) {
|
|
83
|
-
innerStructValueFields.allUnk2 = allUnk2;
|
|
84
|
-
}
|
|
85
|
-
if (allUnk3 !== 0) {
|
|
86
|
-
innerStructValueFields.allUnk3 = allUnk3;
|
|
87
|
-
}
|
|
88
|
-
if (allUnk4 !== 0) {
|
|
89
|
-
innerStructValueFields.allUnk4 = allUnk4;
|
|
90
|
-
}
|
|
91
|
-
const before = reader.getBufferPosition();
|
|
92
|
-
const maArr = new Array(elementCount).fill(0).map(() => {
|
|
93
|
-
const struct = new StructProperty_1.StructProperty(allStructType, type, allIndex, allGuid);
|
|
94
|
-
struct.value = StructProperty_1.StructProperty.ParseValue(reader, allStructType, binarySize);
|
|
95
|
-
return struct;
|
|
96
|
-
});
|
|
97
|
-
const readBytes = reader.getBufferPosition() - before;
|
|
98
|
-
if (readBytes !== binarySize) {
|
|
99
|
-
throw new Error('possibly corrupt in array of struct.');
|
|
100
|
-
}
|
|
101
|
-
property = new ArrayProperty(subtype, maArr, ueType, index, innerStructValueFields);
|
|
102
|
-
break;
|
|
103
|
-
default:
|
|
104
|
-
throw new parser_error_1.UnimplementedError(`Unknown subtype ${subtype} for ${ueType}. Not implemented.`);
|
|
105
|
-
}
|
|
106
|
-
return property;
|
|
107
|
-
}
|
|
108
|
-
static CalcOverhead(property) {
|
|
109
|
-
return property.subtype.length + 5 + 1;
|
|
110
|
-
}
|
|
111
|
-
static Serialize(writer, property, propertyName) {
|
|
112
|
-
writer.writeString(property.subtype);
|
|
113
|
-
writer.writeByte(0);
|
|
114
|
-
writer.writeInt32(property.values.length);
|
|
115
|
-
switch (property.subtype) {
|
|
116
|
-
case "FloatProperty":
|
|
117
|
-
property.values.forEach(v => FloatProperty_1.FloatProperty.SerializeValue(writer, v));
|
|
118
|
-
break;
|
|
119
|
-
case "BoolProperty":
|
|
120
|
-
property.values.forEach(v => BoolProperty_1.BoolProperty.SerializeValue(writer, v));
|
|
121
|
-
break;
|
|
122
|
-
case "IntProperty":
|
|
123
|
-
property.values.forEach(v => Int32Property_1.Int32Property.SerializeValue(writer, v));
|
|
124
|
-
break;
|
|
125
|
-
case "Int64Property":
|
|
126
|
-
property.values.forEach(v => Int64Property_1.Int64Property.SerializeValue(writer, v));
|
|
127
|
-
break;
|
|
128
|
-
case "DoubleProperty":
|
|
129
|
-
property.values.forEach(v => DoubleProperty_1.DoubleProperty.SerializeValue(writer, v));
|
|
130
|
-
break;
|
|
131
|
-
case "ByteProperty":
|
|
132
|
-
property.values.forEach(v => ByteProperty_1.ByteProperty.SerializeValue(writer, v));
|
|
133
|
-
break;
|
|
134
|
-
case "StrProperty":
|
|
135
|
-
property.values.forEach(v => StrProperty_1.StrProperty.SerializeValue(writer, v));
|
|
136
|
-
break;
|
|
137
|
-
case "EnumProperty":
|
|
138
|
-
property.values.forEach(v => EnumProperty_1.EnumProperty.SerializeValue(writer, v));
|
|
139
|
-
break;
|
|
140
|
-
case "TextProperty":
|
|
141
|
-
property.values.forEach(v => TextProperty_1.TextProperty.SerializeValue(writer, v));
|
|
142
|
-
break;
|
|
143
|
-
case "InterfaceProperty":
|
|
144
|
-
case "ObjectProperty":
|
|
145
|
-
property.values.forEach(v => ObjectProperty_1.ObjectProperty.SerializeValue(writer, v));
|
|
146
|
-
break;
|
|
147
|
-
case "SoftObjectProperty":
|
|
148
|
-
property.values.forEach(v => SoftObjectProperty_1.SoftObjectProperty.SerializeValue(writer, v));
|
|
149
|
-
break;
|
|
150
|
-
case "StructProperty":
|
|
151
|
-
writer.writeString(propertyName);
|
|
152
|
-
writer.writeString(property.subtype);
|
|
153
|
-
const lenIndicator = writer.getBufferPosition();
|
|
154
|
-
writer.writeInt32(0);
|
|
155
|
-
writer.writeInt32(property.structValueFields.allIndex);
|
|
156
|
-
writer.writeString(property.structValueFields.allStructType);
|
|
157
|
-
writer.writeInt32(property.structValueFields.allGuid);
|
|
158
|
-
writer.writeInt32(property.structValueFields.allUnk1 ?? 0);
|
|
159
|
-
writer.writeInt32(property.structValueFields.allUnk2 ?? 0);
|
|
160
|
-
writer.writeInt32(property.structValueFields.allUnk3 ?? 0);
|
|
161
|
-
writer.writeByte(property.structValueFields.allUnk4 ?? 0);
|
|
162
|
-
const before = writer.getBufferPosition();
|
|
163
|
-
property.values.forEach(v => StructProperty_1.StructProperty.SerializeValue(writer, property.structValueFields.allStructType, v.value));
|
|
164
|
-
writer.writeBinarySizeFromPosition(lenIndicator, before);
|
|
165
|
-
break;
|
|
166
|
-
default:
|
|
167
|
-
throw new Error(`Unknown array property ${property.ueType}, ${property.type}`);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
exports.ArrayProperty = ArrayProperty;
|
|
172
|
-
//# sourceMappingURL=ArrayProperty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty.ts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C,CAAC;gBAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;gBAC5D,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;gBAE3D,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;gBAC1C,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxH,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBACzD,MAAM;YAEV;gBACI,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACvF,CAAC;IACL,CAAC;CACJ;AAtMD,sCAsMC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { UnimplementedError } from '../../../../error/parser.error';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { SoftObjectReference } from '../../structs/SoftObjectReference';\nimport { BasicProperty } from './BasicProperty';\nimport { BoolProperty } from './BoolProperty';\nimport { ByteProperty } from './ByteProperty';\nimport { DoubleProperty } from './DoubleProperty';\nimport { EnumProperty } from './EnumProperty';\nimport { FloatProperty } from './FloatProperty';\nimport { Int32Property } from './Int32Property';\nimport { Int64Property } from './Int64Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { SoftObjectProperty } from './SoftObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { StructProperty } from './StructProperty';\nimport { TextProperty, TextPropertyValue } from './TextProperty';\n\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex: number;\n allGuid: number;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n\nexport const isArrayProperty = (property: BasicProperty): property is ArrayProperty<any> => property.type === 'ArrayProperty';\n\nexport class ArrayProperty<T> extends BasicProperty {\n\n constructor(public subtype: string, public values: T[], ueType: string = 'ArrayProperty', index: number = 0, public structValueFields?: ArrayPropertyStructValueFields) {\n super({ type: 'ArrayProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): ArrayProperty<any> {\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n\n let property;\n const elementCount = reader.readInt32();\n switch (subtype) {\n case \"FloatProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => FloatProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"BoolProperty\":\n property = new ArrayProperty<boolean>(subtype, new Array(elementCount).fill(0).map(() => BoolProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"IntProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Int32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"Int64Property\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => Int64Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"DoubleProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => DoubleProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"ByteProperty\":\n property = new ArrayProperty<number>(subtype, new Array(elementCount).fill(0).map(() => ByteProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"StrProperty\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"EnumProperty\":\n property = new ArrayProperty<string>(subtype, new Array(elementCount).fill(0).map(() => EnumProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"TextProperty\":\n property = new ArrayProperty<TextPropertyValue>(subtype, new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property = new ArrayProperty<ObjectReference>(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"SoftObjectProperty\":\n property = new ArrayProperty<SoftObjectReference>(subtype, new Array(elementCount).fill(0).map(() => SoftObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n\n case \"StructProperty\":\n\n const name = reader.readString(); // Same as currentProperty.name\n const type = reader.readString(); // StructProperty\n\n const binarySize = reader.readInt32(); // structureSize\n const allIndex = reader.readInt32(); // 0\n\n const allStructType = reader.readString();\n const allGuid = reader.readInt32();\n\n const allUnk1 = reader.readInt32();\n const allUnk2 = reader.readInt32();\n const allUnk3 = reader.readInt32();\n const allUnk4 = reader.readByte();\n\n const innerStructValueFields: ArrayPropertyStructValueFields = { allStructType, allIndex, allGuid };\n if (allUnk1 !== 0) {\n innerStructValueFields.allUnk1 = allUnk1;\n }\n if (allUnk2 !== 0) {\n innerStructValueFields.allUnk2 = allUnk2;\n }\n if (allUnk3 !== 0) {\n innerStructValueFields.allUnk3 = allUnk3;\n }\n if (allUnk4 !== 0) {\n innerStructValueFields.allUnk4 = allUnk4;\n }\n\n\n const before = reader.getBufferPosition();\n const maArr = new Array(elementCount).fill(0).map(() => {\n\n const struct = new StructProperty(allStructType, type, allIndex, allGuid);\n\n // we do NOT assign individual unk's here. Since they are only serialized always on ArrayProperty's Level once for all elements.\n struct.value = StructProperty.ParseValue(reader, allStructType, binarySize);\n return struct;\n });\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== binarySize) {\n throw new Error('possibly corrupt in array of struct.');\n }\n\n // Array Properties with struct values have some more properties.\n property = new ArrayProperty<StructProperty>(subtype, maArr, ueType, index, innerStructValueFields);\n break;\n\n default:\n throw new UnimplementedError(`Unknown subtype ${subtype} for ${ueType}. Not implemented.`);\n\n }\n\n return property;\n }\n\n public static CalcOverhead(property: ArrayProperty<any>): number {\n return property.subtype.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ArrayProperty<any>, propertyName: string): void {\n\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(property.values.length);\n\n switch (property.subtype) {\n case \"FloatProperty\":\n property.values.forEach(v => FloatProperty.SerializeValue(writer, v));\n break;\n\n case \"BoolProperty\":\n property.values.forEach(v => BoolProperty.SerializeValue(writer, v));\n break;\n\n case \"IntProperty\":\n property.values.forEach(v => Int32Property.SerializeValue(writer, v));\n break;\n\n case \"Int64Property\":\n property.values.forEach(v => Int64Property.SerializeValue(writer, v));\n break;\n\n case \"DoubleProperty\":\n property.values.forEach(v => DoubleProperty.SerializeValue(writer, v));\n break;\n\n case \"ByteProperty\":\n property.values.forEach(v => ByteProperty.SerializeValue(writer, v));\n break;\n\n case \"StrProperty\":\n property.values.forEach(v => StrProperty.SerializeValue(writer, v));\n break;\n\n case \"EnumProperty\":\n property.values.forEach(v => EnumProperty.SerializeValue(writer, v));\n break;\n\n case \"TextProperty\":\n property.values.forEach(v => TextProperty.SerializeValue(writer, v));\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property.values.forEach(v => ObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"SoftObjectProperty\":\n property.values.forEach(v => SoftObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"StructProperty\":\n\n writer.writeString(propertyName);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex);\n\n writer.writeString(property.structValueFields!.allStructType);\n writer.writeInt32(property.structValueFields!.allGuid);\n\n writer.writeInt32(property.structValueFields!.allUnk1 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk2 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk3 ?? 0);\n writer.writeByte(property.structValueFields!.allUnk4 ?? 0);\n\n const before = writer.getBufferPosition();\n property.values.forEach(v => StructProperty.SerializeValue(writer, property.structValueFields!.allStructType, v.value));\n writer.writeBinarySizeFromPosition(lenIndicator, before);\n break;\n\n default:\n throw new Error(`Unknown array property ${property.ueType}, ${property.type}`);\n }\n }\n}\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
2
|
-
export type PropertiesMap = {
|
|
3
|
-
[name: string]: AbstractBaseProperty | AbstractBaseProperty[];
|
|
4
|
-
};
|
|
5
|
-
export declare abstract class AbstractProperty {
|
|
6
|
-
type: string;
|
|
7
|
-
index?: number | undefined;
|
|
8
|
-
constructor(type: string, index?: number | undefined);
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class AbstractBaseProperty extends AbstractProperty {
|
|
11
|
-
ueType: string;
|
|
12
|
-
name: string;
|
|
13
|
-
constructor(type: string, ueType: string, index: number);
|
|
14
|
-
}
|
|
15
|
-
type AbstractBasePropertyOptions = {
|
|
16
|
-
type: string;
|
|
17
|
-
ueType: string;
|
|
18
|
-
guidInfo?: GUIDInfo;
|
|
19
|
-
index: number;
|
|
20
|
-
};
|
|
21
|
-
export declare abstract class BasicProperty extends AbstractBaseProperty {
|
|
22
|
-
guidInfo: GUIDInfo;
|
|
23
|
-
constructor(options: AbstractBasePropertyOptions);
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=BasicProperty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BasicProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAEF,8BAAsB,gBAAgB;IAClB,IAAI,EAAE,MAAM;IAAS,KAAK,CAAC,EAAE,MAAM;gBAAnC,IAAI,EAAE,MAAM,EAAS,KAAK,CAAC,EAAE,MAAM,YAAA;CACtD;AAED,8BAAsB,oBAAqB,SAAQ,gBAAgB;IAKjC,MAAM,EAAE,MAAM;IAHxC,IAAI,EAAE,MAAM,CAAM;gBAGb,IAAI,EAAE,MAAM,EAAS,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAG9D;AAQD,KAAK,2BAA2B,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AACF,8BAAsB,aAAc,SAAQ,oBAAoB;IAExD,QAAQ,EAAE,QAAQ,CAAa;gBAE1B,OAAO,EAAE,2BAA2B;CAMhD"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasicProperty = exports.AbstractBaseProperty = exports.AbstractProperty = void 0;
|
|
4
|
-
class AbstractProperty {
|
|
5
|
-
constructor(type, index) {
|
|
6
|
-
this.type = type;
|
|
7
|
-
this.index = index;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.AbstractProperty = AbstractProperty;
|
|
11
|
-
class AbstractBaseProperty extends AbstractProperty {
|
|
12
|
-
constructor(type, ueType, index) {
|
|
13
|
-
super(type, index && index !== 0 ? index : undefined);
|
|
14
|
-
this.ueType = ueType;
|
|
15
|
-
this.name = '';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.AbstractBaseProperty = AbstractBaseProperty;
|
|
19
|
-
class BasicProperty extends AbstractBaseProperty {
|
|
20
|
-
constructor(options) {
|
|
21
|
-
super(options.type, options.ueType, options.index ?? 0);
|
|
22
|
-
this.guidInfo = undefined;
|
|
23
|
-
if (options.guidInfo !== undefined) {
|
|
24
|
-
this.guidInfo = options.guidInfo;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.BasicProperty = BasicProperty;
|
|
29
|
-
//# sourceMappingURL=BasicProperty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BasicProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BasicProperty.ts"],"names":[],"mappings":";;;AAOA,MAAsB,gBAAgB;IACrC,YAAmB,IAAY,EAAS,KAAc;QAAnC,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAS;IAAI,CAAC;CAC3D;AAFD,4CAEC;AAED,MAAsB,oBAAqB,SAAQ,gBAAgB;IAKlE,YAAY,IAAY,EAAS,MAAc,EAAE,KAAa;QAC7D,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QADtB,WAAM,GAAN,MAAM,CAAQ;QAHxC,SAAI,GAAW,EAAE,CAAC;IAKzB,CAAC;CACD;AARD,oDAQC;AAcD,MAAsB,aAAc,SAAQ,oBAAoB;IAI/D,YAAY,OAAoC;QAC/C,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;QAHlD,aAAQ,GAAa,SAAS,CAAC;QAIrC,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QAClC,CAAC;IACF,CAAC;CACD;AAVD,sCAUC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: AbstractBaseProperty | AbstractBaseProperty[];\n};\n\nexport abstract class AbstractProperty {\n\tconstructor(public type: string, public index?: number) { }\n}\n\nexport abstract class AbstractBaseProperty extends AbstractProperty {\n\n\tpublic name: string = '';\n\n\t// overhead like Guid is not calculated into property size\n\tconstructor(type: string, public ueType: string, index: number) {\n\t\tsuper(type, index && index !== 0 ? index : undefined);\n\t}\n}\n\n/**\n * @type denotes our internal type.\n * @ueType denotes the type like Unreal Engine calls it, like IntProperty\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array.\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tguidInfo?: GUIDInfo;\n\tindex: number;\n};\nexport abstract class BasicProperty extends AbstractBaseProperty {\n\n\tpublic guidInfo: GUIDInfo = undefined;\n\n\tconstructor(options: AbstractBasePropertyOptions) {\n\t\tsuper(options.type, options.ueType, options.index ?? 0);\n\t\tif (options.guidInfo !== undefined) {\n\t\t\tthis.guidInfo = options.guidInfo;\n\t\t}\n\t}\n}\n\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
-
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import { BasicProperty } from './BasicProperty';
|
|
4
|
-
export declare const isSetProperty: (property: BasicProperty) => property is SetProperty<any>;
|
|
5
|
-
export declare class SetProperty<T> extends BasicProperty {
|
|
6
|
-
subtype: string;
|
|
7
|
-
values: T[];
|
|
8
|
-
constructor(subtype: string, values: T[], ueType: string, index: number);
|
|
9
|
-
static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any>;
|
|
10
|
-
static CalcOverhead(property: SetProperty<any>): number;
|
|
11
|
-
static Serialize(writer: ByteWriter, property: SetProperty<any>): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=SetProperty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,eAAO,MAAM,aAAa,aAAc,aAAa,KAAG,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAoC,CAAC;AAExH,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,aAAa;IAE1B,OAAO,EAAE,MAAM;IAAS,MAAM,EAAE,CAAC,EAAE;gBAAnC,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;WAIvE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC;WA8CpG,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM;WAIhD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CA2ChF"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetProperty = exports.isSetProperty = void 0;
|
|
4
|
-
const GUID_1 = require("../../structs/GUID");
|
|
5
|
-
const vec3_1 = require("../../structs/vec3");
|
|
6
|
-
const BasicProperty_1 = require("./BasicProperty");
|
|
7
|
-
const Int32Property_1 = require("./Int32Property");
|
|
8
|
-
const ObjectProperty_1 = require("./ObjectProperty");
|
|
9
|
-
const StrProperty_1 = require("./StrProperty");
|
|
10
|
-
const Uint32Property_1 = require("./Uint32Property");
|
|
11
|
-
const isSetProperty = (property) => property.type === 'SetProperty';
|
|
12
|
-
exports.isSetProperty = isSetProperty;
|
|
13
|
-
class SetProperty extends BasicProperty_1.BasicProperty {
|
|
14
|
-
constructor(subtype, values, ueType, index) {
|
|
15
|
-
super({ type: 'SetProperty', ueType, index });
|
|
16
|
-
this.subtype = subtype;
|
|
17
|
-
this.values = values;
|
|
18
|
-
}
|
|
19
|
-
static Parse(reader, ueType, index, propertyName) {
|
|
20
|
-
const subtype = reader.readString();
|
|
21
|
-
reader.skipBytes(1);
|
|
22
|
-
reader.skipBytes(4);
|
|
23
|
-
const elementCount = reader.readInt32();
|
|
24
|
-
let property;
|
|
25
|
-
switch (subtype) {
|
|
26
|
-
case "UInt32Property":
|
|
27
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => Uint32Property_1.Uint32Property.ReadValue(reader)), ueType, index);
|
|
28
|
-
break;
|
|
29
|
-
case "IntProperty":
|
|
30
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => Int32Property_1.Int32Property.ReadValue(reader)), ueType, index);
|
|
31
|
-
break;
|
|
32
|
-
case "ObjectProperty":
|
|
33
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty_1.ObjectProperty.ReadValue(reader)), ueType, index);
|
|
34
|
-
break;
|
|
35
|
-
case "NameProperty":
|
|
36
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader)), ueType, index);
|
|
37
|
-
break;
|
|
38
|
-
case "StructProperty":
|
|
39
|
-
if (propertyName === 'mRemovalLocations') {
|
|
40
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => vec3_1.vec3.ParseF(reader)), ueType, index);
|
|
41
|
-
}
|
|
42
|
-
if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {
|
|
43
|
-
property = new SetProperty(subtype, new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader)), ueType, index);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
throw new Error(`Not Implemented SetProperty of StructProperty for property ${propertyName}.`);
|
|
47
|
-
}
|
|
48
|
-
break;
|
|
49
|
-
default:
|
|
50
|
-
throw new Error(`Not Implemented SetProperty of ${subtype}.`);
|
|
51
|
-
}
|
|
52
|
-
return property;
|
|
53
|
-
}
|
|
54
|
-
static CalcOverhead(property) {
|
|
55
|
-
return property.subtype.length + 5 + 1;
|
|
56
|
-
}
|
|
57
|
-
static Serialize(writer, property) {
|
|
58
|
-
writer.writeString(property.subtype);
|
|
59
|
-
writer.writeByte(0);
|
|
60
|
-
writer.writeInt32(0);
|
|
61
|
-
writer.writeInt32(property.values.length);
|
|
62
|
-
switch (property.subtype) {
|
|
63
|
-
case "IntProperty":
|
|
64
|
-
case "Int32Property":
|
|
65
|
-
property.values.forEach(v => Int32Property_1.Int32Property.SerializeValue(writer, v));
|
|
66
|
-
break;
|
|
67
|
-
case "UIntProperty":
|
|
68
|
-
case "UInt32Property":
|
|
69
|
-
property.values.forEach(v => Uint32Property_1.Uint32Property.SerializeValue(writer, v));
|
|
70
|
-
break;
|
|
71
|
-
case "ObjectProperty":
|
|
72
|
-
property.values.forEach(v => ObjectProperty_1.ObjectProperty.SerializeValue(writer, v));
|
|
73
|
-
break;
|
|
74
|
-
case "NameProperty":
|
|
75
|
-
property.values.forEach(v => StrProperty_1.StrProperty.SerializeValue(writer, v));
|
|
76
|
-
break;
|
|
77
|
-
case "StructProperty":
|
|
78
|
-
if (property.name === 'mRemovalLocations') {
|
|
79
|
-
console.warn('serializing mRemovalLocations, this is still under investigation.');
|
|
80
|
-
property.values.forEach(v => vec3_1.vec3.SerializeF(writer, v));
|
|
81
|
-
}
|
|
82
|
-
else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
|
|
83
|
-
property.values.forEach(v => GUID_1.GUID.write(writer, v));
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
default:
|
|
90
|
-
throw new Error(`Not Implemented SetProperty of ${property.subtype}.`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.SetProperty = SetProperty;
|
|
95
|
-
//# sourceMappingURL=SetProperty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/SetProperty.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAE1C,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAClD,+CAA4C;AAC5C,qDAAkD;AAE3C,MAAM,aAAa,GAAG,CAAC,QAAuB,EAAgC,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAA3G,QAAA,aAAa,iBAA8F;AAExH,MAAa,WAAe,SAAQ,6BAAa;IAE7C,YAAmB,OAAe,EAAS,MAAW,EAAE,MAAc,EAAE,KAAa;QACjF,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAD/B,YAAO,GAAP,OAAO,CAAQ;QAAS,WAAM,GAAN,MAAM,CAAK;IAEtD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,KAAa,EAAE,YAAoB;QAE3F,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAExC,IAAI,QAA0B,CAAC;QAC/B,QAAQ,OAAO,EAAE,CAAC;YAEd,KAAK,gBAAgB;gBACjB,QAAQ,GAAG,IAAI,WAAW,CAAS,OAAO,EAAE,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,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{ ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUID } from '../../structs/GUID';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\nimport { BasicProperty } from './BasicProperty';\nimport { Int32Property } from './Int32Property';\nimport { ObjectProperty } from './ObjectProperty';\nimport { StrProperty } from './StrProperty';\nimport { Uint32Property } from './Uint32Property';\n\nexport const isSetProperty = (property: BasicProperty): property is SetProperty<any> => property.type === 'SetProperty';\n\nexport class SetProperty<T> extends BasicProperty {\n\n constructor(public subtype: string, public values: T[], ueType: string, index: number) {\n super({ type: 'SetProperty', ueType, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any> {\n\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n reader.skipBytes(4); // 0\n const elementCount = reader.readInt32();\n\n let property: SetProperty<any>;\n switch (subtype) {\n\n case \"UInt32Property\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"IntProperty\":\n property = new SetProperty<number>(subtype, new Array(elementCount).fill(0).map(() => Int32Property.ReadValue(reader)), ueType, index);\n break;\n\n case \"ObjectProperty\":\n property = new SetProperty<ObjectReference>(subtype, new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"NameProperty\":\n property = new SetProperty<string>(subtype, new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader)), ueType, index);\n break;\n\n case \"StructProperty\":\n\n if (propertyName === 'mRemovalLocations') {\n property = new SetProperty<vec3>(subtype, new Array(elementCount).fill(0).map(() => vec3.ParseF(reader)), ueType, index);\n }\n\n if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n property = new SetProperty<GUID>(subtype, new Array(elementCount).fill(0).map(() => GUID.read(reader)), ueType, index);\n } else {\n throw new Error(`Not Implemented SetProperty of StructProperty for property ${propertyName}.`);\n }\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${subtype}.`);\n }\n\n return property!;\n }\n\n public static CalcOverhead(property: SetProperty<any>): number {\n return property.subtype.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: SetProperty<any>): void {\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(0);\n writer.writeInt32(property.values.length);\n\n switch (property.subtype) {\n\n case \"IntProperty\":\n case \"Int32Property\":\n property.values.forEach(v => Int32Property.SerializeValue(writer, v));\n break;\n\n case \"UIntProperty\":\n case \"UInt32Property\":\n property.values.forEach(v => Uint32Property.SerializeValue(writer, v));\n break;\n\n case \"ObjectProperty\":\n property.values.forEach(v => ObjectProperty.SerializeValue(writer, v));\n break;\n\n case \"NameProperty\":\n property.values.forEach(v => StrProperty.SerializeValue(writer, v));\n break;\n\n case \"StructProperty\":\n // outdated i guess\n if (property.name === 'mRemovalLocations') {\n console.warn('serializing mRemovalLocations, this is still under investigation.');\n property.values.forEach(v => vec3.SerializeF(writer, v));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values.forEach(v => GUID.write(writer, v));\n } else {\n throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);\n }\n break;\n\n\n default:\n throw new Error(`Not Implemented SetProperty of ${property.subtype}.`);\n }\n }\n}\n"]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ObjectReference } from '../../structs/ObjectReference';
|
|
2
|
-
import { Transform } from '../../structs/Transform';
|
|
3
|
-
import { vec2 } from '../../structs/vec2';
|
|
4
|
-
import { vec3 } from '../../structs/vec3';
|
|
5
|
-
export type SpecialAnyProperties = EmptySpecialProperties | PowerLineSpecialProperties | PlayerSpecialProperties | ConveyorChainActorSpecialProperties | BuildableSubsystemSpecialProperties;
|
|
6
|
-
export type EmptySpecialProperties = {};
|
|
7
|
-
export type PowerLineSpecialProperties = {
|
|
8
|
-
source: ObjectReference;
|
|
9
|
-
target: ObjectReference;
|
|
10
|
-
sourceTranslation?: vec3;
|
|
11
|
-
targetTranslation?: vec3;
|
|
12
|
-
};
|
|
13
|
-
export type PlayerSpecialProperties = {
|
|
14
|
-
flag: number;
|
|
15
|
-
eosData?: string;
|
|
16
|
-
steamPlayerData?: string;
|
|
17
|
-
};
|
|
18
|
-
export type ConveyorItemSpecialProperties = {
|
|
19
|
-
position: number;
|
|
20
|
-
itemName: string;
|
|
21
|
-
};
|
|
22
|
-
export type ConveyorChainSegmentSpecialProperties = {
|
|
23
|
-
chainActorRef: ObjectReference;
|
|
24
|
-
beltRef: ObjectReference;
|
|
25
|
-
someCount: number;
|
|
26
|
-
unknownUseBytes: number[];
|
|
27
|
-
firstItemIndex: number;
|
|
28
|
-
lastItemIndex: number;
|
|
29
|
-
beltIndexInChain: number;
|
|
30
|
-
};
|
|
31
|
-
export type ConveyorChainActorSpecialProperties = {
|
|
32
|
-
firstBelt: ObjectReference;
|
|
33
|
-
lastBelt: ObjectReference;
|
|
34
|
-
beltsInChain: ConveyorChainSegmentSpecialProperties[];
|
|
35
|
-
unknownInts: [number, number];
|
|
36
|
-
firstChainItemIndex: number;
|
|
37
|
-
lastChainItemIndex: number;
|
|
38
|
-
items: ConveyorItemSpecialProperties[];
|
|
39
|
-
};
|
|
40
|
-
export type BuildableTypeInstance = {
|
|
41
|
-
transform: Transform;
|
|
42
|
-
unknownUseNumbers: [vec2, vec3];
|
|
43
|
-
swatchSlotTypePath: string;
|
|
44
|
-
paintFinishPath: string;
|
|
45
|
-
recipeTypePath: string;
|
|
46
|
-
patternPath: string;
|
|
47
|
-
blueprintProxy: ObjectReference;
|
|
48
|
-
};
|
|
49
|
-
export type BuildableSubsystemSpecialProperties = {
|
|
50
|
-
buildables: {
|
|
51
|
-
typePath: string;
|
|
52
|
-
instances: BuildableTypeInstance[];
|
|
53
|
-
}[];
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=SpecialAnyProperties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialAnyProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG,0BAA0B,GAAG,uBAAuB,GAAG,mCAAmC,GAAG,mCAAmC,CAAC;AAE7L,MAAM,MAAM,sBAAsB,GAAG,EAEpC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,eAAe,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAC9C,SAAS,EAAE,eAAe,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,qCAAqC,EAAE,CAAC;IACtD,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,6BAA6B,EAAE,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAC9C,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;KACtC,EAAE,CAAC;CACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialAnyProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialAnyProperties.ts"],"names":[],"mappings":"","sourcesContent":["import { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\n\n\nexport type SpecialAnyProperties = EmptySpecialProperties | PowerLineSpecialProperties | PlayerSpecialProperties | ConveyorChainActorSpecialProperties | BuildableSubsystemSpecialProperties;\n\nexport type EmptySpecialProperties = {\n\n};\n\nexport type PowerLineSpecialProperties = {\n source: ObjectReference;\n target: ObjectReference;\n sourceTranslation?: vec3;\n targetTranslation?: vec3;\n};\n\nexport type PlayerSpecialProperties = {\n flag: number;\n eosData?: string;\n steamPlayerData?: string;\n};\n\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemName: string;\n};\n\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n someCount: number;\n unknownUseBytes: number[];\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n}\n\nexport type ConveyorChainActorSpecialProperties = {\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n unknownInts: [number, number];\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport type BuildableTypeInstance = {\n transform: Transform;\n unknownUseNumbers: [vec2, vec3];\n swatchSlotTypePath: string;\n paintFinishPath: string;\n recipeTypePath: string;\n patternPath: string;\n blueprintProxy: ObjectReference;\n};\n\nexport type BuildableSubsystemSpecialProperties = {\n buildables: {\n typePath: string;\n instances: BuildableTypeInstance[];\n }[];\n};\n"]}
|