@etothepii/satisfactory-file-parser 2.1.3 → 3.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/CHANGELOG.md +125 -103
- package/LICENCE.md +1 -1
- package/README.md +35 -17
- package/build/index.d.ts +12 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +13 -3
- package/build/index.js.map +1 -1
- package/build/parser/byte/byte-reader.class.d.ts +7 -5
- package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
- package/build/parser/byte/byte-reader.class.js +6 -4
- package/build/parser/byte/byte-reader.class.js.map +1 -1
- package/build/parser/byte/byte-writer.class.d.ts +1 -0
- package/build/parser/byte/byte-writer.class.d.ts.map +1 -1
- package/build/parser/byte/byte-writer.class.js +3 -0
- package/build/parser/byte/byte-writer.class.js.map +1 -1
- package/build/parser/context/context-reader.d.ts +6 -0
- package/build/parser/context/context-reader.d.ts.map +1 -0
- package/build/parser/context/context-reader.js +13 -0
- package/build/parser/context/context-reader.js.map +1 -0
- package/build/parser/context/context-writer.d.ts +6 -0
- package/build/parser/context/context-writer.d.ts.map +1 -0
- package/build/parser/context/context-writer.js +13 -0
- package/build/parser/context/context-writer.js.map +1 -0
- package/build/parser/context/context.d.ts +16 -0
- package/build/parser/context/context.d.ts.map +1 -0
- package/build/parser/context/context.js +3 -0
- package/build/parser/context/context.js.map +1 -0
- package/build/parser/error/parser.error.d.ts +3 -0
- package/build/parser/error/parser.error.d.ts.map +1 -1
- package/build/parser/error/parser.error.js +7 -1
- package/build/parser/error/parser.error.js.map +1 -1
- package/build/parser/parser.d.ts +5 -5
- package/build/parser/parser.d.ts.map +1 -1
- package/build/parser/parser.js +48 -22
- package/build/parser/parser.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts +10 -0
- package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-config-version.js +14 -0
- package/build/parser/satisfactory/blueprint/blueprint-config-version.js.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-config.d.ts +21 -0
- package/build/parser/satisfactory/blueprint/blueprint-config.d.ts.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-config.js +56 -0
- package/build/parser/satisfactory/blueprint/blueprint-config.js.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-header.d.ts +24 -0
- package/build/parser/satisfactory/blueprint/blueprint-header.d.ts.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-header.js +61 -0
- package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -0
- package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts +11 -14
- package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.js +15 -99
- package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts +6 -9
- package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.js +7 -39
- package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint.types.d.ts +3 -16
- package/build/parser/satisfactory/blueprint/blueprint.types.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint.types.js.map +1 -1
- package/build/parser/satisfactory/edit/edit-constants.d.ts +18 -0
- package/build/parser/satisfactory/edit/edit-constants.d.ts.map +1 -1
- package/build/parser/satisfactory/edit/edit-constants.js +18 -0
- package/build/parser/satisfactory/edit/edit-constants.js.map +1 -1
- package/build/parser/satisfactory/save/factory-game-custom-version.d.ts +34 -0
- package/build/parser/satisfactory/save/factory-game-custom-version.d.ts.map +1 -0
- package/build/parser/satisfactory/save/factory-game-custom-version.js +39 -0
- package/build/parser/satisfactory/save/factory-game-custom-version.js.map +1 -0
- package/build/parser/satisfactory/save/level.class.d.ts +17 -10
- package/build/parser/satisfactory/save/level.class.d.ts.map +1 -1
- package/build/parser/satisfactory/save/level.class.js +77 -21
- package/build/parser/satisfactory/save/level.class.js.map +1 -1
- package/build/parser/satisfactory/save/object-references-list.d.ts +4 -4
- 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/save/satisfactory-save-header.d.ts +29 -0
- package/build/parser/satisfactory/save/satisfactory-save-header.d.ts.map +1 -0
- package/build/parser/satisfactory/save/satisfactory-save-header.js +111 -0
- package/build/parser/satisfactory/save/satisfactory-save-header.js.map +1 -0
- package/build/parser/satisfactory/save/satisfactory-save.d.ts +6 -4
- package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -1
- package/build/parser/satisfactory/save/satisfactory-save.js +4 -1
- package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -1
- package/build/parser/satisfactory/save/save-body-chunks.d.ts +25 -0
- package/build/parser/satisfactory/save/save-body-chunks.d.ts.map +1 -0
- package/build/parser/satisfactory/save/save-body-chunks.js +118 -0
- package/build/parser/satisfactory/save/save-body-chunks.js.map +1 -0
- package/build/parser/satisfactory/save/save-custom-version.d.ts +57 -0
- package/build/parser/satisfactory/save/save-custom-version.d.ts.map +1 -0
- package/build/parser/satisfactory/save/save-custom-version.js +62 -0
- package/build/parser/satisfactory/save/save-custom-version.js.map +1 -0
- package/build/parser/satisfactory/save/save-header-type.d.ts +18 -0
- package/build/parser/satisfactory/save/save-header-type.d.ts.map +1 -0
- package/build/parser/satisfactory/save/save-header-type.js +22 -0
- package/build/parser/satisfactory/save/save-header-type.js.map +1 -0
- package/build/parser/satisfactory/save/save-reader.d.ts +14 -12
- package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save-reader.js +32 -134
- package/build/parser/satisfactory/save/save-reader.js.map +1 -1
- package/build/parser/satisfactory/save/save-writer.d.ts +7 -9
- package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save-writer.js +8 -95
- package/build/parser/satisfactory/save/save-writer.js.map +1 -1
- package/build/parser/satisfactory/save/save.types.d.ts +5 -25
- package/build/parser/satisfactory/save/save.types.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save.types.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveComponent.d.ts +6 -5
- package/build/parser/satisfactory/types/objects/SaveComponent.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveComponent.js +2 -2
- package/build/parser/satisfactory/types/objects/SaveComponent.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveEntity.d.ts +7 -8
- package/build/parser/satisfactory/types/objects/SaveEntity.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveEntity.js +7 -10
- package/build/parser/satisfactory/types/objects/SaveEntity.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts +11 -9
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js +17 -9
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts +6 -6
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +7 -7
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.js +5 -5
- package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +4 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +1 -2
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +4 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +11 -15
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.js +29 -33
- package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +6 -6
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +25 -5
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +70 -44
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +2 -2
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +12 -3
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +4 -4
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +4 -4
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +6 -9
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +3 -8
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts +8 -0
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js +12 -0
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js.map +1 -0
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts +4 -4
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +4 -4
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
- package/build/parser/satisfactory/types/structs/FGDynamicStruct.d.ts +14 -0
- package/build/parser/satisfactory/types/structs/FGDynamicStruct.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/FGDynamicStruct.js +34 -0
- package/build/parser/satisfactory/types/structs/FGDynamicStruct.js.map +1 -0
- package/build/parser/satisfactory/types/structs/GUID.d.ts +4 -4
- 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 +4 -4
- 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/MD5Hash.d.ts +4 -4
- package/build/parser/satisfactory/types/structs/MD5Hash.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/MD5Hash.js.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.d.ts +5 -4
- package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.js +1 -0
- package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
- package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +4 -4
- package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -1
- package/build/parser/satisfactory/types/structs/Transform.d.ts +6 -6
- 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/VehiclePhysicsData.d.ts +17 -0
- package/build/parser/satisfactory/types/structs/VehiclePhysicsData.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/VehiclePhysicsData.js +26 -0
- package/build/parser/satisfactory/types/structs/VehiclePhysicsData.js.map +1 -0
- package/build/parser/satisfactory/types/structs/col4.d.ts +6 -6
- 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 +4 -4
- 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 +6 -6
- 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 +8 -8
- 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 +6 -6
- 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 +2 -2
- package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.js +62 -20
- package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
- package/build/parser/stream/reworked/save-stream-json-stringifier.js +1 -1
- package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +1 -1
- package/build/parser/stream/reworked/save-stream-writer.class.d.ts +2 -2
- package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +1 -1
- package/build/parser/stream/reworked/save-stream-writer.class.js.map +1 -1
- package/docs/assets/highlight.css +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BlueprintConfigReader.html +7 -6
- package/docs/classes/BlueprintConfigWriter.html +6 -4
- package/docs/classes/BlueprintReader.html +7 -5
- package/docs/classes/BlueprintWriter.html +6 -4
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/CorruptBlueprintError.html +11 -0
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/Parser.html +13 -13
- package/docs/classes/ParserError.html +2 -2
- package/docs/classes/ReadableStreamParser.html +4 -4
- package/docs/classes/SatisfactorySave.html +3 -2
- package/docs/classes/SaveComponent.html +6 -5
- package/docs/classes/SaveEntity.html +6 -6
- package/docs/classes/SaveObject.html +6 -5
- package/docs/classes/SaveReader.html +11 -7
- package/docs/classes/SaveStreamJsonStringifier.html +2 -2
- package/docs/classes/SaveStreamWriter.html +2 -2
- package/docs/classes/SaveWriter.html +6 -4
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- package/docs/enums/BlueprintConfigVersion.html +9 -0
- package/docs/enums/CompressionAlgorithmCode.html +2 -0
- package/docs/enums/FactoryGameCustomVersion.html +33 -0
- package/docs/enums/RuntimeBuildableInstanceDataVersion.html +7 -0
- package/docs/enums/SaveCustomVersion.html +64 -0
- package/docs/enums/SaveHeaderType.html +17 -0
- package/docs/functions/AbstractBaseProperty.Create.html +1 -1
- package/docs/functions/ArrayProperty.CalcOverhead.html +1 -1
- package/docs/functions/ArrayProperty.Parse.html +1 -1
- package/docs/functions/ArrayProperty.Serialize.html +1 -1
- package/docs/functions/BlueprintConfig.Parse.html +1 -0
- package/docs/functions/BlueprintConfig.Serialize.html +1 -0
- package/docs/functions/BlueprintHeader.Parse.html +1 -0
- package/docs/functions/BlueprintHeader.Serialize.html +1 -0
- package/docs/functions/BoolArrayProperty.Parse.html +1 -1
- package/docs/functions/BoolArrayProperty.Serialize.html +1 -1
- package/docs/functions/BoolProperty.CalcOverhead.html +1 -1
- package/docs/functions/BoolProperty.Parse.html +1 -1
- package/docs/functions/BoolProperty.ReadValue.html +1 -1
- package/docs/functions/BoolProperty.Serialize.html +1 -1
- package/docs/functions/BoolProperty.SerializeValue.html +1 -1
- package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
- package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
- package/docs/functions/BuildableTypeInstance.Parse.html +1 -0
- package/docs/functions/BuildableTypeInstance.Serialize.html +1 -0
- package/docs/functions/ByteArrayProperty.Parse.html +1 -1
- package/docs/functions/ByteArrayProperty.Serialize.html +1 -1
- package/docs/functions/ByteProperty.CalcOverhead.html +1 -1
- package/docs/functions/ByteProperty.Parse.html +1 -1
- package/docs/functions/ByteProperty.ReadValue.html +1 -1
- package/docs/functions/ByteProperty.Serialize.html +1 -1
- package/docs/functions/ByteProperty.SerializeValue.html +1 -1
- package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
- package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/DoubleArrayProperty.Parse.html +1 -1
- package/docs/functions/DoubleArrayProperty.Serialize.html +1 -1
- package/docs/functions/DoubleProperty.CalcOverhead.html +1 -1
- package/docs/functions/DoubleProperty.Parse.html +1 -1
- package/docs/functions/DoubleProperty.ReadValue.html +1 -1
- package/docs/functions/DoubleProperty.Serialize.html +1 -1
- package/docs/functions/DoubleProperty.SerializeValue.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
- package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
- package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
- package/docs/functions/EnumArrayProperty.Parse.html +1 -1
- package/docs/functions/EnumArrayProperty.Serialize.html +1 -1
- package/docs/functions/EnumProperty.CalcOverhead.html +1 -1
- package/docs/functions/EnumProperty.Parse.html +1 -1
- package/docs/functions/EnumProperty.ReadValue.html +1 -1
- package/docs/functions/EnumProperty.Serialize.html +1 -1
- package/docs/functions/EnumProperty.SerializeValue.html +1 -1
- package/docs/functions/FGDynamicStruct.Parse.html +1 -0
- package/docs/functions/FGDynamicStruct.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 -1
- package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.CalcOverhead.html +1 -1
- package/docs/functions/FloatProperty.Parse.html +1 -1
- package/docs/functions/FloatProperty.ReadValue.html +1 -1
- package/docs/functions/FloatProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.SerializeValue.html +1 -1
- 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 -1
- package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int32Property.CalcOverhead.html +1 -1
- package/docs/functions/Int32Property.Parse.html +1 -1
- package/docs/functions/Int32Property.ReadValue.html +1 -1
- package/docs/functions/Int32Property.Serialize.html +1 -1
- package/docs/functions/Int32Property.SerializeValue.html +1 -1
- package/docs/functions/Int32SetProperty.Parse.html +1 -1
- package/docs/functions/Int32SetProperty.Serialize.html +1 -1
- package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
- package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int64Property.CalcOverhead.html +1 -1
- package/docs/functions/Int64Property.Parse.html +1 -1
- package/docs/functions/Int64Property.ReadValue.html +1 -1
- package/docs/functions/Int64Property.Serialize.html +1 -1
- package/docs/functions/Int64Property.SerializeValue.html +1 -1
- package/docs/functions/Int8Property.CalcOverhead.html +1 -1
- package/docs/functions/Int8Property.Parse.html +1 -1
- package/docs/functions/Int8Property.ReadValue.html +1 -1
- package/docs/functions/Int8Property.Serialize.html +1 -1
- package/docs/functions/Int8Property.SerializeValue.html +1 -1
- package/docs/functions/Level.ReadAllObjectContents.html +1 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
- package/docs/functions/Level.ReadLevel.html +1 -1
- package/docs/functions/Level.ReadNObjectContents.html +1 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeLevel.html +1 -1
- package/docs/functions/MD5Hash.read.html +1 -1
- package/docs/functions/MD5Hash.write.html +1 -1
- package/docs/functions/MapProperty.CalcOverhead.html +1 -1
- package/docs/functions/MapProperty.Parse.html +1 -1
- package/docs/functions/MapProperty.Serialize.html +1 -1
- package/docs/functions/ObjectArrayProperty.Parse.html +1 -1
- package/docs/functions/ObjectArrayProperty.Serialize.html +1 -1
- package/docs/functions/ObjectProperty.CalcOverhead.html +1 -1
- package/docs/functions/ObjectProperty.Parse.html +1 -1
- package/docs/functions/ObjectProperty.ReadValue.html +1 -1
- package/docs/functions/ObjectProperty.Serialize.html +1 -1
- package/docs/functions/ObjectProperty.SerializeValue.html +1 -1
- package/docs/functions/ObjectReference.IsEqual.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 -1
- package/docs/functions/ObjectSetProperty.Serialize.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PropertiesList.ParseList.html +1 -1
- package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
- package/docs/functions/PropertiesList.SerializeList.html +1 -1
- package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
- package/docs/functions/SatisfactorySaveHeader.Parse.html +1 -0
- package/docs/functions/SatisfactorySaveHeader.Serialize.html +1 -0
- package/docs/functions/SaveBodyChunks.CompressDataIntoChunks.html +1 -0
- package/docs/functions/SaveBodyChunks.DecompressChunks.html +1 -0
- package/docs/functions/SetProperty.CalcOverhead.html +1 -1
- package/docs/functions/SetProperty.Parse.html +1 -1
- package/docs/functions/SetProperty.Serialize.html +1 -1
- package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -1
- package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -1
- package/docs/functions/SoftObjectReference.read.html +1 -1
- package/docs/functions/SoftObjectReference.write.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
- package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/StrArrayProperty.Parse.html +1 -1
- package/docs/functions/StrArrayProperty.Serialize.html +1 -1
- package/docs/functions/StrProperty.CalcOverhead.html +1 -1
- package/docs/functions/StrProperty.Parse.html +1 -1
- package/docs/functions/StrProperty.ReadValue.html +1 -1
- package/docs/functions/StrProperty.Serialize.html +1 -1
- package/docs/functions/StrProperty.SerializeValue.html +1 -1
- package/docs/functions/StrSetProperty.Parse.html +1 -1
- package/docs/functions/StrSetProperty.Serialize.html +1 -1
- package/docs/functions/StructArrayProperty.Parse.html +1 -1
- package/docs/functions/StructArrayProperty.Serialize.html +1 -1
- package/docs/functions/StructProperty.CalcOverhead.html +1 -1
- package/docs/functions/StructProperty.Parse.html +1 -1
- package/docs/functions/StructProperty.ParseValue.html +1 -1
- package/docs/functions/StructProperty.Serialize.html +1 -1
- package/docs/functions/StructProperty.SerializeValue.html +1 -1
- package/docs/functions/StructSetProperty.Parse.html +1 -1
- package/docs/functions/StructSetProperty.Serialize.html +1 -1
- package/docs/functions/TextArrayProperty.Parse.html +1 -1
- package/docs/functions/TextArrayProperty.Serialize.html +1 -1
- package/docs/functions/TextProperty.CalcOverhead.html +1 -1
- package/docs/functions/TextProperty.Parse.html +1 -1
- package/docs/functions/TextProperty.ReadValue.html +1 -1
- package/docs/functions/TextProperty.Serialize.html +1 -1
- package/docs/functions/TextProperty.SerializeValue.html +1 -1
- package/docs/functions/Transform.Parse.html +1 -1
- package/docs/functions/Transform.ParseF.html +1 -1
- package/docs/functions/Transform.Serialize.html +1 -1
- package/docs/functions/Transform.SerializeF.html +1 -1
- package/docs/functions/Uint32Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint32Property.Parse.html +1 -1
- package/docs/functions/Uint32Property.ReadValue.html +1 -1
- package/docs/functions/Uint32Property.Serialize.html +1 -1
- package/docs/functions/Uint32Property.SerializeValue.html +1 -1
- package/docs/functions/Uint32SetProperty.Parse.html +1 -1
- package/docs/functions/Uint32SetProperty.Serialize.html +1 -1
- package/docs/functions/Uint64Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint64Property.Parse.html +1 -1
- package/docs/functions/Uint64Property.ReadValue.html +1 -1
- package/docs/functions/Uint64Property.Serialize.html +1 -1
- package/docs/functions/Uint64Property.SerializeValue.html +1 -1
- package/docs/functions/Uint8Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint8Property.Parse.html +1 -1
- package/docs/functions/Uint8Property.ReadValue.html +1 -1
- package/docs/functions/Uint8Property.Serialize.html +1 -1
- package/docs/functions/Uint8Property.SerializeValue.html +1 -1
- package/docs/functions/VehiclePhysicsData.Parse.html +1 -0
- package/docs/functions/VehiclePhysicsData.Serialize.html +1 -0
- package/docs/functions/VehicleSpecialProperties.Parse.html +1 -1
- package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -1
- package/docs/functions/col4.ParseBGRA.html +1 -1
- package/docs/functions/col4.ParseRGBA.html +1 -1
- package/docs/functions/col4.SerializeBGRA.html +1 -1
- package/docs/functions/col4.SerializeRGBA.html +1 -1
- package/docs/functions/isArrayProperty.html +1 -1
- package/docs/functions/isBoolArrayProperty.html +1 -1
- package/docs/functions/isBoolProperty.html +1 -1
- package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
- package/docs/functions/isByteArrayProperty.html +1 -1
- package/docs/functions/isByteProperty.html +1 -1
- package/docs/functions/isCircuitSpecialProperties.html +1 -1
- package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
- package/docs/functions/isConveyorSpecialProperties.html +1 -1
- package/docs/functions/isDoubleArrayProperty.html +1 -1
- package/docs/functions/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -1
- package/docs/functions/isEnumArrayProperty.html +1 -1
- package/docs/functions/isEnumProperty.html +1 -1
- package/docs/functions/isFloatArrayProperty.html +1 -1
- package/docs/functions/isFloatProperty.html +1 -1
- package/docs/functions/isInt32ArrayProperty.html +1 -1
- package/docs/functions/isInt32Property.html +1 -1
- package/docs/functions/isInt32SetProperty.html +1 -1
- package/docs/functions/isInt64ArrayProperty.html +1 -1
- 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 -1
- package/docs/functions/isObjectProperty.html +1 -1
- package/docs/functions/isObjectSetProperty.html +1 -1
- package/docs/functions/isObjectsListSpecialProperties.html +1 -1
- package/docs/functions/isPlayerSpecialProperties.html +1 -1
- package/docs/functions/isPowerLineSpecialProperties.html +1 -1
- package/docs/functions/isSaveComponent.html +1 -1
- package/docs/functions/isSaveEntity.html +1 -1
- package/docs/functions/isSetProperty.html +1 -1
- package/docs/functions/isSoftObjectArrayProperty.html +1 -1
- package/docs/functions/isSpecialDroneActionProperties.html +1 -1
- package/docs/functions/isStrArrayProperty.html +1 -1
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStrSetProperty.html +1 -1
- package/docs/functions/isStructArrayProperty.html +1 -1
- package/docs/functions/isStructProperty.html +1 -1
- package/docs/functions/isStructSetProperty.html +1 -1
- package/docs/functions/isTextArrayProperty.html +1 -1
- 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 -1
- package/docs/functions/isUint8Property.html +1 -1
- package/docs/functions/isVehicleSpecialProperties.html +1 -1
- package/docs/functions/vec2.Parse.html +1 -1
- package/docs/functions/vec2.ParseF.html +1 -1
- package/docs/functions/vec2.Serialize.html +1 -1
- package/docs/functions/vec2.SerializeF.html +1 -1
- package/docs/functions/vec3.Parse.html +1 -1
- package/docs/functions/vec3.ParseF.html +1 -1
- package/docs/functions/vec3.ParseInt.html +1 -1
- package/docs/functions/vec3.Serialize.html +1 -1
- package/docs/functions/vec3.SerializeF.html +1 -1
- package/docs/functions/vec3.SerializeInt.html +1 -1
- package/docs/functions/vec3.add.html +1 -1
- package/docs/functions/vec3.length.html +1 -1
- package/docs/functions/vec3.mult.html +1 -1
- package/docs/functions/vec3.norm.html +1 -1
- package/docs/functions/vec3.sub.html +1 -1
- package/docs/functions/vec4.Parse.html +1 -1
- package/docs/functions/vec4.ParseF.html +1 -1
- package/docs/functions/vec4.Serialize.html +1 -1
- package/docs/functions/vec4.SerializeF.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +34 -21
- package/docs/interfaces/Blueprint.html +2 -2
- package/docs/interfaces/BlueprintConfig-1.html +8 -0
- package/docs/interfaces/SaveComponentHeader.html +3 -2
- package/docs/interfaces/SaveEntityHeader.html +3 -2
- package/docs/interfaces/SaveObjectHeader.html +3 -2
- package/docs/modules/AbstractBaseProperty.html +1 -1
- package/docs/modules/ArrayProperty.html +1 -1
- package/docs/modules/BlueprintConfig.html +3 -0
- package/docs/modules/BlueprintHeader.html +3 -0
- package/docs/modules/BoolArrayProperty.html +1 -1
- package/docs/modules/BoolProperty.html +1 -1
- package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
- package/docs/modules/BuildableTypeInstance.html +3 -0
- package/docs/modules/ByteArrayProperty.html +1 -1
- package/docs/modules/ByteProperty.html +1 -1
- package/docs/modules/CircuitSpecialProperties.html +1 -1
- package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
- package/docs/modules/ConveyorSpecialProperties.html +1 -1
- package/docs/modules/DoubleArrayProperty.html +1 -1
- package/docs/modules/DoubleProperty.html +1 -1
- package/docs/modules/DynamicStructPropertyValue.html +1 -1
- package/docs/modules/EmptySpecialProperties.html +1 -1
- package/docs/modules/EnumArrayProperty.html +1 -1
- package/docs/modules/EnumProperty.html +1 -1
- package/docs/modules/FGDynamicStruct.html +3 -0
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/FloatArrayProperty.html +1 -1
- package/docs/modules/FloatProperty.html +1 -1
- package/docs/modules/GUID.html +1 -1
- package/docs/modules/GUIDInfo.html +1 -1
- package/docs/modules/Int32ArrayProperty.html +1 -1
- package/docs/modules/Int32Property.html +1 -1
- package/docs/modules/Int32SetProperty.html +1 -1
- package/docs/modules/Int64ArrayProperty.html +1 -1
- package/docs/modules/Int64Property.html +1 -1
- package/docs/modules/Int8Property.html +1 -1
- package/docs/modules/Level.html +1 -1
- package/docs/modules/MD5Hash.html +1 -1
- package/docs/modules/MapProperty.html +1 -1
- package/docs/modules/ObjectArrayProperty.html +1 -1
- package/docs/modules/ObjectProperty.html +1 -1
- package/docs/modules/ObjectReference.html +2 -1
- package/docs/modules/ObjectSetProperty.html +1 -1
- package/docs/modules/ObjectsListSpecialProperties.html +1 -1
- package/docs/modules/PlayerSpecialProperties.html +1 -1
- package/docs/modules/PowerLineSpecialProperties.html +1 -1
- package/docs/modules/PropertiesList.html +1 -1
- package/docs/modules/SatisfactorySaveHeader.html +3 -0
- package/docs/modules/SaveBodyChunks.html +5 -0
- package/docs/modules/SetProperty.html +1 -1
- package/docs/modules/SoftObjectArrayProperty.html +1 -1
- package/docs/modules/SoftObjectReference.html +1 -1
- package/docs/modules/SpecialDroneActionProperties.html +1 -1
- package/docs/modules/SpecialProperties.html +1 -1
- package/docs/modules/StrArrayProperty.html +1 -1
- package/docs/modules/StrProperty.html +1 -1
- package/docs/modules/StrSetProperty.html +1 -1
- package/docs/modules/StructArrayProperty.html +1 -1
- package/docs/modules/StructProperty.html +1 -1
- package/docs/modules/StructSetProperty.html +1 -1
- package/docs/modules/TextArrayProperty.html +1 -1
- package/docs/modules/TextProperty.html +1 -1
- package/docs/modules/Transform.html +1 -1
- package/docs/modules/Uint32Property.html +1 -1
- package/docs/modules/Uint32SetProperty.html +1 -1
- package/docs/modules/Uint64Property.html +1 -1
- package/docs/modules/Uint8Property.html +1 -1
- package/docs/modules/VehiclePhysicsData.html +3 -0
- package/docs/modules/VehicleSpecialProperties.html +1 -1
- package/docs/modules/col4.html +1 -1
- package/docs/modules/vec2.html +1 -1
- package/docs/modules/vec3.html +1 -1
- package/docs/modules/vec4.html +1 -1
- package/docs/modules.html +31 -7
- package/docs/types/AbstractBaseProperty-1.html +1 -1
- package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
- 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-1.html +1 -0
- package/docs/types/BoolArrayProperty-1.html +1 -1
- package/docs/types/BoolProperty-1.html +1 -1
- package/docs/types/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
- package/docs/types/BuildableTypeInstance-1.html +1 -0
- package/docs/types/ByteArray4.html +1 -0
- package/docs/types/ByteArrayProperty-1.html +1 -1
- package/docs/types/ByteProperty-1.html +1 -1
- package/docs/types/BytePropertyValue.html +1 -1
- package/docs/types/ChunkCompressionInfo.html +1 -0
- package/docs/types/ChunkSummary.html +1 -0
- package/docs/types/CircuitSpecialProperties-1.html +1 -1
- package/docs/types/ClientIdentityInfo.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -1
- package/docs/types/DoubleArrayProperty-1.html +1 -1
- package/docs/types/DoubleProperty-1.html +1 -1
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -1
- package/docs/types/EnumArrayProperty-1.html +1 -1
- package/docs/types/EnumProperty-1.html +1 -1
- package/docs/types/FGDynamicStruct-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 -1
- package/docs/types/FloatProperty-1.html +1 -1
- 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/Grids.html +1 -0
- package/docs/types/Int32ArrayProperty-1.html +1 -1
- package/docs/types/Int32Property-1.html +1 -1
- package/docs/types/Int32SetProperty-1.html +1 -1
- package/docs/types/Int64ArrayProperty-1.html +1 -1
- package/docs/types/Int64Property-1.html +1 -1
- package/docs/types/Int8Property-1.html +1 -1
- package/docs/types/InventoryItemStructPropertyValue.html +1 -1
- package/docs/types/Level-1.html +3 -1
- package/docs/types/Levels.html +1 -0
- package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
- package/docs/types/MD5Hash-1.html +1 -1
- package/docs/types/MapProperty-1.html +1 -1
- package/docs/types/ModData.html +1 -0
- package/docs/types/ObjectArrayProperty-1.html +1 -1
- package/docs/types/ObjectProperty-1.html +1 -1
- package/docs/types/ObjectReference-1.html +1 -1
- package/docs/types/ObjectSetProperty-1.html +1 -1
- package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
- package/docs/types/PlayerSpecialProperties-1.html +1 -1
- package/docs/types/PowerLineSpecialProperties-1.html +1 -1
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SatisfactoryModMetadata.html +1 -0
- package/docs/types/SatisfactorySaveHeader-1.html +1 -0
- package/docs/types/SaveBodyChunks-1.html +1 -0
- package/docs/types/SaveBodyValidation.html +1 -0
- package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
- package/docs/types/SoftObjectArrayProperty-1.html +1 -1
- package/docs/types/SoftObjectReference-1.html +1 -1
- package/docs/types/SpecialDroneAction.html +1 -1
- package/docs/types/SpecialDroneActionProperties-1.html +1 -1
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
- package/docs/types/StrArrayProperty-1.html +1 -1
- package/docs/types/StrProperty-1.html +1 -1
- package/docs/types/StrSetProperty-1.html +1 -1
- package/docs/types/StructArrayProperty-1.html +1 -1
- package/docs/types/StructProperty-1.html +1 -1
- package/docs/types/StructSetProperty-1.html +1 -1
- package/docs/types/TextArrayProperty-1.html +1 -1
- package/docs/types/TextProperty-1.html +1 -1
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/Uint32Property-1.html +1 -1
- package/docs/types/Uint32SetProperty-1.html +1 -1
- package/docs/types/Uint64Property-1.html +1 -1
- package/docs/types/Uint8Property-1.html +1 -1
- package/docs/types/VehiclePhysicsData-1.html +1 -0
- package/docs/types/VehicleSpecialProperties-1.html +1 -1
- package/docs/types/col4-1.html +1 -1
- package/docs/types/vec2-1.html +1 -1
- package/docs/types/vec3-1.html +1 -1
- package/docs/types/vec4-1.html +1 -1
- package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -0
- package/docs/variables/EDIT.html +1 -1
- package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -0
- package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -0
- package/package.json +3 -1
- package/docs/interfaces/BlueprintConfig.html +0 -6
- package/docs/interfaces/ModData.html +0 -4
- package/docs/interfaces/SatisfactoryModMetadata.html +0 -4
- package/docs/interfaces/SatisfactorySaveHeader.html +0 -18
- package/docs/types/BlueprintHeader.html +0 -1
- package/docs/types/BuildableTypeInstance.html +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContextReader } from '../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../context/context-writer';
|
|
3
3
|
import { ObjectReference } from "../structs/ObjectReference";
|
|
4
4
|
import { Transform } from '../structs/Transform';
|
|
5
5
|
import { SaveObject, SaveObjectHeader } from "./SaveObject";
|
|
@@ -19,13 +19,12 @@ export declare class SaveEntity extends SaveObject {
|
|
|
19
19
|
needTransform: boolean;
|
|
20
20
|
transform: Transform;
|
|
21
21
|
wasPlacedInLevel: boolean;
|
|
22
|
-
|
|
23
|
-
parentObjectName: string;
|
|
22
|
+
parentObject: ObjectReference;
|
|
24
23
|
components: ObjectReference[];
|
|
25
24
|
constructor(typePath: string, rootObject: string, instanceName: string, parentEntityName?: string, needsTransform?: boolean);
|
|
26
|
-
static ParseHeader(reader:
|
|
27
|
-
static ParseData(entity: SaveEntity, length: number, reader:
|
|
28
|
-
static SerializeHeader(writer:
|
|
29
|
-
static SerializeData(writer:
|
|
25
|
+
static ParseHeader(reader: ContextReader, obj: SaveEntity): void;
|
|
26
|
+
static ParseData(entity: SaveEntity, length: number, reader: ContextReader, typePath: string): void;
|
|
27
|
+
static SerializeHeader(writer: ContextWriter, entity: SaveEntity): void;
|
|
28
|
+
static SerializeData(writer: ContextWriter, entity: SaveEntity): void;
|
|
30
29
|
}
|
|
31
30
|
//# sourceMappingURL=SaveEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveEntity.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SaveEntity.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5D,eAAO,MAAM,YAAY,QAAS,GAAG,KAAG,GAAG,IAAI,UAE9C,CAAA;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACzD,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;CAC1B;AAED,qBAAa,UAAW,SAAQ,UAAU;IAWtB,QAAQ,EAAE,MAAM;IAAS,UAAU,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAAS,gBAAgB;IAVpH,gBAAuB,MAAM,KAAK;IAElC,SAAgB,IAAI,gBAAgB;IAE7B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,eAAe,CAAC;IAC9B,UAAU,EAAE,eAAe,EAAE,CAAC;gBAElB,QAAQ,EAAE,MAAM,EAAS,UAAU,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,EAAS,gBAAgB,SAAK,EAAE,cAAc,GAAE,OAAe;WAa5I,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;WAOzD,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;WAgB5F,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;WAQhE,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;CAW5E"}
|
|
@@ -18,8 +18,7 @@ class SaveEntity extends SaveObject_1.SaveObject {
|
|
|
18
18
|
this.type = 'SaveEntity';
|
|
19
19
|
this.needTransform = needsTransform;
|
|
20
20
|
this.wasPlacedInLevel = false;
|
|
21
|
-
this.
|
|
22
|
-
this.parentObjectName = '';
|
|
21
|
+
this.parentObject = { levelName: '', pathName: '' };
|
|
23
22
|
this.transform = {
|
|
24
23
|
rotation: { x: 0, y: 0, z: 0, w: 1 },
|
|
25
24
|
translation: { x: 0, y: 0, z: 0 },
|
|
@@ -33,17 +32,16 @@ class SaveEntity extends SaveObject_1.SaveObject {
|
|
|
33
32
|
obj.transform = Transform_1.Transform.ParseF(reader);
|
|
34
33
|
obj.wasPlacedInLevel = reader.readInt32() == 1;
|
|
35
34
|
}
|
|
36
|
-
static ParseData(entity, length, reader,
|
|
35
|
+
static ParseData(entity, length, reader, typePath) {
|
|
37
36
|
const start = reader.getBufferPosition();
|
|
38
|
-
entity.
|
|
39
|
-
entity.parentObjectName = reader.readString();
|
|
37
|
+
entity.parentObject = ObjectReference_1.ObjectReference.read(reader);
|
|
40
38
|
var componentCount = reader.readInt32();
|
|
41
39
|
for (let i = 0; i < componentCount; i++) {
|
|
42
40
|
var componentRef = ObjectReference_1.ObjectReference.read(reader);
|
|
43
41
|
entity.components.push(componentRef);
|
|
44
42
|
}
|
|
45
43
|
const remainingSize = length - (reader.getBufferPosition() - start);
|
|
46
|
-
return SaveObject_1.SaveObject.ParseData(entity, remainingSize, reader,
|
|
44
|
+
return SaveObject_1.SaveObject.ParseData(entity, remainingSize, reader, typePath);
|
|
47
45
|
}
|
|
48
46
|
static SerializeHeader(writer, entity) {
|
|
49
47
|
SaveObject_1.SaveObject.SerializeHeader(writer, entity);
|
|
@@ -51,15 +49,14 @@ class SaveEntity extends SaveObject_1.SaveObject {
|
|
|
51
49
|
Transform_1.Transform.SerializeF(writer, entity.transform);
|
|
52
50
|
writer.writeInt32(entity.wasPlacedInLevel ? 1 : 0);
|
|
53
51
|
}
|
|
54
|
-
static SerializeData(writer, entity
|
|
55
|
-
|
|
56
|
-
writer.writeString(entity.parentObjectName);
|
|
52
|
+
static SerializeData(writer, entity) {
|
|
53
|
+
ObjectReference_1.ObjectReference.write(writer, entity.parentObject);
|
|
57
54
|
writer.writeInt32(entity.components.length);
|
|
58
55
|
for (const component of entity.components) {
|
|
59
56
|
writer.writeString(component.levelName);
|
|
60
57
|
writer.writeString(component.pathName);
|
|
61
58
|
}
|
|
62
|
-
SaveObject_1.SaveObject.SerializeData(writer, entity
|
|
59
|
+
SaveObject_1.SaveObject.SerializeData(writer, entity);
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
62
|
exports.SaveEntity = SaveEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveEntity.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveEntity.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAC7D,oDAAiD;AACjD,6CAA4D;AAErD,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAqB,EAAE;IAC3D,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AAClC,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB;AAQD,MAAa,UAAW,SAAQ,uBAAU;
|
|
1
|
+
{"version":3,"file":"SaveEntity.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveEntity.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAC7D,oDAAiD;AACjD,6CAA4D;AAErD,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAqB,EAAE;IAC3D,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AAClC,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB;AAQD,MAAa,UAAW,SAAQ,uBAAU;IAWzC,YAAmB,QAAgB,EAAS,UAAkB,EAAS,YAAoB,EAAS,mBAAmB,EAAE,EAAE,iBAA0B,KAAK;QACzJ,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;QADxB,aAAQ,GAAR,QAAQ,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAQ;QAAS,iBAAY,GAAZ,YAAY,CAAQ;QAAS,qBAAgB,GAAhB,gBAAgB,CAAK;QARzG,SAAI,GAAG,YAAY,CAAC;QAUnC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG;YAChB,QAAQ,E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GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAC,CAAC;QACpE,OAAO,uBAAU,CAAC,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,MAAqB,EAAE,MAAkB;QACtE,uBAAU,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAE3C,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,qBAAS,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;QAC/C,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,MAAqB,EAAE,MAAkB;QACpE,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;QAEnD,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC5C,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YAC3C,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACxC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC;QAED,uBAAU,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAjEF,gCAkEC;AAjEuB,iBAAM,GAAG,CAAC,AAAJ,CAAK","sourcesContent":["\nimport { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { ObjectReference } from \"../structs/ObjectReference\";\nimport { Transform } from '../structs/Transform';\nimport { SaveObject, SaveObjectHeader } from \"./SaveObject\";\n\nexport const isSaveEntity = (obj: any): obj is SaveEntity => {\n\treturn obj.type === 'SaveEntity';\n}\n\nexport interface SaveEntityHeader extends SaveObjectHeader {\n\tneedTransform: boolean;\n\ttransform: Transform;\n\twasPlacedInLevel: boolean;\n}\n\nexport class SaveEntity extends SaveObject {\n\tpublic static readonly TypeID = 1;\n\n\tpublic readonly type = 'SaveEntity';\n\n\tpublic needTransform: boolean;\n\tpublic transform: Transform;\n\tpublic wasPlacedInLevel: boolean;\n\tpublic parentObject: ObjectReference;\n\tpublic components: ObjectReference[];\n\n\tconstructor(public typePath: string, public rootObject: string, public instanceName: string, public parentEntityName = '', needsTransform: boolean = false) {\n\t\tsuper(typePath, rootObject, instanceName);\n\t\tthis.needTransform = needsTransform;\n\t\tthis.wasPlacedInLevel = false;\n\t\tthis.parentObject = { levelName: '', pathName: '' };\n\t\tthis.transform = {\n\t\t\trotation: { x: 0, y: 0, z: 0, w: 1 },\n\t\t\ttranslation: { x: 0, y: 0, z: 0 },\n\t\t\tscale3d: { x: 1, y: 1, z: 1 }\n\t\t}\n\t\tthis.components = [];\n\t}\n\n\tpublic static ParseHeader(reader: ContextReader, obj: SaveEntity): void {\n\t\tSaveObject.ParseHeader(reader, obj);\n\t\tobj.needTransform = reader.readInt32() == 1;\n\t\tobj.transform = Transform.ParseF(reader);\n\t\tobj.wasPlacedInLevel = reader.readInt32() == 1;\n\t}\n\n\tpublic static ParseData(entity: SaveEntity, length: number, reader: ContextReader, typePath: string): void {\n\n\t\tconst start = reader.getBufferPosition();\n\n\t\tentity.parentObject = ObjectReference.read(reader);\n\n\t\tvar componentCount = reader.readInt32();\n\t\tfor (let i = 0; i < componentCount; i++) {\n\t\t\tvar componentRef = ObjectReference.read(reader);\n\t\t\tentity.components.push(componentRef);\n\t\t}\n\n\t\tconst remainingSize = length - (reader.getBufferPosition() - start);\n\t\treturn SaveObject.ParseData(entity, remainingSize, reader, typePath);\n\t}\n\n\tpublic static SerializeHeader(writer: ContextWriter, entity: SaveEntity): void {\n\t\tSaveObject.SerializeHeader(writer, entity);\n\n\t\twriter.writeInt32(entity.needTransform ? 1 : 0);\n\t\tTransform.SerializeF(writer, entity.transform);\n\t\twriter.writeInt32(entity.wasPlacedInLevel ? 1 : 0);\n\t}\n\n\tpublic static SerializeData(writer: ContextWriter, entity: SaveEntity): void {\n\t\tObjectReference.write(writer, entity.parentObject);\n\n\t\twriter.writeInt32(entity.components.length);\n\t\tfor (const component of entity.components) {\n\t\t\twriter.writeString(component.levelName);\n\t\t\twriter.writeString(component.pathName);\n\t\t}\n\n\t\tSaveObject.SerializeData(writer, entity);\n\t}\n}\n"]}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContextReader } from '../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../context/context-writer';
|
|
3
3
|
import { PropertiesMap } from "../property/generic/AbstractBaseProperty";
|
|
4
4
|
import { SpecialProperties } from '../property/special/SpecialProperties';
|
|
5
5
|
export interface SaveObjectHeader {
|
|
6
6
|
typePath: string;
|
|
7
7
|
rootObject: string;
|
|
8
8
|
instanceName: string;
|
|
9
|
+
flags?: number;
|
|
9
10
|
}
|
|
10
11
|
export declare abstract class SaveObject implements SaveObjectHeader {
|
|
11
12
|
typePath: string;
|
|
12
13
|
rootObject: string;
|
|
13
14
|
instanceName: string;
|
|
15
|
+
flags?: number | undefined;
|
|
14
16
|
properties: PropertiesMap;
|
|
15
17
|
specialProperties: SpecialProperties.AvailableSpecialPropertiesTypes;
|
|
16
18
|
trailingData: number[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
constructor(typePath: string, rootObject: string, instanceName: string);
|
|
20
|
-
protected static ParseHeader(reader:
|
|
21
|
-
protected static SerializeHeader(writer:
|
|
22
|
-
static ParseData(obj: SaveObject, length: number, reader:
|
|
23
|
-
static SerializeData(writer: any, obj: SaveObject
|
|
19
|
+
saveCustomVersion: number;
|
|
20
|
+
shouldMigrateObjectRefsToPersistent: boolean;
|
|
21
|
+
constructor(typePath: string, rootObject: string, instanceName: string, flags?: number | undefined);
|
|
22
|
+
protected static ParseHeader(reader: ContextReader, obj: SaveObject): void;
|
|
23
|
+
protected static SerializeHeader(writer: ContextWriter, obj: SaveObject): void;
|
|
24
|
+
static ParseData(obj: SaveObject, length: number, reader: ContextReader, typePath: string): void;
|
|
25
|
+
static SerializeData(writer: any, obj: SaveObject): void;
|
|
24
26
|
}
|
|
25
27
|
//# sourceMappingURL=SaveObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveObject.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SaveObject.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,8BAAsB,UAAW,YAAW,gBAAgB;IASxC,QAAQ,EAAE,MAAM;IAAS,UAAU,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAAS,KAAK,CAAC,EAAE,MAAM;IAP3G,UAAU,EAAE,aAAa,CAAM;IAC/B,iBAAiB,EAAE,iBAAiB,CAAC,+BAA+B,CAAsC;IAC1G,YAAY,EAAE,MAAM,EAAE,CAAM;IAE5B,iBAAiB,EAAE,MAAM,CAAK;IAC9B,mCAAmC,EAAE,OAAO,CAAS;gBAEzC,QAAQ,EAAE,MAAM,EAAS,UAAU,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,EAAS,KAAK,CAAC,EAAE,MAAM,YAAA;IAIlH,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAU1E,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;WAUhE,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;WAkBzF,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;CAM/D"}
|
|
@@ -2,33 +2,41 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SaveObject = void 0;
|
|
4
4
|
const parser_error_1 = require("../../../error/parser.error");
|
|
5
|
+
const save_custom_version_1 = require("../../save/save-custom-version");
|
|
5
6
|
const PropertiesList_1 = require("../property/PropertiesList");
|
|
6
7
|
const SpecialProperties_1 = require("../property/special/SpecialProperties");
|
|
7
8
|
class SaveObject {
|
|
8
|
-
constructor(typePath, rootObject, instanceName) {
|
|
9
|
+
constructor(typePath, rootObject, instanceName, flags) {
|
|
9
10
|
this.typePath = typePath;
|
|
10
11
|
this.rootObject = rootObject;
|
|
11
12
|
this.instanceName = instanceName;
|
|
13
|
+
this.flags = flags;
|
|
12
14
|
this.properties = {};
|
|
13
15
|
this.specialProperties = { type: 'EmptySpecialProperties' };
|
|
14
16
|
this.trailingData = [];
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
+
this.saveCustomVersion = 0;
|
|
18
|
+
this.shouldMigrateObjectRefsToPersistent = false;
|
|
17
19
|
}
|
|
18
20
|
static ParseHeader(reader, obj) {
|
|
19
21
|
obj.typePath = reader.readString();
|
|
20
22
|
obj.rootObject = reader.readString();
|
|
21
23
|
obj.instanceName = reader.readString();
|
|
24
|
+
if (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SerializeObjectFlags) {
|
|
25
|
+
obj.flags = reader.readUint32();
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
static SerializeHeader(writer, obj) {
|
|
24
29
|
writer.writeString(obj.typePath);
|
|
25
30
|
writer.writeString(obj.rootObject);
|
|
26
31
|
writer.writeString(obj.instanceName);
|
|
32
|
+
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SerializeObjectFlags) {
|
|
33
|
+
writer.writeUint32(obj.flags ?? 0);
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
|
-
static ParseData(obj, length, reader,
|
|
36
|
+
static ParseData(obj, length, reader, typePath) {
|
|
29
37
|
const start = reader.getBufferPosition();
|
|
30
|
-
obj.properties = PropertiesList_1.PropertiesList.ParseList(reader
|
|
31
|
-
reader.
|
|
38
|
+
obj.properties = PropertiesList_1.PropertiesList.ParseList(reader);
|
|
39
|
+
reader.readInt32Zero();
|
|
32
40
|
let remainingSize = length - (reader.getBufferPosition() - start);
|
|
33
41
|
obj.specialProperties = SpecialProperties_1.SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);
|
|
34
42
|
remainingSize = length - (reader.getBufferPosition() - start);
|
|
@@ -39,9 +47,9 @@ class SaveObject {
|
|
|
39
47
|
throw new parser_error_1.ParserError('ParserError', `Unexpected. Read more bytes than are indicated for entity ${obj.instanceName}. bytes left to read is ${remainingSize}`);
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
|
-
static SerializeData(writer, obj
|
|
43
|
-
PropertiesList_1.PropertiesList.SerializeList(obj.properties
|
|
44
|
-
writer.
|
|
50
|
+
static SerializeData(writer, obj) {
|
|
51
|
+
PropertiesList_1.PropertiesList.SerializeList(writer, obj.properties);
|
|
52
|
+
writer.writeInt32Zero();
|
|
45
53
|
SpecialProperties_1.SpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);
|
|
46
54
|
writer.writeBytesArray(obj.trailingData);
|
|
47
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveObject.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;
|
|
1
|
+
{"version":3,"file":"SaveObject.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/objects/SaveObject.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAC1D,wEAAmE;AAEnE,+DAA4D;AAC5D,6EAA0E;AAS1E,MAAsB,UAAU;IAS/B,YAAmB,QAAgB,EAAS,UAAkB,EAAS,YAAoB,EAAS,KAAc;QAA/F,aAAQ,GAAR,QAAQ,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAQ;QAAS,iBAAY,GAAZ,YAAY,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAS;QAP3G,eAAU,GAAkB,EAAE,CAAC;QAC/B,sBAAiB,GAAsD,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;QAC1G,iBAAY,GAAa,EAAE,CAAC;QAE5B,sBAAiB,GAAW,CAAC,CAAC;QAC9B,wCAAmC,GAAY,KAAK,CAAC;IAI5D,CAAC;IAES,MAAM,CAAC,WAAW,CAAC,MAAqB,EAAE,GAAe;QAClE,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACnC,GAAG,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACrC,GAAG,CAAC,YAAY,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAEvC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,IAAI,uCAAiB,CAAC,oBAAoB,EAAE,CAAC;YAC1E,GAAG,C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W,CAAC,aAAa,EAAE,6DAA6D,GAAG,CAAC,YAAY,2BAA2B,aAAa,EAAE,CAAC,CAAC;QAC/J,CAAC;IACF,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,MAAW,EAAE,GAAe;QACvD,+BAAc,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;QACrD,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,qCAAiB,CAAC,uCAAuC,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACvG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;CACD;AAzDD,gCAyDC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { ParserError } from '../../../error/parser.error';\nimport { SaveCustomVersion } from '../../save/save-custom-version';\nimport { PropertiesMap } from \"../property/generic/AbstractBaseProperty\";\nimport { PropertiesList } from '../property/PropertiesList';\nimport { SpecialProperties } from '../property/special/SpecialProperties';\n\nexport interface SaveObjectHeader {\n\ttypePath: string;\n\trootObject: string;\n\tinstanceName: string;\n\tflags?: number;\n}\n\nexport abstract class SaveObject implements SaveObjectHeader {\n\n\tpublic properties: PropertiesMap = {};\n\tpublic specialProperties: SpecialProperties.AvailableSpecialPropertiesTypes = { type: 'EmptySpecialProperties' };\n\tpublic trailingData: number[] = [];\n\n\tpublic saveCustomVersion: number = 0;\n\tpublic shouldMigrateObjectRefsToPersistent: boolean = false;\n\n\tconstructor(public typePath: string, public rootObject: string, public instanceName: string, public flags?: number) {\n\n\t}\n\n\tprotected static ParseHeader(reader: ContextReader, obj: SaveObject): void {\n\t\tobj.typePath = reader.readString();\n\t\tobj.rootObject = reader.readString();\n\t\tobj.instanceName = reader.readString();\n\n\t\tif (reader.context.saveVersion >= SaveCustomVersion.SerializeObjectFlags) {\n\t\t\tobj.flags = reader.readUint32();\n\t\t}\n\t}\n\n\tprotected static SerializeHeader(writer: ContextWriter, obj: SaveObject): void {\n\t\twriter.writeString(obj.typePath);\n\t\twriter.writeString(obj.rootObject);\n\t\twriter.writeString(obj.instanceName);\n\n\t\tif (writer.context.saveVersion >= SaveCustomVersion.SerializeObjectFlags) {\n\t\t\twriter.writeUint32(obj.flags ?? 0);\n\t\t}\n\t}\n\n\tpublic static ParseData(obj: SaveObject, length: number, reader: ContextReader, typePath: string): void {\n\t\tconst start = reader.getBufferPosition();\n\n\t\tobj.properties = PropertiesList.ParseList(reader);\n\n\t\treader.readInt32Zero();\n\n\t\tlet remainingSize = length - (reader.getBufferPosition() - start);\n\t\tobj.specialProperties = SpecialProperties.ParseClassSpecificSpecialProperties(reader, typePath, remainingSize);\n\n\t\tremainingSize = length - (reader.getBufferPosition() - start);\n\t\tif (remainingSize > 0) {\n\t\t\tobj.trailingData = Array.from(reader.readBytes(remainingSize));\n\t\t} else if (remainingSize < 0) {\n\t\t\tthrow new ParserError('ParserError', `Unexpected. Read more bytes than are indicated for entity ${obj.instanceName}. bytes left to read is ${remainingSize}`);\n\t\t}\n\t}\n\n\tpublic static SerializeData(writer: any, obj: SaveObject): void {\n\t\tPropertiesList.SerializeList(writer, obj.properties);\n\t\twriter.writeInt32Zero();\n\t\tSpecialProperties.SerializeClassSpecificSpecialProperties(writer, obj.typePath, obj.specialProperties);\n\t\twriter.writeBytesArray(obj.trailingData);\n\t}\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContextReader } from '../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../context/context-writer';
|
|
3
3
|
import { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';
|
|
4
4
|
export declare namespace PropertiesList {
|
|
5
|
-
const ParseList: (reader:
|
|
6
|
-
const SerializeList: (
|
|
7
|
-
const ParseSingleProperty: (reader:
|
|
8
|
-
const SerializeSingleProperty: (writer:
|
|
5
|
+
const ParseList: (reader: ContextReader) => PropertiesMap;
|
|
6
|
+
const SerializeList: (writer: ContextWriter, properties: PropertiesMap) => void;
|
|
7
|
+
const ParseSingleProperty: (reader: ContextReader, propertyName: string) => AbstractBaseProperty;
|
|
8
|
+
const SerializeSingleProperty: (writer: ContextWriter, property: AbstractBaseProperty) => void;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=PropertiesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PropertiesList.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAsBrF,yBAAiB,cAAc,CAAC;IAExB,MAAM,SAAS,WAAY,aAAa,KAAG,aAqBjD,CAAA;IAEM,MAAM,aAAa,WAAY,aAAa,cAAc,aAAa,KAAG,IAMhF,CAAA;IAEM,MAAM,mBAAmB,WAAY,aAAa,gBAAgB,MAAM,KAAG,oBA4HjF,CAAA;IAEM,MAAM,uBAAuB,WAAY,aAAa,YAAY,oBAAoB,KAAG,IA4H/F,CAAA;CACD"}
|
|
@@ -23,11 +23,11 @@ const Uint64Property_1 = require("./generic/Uint64Property");
|
|
|
23
23
|
const Uint8Property_1 = require("./generic/Uint8Property");
|
|
24
24
|
var PropertiesList;
|
|
25
25
|
(function (PropertiesList) {
|
|
26
|
-
PropertiesList.ParseList = (reader
|
|
26
|
+
PropertiesList.ParseList = (reader) => {
|
|
27
27
|
const properties = {};
|
|
28
28
|
let propertyName = reader.readString();
|
|
29
29
|
while (propertyName !== 'None') {
|
|
30
|
-
const parsedProperty = PropertiesList.ParseSingleProperty(reader,
|
|
30
|
+
const parsedProperty = PropertiesList.ParseSingleProperty(reader, propertyName);
|
|
31
31
|
if (properties[propertyName]) {
|
|
32
32
|
if (!Array.isArray(properties[propertyName])) {
|
|
33
33
|
properties[propertyName] = [properties[propertyName]];
|
|
@@ -41,14 +41,14 @@ var PropertiesList;
|
|
|
41
41
|
}
|
|
42
42
|
return properties;
|
|
43
43
|
};
|
|
44
|
-
PropertiesList.SerializeList = (
|
|
44
|
+
PropertiesList.SerializeList = (writer, properties) => {
|
|
45
45
|
for (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {
|
|
46
46
|
writer.writeString(property.name);
|
|
47
|
-
PropertiesList.SerializeSingleProperty(writer, property
|
|
47
|
+
PropertiesList.SerializeSingleProperty(writer, property);
|
|
48
48
|
}
|
|
49
49
|
writer.writeString('None');
|
|
50
50
|
};
|
|
51
|
-
PropertiesList.ParseSingleProperty = (reader,
|
|
51
|
+
PropertiesList.ParseSingleProperty = (reader, propertyName) => {
|
|
52
52
|
let currentProperty = {};
|
|
53
53
|
const propertyType = reader.readString();
|
|
54
54
|
const binarySize = reader.readInt32();
|
|
@@ -124,7 +124,7 @@ var PropertiesList;
|
|
|
124
124
|
overhead = ArrayProperty_1.ArrayProperty.CalcOverhead(currentProperty);
|
|
125
125
|
break;
|
|
126
126
|
case 'MapProperty':
|
|
127
|
-
currentProperty = MapProperty_1.MapProperty.Parse(reader, propertyName,
|
|
127
|
+
currentProperty = MapProperty_1.MapProperty.Parse(reader, propertyName, binarySize);
|
|
128
128
|
overhead = MapProperty_1.MapProperty.CalcOverhead(currentProperty);
|
|
129
129
|
break;
|
|
130
130
|
case 'TextProperty':
|
|
@@ -146,7 +146,7 @@ var PropertiesList;
|
|
|
146
146
|
}
|
|
147
147
|
return currentProperty;
|
|
148
148
|
};
|
|
149
|
-
PropertiesList.SerializeSingleProperty = (writer, property
|
|
149
|
+
PropertiesList.SerializeSingleProperty = (writer, property) => {
|
|
150
150
|
writer.writeString(property.ueType);
|
|
151
151
|
const lenIndicator = writer.getBufferPosition();
|
|
152
152
|
writer.writeInt32(0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,yEAAsE;AACtE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAClE,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,2DAAwD;AAGxD,IAAiB,cAAc,CA4R9B;AA5RD,WAAiB,cAAc;IAEjB,wBAAS,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAiB,EAAE;QAExF,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,IAAI,YAAY,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/C,OAAO,YAAY,KAAK,MAAM,EAAE,CAAC;YAChC,MAAM,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;YAG9F,IAAI,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;oBAC9C,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAyB,CAAC,CAAC;gBAC/E,CAAC;gBACA,UAAU,CAAC,YAAY,CAA4B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAC3E,CAAC;iBAAM,CAAC;gBACP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YAEP,KAAK,cAAc;gBAClB,QAAQ,GAAG,2BAAY,CAAC,YAAY,CAAC,QAAwB,CAAC,CAAC;gBAC/D,2BAAY,CAAC,SAAS,CAAC,MAAM,EAAE,QAAwB,CAAC,CAAC;gBACzD,MAAM;YAEP,KAAK,aAAa;gBACjB,QAAQ,GAAG,yBAAW,CAAC,YAAY,CAAC,QAAiD,CAAC,CAAC;gBACvF,yBAAW,CAAC,SAAS,CAAC,MAAM,EAAE,QAAiD,CAAC,CAAC;gBACjF,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,CAAC,2BAA2B,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpE,CAAC,CAAA;AACF,CAAC,EA5RgB,cAAc,8BAAd,cAAc,QA4R9B","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { ParserError } from '../../../error/parser.error';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';\nimport { ArrayProperty } from './generic/ArrayProperty/ArrayProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: BinaryReadable, buildVersion: number): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (properties: PropertiesMap, writer: ByteWriter, buildVersion: number): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property, buildVersion);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: BinaryReadable, buildVersion: number, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, buildVersion, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ByteWriter, property: AbstractBaseProperty, buildVersion: number): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Uint64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Uint64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/property/PropertiesList.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,yEAAsE;AACtE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AACtD,uDAAoD;AACpD,6DAA0D;AAC1D,mEAAgE;AACh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9B","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { ParserError } from '../../../error/parser.error';\nimport { AbstractBaseProperty, PropertiesMap } from './generic/AbstractBaseProperty';\nimport { ArrayProperty } from './generic/ArrayProperty/ArrayProperty';\nimport { BoolProperty } from './generic/BoolProperty';\nimport { ByteProperty } from './generic/ByteProperty';\nimport { DoubleProperty } from './generic/DoubleProperty';\nimport { EnumProperty } from './generic/EnumProperty';\nimport { FloatProperty } from './generic/FloatProperty';\nimport { Int32Property } from './generic/Int32Property';\nimport { Int64Property } from './generic/Int64Property';\nimport { Int8Property } from './generic/Int8Property';\nimport { MapProperty } from './generic/MapProperty';\nimport { ObjectProperty } from './generic/ObjectProperty';\nimport { SetProperty } from './generic/SetProperty/SetProperty';\nimport { SoftObjectProperty } from './generic/SoftObjectProperty';\nimport { StrProperty } from './generic/StrProperty';\nimport { StructProperty } from './generic/StructProperty';\nimport { TextProperty } from './generic/TextProperty';\nimport { Uint32Property } from './generic/Uint32Property';\nimport { Uint64Property } from './generic/Uint64Property';\nimport { Uint8Property } from './generic/Uint8Property';\n\n\nexport namespace PropertiesList {\n\n\texport const ParseList = (reader: ContextReader): PropertiesMap => {\n\n\t\tconst properties: PropertiesMap = {};\n\t\tlet propertyName: string = reader.readString();\n\t\twhile (propertyName !== 'None') {\n\t\t\tconst parsedProperty = PropertiesList.ParseSingleProperty(reader, propertyName);\n\n\t\t\t// if it already exists, make it an array.\n\t\t\tif (properties[propertyName]) {\n\t\t\t\tif (!Array.isArray(properties[propertyName])) {\n\t\t\t\t\tproperties[propertyName] = [properties[propertyName] as AbstractBaseProperty];\n\t\t\t\t}\n\t\t\t\t(properties[propertyName] as AbstractBaseProperty[]).push(parsedProperty);\n\t\t\t} else {\n\t\t\t\tproperties[propertyName] = parsedProperty;\n\t\t\t}\n\n\t\t\tpropertyName = reader.readString();\n\t\t}\n\n\t\treturn properties;\n\t}\n\n\texport const SerializeList = (writer: ContextWriter, properties: PropertiesMap): void => {\n\t\tfor (const property of Object.values(properties).flatMap(val => Array.isArray(val) ? val : [val])) {\n\t\t\twriter.writeString(property.name);\n\t\t\tPropertiesList.SerializeSingleProperty(writer, property);\n\t\t}\n\t\twriter.writeString('None');\n\t}\n\n\texport const ParseSingleProperty = (reader: ContextReader, propertyName: string): AbstractBaseProperty => {\n\t\tlet currentProperty: any = {};\n\n\t\t//TODO assign type and index after parsing.\n\t\tconst propertyType = reader.readString();\n\t\tconst binarySize = reader.readInt32();\n\n\t\tconst index = reader.readInt32();\n\t\tconst before = reader.getBufferPosition();\n\n\t\tlet overhead = 0;\n\t\tswitch (propertyType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\tcurrentProperty = BoolProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = BoolProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\tcurrentProperty = ByteProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ByteProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\tcurrentProperty = Int8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\tcurrentProperty = Uint8Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint8Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\tcurrentProperty = Int32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\tcurrentProperty = Uint32Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Uint32Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\tcurrentProperty = Int64Property.Parse(reader, propertyType, index);\n\t\t\t\toverhead = Int64Property.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64Property':\n\t\t\t\tcurrentProperty = Uint64Property.Parse(reader, propertyType, index);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\tcurrentProperty = FloatProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = FloatProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\tcurrentProperty = DoubleProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\tcurrentProperty = StrProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = StrProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\tcurrentProperty = ObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\tcurrentProperty = SoftObjectProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\tcurrentProperty = EnumProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = EnumProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\tcurrentProperty = StructProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = StructProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\tcurrentProperty = ArrayProperty.Parse(reader, propertyType, index, binarySize);\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\tcurrentProperty = MapProperty.Parse(reader, propertyName, binarySize);\n\t\t\t\toverhead = MapProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\tcurrentProperty = TextProperty.Parse(reader, propertyType, index);\n\t\t\t\toverhead = TextProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\tcurrentProperty = SetProperty.Parse(reader, propertyType, index, propertyName);\n\t\t\t\toverhead = SetProperty.CalcOverhead(currentProperty);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${propertyType}`);\n\t\t}\n\n\t\tcurrentProperty.name = propertyName;\n\n\t\tconst readBytes = reader.getBufferPosition() - before - overhead;\n\t\tif (readBytes !== binarySize) {\n\t\t\tconsole.warn(`possibly corrupt. Read ${readBytes} for ${propertyType} ${propertyName}, but ${binarySize} were indicated.`);\n\t\t\tthrow new ParserError('ParserError', `possibly corrupt. Read ${readBytes} bytes for ${propertyType} ${propertyName}, but ${binarySize} bytes were indicated.`);\n\t\t}\n\n\t\treturn currentProperty;\n\t}\n\n\texport const SerializeSingleProperty = (writer: ContextWriter, property: AbstractBaseProperty): void => {\n\n\t\twriter.writeString(property.ueType);\n\n\t\t// binary length indicator\n\t\tconst lenIndicator = writer.getBufferPosition();\n\t\twriter.writeInt32(0);\n\n\t\t// write index if it is not 0. Since it normally is.\n\t\twriter.writeInt32(property.index ?? 0);\n\n\t\tconst start = writer.getBufferPosition();\n\t\tlet overhead = 0;\n\t\tswitch (property.ueType) {\n\t\t\tcase 'BoolProperty':\n\t\t\t\toverhead = BoolProperty.CalcOverhead(property as BoolProperty);\n\t\t\t\tBoolProperty.Serialize(writer, property as BoolProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int8Property':\n\t\t\t\toverhead = Int8Property.CalcOverhead(property as Int8Property);\n\t\t\t\tInt8Property.Serialize(writer, property as Int8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt8Property':\n\t\t\t\toverhead = Uint8Property.CalcOverhead(property as Uint8Property);\n\t\t\t\tUint8Property.Serialize(writer, property as Uint8Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'IntProperty':\n\t\t\tcase 'Int32Property':\n\t\t\t\toverhead = Int32Property.CalcOverhead(property as Int32Property);\n\t\t\t\tInt32Property.Serialize(writer, property as Int32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt32Property':\n\t\t\t\toverhead = Uint32Property.CalcOverhead(property as Uint32Property);\n\t\t\t\tUint32Property.Serialize(writer, property as Uint32Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'Int64Property':\n\t\t\t\toverhead = Int64Property.CalcOverhead(property as Int64Property);\n\t\t\t\tInt64Property.Serialize(writer, property as Int64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'UInt64PRoperty':\n\t\t\t\toverhead = Uint64Property.CalcOverhead(property as Uint64Property);\n\t\t\t\tUint64Property.Serialize(writer, property as Uint64Property);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SingleProperty':\n\t\t\tcase 'FloatProperty':\n\t\t\t\toverhead = FloatProperty.CalcOverhead(property as FloatProperty);\n\t\t\t\tFloatProperty.Serialize(writer, property as FloatProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'DoubleProperty':\n\t\t\t\toverhead = DoubleProperty.CalcOverhead(property as DoubleProperty);\n\t\t\t\tDoubleProperty.Serialize(writer, property as DoubleProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StrProperty':\n\t\t\tcase 'NameProperty':\n\t\t\t\toverhead = StrProperty.CalcOverhead(property as StrProperty);\n\t\t\t\tStrProperty.Serialize(writer, property as StrProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ObjectProperty':\n\t\t\tcase 'InterfaceProperty':\n\t\t\t\toverhead = ObjectProperty.CalcOverhead(property as ObjectProperty);\n\t\t\t\tObjectProperty.Serialize(writer, property as ObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SoftObjectProperty':\n\t\t\t\toverhead = SoftObjectProperty.CalcOverhead(property as SoftObjectProperty);\n\t\t\t\tSoftObjectProperty.Serialize(writer, property as SoftObjectProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'EnumProperty':\n\t\t\t\toverhead = EnumProperty.CalcOverhead(property as EnumProperty);\n\t\t\t\tEnumProperty.Serialize(writer, property as EnumProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ByteProperty':\n\t\t\t\toverhead = ByteProperty.CalcOverhead(property as ByteProperty);\n\t\t\t\tByteProperty.Serialize(writer, property as ByteProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'StructProperty':\n\t\t\t\toverhead = StructProperty.CalcOverhead(property as StructProperty);\n\t\t\t\tStructProperty.Serialize(writer, property as StructProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ArrayProperty':\n\t\t\t\toverhead = ArrayProperty.CalcOverhead(property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tArrayProperty.Serialize(writer, property as ArrayProperty.AvailableArrayPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tcase 'MapProperty':\n\t\t\t\toverhead = MapProperty.CalcOverhead(property as MapProperty);\n\t\t\t\tMapProperty.Serialize(writer, property as MapProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'TextProperty':\n\t\t\t\toverhead = TextProperty.CalcOverhead(property as TextProperty);\n\t\t\t\tTextProperty.Serialize(writer, property as TextProperty);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SetProperty':\n\t\t\t\toverhead = SetProperty.CalcOverhead(property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tSetProperty.Serialize(writer, property as SetProperty.AvailableSetPropertyTypes);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new Error(`Unimplemented type ${property.type}`);\n\t\t}\n\n\t\t// replace len indicator.\n\t\twriter.writeBinarySizeFromPosition(lenIndicator, start + overhead);\n\t}\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractBaseProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":";;;AA+BA,IAAiB,oBAAoB,CAWpC;AAXD,WAAiB,oBAAoB;IACvB,2BAAM,GAAG,CAAC,OAAoC,EAAwB,EAAE,CAAC,CACrF;QACC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC/E,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnH,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAG5E,CAAA,CAAC;AACH,CAAC,EAXgB,oBAAoB,oCAApB,oBAAoB,QAWpC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: AbstractBaseProperty | AbstractBaseProperty[];\n};\n\n\n/**\n * @type denotes the parser's internal type.\n * @ueType denotes the type like Unreal Engine calls it, like IntProperty. Several UE Types can be mapped to a single type in the parsers view.\n * @name property name\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array.\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tname?: string;\n\tguidInfo?: GUIDInfo;\n\tindex?: number;\n};\n\nexport type AbstractBaseProperty = {\n\ttype: string;\n\tueType: string;\n\tname: string;\n\tindex?: number;\n\tguidInfo?: GUIDInfo;\n}\n\nexport namespace AbstractBaseProperty {\n\texport const Create = (options: AbstractBasePropertyOptions): AbstractBaseProperty => (\n\t\t{\n\t\t\ttype: options.type,\n\t\t\tueType: options.ueType,\n\t\t\tname: (options.name !== undefined && options.name !== null) ? options.name : '',\n\t\t\t...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),\n\t\t\t...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})\n\n\t\t} satisfies AbstractBaseProperty\n\t);\n}"]}
|
|
1
|
+
{"version":3,"file":"AbstractBaseProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/AbstractBaseProperty.ts"],"names":[],"mappings":";;;AA+BA,IAAiB,oBAAoB,CAWpC;AAXD,WAAiB,oBAAoB;IACvB,2BAAM,GAAG,CAAC,OAAoC,EAAwB,EAAE,CAAC,CACrF;QACC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC/E,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnH,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAG5E,CAAA,CAAC;AACH,CAAC,EAXgB,oBAAoB,oCAApB,oBAAoB,QAWpC","sourcesContent":["import { GUIDInfo } from '../../structs/GUIDInfo';\n\n\nexport type PropertiesMap = {\n\t[name: string]: AbstractBaseProperty | AbstractBaseProperty[];\n};\n\n\n/**\n * @type denotes the parser's internal type.\n * @ueType denotes the type like Unreal Engine calls it, like IntProperty. Several UE Types can be mapped to a single type in the parsers view.\n * @name property name\n * @guidInfo denotes the GUID info of this property, i think there never was one observed. they always were not defined.\n * @index index of a property, in case it is part of an array (NOT to confuse with ArrayProperty).\n */\ntype AbstractBasePropertyOptions = {\n\ttype: string;\n\tueType: string;\n\tname?: string;\n\tguidInfo?: GUIDInfo;\n\tindex?: number;\n};\n\nexport type AbstractBaseProperty = {\n\ttype: string;\n\tueType: string;\n\tname: string;\n\tindex?: number;\n\tguidInfo?: GUIDInfo;\n}\n\nexport namespace AbstractBaseProperty {\n\texport const Create = (options: AbstractBasePropertyOptions): AbstractBaseProperty => (\n\t\t{\n\t\t\ttype: options.type,\n\t\t\tueType: options.ueType,\n\t\t\tname: (options.name !== undefined && options.name !== null) ? options.name : '',\n\t\t\t...((options.index !== undefined && options.index !== null && options.index !== 0) ? { index: options.index } : {}),\n\t\t\t...((options.guidInfo !== undefined) ? { guidInfo: options.guidInfo } : {})\n\n\t\t} satisfies AbstractBaseProperty\n\t);\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
3
|
import { BoolArrayProperty } from './BoolArrayProperty';
|
|
4
4
|
import { ByteArrayProperty } from './ByteArrayProperty';
|
|
5
5
|
import { DoubleArrayProperty } from './DoubleArrayProperty';
|
|
@@ -15,8 +15,8 @@ import { TextArrayProperty } from './TextArrayProperty';
|
|
|
15
15
|
export declare const isArrayProperty: (obj: any) => obj is BoolArrayProperty | ByteArrayProperty | DoubleArrayProperty | EnumArrayProperty | FloatArrayProperty | Int32ArrayProperty | Int64ArrayProperty | ObjectArrayProperty | SoftObjectArrayProperty | StrArrayProperty | StructArrayProperty | TextArrayProperty;
|
|
16
16
|
export declare namespace ArrayProperty {
|
|
17
17
|
type AvailableArrayPropertyTypes = ReturnType<typeof Parse>;
|
|
18
|
-
const Parse: (reader:
|
|
18
|
+
const Parse: (reader: ContextReader, ueType: string, index: number, size: number) => BoolArrayProperty | ByteArrayProperty | DoubleArrayProperty | EnumArrayProperty | FloatArrayProperty | Int32ArrayProperty | Int64ArrayProperty | ObjectArrayProperty | SoftObjectArrayProperty | StrArrayProperty | StructArrayProperty | TextArrayProperty;
|
|
19
19
|
const CalcOverhead: (property: AvailableArrayPropertyTypes) => number;
|
|
20
|
-
const Serialize: (writer:
|
|
20
|
+
const Serialize: (writer: ContextWriter, property: AvailableArrayPropertyTypes) => void;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=ArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAyB,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAyB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAA6B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAsB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAyB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAuB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,eAAO,MAAM,eAAe,QAAS,GAAG,uQAYT,CAAC;AAEhC,yBAAiB,aAAa,CAAC;IAE3B,KAAY,2BAA2B,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;IAE5D,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,gQA+DvF,CAAA;IAEM,MAAM,YAAY,aAAc,2BAA2B,KAAG,MAEpE,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,2BAA2B,KAAG,IAiCxF,CAAA;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,2DAA6E;AAC7E,2DAA6E;AAC7E,+DAAmF;AACnF,2DAA6E;AAC7E,6DAAgF;AAChF,6DAAgF;AAChF,6DAAgF;AAChF,+DAAmF;AACnF,uEAA+F;AAC/F,yDAA0E;AAC1E,+DAAmF;AACnF,2DAA6E;AAEtE,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAE,EAAE,CACxC,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACrB,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,2CAAqB,EAAC,GAAG,CAAC;OAC1B,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,yCAAoB,EAAC,GAAG,CAAC;OACzB,IAAA,yCAAoB,EAAC,GAAG,CAAC;OACzB,IAAA,yCAAoB,EAAC,GAAG,CAAC;OACzB,IAAA,2CAAqB,EAAC,GAAG,CAAC;OAC1B,IAAA,mDAAyB,EAAC,GAAG,CAAC;OAC9B,IAAA,qCAAkB,EAAC,GAAG,CAAC;OACvB,IAAA,2CAAqB,EAAC,GAAG,CAAC;OAC1B,IAAA,uCAAmB,EAAC,GAAG,CAAC,CAAC;AAZnB,QAAA,eAAe,mBAYI;AAEhC,IAAiB,aAAa,CA2G7B;AA3GD,WAAiB,aAAa;IAIb,mBAAK,GAAG,CAAC,MAAsB,EAAE,MAAc,EAAE,KAAa,EAAE,IAAY,EAAE,EAAE;QACzF,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QAEpB,IAAI,QAAQ,CAAC;QACb,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,QAAQ,OAAO,EAAE,CAAC;YACd,KAAK,eAA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MAAM,EAAE,QAAQ,CAAC,CAAC;QACxD,CAAC;aAAM,IAAI,IAAA,2CAAqB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACzC,yCAAmB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,iCAAkB,CAAC,wCAAyC,QAAgB,CAAC,IAAI,IAAI,EAAE,KAAM,QAAgB,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7I,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA3GgB,aAAa,6BAAb,aAAa,QA2G7B","sourcesContent":["import { BinaryReadable } from '../../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../../byte/byte-writer.class';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { BoolArrayProperty, isBoolArrayProperty } from './BoolArrayProperty';\nimport { ByteArrayProperty, isByteArrayProperty } from './ByteArrayProperty';\nimport { DoubleArrayProperty, isDoubleArrayProperty } from './DoubleArrayProperty';\nimport { EnumArrayProperty, isEnumArrayProperty } from './EnumArrayProperty';\nimport { FloatArrayProperty, isFloatArrayProperty } from './FloatArrayProperty';\nimport { Int32ArrayProperty, isInt32ArrayProperty } from './Int32ArrayProperty';\nimport { Int64ArrayProperty, isInt64ArrayProperty } from './Int64ArrayProperty';\nimport { isObjectArrayProperty, ObjectArrayProperty } from './ObjectArrayProperty';\nimport { isSoftObjectArrayProperty, SoftObjectArrayProperty } from './SoftObjectArrayProperty';\nimport { isStrArrayProperty, StrArrayProperty } from './StrArrayProperty';\nimport { isStructArrayProperty, StructArrayProperty } from './StructArrayProperty';\nimport { isTextArrayProperty, TextArrayProperty } from './TextArrayProperty';\n\nexport const isArrayProperty = (obj: any) =>\n isBoolArrayProperty(obj)\n || isByteArrayProperty(obj)\n || isDoubleArrayProperty(obj)\n || isEnumArrayProperty(obj)\n || isFloatArrayProperty(obj)\n || isInt32ArrayProperty(obj)\n || isInt64ArrayProperty(obj)\n || isObjectArrayProperty(obj)\n || isSoftObjectArrayProperty(obj)\n || isStrArrayProperty(obj)\n || isStructArrayProperty(obj)\n || isTextArrayProperty(obj);\n\nexport namespace ArrayProperty {\n\n export type AvailableArrayPropertyTypes = ReturnType<typeof Parse>;\n\n export const Parse = (reader: BinaryReadable, ueType: string, index: number, size: number) => {\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n\n let property;\n const elementCount = reader.readInt32();\n switch (subtype) {\n case \"FloatProperty\":\n property = FloatArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"BoolProperty\":\n property = BoolArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"IntProperty\":\n property = Int32ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"Int64Property\":\n property = Int64ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"DoubleProperty\":\n property = DoubleArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"ByteProperty\":\n property = ByteArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"StrProperty\":\n property = StrArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"EnumProperty\":\n property = EnumArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"TextProperty\":\n property = TextArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property = ObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"SoftObjectProperty\":\n property = SoftObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n\n case \"StructProperty\":\n property = StructArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n default:\n throw new UnimplementedError(`Unknown array property subtype ${subtype} for ${ueType}. Not implemented.`);\n\n }\n\n return property;\n }\n\n export const CalcOverhead = (property: AvailableArrayPropertyTypes): number => {\n return property.subtype.length + 5 + 1;\n }\n\n export const Serialize = (writer: ByteWriter, property: AvailableArrayPropertyTypes): void => {\n\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(property.values.length);\n\n if (isFloatArrayProperty(property)) {\n FloatArrayProperty.Serialize(writer, property);\n } else if (isBoolArrayProperty(property)) {\n BoolArrayProperty.Serialize(writer, property);\n } else if (isInt32ArrayProperty(property)) {\n Int32ArrayProperty.Serialize(writer, property);\n } else if (isInt64ArrayProperty(property)) {\n Int64ArrayProperty.Serialize(writer, property);\n } else if (isDoubleArrayProperty(property)) {\n DoubleArrayProperty.Serialize(writer, property);\n } else if (isByteArrayProperty(property)) {\n ByteArrayProperty.Serialize(writer, property);\n } else if (isStrArrayProperty(property)) {\n StrArrayProperty.Serialize(writer, property);\n } else if (isEnumArrayProperty(property)) {\n EnumArrayProperty.Serialize(writer, property);\n } else if (isTextArrayProperty(property)) {\n TextArrayProperty.Serialize(writer, property);\n } else if (isObjectArrayProperty(property)) {\n ObjectArrayProperty.Serialize(writer, property);\n } else if (isSoftObjectArrayProperty(property)) {\n SoftObjectArrayProperty.Serialize(writer, property);\n } else if (isStructArrayProperty(property)) {\n StructArrayProperty.Serialize(writer, property);\n } else {\n throw new UnimplementedError(`Unknown array property to serialize. ${(property as any).type ?? ''}, ${(property as any).subtype ?? ''}`);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,2DAA6E;AAC7E,2DAA6E;AAC7E,+DAAmF;AACnF,2DAA6E;AAC7E,6DAAgF;AAChF,6DAAgF;AAChF,6DAAgF;AAChF,+DAAmF;AACnF,uEAA+F;AAC/F,yDAA0E;AAC1E,+DAAmF;AACnF,2DAA6E;AAEtE,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAE,EAAE,CACxC,IAAA,uC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7B","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { BoolArrayProperty, isBoolArrayProperty } from './BoolArrayProperty';\nimport { ByteArrayProperty, isByteArrayProperty } from './ByteArrayProperty';\nimport { DoubleArrayProperty, isDoubleArrayProperty } from './DoubleArrayProperty';\nimport { EnumArrayProperty, isEnumArrayProperty } from './EnumArrayProperty';\nimport { FloatArrayProperty, isFloatArrayProperty } from './FloatArrayProperty';\nimport { Int32ArrayProperty, isInt32ArrayProperty } from './Int32ArrayProperty';\nimport { Int64ArrayProperty, isInt64ArrayProperty } from './Int64ArrayProperty';\nimport { isObjectArrayProperty, ObjectArrayProperty } from './ObjectArrayProperty';\nimport { isSoftObjectArrayProperty, SoftObjectArrayProperty } from './SoftObjectArrayProperty';\nimport { isStrArrayProperty, StrArrayProperty } from './StrArrayProperty';\nimport { isStructArrayProperty, StructArrayProperty } from './StructArrayProperty';\nimport { isTextArrayProperty, TextArrayProperty } from './TextArrayProperty';\n\nexport const isArrayProperty = (obj: any) =>\n isBoolArrayProperty(obj)\n || isByteArrayProperty(obj)\n || isDoubleArrayProperty(obj)\n || isEnumArrayProperty(obj)\n || isFloatArrayProperty(obj)\n || isInt32ArrayProperty(obj)\n || isInt64ArrayProperty(obj)\n || isObjectArrayProperty(obj)\n || isSoftObjectArrayProperty(obj)\n || isStrArrayProperty(obj)\n || isStructArrayProperty(obj)\n || isTextArrayProperty(obj);\n\nexport namespace ArrayProperty {\n\n export type AvailableArrayPropertyTypes = ReturnType<typeof Parse>;\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, size: number) => {\n const subtype = reader.readString();\n reader.skipBytes(1); // 0\n\n let property;\n const elementCount = reader.readInt32();\n switch (subtype) {\n case \"FloatProperty\":\n property = FloatArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"BoolProperty\":\n property = BoolArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"IntProperty\":\n property = Int32ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"Int64Property\":\n property = Int64ArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"DoubleProperty\":\n property = DoubleArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"ByteProperty\":\n property = ByteArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"StrProperty\":\n property = StrArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"EnumProperty\":\n property = EnumArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"TextProperty\":\n property = TextArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"InterfaceProperty\":\n case \"ObjectProperty\":\n property = ObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"SoftObjectProperty\":\n property = SoftObjectArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n\n case \"StructProperty\":\n property = StructArrayProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n default:\n throw new UnimplementedError(`Unknown array property subtype ${subtype} for ${ueType}. Not implemented.`);\n\n }\n\n return property;\n }\n\n export const CalcOverhead = (property: AvailableArrayPropertyTypes): number => {\n return property.subtype.length + 5 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: AvailableArrayPropertyTypes): void => {\n\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(property.values.length);\n\n if (isFloatArrayProperty(property)) {\n FloatArrayProperty.Serialize(writer, property);\n } else if (isBoolArrayProperty(property)) {\n BoolArrayProperty.Serialize(writer, property);\n } else if (isInt32ArrayProperty(property)) {\n Int32ArrayProperty.Serialize(writer, property);\n } else if (isInt64ArrayProperty(property)) {\n Int64ArrayProperty.Serialize(writer, property);\n } else if (isDoubleArrayProperty(property)) {\n DoubleArrayProperty.Serialize(writer, property);\n } else if (isByteArrayProperty(property)) {\n ByteArrayProperty.Serialize(writer, property);\n } else if (isStrArrayProperty(property)) {\n StrArrayProperty.Serialize(writer, property);\n } else if (isEnumArrayProperty(property)) {\n EnumArrayProperty.Serialize(writer, property);\n } else if (isTextArrayProperty(property)) {\n TextArrayProperty.Serialize(writer, property);\n } else if (isObjectArrayProperty(property)) {\n ObjectArrayProperty.Serialize(writer, property);\n } else if (isSoftObjectArrayProperty(property)) {\n SoftObjectArrayProperty.Serialize(writer, property);\n } else if (isStructArrayProperty(property)) {\n StructArrayProperty.Serialize(writer, property);\n } else {\n throw new UnimplementedError(`Unknown array property to serialize. ${(property as any).type ?? ''}, ${(property as any).subtype ?? ''}`);\n }\n }\n}\n"]}
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
3
|
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
4
|
export declare const isBoolArrayProperty: (property: any) => property is BoolArrayProperty;
|
|
5
5
|
export type BoolArrayProperty = AbstractBaseProperty & {
|
|
@@ -8,7 +8,7 @@ export type BoolArrayProperty = AbstractBaseProperty & {
|
|
|
8
8
|
values: boolean[];
|
|
9
9
|
};
|
|
10
10
|
export declare namespace BoolArrayProperty {
|
|
11
|
-
const Parse: (reader:
|
|
12
|
-
const Serialize: (writer:
|
|
11
|
+
const Parse: (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index?: number) => BoolArrayProperty;
|
|
12
|
+
const Serialize: (writer: ContextWriter, property: BoolArrayProperty) => void;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=BoolArrayProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BoolArrayProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,eAAO,MAAM,mBAAmB,aAAc,GAAG,KAAG,QAAQ,IAAI,iBAAsF,CAAC;AAEvJ,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,aAAa,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,iBASvH,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,iBAAiB,KAAG,IAE9E,CAAA;CACJ"}
|
package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoolArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,kDAA+C;AAExC,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAgBjC;AAhBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"BoolArrayProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,kDAA+C;AAExC,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CAgBjC;AAhBD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAqB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAqB,EAAE;QACxI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,2BAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAEzF,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,mBAAmB;YACzB,OAAO;YACP,MAAM;SACmB,CAAC;IAClC,CAAC,CAAA;IAEY,2BAAS,GAAG,CAAC,MAAqB,EAAE,QAA2B,EAAQ,EAAE;QAClF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACjF,CAAC,CAAA;AACL,CAAC,EAhBgB,iBAAiB,iCAAjB,iBAAiB,QAgBjC","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { BoolProperty } from '../BoolProperty';\n\nexport const isBoolArrayProperty = (property: any): property is BoolArrayProperty => !Array.isArray(property) && property.type === 'BoolArrayProperty';\n\nexport type BoolArrayProperty = AbstractBaseProperty & {\n type: 'BoolArrayProperty';\n subtype: string;\n values: boolean[];\n};\n\nexport namespace BoolArrayProperty {\n\n export const Parse = (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number = 0): BoolArrayProperty => {\n const values = new Array(elementCount).fill(0).map(() => BoolProperty.ReadValue(reader));\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'BoolArrayProperty',\n subtype,\n values\n } satisfies BoolArrayProperty;\n }\n\n export const Serialize = (writer: ContextWriter, property: BoolArrayProperty): void => {\n property.values.forEach(value => BoolProperty.SerializeValue(writer, value));\n }\n}"]}
|