@etothepii/satisfactory-file-parser 1.0.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/tests.yml +24 -0
- package/CHANGELOG.md +88 -0
- package/LICENCE.md +1 -1
- package/README.md +6 -74
- package/build/index.d.ts +31 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +31 -4
- 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/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/save/object-references-list.d.ts +2 -2
- package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
- package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts +3 -3
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -6
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +16 -19
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +21 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +23 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +25 -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 +72 -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 +25 -0
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +3 -3
- 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 +25 -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 +25 -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 +25 -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 +45 -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 +25 -0
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.js +10 -10
- package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js +3 -3
- package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js +3 -3
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
- package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
- 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 +2 -21
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
- package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +2 -2
- package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +2 -2
- package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
- package/build/parser/satisfactory/types/structs/Transform.d.ts +3 -3
- package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
- package/build/parser/satisfactory/types/structs/col4.d.ts +3 -3
- package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
- package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec3.d.ts +4 -4
- package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec4.d.ts +3 -3
- package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec4.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/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AbstractBaseProperty.html +5 -4
- 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/BoolProperty.html +3 -3
- package/docs/classes/ByteProperty.html +3 -3
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/DoubleProperty.html +3 -3
- package/docs/classes/EnumProperty.html +3 -3
- package/docs/classes/FloatProperty.html +3 -3
- package/docs/classes/Int32Property.html +3 -3
- package/docs/classes/Int64Property.html +3 -3
- package/docs/classes/Int8Property.html +3 -3
- package/docs/classes/MapProperty.html +3 -3
- package/docs/classes/ObjectProperty.html +3 -3
- 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/StrProperty.html +3 -3
- package/docs/classes/StructProperty.html +4 -4
- package/docs/classes/TextProperty.html +3 -3
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/Uint32Property.html +3 -3
- package/docs/classes/Uint64Property.html +3 -3
- package/docs/classes/Uint8Property.html +3 -3
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- 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/BuildableSubsystemSpecialProperties.Parse.html +1 -0
- package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
- package/docs/functions/ByteArrayProperty.Parse.html +1 -0
- package/docs/functions/ByteArrayProperty.Serialize.html +1 -0
- package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
- package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
- package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
- package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
- package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
- package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
- package/docs/functions/DoubleArrayProperty.Parse.html +1 -0
- package/docs/functions/DoubleArrayProperty.Serialize.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 -0
- package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
- package/docs/functions/EnumArrayProperty.Parse.html +1 -0
- package/docs/functions/EnumArrayProperty.Serialize.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/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/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/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/ObjectArrayProperty.Parse.html +1 -0
- package/docs/functions/ObjectArrayProperty.Serialize.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 -0
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
- package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
- package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
- package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
- package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
- 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 -0
- package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
- 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/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/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/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/Uint32SetProperty.Parse.html +1 -0
- package/docs/functions/Uint32SetProperty.Serialize.html +1 -0
- package/docs/functions/VehicleSpecialProperties.Parse.html +1 -0
- package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
- 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 -0
- package/docs/functions/isByteArrayProperty.html +1 -0
- package/docs/functions/isByteProperty.html +1 -1
- package/docs/functions/isCircuitSpecialProperties.html +1 -0
- package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
- package/docs/functions/isConveyorSpecialProperties.html +1 -0
- package/docs/functions/isDoubleArrayProperty.html +1 -0
- package/docs/functions/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -0
- 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 -0
- package/docs/functions/isPlayerSpecialProperties.html +1 -0
- package/docs/functions/isPowerLineSpecialProperties.html +1 -0
- 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 -0
- 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 -0
- 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 +5 -56
- 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/ArrayProperty.html +5 -0
- package/docs/modules/BoolArrayProperty.html +3 -0
- package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
- package/docs/modules/ByteArrayProperty.html +3 -0
- package/docs/modules/CircuitSpecialProperties.html +3 -0
- package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
- package/docs/modules/ConveyorSpecialProperties.html +3 -0
- package/docs/modules/DoubleArrayProperty.html +3 -0
- package/docs/modules/DynamicStructPropertyValue.html +1 -1
- package/docs/modules/EmptySpecialProperties.html +3 -0
- package/docs/modules/EnumArrayProperty.html +3 -0
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/FloatArrayProperty.html +3 -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/Int32SetProperty.html +3 -0
- package/docs/modules/Int64ArrayProperty.html +3 -0
- package/docs/modules/Level.html +1 -1
- package/docs/modules/MD5Hash.html +1 -1
- package/docs/modules/ObjectArrayProperty.html +3 -0
- package/docs/modules/ObjectReference.html +1 -1
- package/docs/modules/ObjectSetProperty.html +3 -0
- package/docs/modules/ObjectsListSpecialProperties.html +3 -0
- package/docs/modules/PlayerSpecialProperties.html +3 -0
- package/docs/modules/PowerLineSpecialProperties.html +3 -0
- 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 +3 -0
- package/docs/modules/SpecialProperties.html +2 -1
- package/docs/modules/StrArrayProperty.html +3 -0
- package/docs/modules/StrSetProperty.html +3 -0
- package/docs/modules/StructArrayProperty.html +3 -0
- package/docs/modules/StructSetProperty.html +3 -0
- package/docs/modules/TextArrayProperty.html +3 -0
- package/docs/modules/Transform.html +1 -1
- package/docs/modules/Uint32SetProperty.html +3 -0
- package/docs/modules/VehicleSpecialProperties.html +3 -0
- 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 +87 -11
- 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/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
- package/docs/types/BuildableTypeInstance.html +1 -1
- package/docs/types/ByteArrayProperty-1.html +1 -0
- package/docs/types/BytePropertyValue.html +1 -1
- package/docs/types/CircuitSpecialProperties-1.html +1 -0
- package/docs/types/ClientIdentityInfo.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -0
- package/docs/types/DoubleArrayProperty-1.html +1 -0
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -0
- package/docs/types/EnumArrayProperty-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/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/Int32SetProperty-1.html +1 -0
- package/docs/types/Int64ArrayProperty-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/ObjectArrayProperty-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 -0
- package/docs/types/PlayerSpecialProperties-1.html +1 -0
- package/docs/types/PowerLineSpecialProperties-1.html +1 -0
- 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 -0
- package/docs/types/SpecialDroneActionProperties-1.html +1 -0
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
- package/docs/types/StrArrayProperty-1.html +1 -0
- package/docs/types/StrSetProperty-1.html +1 -0
- package/docs/types/StructArrayProperty-1.html +1 -0
- package/docs/types/StructSetProperty-1.html +1 -0
- package/docs/types/TextArrayProperty-1.html +1 -0
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/Uint32SetProperty-1.html +1 -0
- package/docs/types/VehicleSpecialProperties-1.html +1 -0
- 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 +2 -2
- package/LICENSE +0 -21
- package/docs/classes/AbstractProperty.html +0 -4
- package/docs/classes/ArrayProperty.html +0 -13
- package/docs/classes/BasicProperty.html +0 -7
- package/docs/classes/SetProperty.html +0 -12
- package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
- package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
- package/docs/types/EmptySpecialProperties.html +0 -1
- package/docs/types/PlayerSpecialProperties.html +0 -1
- package/docs/types/PowerLineSpecialProperties.html +0 -1
- package/docs/types/SpecialAnyProperties.html +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftObjectArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,yBAAyB,aAAc,GAAG,KAAG,QAAQ,IAAI,uBAAkG,CAAC;AAEzK,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG;IACzD,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IAE9B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,uBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,uBAAuB,KAAG,IAEjF,CAAA;CACJ"}
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoftObjectArrayProperty = exports.isSoftObjectArrayProperty = void 0;
|
|
4
|
+
const SoftObjectProperty_1 = require("../SoftObjectProperty");
|
|
5
|
+
const isSoftObjectArrayProperty = (property) => !Array.isArray(property) && property.type === 'SoftObjectArrayProperty';
|
|
6
|
+
exports.isSoftObjectArrayProperty = isSoftObjectArrayProperty;
|
|
7
|
+
var SoftObjectArrayProperty;
|
|
8
|
+
(function (SoftObjectArrayProperty) {
|
|
9
|
+
SoftObjectArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
10
|
+
const values = new Array(elementCount).fill(0).map(() => SoftObjectProperty_1.SoftObjectProperty.ReadValue(reader));
|
|
11
|
+
return {
|
|
12
|
+
type: 'SoftObjectArrayProperty',
|
|
13
|
+
index,
|
|
14
|
+
ueType,
|
|
15
|
+
subtype,
|
|
16
|
+
values,
|
|
17
|
+
guidInfo: undefined,
|
|
18
|
+
name: ''
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
SoftObjectArrayProperty.Serialize = (writer, property) => {
|
|
22
|
+
property.values.forEach(value => SoftObjectProperty_1.SoftObjectProperty.SerializeValue(writer, value));
|
|
23
|
+
};
|
|
24
|
+
})(SoftObjectArrayProperty || (exports.SoftObjectArrayProperty = SoftObjectArrayProperty = {}));
|
|
25
|
+
//# sourceMappingURL=SoftObjectArrayProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SoftObjectArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.ts"],"names":[],"mappings":";;;AAIA,8DAA2D;AAEpD,MAAM,yBAAyB,GAAG,CAAC,QAAa,EAAuC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,yBAAyB,CAAC;AAA5J,QAAA,yBAAyB,6BAAmI;AAQzK,IAAiB,uBAAuB,CAkBvC;AAlBD,WAAiB,uBAAuB;IAEvB,6BAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAA2B,EAAE;QAC/I,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,uCAAkB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/F,OAAO;YACH,IAAI,EAAE,yBAAyB;YAC/B,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACuB,CAAC;IACxC,CAAC,CAAA;IAEY,iCAAS,GAAG,CAAC,MAAkB,EAAE,QAAiC,EAAQ,EAAE;QACrF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,uCAAkB,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACvF,CAAC,CAAA;AACL,CAAC,EAlBgB,uBAAuB,uCAAvB,uBAAuB,QAkBvC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { SoftObjectReference } from '../../../structs/SoftObjectReference';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { SoftObjectProperty } from '../SoftObjectProperty';\n\nexport const isSoftObjectArrayProperty = (property: any): property is SoftObjectArrayProperty => !Array.isArray(property) && property.type === 'SoftObjectArrayProperty';\n\nexport type SoftObjectArrayProperty = AbstractBaseProperty & {\n type: 'SoftObjectArrayProperty';\n subtype: string;\n values: SoftObjectReference[];\n};\n\nexport namespace SoftObjectArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): SoftObjectArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => SoftObjectProperty.ReadValue(reader));\n return {\n type: 'SoftObjectArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies SoftObjectArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: SoftObjectArrayProperty): void => {\n property.values.forEach(value => SoftObjectProperty.SerializeValue(writer, value));\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
+
export declare const isStrArrayProperty: (property: any) => property is StrArrayProperty;
|
|
5
|
+
export type StrArrayProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'StrArrayProperty';
|
|
7
|
+
subtype: string;
|
|
8
|
+
values: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare namespace StrArrayProperty {
|
|
11
|
+
const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => StrArrayProperty;
|
|
12
|
+
const Serialize: (writer: ByteWriter, property: StrArrayProperty) => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=StrArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,kBAAkB,aAAc,GAAG,KAAG,QAAQ,IAAI,gBAAoF,CAAC;AAEpJ,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IAClD,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,gBAAgB,CAAC;IAEvB,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,gBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,gBAAgB,KAAG,IAE1E,CAAA;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StrArrayProperty = exports.isStrArrayProperty = void 0;
|
|
4
|
+
const StrProperty_1 = require("../StrProperty");
|
|
5
|
+
const isStrArrayProperty = (property) => !Array.isArray(property) && property.type === 'StrArrayProperty';
|
|
6
|
+
exports.isStrArrayProperty = isStrArrayProperty;
|
|
7
|
+
var StrArrayProperty;
|
|
8
|
+
(function (StrArrayProperty) {
|
|
9
|
+
StrArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
10
|
+
const values = new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader));
|
|
11
|
+
return {
|
|
12
|
+
type: 'StrArrayProperty',
|
|
13
|
+
index,
|
|
14
|
+
ueType,
|
|
15
|
+
subtype,
|
|
16
|
+
values,
|
|
17
|
+
guidInfo: undefined,
|
|
18
|
+
name: ''
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
StrArrayProperty.Serialize = (writer, property) => {
|
|
22
|
+
property.values.forEach(value => StrProperty_1.StrProperty.SerializeValue(writer, value));
|
|
23
|
+
};
|
|
24
|
+
})(StrArrayProperty || (exports.StrArrayProperty = StrArrayProperty = {}));
|
|
25
|
+
//# sourceMappingURL=StrArrayProperty.js.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.ts"],"names":[],"mappings":";;;AAGA,gDAA6C;AAEtC,MAAM,kBAAkB,GAAG,CAAC,QAAa,EAAgC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,kBAAkB,CAAC;AAAvI,QAAA,kBAAkB,sBAAqH;AAQpJ,IAAiB,gBAAgB,CAkBhC;AAlBD,WAAiB,gBAAgB;IAEhB,sBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAoB,EAAE;QACxI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACxF,OAAO;YACH,IAAI,EAAE,kBAAkB;YACxB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACgB,CAAC;IACjC,CAAC,CAAA;IAEY,0BAAS,GAAG,CAAC,MAAkB,EAAE,QAA0B,EAAQ,EAAE;QAC9E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAA;AACL,CAAC,EAlBgB,gBAAgB,gCAAhB,gBAAgB,QAkBhC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StrProperty } from '../StrProperty';\n\nexport const isStrArrayProperty = (property: any): property is StrArrayProperty => !Array.isArray(property) && property.type === 'StrArrayProperty';\n\nexport type StrArrayProperty = AbstractBaseProperty & {\n type: 'StrArrayProperty';\n subtype: string;\n values: string[];\n};\n\nexport namespace StrArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): StrArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader));\n return {\n type: 'StrArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies StrArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StrArrayProperty): void => {\n property.values.forEach(value => StrProperty.SerializeValue(writer, value));\n }\n}\n"]}
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { GUIDInfo } from '../../../structs/GUIDInfo';
|
|
4
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
5
|
+
import { StructProperty } from '../StructProperty';
|
|
6
|
+
export declare const isStructArrayProperty: (property: any) => property is StructArrayProperty;
|
|
7
|
+
export type StructArrayProperty = AbstractBaseProperty & {
|
|
8
|
+
type: 'StructArrayProperty';
|
|
9
|
+
subtype: string;
|
|
10
|
+
values: StructProperty[];
|
|
11
|
+
structValueFields: ArrayPropertyStructValueFields;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace StructArrayProperty {
|
|
14
|
+
const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => StructArrayProperty;
|
|
15
|
+
const Serialize: (writer: ByteWriter, property: StructArrayProperty) => void;
|
|
16
|
+
}
|
|
17
|
+
export type ArrayPropertyStructValueFields = {
|
|
18
|
+
allStructType: string;
|
|
19
|
+
allIndex?: number;
|
|
20
|
+
allGuid: GUIDInfo;
|
|
21
|
+
allUnk1?: number;
|
|
22
|
+
allUnk2?: number;
|
|
23
|
+
allUnk3?: number;
|
|
24
|
+
allUnk4?: number;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=StructArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StructArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,qBAAqB,aAAc,GAAG,KAAG,QAAQ,IAAI,mBAA0F,CAAC;AAE7J,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG;IACrD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,iBAAiB,EAAE,8BAA8B,CAAC;CACrD,CAAC;AAEF,yBAAiB,mBAAmB,CAAC;IAE1B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,mBAuDxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,mBAAmB,KAAG,IAmB7E,CAAA;CACJ;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StructArrayProperty = exports.isStructArrayProperty = void 0;
|
|
4
|
+
const GUIDInfo_1 = require("../../../structs/GUIDInfo");
|
|
5
|
+
const StructProperty_1 = require("../StructProperty");
|
|
6
|
+
const isStructArrayProperty = (property) => !Array.isArray(property) && property.type === 'StructArrayProperty';
|
|
7
|
+
exports.isStructArrayProperty = isStructArrayProperty;
|
|
8
|
+
var StructArrayProperty;
|
|
9
|
+
(function (StructArrayProperty) {
|
|
10
|
+
StructArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
11
|
+
const name = reader.readString();
|
|
12
|
+
const allUEType = reader.readString();
|
|
13
|
+
const binarySize = reader.readInt32();
|
|
14
|
+
const allIndex = reader.readInt32();
|
|
15
|
+
const allStructType = reader.readString();
|
|
16
|
+
const allGuid = GUIDInfo_1.GUIDInfo.read(reader);
|
|
17
|
+
const allUnk1 = reader.readInt32();
|
|
18
|
+
const allUnk2 = reader.readInt32();
|
|
19
|
+
const allUnk3 = reader.readInt32();
|
|
20
|
+
const allUnk4 = reader.readInt32();
|
|
21
|
+
const structValueFields = { allStructType, allIndex: allIndex > 0 ? allIndex : undefined, allGuid };
|
|
22
|
+
if (allUnk1 !== 0) {
|
|
23
|
+
structValueFields.allUnk1 = allUnk1;
|
|
24
|
+
}
|
|
25
|
+
if (allUnk2 !== 0) {
|
|
26
|
+
structValueFields.allUnk2 = allUnk2;
|
|
27
|
+
}
|
|
28
|
+
if (allUnk3 !== 0) {
|
|
29
|
+
structValueFields.allUnk3 = allUnk3;
|
|
30
|
+
}
|
|
31
|
+
if (allUnk4 !== 0) {
|
|
32
|
+
structValueFields.allUnk4 = allUnk4;
|
|
33
|
+
}
|
|
34
|
+
const before = reader.getBufferPosition();
|
|
35
|
+
const values = new Array(elementCount).fill(0).map(() => {
|
|
36
|
+
const struct = new StructProperty_1.StructProperty(allStructType, allUEType, allIndex, allGuid);
|
|
37
|
+
struct.value = StructProperty_1.StructProperty.ParseValue(reader, allStructType, binarySize);
|
|
38
|
+
return struct;
|
|
39
|
+
});
|
|
40
|
+
const readBytes = reader.getBufferPosition() - before;
|
|
41
|
+
if (readBytes !== binarySize) {
|
|
42
|
+
throw new Error('possibly corrupt in array of struct.');
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
type: 'StructArrayProperty',
|
|
46
|
+
index,
|
|
47
|
+
ueType,
|
|
48
|
+
subtype,
|
|
49
|
+
values,
|
|
50
|
+
structValueFields,
|
|
51
|
+
guidInfo: undefined,
|
|
52
|
+
name: ''
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
StructArrayProperty.Serialize = (writer, property) => {
|
|
56
|
+
writer.writeString(property.name);
|
|
57
|
+
writer.writeString(property.subtype);
|
|
58
|
+
const lenIndicator = writer.getBufferPosition();
|
|
59
|
+
writer.writeInt32(0);
|
|
60
|
+
writer.writeInt32(property.structValueFields.allIndex ?? 0);
|
|
61
|
+
writer.writeString(property.structValueFields.allStructType);
|
|
62
|
+
GUIDInfo_1.GUIDInfo.write(writer, property.structValueFields.allGuid);
|
|
63
|
+
writer.writeInt32(property.structValueFields.allUnk1 ?? 0);
|
|
64
|
+
writer.writeInt32(property.structValueFields.allUnk2 ?? 0);
|
|
65
|
+
writer.writeInt32(property.structValueFields.allUnk3 ?? 0);
|
|
66
|
+
writer.writeInt32(property.structValueFields.allUnk4 ?? 0);
|
|
67
|
+
const before = writer.getBufferPosition();
|
|
68
|
+
property.values.forEach(v => StructProperty_1.StructProperty.SerializeValue(writer, property.structValueFields.allStructType, v.value));
|
|
69
|
+
writer.writeBinarySizeFromPosition(lenIndicator, before);
|
|
70
|
+
};
|
|
71
|
+
})(StructArrayProperty || (exports.StructArrayProperty = StructArrayProperty = {}));
|
|
72
|
+
//# sourceMappingURL=StructArrayProperty.js.map
|
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;AAErD,sDAAmD;AAE5C,MAAM,qBAAqB,GAAG,CAAC,QAAa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B,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,EA/EgB,mBAAmB,mCAAnB,mBAAmB,QA+EnC","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 = new StructProperty(allStructType, allUEType, allIndex, allGuid);\n\n // we do NOT assign individual unk's here. Since they are only serialized always on ArrayProperty's Level once for all elements.\n struct.value = StructProperty.ParseValue(reader, allStructType, binarySize);\n return struct;\n });\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== binarySize) {\n throw new Error('possibly corrupt in array of struct.');\n }\n\n return {\n type: 'StructArrayProperty',\n index,\n ueType,\n subtype,\n values,\n structValueFields,\n guidInfo: undefined,\n name: ''\n } satisfies StructArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: StructArrayProperty): void => {\n writer.writeString(property.name);\n writer.writeString(property.subtype);\n\n const lenIndicator = writer.getBufferPosition();\n writer.writeInt32(0);\n writer.writeInt32(property.structValueFields!.allIndex ?? 0);\n\n writer.writeString(property.structValueFields!.allStructType);\n GUIDInfo.write(writer, property.structValueFields!.allGuid)\n\n writer.writeInt32(property.structValueFields!.allUnk1 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk2 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk3 ?? 0);\n writer.writeInt32(property.structValueFields!.allUnk4 ?? 0);\n\n const before = writer.getBufferPosition();\n property.values.forEach(v => StructProperty.SerializeValue(writer, property.structValueFields!.allStructType, v.value));\n writer.writeBinarySizeFromPosition(lenIndicator, before);\n }\n}\n\nexport type ArrayPropertyStructValueFields = {\n allStructType: string;\n allIndex?: number;\n allGuid: GUIDInfo;\n allUnk1?: number;\n allUnk2?: number;\n allUnk3?: number;\n allUnk4?: number;\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../../byte/byte-writer.class';
|
|
3
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
+
import { TextPropertyValue } from '../TextProperty';
|
|
5
|
+
export declare const isTextArrayProperty: (property: any) => property is TextArrayProperty;
|
|
6
|
+
export type TextArrayProperty = AbstractBaseProperty & {
|
|
7
|
+
type: 'TextArrayProperty';
|
|
8
|
+
subtype: string;
|
|
9
|
+
values: TextPropertyValue[];
|
|
10
|
+
};
|
|
11
|
+
export declare namespace TextArrayProperty {
|
|
12
|
+
const Parse: (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index?: number) => TextArrayProperty;
|
|
13
|
+
const Serialize: (writer: ByteWriter, property: TextArrayProperty) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=TextArrayProperty.d.ts.map
|
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,iBAWxH,CAAA;IAEM,MAAM,SAAS,WAAY,UAAU,YAAY,iBAAiB,KAAG,IAE3E,CAAA;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextArrayProperty = exports.isTextArrayProperty = void 0;
|
|
4
|
+
const TextProperty_1 = require("../TextProperty");
|
|
5
|
+
const isTextArrayProperty = (property) => !Array.isArray(property) && property.type === 'TextArrayProperty';
|
|
6
|
+
exports.isTextArrayProperty = isTextArrayProperty;
|
|
7
|
+
var TextArrayProperty;
|
|
8
|
+
(function (TextArrayProperty) {
|
|
9
|
+
TextArrayProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
10
|
+
const values = new Array(elementCount).fill(0).map(() => TextProperty_1.TextProperty.ReadValue(reader));
|
|
11
|
+
return {
|
|
12
|
+
type: 'TextArrayProperty',
|
|
13
|
+
index,
|
|
14
|
+
ueType,
|
|
15
|
+
subtype,
|
|
16
|
+
values,
|
|
17
|
+
guidInfo: undefined,
|
|
18
|
+
name: ''
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
TextArrayProperty.Serialize = (writer, property) => {
|
|
22
|
+
property.values.forEach(value => TextProperty_1.TextProperty.SerializeValue(writer, value));
|
|
23
|
+
};
|
|
24
|
+
})(TextArrayProperty || (exports.TextArrayProperty = TextArrayProperty = {}));
|
|
25
|
+
//# sourceMappingURL=TextArrayProperty.js.map
|
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":";;;AAGA,kDAAkE;AAE3D,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAkBjC;AAlBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACzI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,2BAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACzF,OAAO;YACH,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,MAAM;YACN,OAAO;YACP,MAAM;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,EAAE;SACiB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAkB,EAAE,QAA2B,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC,CAAA;AACL,CAAC,EAlBgB,iBAAiB,iCAAjB,iBAAiB,QAkBjC","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { TextProperty, TextPropertyValue } from '../TextProperty';\n\nexport const isTextArrayProperty = (property: any): property is TextArrayProperty => !Array.isArray(property) && property.type === 'TextArrayProperty';\n\nexport type TextArrayProperty = AbstractBaseProperty & {\n type: 'TextArrayProperty';\n subtype: string;\n values: TextPropertyValue[];\n};\n\nexport namespace TextArrayProperty {\n\n export const Parse = (reader: BinaryReadable, elementCount: number, subtype: string, ueType: string, index: number = 0): TextArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => TextProperty.ReadValue(reader));\n return {\n type: 'TextArrayProperty',\n index,\n ueType,\n subtype,\n values,\n guidInfo: undefined,\n name: ''\n } satisfies TextArrayProperty;\n }\n\n export const Serialize = (writer: ByteWriter, property: TextArrayProperty): void => {\n property.values.forEach(value => TextProperty.SerializeValue(writer, value));\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isBoolProperty: (property:
|
|
6
|
-
export declare class BoolProperty extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isBoolProperty: (property: any) => property is BoolProperty;
|
|
6
|
+
export declare class BoolProperty extends AbstractBaseProperty {
|
|
7
7
|
value: boolean;
|
|
8
8
|
constructor(value: boolean, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
9
9
|
static Parse(reader: BinaryReadable, ueType: string, index?: number): BoolProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,
|
|
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;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,qBAAa,YAAa,SAAQ,oBAAoB;IAE/B,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAM9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO;WAI1C,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAK3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;CAGzE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BoolProperty = exports.isBoolProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isBoolProperty = (property) => property.type === 'BoolProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isBoolProperty = (property) => !Array.isArray(property) && property.type === 'BoolProperty';
|
|
7
7
|
exports.isBoolProperty = isBoolProperty;
|
|
8
|
-
class BoolProperty extends
|
|
8
|
+
class BoolProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
|
|
9
9
|
constructor(value, ueType = 'BoolProperty', guidInfo = undefined, index = 0) {
|
|
10
10
|
super({ type: 'BoolProperty', ueType, guidInfo, index });
|
|
11
11
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"BoolProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/BoolProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAc,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAS;IAEjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAsB;QAC9D,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpD,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAc;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;CACJ;AA5BD,oCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isBoolProperty = (property: any): property is BoolProperty => !Array.isArray(property) && property.type === 'BoolProperty';\n\nexport class BoolProperty extends AbstractBaseProperty {\n\n constructor(public value: boolean, ueType: string = 'BoolProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'BoolProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): BoolProperty {\n const value = BoolProperty.ReadValue(reader);\n const guidInfo = GUIDInfo.read(reader);\n return new BoolProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): boolean {\n return reader.readByte() > 0;\n }\n\n public static CalcOverhead(property: BoolProperty): number {\n return 1 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: BoolProperty): void {\n BoolProperty.SerializeValue(writer, property.value);\n GUIDInfo.write(writer, property.guidInfo);\n }\n\n public static SerializeValue(writer: ByteWriter, value: boolean): void {\n writer.writeByte(value ? 1 : 0);\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isByteProperty: (property:
|
|
6
|
-
export declare class ByteProperty extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isByteProperty: (property: any) => property is ByteProperty;
|
|
6
|
+
export declare class ByteProperty extends AbstractBaseProperty {
|
|
7
7
|
value: BytePropertyValue;
|
|
8
8
|
constructor(value: BytePropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
9
9
|
static Parse(reader: BinaryReadable, ueType: string, index?: number): ByteProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":"AAAA,OA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.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
|
-
class ByteProperty extends
|
|
8
|
+
class ByteProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
|
|
9
9
|
constructor(value, ueType = 'ByteProperty', guidInfo = undefined, index = 0) {
|
|
10
10
|
super({ type: 'ByteProperty', ueType, guidInfo, index });
|
|
11
11
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"ByteProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/ByteProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAwB,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QAC3H,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD1C,UAAK,GAAL,KAAK,CAAmB;IAE3C,CAAC;IAEM,MA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WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AArDD,oCAqDC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isByteProperty = (property: any): property is ByteProperty => !Array.isArray(property) && property.type === 'ByteProperty';\n\nexport class ByteProperty extends AbstractBaseProperty {\n\n constructor(public value: BytePropertyValue, ueType: string = 'ByteProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'ByteProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): ByteProperty {\n\n const type = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n\n let value;\n if (type === 'None') {\n value = {\n type,\n value: ByteProperty.ReadValue(reader)\n };\n }\n else {\n value = {\n type,\n value: reader.readString()\n };\n }\n\n const property = new ByteProperty(value, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readByte();\n }\n\n public static CalcOverhead(property: ByteProperty): number {\n return property.value.type.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: ByteProperty): void {\n writer.writeString(property.value.type);\n GUIDInfo.write(writer, property.guidInfo);\n\n if (property.value.type === 'None') {\n ByteProperty.SerializeValue(writer, property.value.value as number);\n }\n else {\n writer.writeString(property.value.value as string);\n }\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeByte(value);\n }\n}\nexport type BytePropertyValue = {\n type: string;\n value: string | number;\n};\n\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isDoubleProperty: (property:
|
|
6
|
-
export declare class DoubleProperty extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isDoubleProperty: (property: any) => property is DoubleProperty;
|
|
6
|
+
export declare class DoubleProperty extends AbstractBaseProperty {
|
|
7
7
|
value: number;
|
|
8
8
|
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
9
9
|
static Parse(reader: BinaryReadable, ueType: string, index?: number): DoubleProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoubleProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,
|
|
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;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgF,CAAC;AAE9I,qBAAa,cAAe,SAAQ,oBAAoB;IAEjC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAyB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIxG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,cAAc;WAMhF,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;WAI9C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;WAK7D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DoubleProperty = exports.isDoubleProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isDoubleProperty = (property) => property.type === 'DoubleProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isDoubleProperty = (property) => !Array.isArray(property) && property.type === 'DoubleProperty';
|
|
7
7
|
exports.isDoubleProperty = isDoubleProperty;
|
|
8
|
-
class DoubleProperty extends
|
|
8
|
+
class DoubleProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
|
|
9
9
|
constructor(value, ueType = 'DoubleProperty', guidInfo = undefined, index = 0) {
|
|
10
10
|
super({ type: 'DoubleProperty', ueType, guidInfo, index });
|
|
11
11
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/DoubleProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"DoubleProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property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,KAAa;QAC1D,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA5BD,wCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport const isDoubleProperty = (property: any): property is DoubleProperty => !Array.isArray(property) && property.type === 'DoubleProperty';\n\nexport class DoubleProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'DoubleProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'DoubleProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): DoubleProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = DoubleProperty.ReadValue(reader);\n return new DoubleProperty(value, ueType, guidInfo, index);\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readDouble();\n }\n\n public static CalcOverhead(property: DoubleProperty): number {\n return 1;\n }\n\n public static Serialize(writer: ByteWriter, property: DoubleProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n DoubleProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeDouble(value);\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isEnumProperty: (property:
|
|
6
|
-
export declare class EnumProperty extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isEnumProperty: (property: any) => property is EnumProperty;
|
|
6
|
+
export declare class EnumProperty extends AbstractBaseProperty {
|
|
7
7
|
value: {
|
|
8
8
|
name: string;
|
|
9
9
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EnumProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,qBAAa,YAAa,SAAQ,oBAAoB;IAE/B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE;gBAAvC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,EAAE,MAAM,GAAE,MAAuB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIhI,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;WAS9E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;WAI5C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;WAM3D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnumProperty = exports.isEnumProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isEnumProperty = (property) => property.type === 'EnumProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isEnumProperty = (property) => !Array.isArray(property) && property.type === 'EnumProperty';
|
|
7
7
|
exports.isEnumProperty = isEnumProperty;
|
|
8
|
-
class EnumProperty extends
|
|
8
|
+
class EnumProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
|
|
9
9
|
constructor(value, ueType = 'EnumProperty', guidInfo = undefined, index = 0) {
|
|
10
10
|
super({ type: 'EnumProperty', ueType, guidInfo, index });
|
|
11
11
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"EnumProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/EnumProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,cAAc,GAAG,CAAC,QAAa,EAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAc,CAAC;AAA3H,QAAA,cAAc,kBAA6G;AAExI,MAAa,YAAa,SAAQ,2CAAoB;IAElD,YAAmB,KAAuC,EAAE,SAAiB,cAAc,EAAE,WAAqB,SAAS,EAA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;AAhCD,oCAgCC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isEnumProperty = (property: any): property is EnumProperty => !Array.isArray(property) && property.type === 'EnumProperty';\n\nexport class EnumProperty extends AbstractBaseProperty {\n\n constructor(public value: { name: string; value: string; }, ueType: string = 'EnumProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'EnumProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): EnumProperty {\n let name = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n const value = EnumProperty.ReadValue(reader);\n\n const property = new EnumProperty({ name, value }, ueType, guidInfo, index);\n return property;\n }\n\n public static ReadValue(reader: BinaryReadable): string {\n return reader.readString();\n }\n\n public static CalcOverhead(property: EnumProperty): number {\n return property.value.name.length + 5 + 1;\n }\n\n public static Serialize(writer: ByteWriter, property: EnumProperty): void {\n writer.writeString(property.value.name);\n GUIDInfo.write(writer, property.guidInfo);\n EnumProperty.SerializeValue(writer, property.value.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: string): void {\n writer.writeString(value);\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isFloatProperty: (property:
|
|
6
|
-
export declare class FloatProperty extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isFloatProperty: (property: any) => property is FloatProperty;
|
|
6
|
+
export declare class FloatProperty extends AbstractBaseProperty {
|
|
7
7
|
value: number;
|
|
8
8
|
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
9
9
|
static Parse(reader: BinaryReadable, ueType: string, index?: number): FloatProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"FloatProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,qBAAa,aAAc,SAAQ,oBAAoB;IAEhC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAwB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIvG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FloatProperty = exports.isFloatProperty = void 0;
|
|
4
4
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
5
|
-
const
|
|
6
|
-
const isFloatProperty = (property) => property.type === 'FloatProperty';
|
|
5
|
+
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
6
|
+
const isFloatProperty = (property) => !Array.isArray(property) && property.type === 'FloatProperty';
|
|
7
7
|
exports.isFloatProperty = isFloatProperty;
|
|
8
|
-
class FloatProperty extends
|
|
8
|
+
class FloatProperty extends AbstractBaseProperty_1.AbstractBaseProperty {
|
|
9
9
|
constructor(value, ueType = 'FloatProperty', guidInfo = undefined, index = 0) {
|
|
10
10
|
super({ type: 'FloatProperty', ueType, guidInfo, index });
|
|
11
11
|
this.value = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"FloatProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/FloatProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iEAA8D;AAEvD,MAAM,eAAe,GAAG,CAAC,QAAa,EAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC;AAA9H,QAAA,eAAe,mBAA+G;AAE3I,MAAa,aAAc,SAAQ,2CAAoB;IAEnD,YAAmB,KAAa,EAAE,SAAiB,eAAe,EAAE,WAAqB,SAAS,EAAE,QAAgB,CAAC;QACjH,KAAK,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAD3C,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAsB,EAAE,MAAc,EAAE,QAAgB,CAAC;QACzE,MAAM,QAAQ,GAAG,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,IAAI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,QAAuB;QAC9C,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAsB;QAC1C,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB,EAAE,QAAuB;QAC/D,mBAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC1C,aAAa,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAkB,EAAE,KAAa;QAC1D,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ;AA5BD,sCA4BC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isFloatProperty = (property: any): property is FloatProperty => !Array.isArray(property) && property.type === 'FloatProperty';\n\nexport class FloatProperty extends AbstractBaseProperty {\n\n constructor(public value: number, ueType: string = 'FloatProperty', guidInfo: GUIDInfo = undefined, index: number = 0) {\n super({ type: 'FloatProperty', ueType, guidInfo, index });\n }\n\n public static Parse(reader: BinaryReadable, ueType: string, index: number = 0): FloatProperty {\n const guidInfo = GUIDInfo.read(reader);\n const value = FloatProperty.ReadValue(reader);\n return new FloatProperty(value, ueType, guidInfo, index);\n }\n\n public static CalcOverhead(property: FloatProperty): number {\n return 1;\n }\n\n public static ReadValue(reader: BinaryReadable): number {\n return reader.readFloat32();\n }\n\n public static Serialize(writer: ByteWriter, property: FloatProperty): void {\n GUIDInfo.write(writer, property.guidInfo);\n FloatProperty.SerializeValue(writer, property.value);\n }\n\n public static SerializeValue(writer: ByteWriter, value: number): void {\n writer.writeFloat32(value);\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
3
|
import { GUIDInfo } from '../../structs/GUIDInfo';
|
|
4
|
-
import {
|
|
5
|
-
export declare const isInt32Property: (property:
|
|
6
|
-
export declare class Int32Property extends
|
|
4
|
+
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
5
|
+
export declare const isInt32Property: (property: any) => property is Int32Property;
|
|
6
|
+
export declare class Int32Property extends AbstractBaseProperty {
|
|
7
7
|
value: number;
|
|
8
8
|
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
9
9
|
static Parse(reader: BinaryReadable, ueType: string, index?: number): Int32Property;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Int32Property.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/Int32Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,eAAe,aAAc,GAAG,KAAG,QAAQ,IAAI,aAA8E,CAAC;AAE3I,qBAAa,aAAc,SAAQ,oBAAoB;IAEhC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB,EAAE,QAAQ,GAAE,QAAoB,EAAE,KAAK,GAAE,MAAU;WAIrG,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,aAAa;WAM/E,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;WAIzC,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;WAI7C,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;WAK5D,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAGxE"}
|