@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/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StructArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,kEAA+D;AAC/D,sDAAmD;AAE5C,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAmC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAAhJ,QAAA,qBAAqB,yBAA2H;AAS7J,IAAiB,mBAAmB,CAiFnC;AAjFD,WAAiB,mBAAmB;IAEnB,yBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAuB,EAAE;QAE3I,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEpC,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEtC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEnC,MAAM,iBAAiB,GAAmC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC;QACpI,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;QACxC,CAAC;QAGD,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE;YAEpD,MAAM,MAAM,GAAmB;gBAC3B,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;gBACnG,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,aAAa;gBACtB,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;aACxB,CAAC;YAGF,MAAM,CAAC,KAAK,GAAG,+BAAc,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;YAC5E,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC;QACtD,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,qBAAqB;YAC3B,iBAAiB;YACjB,OAAO;YACP,MAAM;SACqB,CAAC;IACpC,CAAC,CAAA;IAEY,6BAAS,GAAG,CAAC,MAAkB,EAAE,QAA6B,EAAQ,EAAE;QACjF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAErC,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAChD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrB,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;QAE7D,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAkB,CAAC,aAAa,CAAC,CAAC;QAC9D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAkB,CAAC,OAAO,CAAC,CAAA;QAE3D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAkB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAE5D,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC1C,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;QACxH,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAA;AACL,CAAC,EAjFgB,mBAAmB,mCAAnB,mBAAmB,QAiFnC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StructProperty } from '../StructProperty';\n\nexport const isStructArrayProperty = (property: any): property is StructArrayProperty => !Array.isArray(property) && property.type === 'StructArrayProperty';\n\nexport type StructArrayProperty = AbstractBaseProperty & {\n type: 'StructArrayProperty';\n subtype: string;\n values: StructProperty[];\n structValueFields: ArrayPropertyStructValueFields;\n};\n\nexport namespace StructArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StructArrayProperty => {\n\n const name = reader.readString(); // Same as currentProperty.name\n const allUEType = reader.readString(); // StructProperty\n\n const binarySize = reader.readInt32(); // structureSize\n const allIndex = reader.readInt32(); // Since ArrayProperty itself has an index already, this was never observed to be anything else than 0.\n\n const allStructType = reader.readString();\n const allGuid = GUIDInfo.read(reader);\n\n const allUnk1 = reader.readInt32();\n const allUnk2 = reader.readInt32();\n const allUnk3 = reader.readInt32();\n const allUnk4 = reader.readInt32();\n\n const structValueFields: ArrayPropertyStructValueFields = { allStructType, allIndex: allIndex > 0 ? allIndex : undefined, allGuid };\n if (allUnk1 !== 0) {\n structValueFields.allUnk1 = allUnk1;\n }\n if (allUnk2 !== 0) {\n structValueFields.allUnk2 = allUnk2;\n }\n if (allUnk3 !== 0) {\n structValueFields.allUnk3 = allUnk3;\n }\n if (allUnk4 !== 0) {\n structValueFields.allUnk4 = allUnk4;\n }\n\n\n const before = reader.getBufferPosition();\n const values = new Array(elementCount).fill(0).map(() => {\n\n const struct: StructProperty = {\n ...AbstractBaseProperty.Create({ index: allIndex, ueType: allUEType, guidInfo: allGuid, type: '' }),\n type: 'StructProperty',\n subtype: allStructType,\n value: { values: [] }\n };\n\n // we do NOT assign individual unk's here. Since they are only serialized always on ArrayProperty's Level once for all elements.\n struct.value = StructProperty.ParseValue(reader, allStructType, binarySize);\n return struct;\n });\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== binarySize) {\n throw new Error('possibly corrupt in array of struct.');\n }\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StructArrayProperty',\n structValueFields,\n subtype,\n values\n } satisfies StructArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StructArrayProperty): void => {\n writer.writeString(property.name);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex ?? 0);\n\n writer.writeString(property.structValueFields!.allStructType);\n GUIDInfo.write(writer, property.structValueFields!.allGuid)\n\n writer.writeInt32(property.structValueFields!.allUnk1 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk2 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk3 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk4 ?? 0);\n\n const before = writer.getBufferPosition();\n property.values.forEach(v => StructProperty.SerializeValue(writer, property.structValueFields!.allStructType, v.value));\n writer.writeBinarySizeFromPosition(lenIndicator, before);\n }\n}\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex?: number;\n allGuid: GUIDInfo;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
+
import { TextPropertyValue } from '../TextProperty';
|
|
5
|
+
export declare const isTextArrayProperty: (property: any) => property is TextArrayProperty;
|
|
6
|
+
export type TextArrayProperty = AbstractBaseProperty & {
|
|
7
|
+
type: 'TextArrayProperty';
|
|
8
|
+
subtype: string;
|
|
9
|
+
values: TextPropertyValue[];
|
|
10
|
+
};
|
|
11
|
+
export declare namespace TextArrayProperty {
|
|
12
|
+
const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => TextArrayProperty;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: TextArrayProperty) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=TextArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAElE,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,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.TextArrayProperty = exports.isTextArrayProperty = void 0;
|
|
4
|
+
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
5
|
+
const TextProperty_1 = require("../TextProperty");
|
|
6
|
+
const isTextArrayProperty = (property) => !Array.isArray(property) && property.type === 'TextArrayProperty';
|
|
7
|
+
exports.isTextArrayProperty = isTextArrayProperty;
|
|
8
|
+
var TextArrayProperty;
|
|
9
|
+
(function (TextArrayProperty) {
|
|
10
|
+
TextArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
11
|
+
const values = new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader));
|
|
12
|
+
return {
|
|
13
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
|
|
14
|
+
type: 'TextArrayProperty',
|
|
15
|
+
subtype,
|
|
16
|
+
values
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
TextArrayProperty.Serialize = (writer, property) => {
|
|
20
|
+
property.values.forEach(value => TextProperty_1.TextProperty.SerializeValue(writer, value));
|
|
21
|
+
};
|
|
22
|
+
})(TextArrayProperty || (exports.TextArrayProperty = TextArrayProperty = {}));
|
|
23
|
+
//# sourceMappingURL=TextArrayProperty.js.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,kDAAkE;AAE3D,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAgBjC;AAhBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACzI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,2BAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAEzF,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,mBAAmB;YACzB,OAAO;YACP,MAAM;SACmB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC,CAAA;AACL,CAAC,EAhBgB,iBAAiB,iCAAjB,iBAAiB,QAgBjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { TextProperty, TextPropertyValue } from '../TextProperty';\n\nexport const isTextArrayProperty = (property: any): property is TextArrayProperty => !Array.isArray(property) && property.type === 'TextArrayProperty';\n\nexport type TextArrayProperty = AbstractBaseProperty & {\n type: 'TextArrayProperty';\n subtype: string;\n values: TextPropertyValue[];\n};\n\nexport namespace TextArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): TextArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader));\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'TextArrayProperty',\n subtype,\n values\n } satisfies TextArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: TextArrayProperty): void => {\n property.values.forEach(value => TextProperty.SerializeValue(writer, value));\n }\n}\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
4
|
+
export declare const isBoolProperty: (property: any) => property is BoolProperty;
|
|
5
|
+
export type BoolProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'BoolProperty';
|
|
7
7
|
value: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
};
|
|
9
|
+
export declare namespace BoolProperty {
|
|
10
|
+
const Parse: (reader: BinaryReadable, ueType: string, index?: number) => BoolProperty;
|
|
11
|
+
const ReadValue: (reader: BinaryReadable) => boolean;
|
|
12
|
+
const CalcOverhead: (property: BoolProperty) => number;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: BoolProperty) => void;
|
|
14
|
+
const SerializeValue: (writer: ByteWriter, value: boolean) => void;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=BoolProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"BoolProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,YASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,OAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAGtE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,OAAO,KAAG,IAEnE,CAAA;CACJ"}
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BoolProperty = exports.isBoolProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isBoolProperty = (property) => property.type === 'BoolProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
|
|
7
7
|
exports.isBoolProperty = isBoolProperty;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.value = value;
|
|
12
|
-
}
|
|
13
|
-
static Parse(reader, ueType, index = 0) {
|
|
8
|
+
var BoolProperty;
|
|
9
|
+
(function (BoolProperty) {
|
|
10
|
+
BoolProperty.Parse = (reader, ueType, index = 0) => {
|
|
14
11
|
const value = BoolProperty.ReadValue(reader);
|
|
15
12
|
const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
return {
|
|
14
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
|
|
15
|
+
type: 'BoolProperty',
|
|
16
|
+
value
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
BoolProperty.ReadValue = (reader) => {
|
|
19
20
|
return reader.readByte() > 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
21
|
+
};
|
|
22
|
+
BoolProperty.CalcOverhead = (property) => {
|
|
22
23
|
return 1 + 1;
|
|
23
|
-
}
|
|
24
|
-
|
|
24
|
+
};
|
|
25
|
+
BoolProperty.Serialize = (writer, property) => {
|
|
25
26
|
BoolProperty.SerializeValue(writer, property.value);
|
|
26
27
|
GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
|
|
27
|
-
}
|
|
28
|
-
|
|
28
|
+
};
|
|
29
|
+
BoolProperty.SerializeValue = (writer, value) => {
|
|
29
30
|
writer.writeByte(value ? 1 : 0);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.BoolProperty = BoolProperty;
|
|
31
|
+
};
|
|
32
|
+
})(BoolProperty || (exports.BoolProperty = BoolProperty = {}));
|
|
33
33
|
//# sourceMappingURL=BoolProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAOxI,IAAiB,YAAY,CA6B5B;AA7BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC7F,MAAM,KAAK,GAAG,aAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,cAAc;YACpB,KAAK;SACe,CAAC;IAC7B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAsB,EAAW,EAAE;QACzD,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAU,EAAE;QAC3D,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAkB,EAAE,QAAsB,EAAQ,EAAE;QAC1E,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAc,EAAQ,EAAE;QACvE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAA;AACL,CAAC,EA7BgB,YAAY,4BAAZ,YAAY,QA6B5B","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isBoolProperty = (property: any): property is BoolProperty => !Array.isArray(property) && property.type === 'BoolProperty';\n\nexport type BoolProperty = AbstractBaseProperty & {\n type: 'BoolProperty';\n value: boolean;\n};\n\nexport namespace BoolProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty => {\n const value = ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'BoolProperty',\n value\n } satisfies BoolProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): boolean => {\n return reader.readByte() > 0;\n }\n\n export const CalcOverhead = (property: BoolProperty): number => {\n return 1 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: BoolProperty): void => {\n SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: boolean): void => {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
4
|
+
export declare const isByteProperty: (property: any) => property is ByteProperty;
|
|
5
|
+
export type ByteProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'ByteProperty';
|
|
7
7
|
value: BytePropertyValue;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
};
|
|
9
|
+
export declare namespace ByteProperty {
|
|
10
|
+
const Parse: (reader: BinaryReadable, ueType: string, index?: number) => ByteProperty;
|
|
11
|
+
const ReadValue: (reader: BinaryReadable) => number;
|
|
12
|
+
const CalcOverhead: (property: ByteProperty) => number;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: ByteProperty) => void;
|
|
14
|
+
const SerializeValue: (writer: ByteWriter, value: number) => void;
|
|
14
15
|
}
|
|
15
16
|
export type BytePropertyValue = {
|
|
16
17
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,YAyBjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAUtE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ByteProperty = exports.isByteProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isByteProperty = (property) => property.type === 'ByteProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isByteProperty = (property) => !Array.isArray(property) && property.type === 'ByteProperty';
|
|
7
7
|
exports.isByteProperty = isByteProperty;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.value = value;
|
|
12
|
-
}
|
|
13
|
-
static Parse(reader, ueType, index = 0) {
|
|
8
|
+
var ByteProperty;
|
|
9
|
+
(function (ByteProperty) {
|
|
10
|
+
ByteProperty.Parse = (reader, ueType, index = 0) => {
|
|
14
11
|
const type = reader.readString();
|
|
15
12
|
const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
|
|
16
13
|
let value;
|
|
@@ -26,16 +23,19 @@ class ByteProperty extends BasicProperty_1.BasicProperty {
|
|
|
26
23
|
value: reader.readString()
|
|
27
24
|
};
|
|
28
25
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
return {
|
|
27
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
|
|
28
|
+
type: 'ByteProperty',
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
ByteProperty.ReadValue = (reader) => {
|
|
33
33
|
return reader.readByte();
|
|
34
|
-
}
|
|
35
|
-
|
|
34
|
+
};
|
|
35
|
+
ByteProperty.CalcOverhead = (property) => {
|
|
36
36
|
return property.value.type.length + 5 + 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
37
|
+
};
|
|
38
|
+
ByteProperty.Serialize = (writer, property) => {
|
|
39
39
|
writer.writeString(property.value.type);
|
|
40
40
|
GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
|
|
41
41
|
if (property.value.type === 'None') {
|
|
@@ -44,10 +44,9 @@ class ByteProperty extends BasicProperty_1.BasicProperty {
|
|
|
44
44
|
else {
|
|
45
45
|
writer.writeString(property.value.value);
|
|
46
46
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
47
|
+
};
|
|
48
|
+
ByteProperty.SerializeValue = (writer, value) => {
|
|
49
49
|
writer.writeByte(value);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ByteProperty = ByteProperty;
|
|
50
|
+
};
|
|
51
|
+
})(ByteProperty || (exports.ByteProperty = ByteProperty = {}));
|
|
53
52
|
//# sourceMappingURL=ByteProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAOxI,IAAiB,YAAY,CAoD5B;AApDD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAE7F,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAGvC,IAAI,KAAK,CAAC;QACV,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;YAClB,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,aAAA,SAAS,CAAC,MAAM,CAAC;aAC3B,CAAC;QACN,CAAC;aACI,CAAC;YACF,KAAK,GAAG;gBACJ,IAAI;gBACJ,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE;aAC7B,CAAC;QACN,CAAC;QAED,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,cAAc;YACpB,KAAK;SACe,CAAC;IAC7B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAU,EAAE;QAC3D,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAkB,EAAE,QAAsB,EAAQ,EAAE;QAC1E,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QAC3D,CAAC;aACI,CAAC;YACF,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAA;AACL,CAAC,EApDgB,YAAY,4BAAZ,YAAY,QAoD5B","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isByteProperty = (property: any): property is ByteProperty => !Array.isArray(property) && property.type === 'ByteProperty';\n\nexport type ByteProperty = AbstractBaseProperty & {\n type: 'ByteProperty';\n value: BytePropertyValue;\n};\n\nexport namespace ByteProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty => {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'ByteProperty',\n value\n } satisfies ByteProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readByte();\n }\n\n export const CalcOverhead = (property: ByteProperty): number => {\n return property.value.type.length + 5 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: ByteProperty): void => {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
4
|
+
export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
|
|
5
|
+
export type DoubleProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'DoubleProperty';
|
|
7
7
|
value: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
};
|
|
9
|
+
export declare namespace DoubleProperty {
|
|
10
|
+
const Parse: (reader: BinaryReadable, ueType: string, index?: number) => DoubleProperty;
|
|
11
|
+
const ReadValue: (reader: BinaryReadable) => number;
|
|
12
|
+
const CalcOverhead: (property: DoubleProperty) => number;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: DoubleProperty) => void;
|
|
14
|
+
const SerializeValue: (writer: ByteWriter, value: number) => void;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=DoubleProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgF,CAAC;AAE9I,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAErB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,cASjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,cAAc,KAAG,MAEvD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,cAAc,KAAG,IAGxE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DoubleProperty = exports.isDoubleProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isDoubleProperty = (property) => property.type === 'DoubleProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
|
|
7
7
|
exports.isDoubleProperty = isDoubleProperty;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.value = value;
|
|
12
|
-
}
|
|
13
|
-
static Parse(reader, ueType, index = 0) {
|
|
8
|
+
var DoubleProperty;
|
|
9
|
+
(function (DoubleProperty) {
|
|
10
|
+
DoubleProperty.Parse = (reader, ueType, index = 0) => {
|
|
14
11
|
const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
|
|
15
12
|
const value = DoubleProperty.ReadValue(reader);
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
return {
|
|
14
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
|
|
15
|
+
type: 'DoubleProperty',
|
|
16
|
+
value
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
DoubleProperty.ReadValue = (reader) => {
|
|
19
20
|
return reader.readDouble();
|
|
20
|
-
}
|
|
21
|
-
|
|
21
|
+
};
|
|
22
|
+
DoubleProperty.CalcOverhead = (property) => {
|
|
22
23
|
return 1;
|
|
23
|
-
}
|
|
24
|
-
|
|
24
|
+
};
|
|
25
|
+
DoubleProperty.Serialize = (writer, property) => {
|
|
25
26
|
GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
|
|
26
27
|
DoubleProperty.SerializeValue(writer, property.value);
|
|
27
|
-
}
|
|
28
|
-
|
|
28
|
+
};
|
|
29
|
+
DoubleProperty.SerializeValue = (writer, value) => {
|
|
29
30
|
writer.writeDouble(value);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.DoubleProperty = DoubleProperty;
|
|
31
|
+
};
|
|
32
|
+
})(DoubleProperty || (exports.DoubleProperty = DoubleProperty = {}));
|
|
33
33
|
//# sourceMappingURL=DoubleProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAO9I,IAAiB,cAAc,CA6B9B;AA7BD,WAAiB,cAAc;IAEd,oBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAkB,EAAE;QAC/F,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,eAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,gBAAgB;YACtB,KAAK;SACiB,CAAC;IAC/B,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAA;IAEY,2BAAY,GAAG,CAAC,QAAwB,EAAU,EAAE;QAC7D,OAAO,CAAC,CAAC;IACb,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAkB,EAAE,QAAwB,EAAQ,EAAE;QAC5E,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,eAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAA;IAEY,6BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAA;AACL,CAAC,EA7BgB,cAAc,8BAAd,cAAc,QA6B9B","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isDoubleProperty = (property: any): property is DoubleProperty => !Array.isArray(property) && property.type === 'DoubleProperty';\n\nexport type DoubleProperty = AbstractBaseProperty & {\n type: 'DoubleProperty';\n value: number;\n};\n\nexport namespace DoubleProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'DoubleProperty',\n value\n } satisfies DoubleProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): number => {\n return reader.readDouble();\n }\n\n export const CalcOverhead = (property: DoubleProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: DoubleProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: number): void => {\n writer.writeDouble(value);\n }\n}\n"]}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
4
|
+
export declare const isEnumProperty: (property: any) => property is EnumProperty;
|
|
5
|
+
export type EnumProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'EnumProperty';
|
|
7
7
|
value: {
|
|
8
8
|
name: string;
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
static Serialize(writer: ByteWriter, property: EnumProperty): void;
|
|
19
|
-
static SerializeValue(writer: ByteWriter, value: string): void;
|
|
11
|
+
};
|
|
12
|
+
export declare namespace EnumProperty {
|
|
13
|
+
const Parse: (reader: BinaryReadable, ueType: string, index?: number) => EnumProperty;
|
|
14
|
+
const ReadValue: (reader: BinaryReadable) => string;
|
|
15
|
+
const CalcOverhead: (property: EnumProperty) => number;
|
|
16
|
+
const Serialize: (writer: ByteWriter, property: EnumProperty) => void;
|
|
17
|
+
const SerializeValue: (writer: ByteWriter, value: string) => void;
|
|
20
18
|
}
|
|
21
19
|
//# sourceMappingURL=EnumProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,CAAC;CAC3C,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,cAAc,UAAU,MAAM,UAAS,MAAM,KAAO,YAUjF,CAAA;IAEM,MAAM,SAAS,WAAY,cAAc,KAAG,MAElD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,YAAY,KAAG,IAItE,CAAA;IAEM,MAAM,cAAc,WAAY,UAAU,SAAS,MAAM,KAAG,IAElE,CAAA;CACJ"}
|
|
@@ -2,35 +2,34 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnumProperty = exports.isEnumProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isEnumProperty = (property) => property.type === 'EnumProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isEnumProperty = (property) => !Array.isArray(property) && property.type === 'EnumProperty';
|
|
7
7
|
exports.isEnumProperty = isEnumProperty;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.value = value;
|
|
12
|
-
}
|
|
13
|
-
static Parse(reader, ueType, index = 0) {
|
|
8
|
+
var EnumProperty;
|
|
9
|
+
(function (EnumProperty) {
|
|
10
|
+
EnumProperty.Parse = (reader, ueType, index = 0) => {
|
|
14
11
|
let name = reader.readString();
|
|
15
12
|
const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
|
|
16
13
|
const value = EnumProperty.ReadValue(reader);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
return {
|
|
15
|
+
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
|
|
16
|
+
type: 'EnumProperty',
|
|
17
|
+
value: { name, value },
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
EnumProperty.ReadValue = (reader) => {
|
|
21
21
|
return reader.readString();
|
|
22
|
-
}
|
|
23
|
-
|
|
22
|
+
};
|
|
23
|
+
EnumProperty.CalcOverhead = (property) => {
|
|
24
24
|
return property.value.name.length + 5 + 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
25
|
+
};
|
|
26
|
+
EnumProperty.Serialize = (writer, property) => {
|
|
27
27
|
writer.writeString(property.value.name);
|
|
28
28
|
GUIDInfo_1.GUIDInfo.write(writer, property.guidInfo);
|
|
29
29
|
EnumProperty.SerializeValue(writer, property.value.value);
|
|
30
|
-
}
|
|
31
|
-
|
|
30
|
+
};
|
|
31
|
+
EnumProperty.SerializeValue = (writer, value) => {
|
|
32
32
|
writer.writeString(value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.EnumProperty = EnumProperty;
|
|
33
|
+
};
|
|
34
|
+
})(EnumProperty || (exports.EnumProperty = EnumProperty = {}));
|
|
36
35
|
//# sourceMappingURL=EnumProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAOxI,IAAiB,YAAY,CA+B5B;AA/BD,WAAiB,YAAY;IAEZ,kBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAgB,EAAE;QAC7F,IAAI,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAA,SAAS,CAAC,MAAM,CAAC,CAAC;QAEhC,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YACrE,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SACF,CAAC;IAC7B,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAsB,EAAU,EAAE;QACxD,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAA;IAEY,yBAAY,GAAG,CAAC,QAAsB,EAAU,EAAE;QAC3D,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC,CAAA;IAEY,sBAAS,GAAG,CAAC,MAAkB,EAAE,QAAsB,EAAQ,EAAE;QAC1E,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAA,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC,CAAA;IAEY,2BAAc,GAAG,CAAC,MAAkB,EAAE,KAAa,EAAQ,EAAE;QACtE,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAA;AACL,CAAC,EA/BgB,YAAY,4BAAZ,YAAY,QA+B5B","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isEnumProperty = (property: any): property is EnumProperty => !Array.isArray(property) && property.type === 'EnumProperty';\n\nexport type EnumProperty = AbstractBaseProperty & {\n type: 'EnumProperty';\n value: { name: string; value: string; };\n};\n\nexport namespace EnumProperty {\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty => {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'EnumProperty',\n value: { name, value },\n } satisfies EnumProperty;\n }\n\n export const ReadValue = (reader: BinaryReadable): string => {\n return reader.readString();\n }\n\n export const CalcOverhead = (property: EnumProperty): number => {\n return property.value.name.length + 5 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: EnumProperty): void => {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value.value);\n }\n\n export const SerializeValue = (writer: ByteWriter, value: string): void => {\n writer.writeString(value);\n }\n}\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
4
|
+
export declare const isFloatProperty: (property: any) => property is FloatProperty;
|
|
5
|
+
export type FloatProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'FloatProperty';
|
|
7
7
|
value: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
};
|
|
9
|
+
export declare namespace FloatProperty {
|
|
10
|
+
const Parse: (reader: BinaryReadable, ueType: string, index?: number) => FloatProperty;
|
|
11
|
+
const CalcOverhead: (property: FloatProperty) => number;
|
|
12
|
+
const ReadValue: (reader: BinaryReadable) => number;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: FloatProperty) => void;
|
|
14
|
+
const SerializeValue: (writer: ByteWriter, value: number) => void;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=FloatProperty.d.ts.map
|