@etothepii/satisfactory-file-parser 3.3.1 → 4.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 +30 -0
- package/GUIDE.md +11 -7
- package/README.md +4 -4
- package/build/index.d.ts +112 -102
- package/build/index.d.ts.map +1 -1
- package/build/index.js +42 -40
- package/build/index.js.map +1 -1
- package/build/parser/byte/binary-readable.interface.d.ts +1 -0
- package/build/parser/byte/binary-readable.interface.d.ts.map +1 -1
- package/build/parser/byte/binary-readable.interface.js.map +1 -1
- package/build/parser/byte/byte-reader.class.d.ts +1 -0
- package/build/parser/byte/byte-reader.class.d.ts.map +1 -1
- package/build/parser/byte/byte-reader.class.js +6 -2
- 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 +6 -0
- package/build/parser/byte/byte-writer.class.js.map +1 -1
- package/build/parser/context/context-reader.d.ts +1 -1
- package/build/parser/context/context-reader.d.ts.map +1 -1
- package/build/parser/context/context-reader.js.map +1 -1
- package/build/parser/context/context-writer.d.ts +1 -1
- package/build/parser/context/context-writer.d.ts.map +1 -1
- package/build/parser/context/context-writer.js.map +1 -1
- package/build/parser/context/hierarchical-version-context.d.ts +11 -0
- package/build/parser/context/hierarchical-version-context.d.ts.map +1 -0
- package/build/parser/context/hierarchical-version-context.js +24 -0
- package/build/parser/context/hierarchical-version-context.js.map +1 -0
- package/build/parser/context/{context.d.ts → reader-writer-context.d.ts} +5 -3
- package/build/parser/context/reader-writer-context.d.ts.map +1 -0
- package/build/parser/context/{context.js → reader-writer-context.js} +1 -1
- package/build/parser/context/reader-writer-context.js.map +1 -0
- package/build/parser/parser.d.ts.map +1 -1
- package/build/parser/parser.js +29 -15
- package/build/parser/parser.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts +4 -2
- package/build/parser/satisfactory/blueprint/blueprint-config-version.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-config-version.js +4 -2
- package/build/parser/satisfactory/blueprint/blueprint-config-version.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-config.d.ts +4 -5
- package/build/parser/satisfactory/blueprint/blueprint-config.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-config.js +16 -14
- package/build/parser/satisfactory/blueprint/blueprint-config.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-header.d.ts +2 -0
- package/build/parser/satisfactory/blueprint/blueprint-header.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-header.js +18 -2
- package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.js +6 -2
- package/build/parser/satisfactory/blueprint/blueprint-reader.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.d.ts.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-writer.js +5 -2
- package/build/parser/satisfactory/blueprint/blueprint-writer.js.map +1 -1
- package/build/parser/satisfactory/save/data-blob.d.ts +17 -0
- package/build/parser/satisfactory/save/data-blob.d.ts.map +1 -0
- package/build/parser/satisfactory/save/data-blob.js +137 -0
- package/build/parser/satisfactory/save/data-blob.js.map +1 -0
- package/build/parser/satisfactory/save/level.d.ts +5 -10
- package/build/parser/satisfactory/save/level.d.ts.map +1 -1
- package/build/parser/satisfactory/save/level.js +52 -180
- package/build/parser/satisfactory/save/level.js.map +1 -1
- package/build/parser/satisfactory/save/satisfactory-save-header.d.ts.map +1 -1
- package/build/parser/satisfactory/save/satisfactory-save-header.js +5 -3
- package/build/parser/satisfactory/save/satisfactory-save-header.js.map +1 -1
- package/build/parser/satisfactory/save/satisfactory-save.d.ts +3 -1
- package/build/parser/satisfactory/save/satisfactory-save.d.ts.map +1 -1
- package/build/parser/satisfactory/save/satisfactory-save.js.map +1 -1
- package/build/parser/satisfactory/save/save-body-chunks.js +2 -2
- package/build/parser/satisfactory/save/save-body-chunks.js.map +1 -1
- package/build/parser/satisfactory/save/save-custom-version.d.ts +8 -2
- package/build/parser/satisfactory/save/save-custom-version.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save-custom-version.js +8 -2
- package/build/parser/satisfactory/save/save-custom-version.js.map +1 -1
- package/build/parser/satisfactory/save/save-reader.d.ts +2 -2
- package/build/parser/satisfactory/save/save-reader.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save-reader.js +16 -13
- package/build/parser/satisfactory/save/save-reader.js.map +1 -1
- package/build/parser/satisfactory/save/save-writer.d.ts.map +1 -1
- package/build/parser/satisfactory/save/save-writer.js +4 -1
- package/build/parser/satisfactory/save/save-writer.js.map +1 -1
- package/build/parser/satisfactory/save/save.types.d.ts +1 -1
- 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/save/toc-blob.d.ts +18 -0
- package/build/parser/satisfactory/save/toc-blob.d.ts.map +1 -0
- package/build/parser/satisfactory/save/toc-blob.js +97 -0
- package/build/parser/satisfactory/save/toc-blob.js.map +1 -0
- package/build/parser/satisfactory/types/objects/SaveComponent.js +1 -1
- package/build/parser/satisfactory/types/objects/SaveComponent.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveEntity.js +1 -1
- package/build/parser/satisfactory/types/objects/SaveEntity.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts +4 -0
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js +19 -5
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts +4 -4
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +73 -114
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +9 -12
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js +12 -7
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts +10 -5
- package/build/parser/satisfactory/types/property/generic/BoolProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js +20 -23
- package/build/parser/satisfactory/types/property/generic/BoolProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +7 -7
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js +52 -35
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js +15 -23
- package/build/parser/satisfactory/types/property/generic/DoubleProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +10 -5
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js +17 -23
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/FloatProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js +15 -23
- package/build/parser/satisfactory/types/property/generic/FloatProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/Int64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int64Property.js +15 -23
- package/build/parser/satisfactory/types/property/generic/Int64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts +8 -4
- package/build/parser/satisfactory/types/property/generic/Int8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Int8Property.js +11 -20
- package/build/parser/satisfactory/types/property/generic/Int8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts +20 -0
- package/build/parser/satisfactory/types/property/generic/IntProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/IntProperty.js +25 -0
- package/build/parser/satisfactory/types/property/generic/IntProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts +21 -0
- package/build/parser/satisfactory/types/property/generic/InterfaceProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js +26 -0
- package/build/parser/satisfactory/types/property/generic/InterfaceProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts +20 -0
- package/build/parser/satisfactory/types/property/generic/NameProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/NameProperty.js +25 -0
- package/build/parser/satisfactory/types/property/generic/NameProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js +15 -23
- package/build/parser/satisfactory/types/property/generic/ObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts +20 -0
- package/build/parser/satisfactory/types/property/generic/SingleProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SingleProperty.js +25 -0
- package/build/parser/satisfactory/types/property/generic/SingleProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js +15 -23
- package/build/parser/satisfactory/types/property/generic/SoftObjectProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/StrProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StrProperty.js +15 -23
- package/build/parser/satisfactory/types/property/generic/StrProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js +38 -45
- package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/Uint32Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js +15 -23
- package/build/parser/satisfactory/types/property/generic/Uint32Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/Uint64Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js +14 -22
- package/build/parser/satisfactory/types/property/generic/Uint64Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts +9 -5
- package/build/parser/satisfactory/types/property/generic/Uint8Property.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js +14 -22
- package/build/parser/satisfactory/types/property/generic/Uint8Property.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts +15 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js +129 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts +55 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js +24 -0
- package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts +20 -0
- package/build/parser/satisfactory/types/property/generic/containers/MapProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/{MapProperty.js → containers/MapProperty.js} +52 -61
- package/build/parser/satisfactory/types/property/generic/containers/MapProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts +14 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js +90 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts +34 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js +17 -0
- package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js.map +1 -0
- package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts +59 -0
- package/build/parser/satisfactory/types/property/generic/containers/StructProperty.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/generic/{StructProperty.js → containers/StructProperty.js} +61 -84
- package/build/parser/satisfactory/types/property/generic/containers/StructProperty.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +2 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +14 -5
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -1
- 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.js +2 -2
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts +4 -2
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.js +4 -2
- package/build/parser/satisfactory/types/property/special/runtime-buildable-instance-data-version.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 +6 -6
- package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
- package/build/parser/satisfactory/types/structs/SaveBodyValidation.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/SaveBodyValidation.js +0 -2
- package/build/parser/satisfactory/types/structs/SaveBodyValidation.js.map +1 -1
- package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts +1 -1
- package/build/parser/satisfactory/types/structs/SoftObjectReference.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/SoftObjectReference.js +2 -2
- package/build/parser/satisfactory/types/structs/SoftObjectReference.js.map +1 -1
- package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts +12 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersion.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js +21 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersion.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js +22 -0
- package/build/parser/satisfactory/types/structs/binary/FCustomVersionContainer.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts +14 -0
- package/build/parser/satisfactory/types/structs/binary/FEngineVersion.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js +24 -0
- package/build/parser/satisfactory/types/structs/binary/FEngineVersion.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts +12 -0
- package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js +22 -0
- package/build/parser/satisfactory/types/structs/binary/FLocalUserNetIdBundle.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js +18 -0
- package/build/parser/satisfactory/types/structs/binary/FPackageFileVersion.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js +38 -0
- package/build/parser/satisfactory/types/structs/binary/FPlayerInfoHandle.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts +30 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTag.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js +182 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTag.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js +26 -0
- package/build/parser/satisfactory/types/structs/binary/FPropertyTagNode.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts +17 -0
- package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js +27 -0
- package/build/parser/satisfactory/types/structs/binary/FSaveObjectVersionData.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js +21 -0
- package/build/parser/satisfactory/types/structs/binary/FUniqueNetIdRepl.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts +12 -0
- package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js +22 -0
- package/build/parser/satisfactory/types/structs/binary/LBBalancerIndexing.js.map +1 -0
- package/build/parser/stream/reworked/readable-stream-parser.d.ts +2 -3
- package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.js +82 -44
- package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
- package/build/parser/unreal-engine/ETextHistoryType.d.ts +17 -0
- package/build/parser/unreal-engine/ETextHistoryType.d.ts.map +1 -0
- package/build/parser/unreal-engine/ETextHistoryType.js +21 -0
- package/build/parser/unreal-engine/ETextHistoryType.js.map +1 -0
- package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts +24 -0
- package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.d.ts.map +1 -0
- package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js +29 -0
- package/build/parser/unreal-engine/EUnrealEngineObjectUE5Version.js.map +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +5 -5
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +1428 -1288
- package/docs/classes/BlueprintConfigReader.html +37 -36
- package/docs/classes/BlueprintConfigWriter.html +42 -0
- package/docs/classes/BlueprintReader.html +39 -38
- package/docs/classes/BlueprintWriter.html +45 -0
- package/docs/classes/ByteReader.html +37 -0
- package/docs/classes/ByteWriter.html +41 -0
- package/docs/classes/CompressionLibraryError.html +11 -11
- package/docs/classes/ContextReader.html +36 -35
- package/docs/classes/ContextWriter.html +41 -40
- package/docs/classes/CorruptBlueprintError.html +11 -11
- package/docs/classes/CorruptSaveError.html +11 -11
- package/docs/classes/Parser.html +23 -23
- package/docs/classes/ParserError.html +11 -11
- package/docs/classes/ReadableStreamParser.html +7 -7
- package/docs/classes/SatisfactorySave.html +9 -8
- package/docs/classes/SaveComponent.html +20 -18
- package/docs/classes/SaveEntity.html +25 -23
- package/docs/classes/SaveObject.html +17 -15
- package/docs/classes/SaveReader.html +46 -45
- package/docs/classes/SaveWriter.html +44 -43
- package/docs/classes/TimeoutError.html +11 -11
- package/docs/classes/UnimplementedError.html +11 -11
- package/docs/classes/UnsupportedVersionError.html +11 -11
- package/docs/enums/Alignment.html +3 -3
- package/docs/enums/BlueprintConfigVersion.html +11 -9
- package/docs/enums/BlueprintHeaderVersion.html +7 -7
- package/docs/enums/CompressionAlgorithmCode.html +2 -2
- package/docs/enums/ETextHistoryType.html +15 -0
- package/docs/enums/EUnrealEngineObjectUE5Version.html +23 -0
- package/docs/enums/FactoryGameCustomVersion.html +33 -33
- package/docs/enums/RuntimeBuildableInstanceDataVersion.html +9 -7
- package/docs/enums/SaveCustomVersion.html +71 -65
- package/docs/enums/SaveHeaderType.html +19 -19
- package/docs/functions/AbstractBaseProperty.CreateFromTag.html +2 -0
- package/docs/functions/ArrayProperty.Parse.html +1 -1
- package/docs/functions/ArrayProperty.Serialize.html +1 -1
- package/docs/functions/BlueprintConfig.Parse.html +1 -1
- package/docs/functions/BlueprintConfig.Serialize.html +1 -1
- package/docs/functions/BlueprintHeader.Parse.html +1 -1
- package/docs/functions/BlueprintHeader.Serialize.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 -1
- package/docs/functions/BuildableTypeInstance.Serialize.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/DataBlob.Read.html +1 -0
- package/docs/functions/DataBlob.ReadNObjectContents.html +1 -0
- package/docs/functions/DataBlob.SkipOver.html +1 -0
- package/docs/functions/DataBlob.Write.html +1 -0
- 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/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/FClientIdentityInfo.read.html +1 -1
- package/docs/functions/FClientIdentityInfo.write.html +1 -1
- package/docs/functions/FColor.read.html +1 -1
- package/docs/functions/FColor.write.html +1 -1
- package/docs/functions/FCustomVersion.read.html +1 -0
- package/docs/functions/FCustomVersion.write.html +1 -0
- package/docs/functions/FCustomVersionContainer.read.html +1 -0
- package/docs/functions/FCustomVersionContainer.write.html +1 -0
- package/docs/functions/FEngineVersion.read.html +1 -0
- package/docs/functions/FEngineVersion.write.html +1 -0
- package/docs/functions/FGDynamicStruct.Parse.html +1 -1
- package/docs/functions/FGDynamicStruct.Serialize.html +1 -1
- package/docs/functions/FICFrameRange.read.html +1 -1
- package/docs/functions/FICFrameRange.write.html +1 -1
- package/docs/functions/FINGPUT1BufferPixel.read.html +1 -1
- package/docs/functions/FINGPUT1BufferPixel.write.html +1 -1
- package/docs/functions/FINItemStateFileSystem.IsFINItemStateFileSystem.html +1 -1
- package/docs/functions/FINItemStateFileSystem.read.html +1 -1
- package/docs/functions/FINItemStateFileSystem.write.html +1 -1
- package/docs/functions/FINLuaRuntimePersistenceState.read.html +1 -0
- package/docs/functions/FINLuaRuntimePersistenceState.write.html +1 -0
- package/docs/functions/FINNetworkTrace.read.html +1 -1
- package/docs/functions/FINNetworkTrace.write.html +1 -1
- package/docs/functions/FLBBalancerIndexing.read.html +1 -1
- package/docs/functions/FLBBalancerIndexing.write.html +1 -1
- package/docs/functions/FLinearColor.read.html +1 -1
- package/docs/functions/FLinearColor.write.html +1 -1
- package/docs/functions/FLocalUserNetIdBundle.read.html +1 -0
- package/docs/functions/FLocalUserNetIdBundle.write.html +1 -0
- package/docs/functions/FPackageFileVersion.read.html +1 -0
- package/docs/functions/FPackageFileVersion.write.html +1 -0
- package/docs/functions/FPlayerInfoHandle.read.html +1 -0
- package/docs/functions/FPlayerInfoHandle.write.html +1 -0
- package/docs/functions/FPropertyTag.IsCompletePropertyTagType.html +1 -0
- package/docs/functions/FPropertyTag.read.html +2 -0
- package/docs/functions/FPropertyTag.write.html +1 -0
- package/docs/functions/FPropertyTag.writeFromProperty.html +2 -0
- package/docs/functions/FPropertyTagNode.read.html +1 -0
- package/docs/functions/FPropertyTagNode.write.html +1 -0
- package/docs/functions/FSaveObjectVersionData.read.html +1 -0
- package/docs/functions/FSaveObjectVersionData.write.html +1 -0
- package/docs/functions/FUniqueNetIdRepl.read.html +1 -0
- package/docs/functions/FUniqueNetIdRepl.write.html +1 -0
- 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/HierarchyVersion.CreateOnHeader.html +1 -0
- package/docs/functions/HierarchyVersion.SetOnLevel.html +1 -0
- package/docs/functions/HierarchyVersion.SetOnObject.html +1 -0
- 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.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/IntProperty.Parse.html +1 -0
- package/docs/functions/IntProperty.ReadValue.html +1 -0
- package/docs/functions/IntProperty.Serialize.html +1 -0
- package/docs/functions/IntProperty.SerializeValue.html +1 -0
- package/docs/functions/InterfaceProperty.Parse.html +1 -0
- package/docs/functions/InterfaceProperty.ReadValue.html +1 -0
- package/docs/functions/InterfaceProperty.Serialize.html +1 -0
- package/docs/functions/InterfaceProperty.SerializeValue.html +1 -0
- package/docs/functions/LBBalancerIndexing.read.html +1 -0
- package/docs/functions/LBBalancerIndexing.write.html +1 -0
- package/docs/functions/Level.Read.html +1 -0
- package/docs/functions/Level.Serialize.html +1 -0
- package/docs/functions/LevelToDestroyedActorsMap.read.html +1 -1
- package/docs/functions/LevelToDestroyedActorsMap.write.html +1 -1
- package/docs/functions/MD5Hash.read.html +1 -1
- package/docs/functions/MD5Hash.write.html +1 -1
- package/docs/functions/MapProperty.Parse.html +1 -1
- package/docs/functions/MapProperty.Serialize.html +1 -1
- package/docs/functions/NameProperty.Parse.html +1 -0
- package/docs/functions/NameProperty.ReadValue.html +1 -0
- package/docs/functions/NameProperty.Serialize.html +1 -0
- package/docs/functions/NameProperty.SerializeValue.html +1 -0
- 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 -1
- package/docs/functions/ObjectReference.read.html +1 -1
- package/docs/functions/ObjectReference.write.html +1 -1
- package/docs/functions/ObjectReferencesList.ReadList.html +1 -0
- package/docs/functions/ObjectReferencesList.SerializeList.html +1 -0
- package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
- package/docs/functions/OptionalGUID.read.html +1 -0
- package/docs/functions/OptionalGUID.write.html +1 -0
- 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 -1
- package/docs/functions/SatisfactorySaveHeader.Serialize.html +1 -1
- package/docs/functions/SaveBodyChunks.CompressDataIntoChunks.html +1 -1
- package/docs/functions/SaveBodyChunks.DecompressChunks.html +1 -1
- package/docs/functions/SaveBodyValidation.Parse.html +1 -1
- package/docs/functions/SaveBodyValidation.Serialize.html +1 -1
- package/docs/functions/SetProperty.Parse.html +1 -1
- package/docs/functions/SetProperty.Serialize.html +1 -1
- package/docs/functions/SingleProperty.Parse.html +1 -0
- package/docs/functions/SingleProperty.ReadValue.html +1 -0
- package/docs/functions/SingleProperty.Serialize.html +1 -0
- package/docs/functions/SingleProperty.SerializeValue.html +1 -0
- package/docs/functions/SoftObjectProperty.Parse.html +1 -1
- package/docs/functions/SoftObjectProperty.ReadValue.html +1 -1
- package/docs/functions/SoftObjectProperty.Serialize.html +1 -1
- package/docs/functions/SoftObjectProperty.SerializeValue.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/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/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/TOCBlob.Read.html +1 -0
- package/docs/functions/TOCBlob.ReadNObjectHeaders.html +1 -0
- package/docs/functions/TOCBlob.SerializeAllObjectHeaders.html +1 -0
- package/docs/functions/TOCBlob.SkipOver.html +1 -0
- package/docs/functions/TOCBlob.Write.html +1 -0
- 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.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/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.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 -1
- package/docs/functions/VehiclePhysicsData.Serialize.html +1 -1
- 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/isBoolProperty.html +1 -1
- package/docs/functions/isBuildableSubsystemSpecialProperties.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/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -1
- package/docs/functions/isEnumProperty.html +1 -1
- package/docs/functions/isFloatProperty.html +1 -1
- package/docs/functions/isInt64Property.html +1 -1
- package/docs/functions/isInt8Property.html +1 -1
- package/docs/functions/isIntProperty.html +1 -0
- package/docs/functions/isInterfaceProperty.html +1 -0
- package/docs/functions/isMapProperty.html +1 -1
- package/docs/functions/isNameProperty.html +1 -0
- package/docs/functions/isObjectProperty.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/isSingleProperty.html +1 -0
- package/docs/functions/isSoftObjectProperty.html +1 -1
- package/docs/functions/isSpecialDroneActionProperties.html +1 -1
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStructProperty.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/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 +47 -21
- package/docs/interfaces/BinaryOperable.html +5 -0
- package/docs/interfaces/BinaryReadable.html +22 -0
- package/docs/interfaces/BinaryWritable.html +22 -0
- package/docs/interfaces/Blueprint.html +6 -6
- package/docs/interfaces/BlueprintConfig.html +13 -0
- package/docs/interfaces/SaveComponentHeader.html +6 -6
- package/docs/interfaces/SaveEntityHeader.html +8 -8
- package/docs/interfaces/SaveObjectHeader.html +5 -5
- package/docs/modules/AbstractBaseProperty.html +1 -2
- package/docs/modules/ArrayProperty.html +1 -5
- package/docs/modules/BlueprintConfig.html +1 -3
- package/docs/modules/BlueprintHeader.html +1 -3
- package/docs/modules/BoolProperty.html +1 -6
- package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -3
- package/docs/modules/BuildableTypeInstance.html +1 -3
- package/docs/modules/ByteProperty.html +1 -6
- package/docs/modules/CircuitSpecialProperties.html +1 -3
- package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -3
- package/docs/modules/ConveyorSpecialProperties.html +1 -3
- package/docs/modules/DataBlob.html +2 -0
- package/docs/modules/DoubleProperty.html +1 -6
- package/docs/modules/DynamicStructPropertyValue.html +1 -3
- package/docs/modules/EmptySpecialProperties.html +1 -3
- package/docs/modules/EnumProperty.html +1 -6
- package/docs/modules/FClientIdentityInfo.html +1 -3
- package/docs/modules/FColor.html +1 -3
- package/docs/modules/FCustomVersion.html +1 -0
- package/docs/modules/FCustomVersionContainer.html +1 -0
- package/docs/modules/FEngineVersion.html +1 -0
- package/docs/modules/FGDynamicStruct.html +1 -3
- package/docs/modules/FICFrameRange.html +2 -4
- package/docs/modules/FINGPUT1BufferPixel.html +2 -4
- package/docs/modules/FINItemStateFileSystem.html +1 -5
- package/docs/modules/FINLuaRuntimePersistenceState.html +2 -0
- package/docs/modules/FINNetworkTrace.html +2 -4
- package/docs/modules/FLBBalancerIndexing.html +1 -3
- package/docs/modules/FLinearColor.html +1 -3
- package/docs/modules/FLocalUserNetIdBundle.html +1 -0
- package/docs/modules/FPackageFileVersion.html +1 -0
- package/docs/modules/FPlayerInfoHandle.html +1 -0
- package/docs/modules/FPropertyTag.html +1 -0
- package/docs/modules/FPropertyTagNode.html +1 -0
- package/docs/modules/FSaveObjectVersionData.html +1 -0
- package/docs/modules/FUniqueNetIdRepl.html +1 -0
- package/docs/modules/FloatProperty.html +1 -6
- package/docs/modules/GUID.html +1 -3
- package/docs/modules/HierarchyVersion.html +1 -0
- package/docs/modules/Int64Property.html +1 -6
- package/docs/modules/Int8Property.html +1 -6
- package/docs/modules/IntProperty.html +1 -0
- package/docs/modules/InterfaceProperty.html +1 -0
- package/docs/modules/LBBalancerIndexing.html +1 -0
- package/docs/modules/Level.html +1 -9
- package/docs/modules/LevelToDestroyedActorsMap.html +1 -3
- package/docs/modules/MD5Hash.html +1 -3
- package/docs/modules/MapProperty.html +1 -4
- package/docs/modules/NameProperty.html +1 -0
- package/docs/modules/ObjectProperty.html +1 -6
- package/docs/modules/ObjectReference.html +1 -4
- package/docs/modules/ObjectReferencesList.html +1 -0
- package/docs/modules/ObjectsListSpecialProperties.html +1 -3
- package/docs/modules/OptionalGUID.html +1 -0
- package/docs/modules/PlayerSpecialProperties.html +1 -3
- package/docs/modules/PowerLineSpecialProperties.html +1 -3
- package/docs/modules/PropertiesList.html +1 -5
- package/docs/modules/SatisfactorySaveHeader.html +1 -3
- package/docs/modules/SaveBodyChunks.html +1 -5
- package/docs/modules/SaveBodyValidation.html +2 -4
- package/docs/modules/SetProperty.html +1 -5
- package/docs/modules/SingleProperty.html +1 -0
- package/docs/modules/SoftObjectProperty.html +1 -6
- package/docs/modules/SoftObjectReference.html +1 -3
- package/docs/modules/SpecialDroneActionProperties.html +1 -3
- package/docs/modules/SpecialProperties.html +1 -4
- package/docs/modules/StrProperty.html +1 -6
- package/docs/modules/StructProperty.html +1 -6
- package/docs/modules/TOCBlob.html +2 -0
- package/docs/modules/TextProperty.html +1 -6
- package/docs/modules/Transform.html +2 -6
- package/docs/modules/Uint32Property.html +1 -6
- package/docs/modules/Uint64Property.html +1 -6
- package/docs/modules/Uint8Property.html +1 -6
- package/docs/modules/VehiclePhysicsData.html +1 -3
- package/docs/modules/VehicleSpecialProperties.html +1 -3
- package/docs/modules/col4.html +1 -5
- package/docs/modules/vec2.html +1 -5
- package/docs/modules/vec3.html +1 -12
- package/docs/modules/vec4.html +1 -5
- package/docs/modules.html +1 -263
- package/docs/types/AbstractBaseProperty.html +14 -0
- package/docs/types/ArrayProperty.html +1 -0
- package/docs/types/BasicMultipleStructPropertyValue.html +2 -1
- package/docs/types/BasicStructPropertyValue.html +2 -1
- package/docs/types/BlueprintHeader.html +8 -0
- package/docs/types/BlueprintReaderWriterContext.html +7 -2
- package/docs/types/BoolArrayProperty.html +1 -0
- package/docs/types/BoolProperty.html +1 -0
- package/docs/types/BoxStructPropertyValue.html +4 -1
- package/docs/types/BuildableSubsystemSpecialProperties.html +4 -0
- package/docs/types/BuildableTypeInstance.html +14 -0
- package/docs/types/ByteArrayProperty.html +1 -0
- package/docs/types/ByteProperty.html +1 -0
- package/docs/types/BytePropertyValue.html +3 -1
- package/docs/types/ChunkCompressionInfo.html +5 -1
- package/docs/types/ChunkSummary.html +3 -1
- package/docs/types/CircuitSpecialProperties.html +3 -0
- package/docs/types/ConveyorChainActorSpecialProperties.html +10 -0
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +10 -1
- package/docs/types/ConveyorItemSpecialProperties.html +3 -1
- package/docs/types/ConveyorSpecialProperties.html +2 -0
- package/docs/types/DoubleArrayProperty.html +1 -0
- package/docs/types/DoubleProperty.html +1 -0
- package/docs/types/DynamicStructPropertyValue.html +3 -0
- package/docs/types/EmptySpecialProperties.html +2 -0
- package/docs/types/EnumArrayProperty.html +1 -0
- package/docs/types/EnumProperty.html +1 -0
- package/docs/types/FClientIdentityInfo.html +4 -0
- package/docs/types/FColor.html +2 -0
- package/docs/types/FCustomVersion.html +3 -0
- package/docs/types/FCustomVersionContainer.html +2 -0
- package/docs/types/FEngineVersion.html +6 -0
- package/docs/types/FGDynamicStruct.html +10 -0
- package/docs/types/FICFrameRange.html +3 -0
- package/docs/types/FICFrameRangeStructPropertyValue.html +3 -1
- package/docs/types/FINGPUT1BufferPixel.html +4 -0
- package/docs/types/FINItemStateFileSystem.html +2 -0
- package/docs/types/FINLuaRuntimePersistenceState.html +7 -0
- package/docs/types/FINNetworkTrace.html +4 -0
- package/docs/types/FIRInstancedStruct.html +1 -0
- package/docs/types/FLBBalancerIndexing.html +5 -0
- package/docs/types/FLinearColor.html +2 -0
- package/docs/types/FLocalUserNetIdBundle.html +4 -0
- package/docs/types/FPackageFileVersion.html +3 -0
- package/docs/types/FPlayerInfoHandle.html +3 -0
- package/docs/types/FPropertyTag.html +16 -0
- package/docs/types/FPropertyTagNode.html +3 -0
- package/docs/types/FSaveObjectVersionData.html +6 -0
- package/docs/types/FUniqueNetIdRepl.html +3 -0
- package/docs/types/FloatArrayProperty.html +1 -0
- package/docs/types/FloatProperty.html +1 -0
- package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
- package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
- package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
- package/docs/types/GUID.html +2 -0
- package/docs/types/Grids.html +1 -1
- package/docs/types/HierarchyVersion.html +5 -0
- package/docs/types/Int64ArrayProperty.html +1 -0
- package/docs/types/Int64Property.html +1 -0
- package/docs/types/Int8Property.html +1 -0
- package/docs/types/IntArrayProperty.html +1 -0
- package/docs/types/IntProperty.html +1 -0
- package/docs/types/IntSetProperty.html +1 -0
- package/docs/types/InterfaceArrayProperty.html +1 -0
- package/docs/types/InterfaceProperty.html +1 -0
- package/docs/types/InventoryItemStructPropertyValue.html +4 -1
- package/docs/types/LBBalancerIndexing.html +4 -0
- package/docs/types/Level.html +9 -0
- package/docs/types/LevelToDestroyedActorsMap.html +1 -0
- package/docs/types/Levels.html +1 -1
- package/docs/types/MD5Hash.html +4 -0
- package/docs/types/MapProperty.html +1 -0
- package/docs/types/ModData.html +4 -1
- package/docs/types/NameProperty.html +1 -0
- package/docs/types/NameSetProperty.html +1 -0
- package/docs/types/ObjectArrayProperty.html +1 -0
- package/docs/types/ObjectProperty.html +1 -0
- package/docs/types/ObjectReference.html +4 -0
- package/docs/types/ObjectSetProperty.html +1 -0
- package/docs/types/ObjectsListSpecialProperties.html +3 -0
- package/docs/types/OptionalGUID.html +2 -0
- package/docs/types/PlayerSpecialProperties.html +5 -0
- package/docs/types/PowerLineSpecialProperties.html +6 -0
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +5 -1
- package/docs/types/ReaderWriterContext.html +2 -2
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SatisfactoryModMetadata.html +4 -1
- package/docs/types/SatisfactorySaveHeader.html +19 -0
- package/docs/types/SaveBodyChunks.html +3 -0
- package/docs/types/SaveBodyValidation.html +2 -0
- package/docs/types/SaveReaderWriterContext.html +11 -3
- package/docs/types/SetProperty.html +1 -0
- package/docs/types/SingleProperty.html +1 -0
- package/docs/types/SoftObjectArrayProperty.html +1 -0
- package/docs/types/SoftObjectProperty.html +1 -0
- package/docs/types/SoftObjectReference.html +4 -0
- package/docs/types/SpecialDroneAction.html +3 -1
- package/docs/types/SpecialDroneActionProperties.html +4 -0
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
- package/docs/types/StrArrayProperty.html +1 -0
- package/docs/types/StrProperty.html +1 -0
- package/docs/types/StrSetProperty.html +1 -0
- package/docs/types/StructArrayProperty.html +1 -0
- package/docs/types/StructProperty.html +1 -0
- package/docs/types/StructSetProperty.html +1 -0
- package/docs/types/TextArrayProperty.html +1 -0
- package/docs/types/TextProperty.html +1 -0
- package/docs/types/TextPropertyValue.html +13 -1
- package/docs/types/Transform.html +5 -0
- package/docs/types/Uint32Property.html +1 -0
- package/docs/types/Uint32SetProperty.html +1 -0
- package/docs/types/Uint64Property.html +1 -0
- package/docs/types/Uint8Property.html +1 -0
- package/docs/types/VehiclePhysicsData.html +7 -0
- package/docs/types/VehicleSpecialProperties.html +5 -0
- package/docs/types/col4.html +6 -0
- package/docs/types/vec2.html +4 -0
- package/docs/types/vec3.html +2 -0
- package/docs/types/vec4.html +2 -0
- package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -1
- package/docs/variables/EDIT.html +2 -2
- package/docs/variables/FINItemStateFileSystem.ExactStructReference.html +1 -1
- package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -1
- package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -1
- package/docs/variables/isBoolArrayProperty.html +1 -0
- package/docs/variables/isByteArrayProperty.html +1 -0
- package/docs/variables/isDoubleArrayProperty.html +1 -0
- package/docs/variables/isEnumArrayProperty.html +1 -0
- package/docs/variables/isFloatArrayProperty.html +1 -0
- package/docs/variables/isInt64ArrayProperty.html +1 -0
- package/docs/variables/isIntArrayProperty.html +1 -0
- package/docs/variables/isIntSetProperty.html +1 -0
- package/docs/variables/isInterfaceArrayProperty.html +1 -0
- package/docs/variables/isNameSetProperty.html +1 -0
- package/docs/variables/isObjectArrayProperty.html +1 -0
- package/docs/variables/isObjectSetProperty.html +1 -0
- package/docs/variables/isSoftObjectArrayProperty.html +1 -0
- package/docs/variables/isStrArrayProperty.html +1 -0
- package/docs/variables/isStrSetProperty.html +1 -0
- package/docs/variables/isStructArrayPRoperty.html +1 -0
- package/docs/variables/isStructSetProperty.html +1 -0
- package/docs/variables/isTextArrayProperty.html +1 -0
- package/docs/variables/isUint32SetProperty.html +1 -0
- package/package.json +3 -3
- package/build/parser/context/context.d.ts.map +0 -1
- package/build/parser/context/context.js.map +0 -1
- package/build/parser/file.types.d.ts +0 -14
- package/build/parser/file.types.d.ts.map +0 -1
- package/build/parser/file.types.js +0 -8
- package/build/parser/file.types.js.map +0 -1
- package/build/parser/satisfactory/save/level.class.d.ts +0 -29
- package/build/parser/satisfactory/save/level.class.d.ts.map +0 -1
- package/build/parser/satisfactory/save/level.class.js +0 -204
- package/build/parser/satisfactory/save/level.class.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +0 -22
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +0 -127
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/BoolArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ByteArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/DoubleArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/EnumArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/FloatArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int32ArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/Int64ArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts +0 -15
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ObjectArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts +0 -15
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/SoftObjectArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StrArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts +0 -26
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +0 -75
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts +0 -15
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/TextArrayProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts +0 -16
- package/build/parser/satisfactory/types/property/generic/Int32Property.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/Int32Property.js +0 -33
- package/build/parser/satisfactory/types/property/generic/Int32Property.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +0 -25
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/SetProperty/Int32SetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts +0 -15
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/SetProperty/ObjectSetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +0 -15
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +0 -75
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +0 -42
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts +0 -14
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js +0 -23
- package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map +0 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +0 -60
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +0 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +0 -1
- package/build/parser/satisfactory/types/structs/GUID.d.ts +0 -8
- package/build/parser/satisfactory/types/structs/GUID.d.ts.map +0 -1
- package/build/parser/satisfactory/types/structs/GUID.js +0 -22
- package/build/parser/satisfactory/types/structs/GUID.js.map +0 -1
- package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts +0 -6
- package/build/parser/stream/reworked/save-stream-json-stringifier.d.ts.map +0 -1
- package/build/parser/stream/reworked/save-stream-json-stringifier.js +0 -35
- package/build/parser/stream/reworked/save-stream-json-stringifier.js.map +0 -1
- package/build/parser/stream/reworked/save-stream-writer.class.d.ts +0 -28
- package/build/parser/stream/reworked/save-stream-writer.class.d.ts.map +0 -1
- package/build/parser/stream/reworked/save-stream-writer.class.js +0 -84
- package/build/parser/stream/reworked/save-stream-writer.class.js.map +0 -1
- package/docs/classes/SaveStreamJsonStringifier.html +0 -5
- package/docs/classes/SaveStreamWriter.html +0 -16
- package/docs/functions/AbstractBaseProperty.Create.html +0 -1
- package/docs/functions/ArrayProperty.CalcOverhead.html +0 -1
- package/docs/functions/BoolArrayProperty.Parse.html +0 -1
- package/docs/functions/BoolArrayProperty.Serialize.html +0 -1
- package/docs/functions/BoolProperty.CalcOverhead.html +0 -1
- package/docs/functions/ByteArrayProperty.Parse.html +0 -1
- package/docs/functions/ByteArrayProperty.Serialize.html +0 -1
- package/docs/functions/ByteProperty.CalcOverhead.html +0 -1
- package/docs/functions/DoubleArrayProperty.Parse.html +0 -1
- package/docs/functions/DoubleArrayProperty.Serialize.html +0 -1
- package/docs/functions/DoubleProperty.CalcOverhead.html +0 -1
- package/docs/functions/EnumArrayProperty.Parse.html +0 -1
- package/docs/functions/EnumArrayProperty.Serialize.html +0 -1
- package/docs/functions/EnumProperty.CalcOverhead.html +0 -1
- package/docs/functions/FloatArrayProperty.Parse.html +0 -1
- package/docs/functions/FloatArrayProperty.Serialize.html +0 -1
- package/docs/functions/FloatProperty.CalcOverhead.html +0 -1
- package/docs/functions/GUIDInfo.read.html +0 -1
- package/docs/functions/GUIDInfo.write.html +0 -1
- package/docs/functions/Int32ArrayProperty.Parse.html +0 -1
- package/docs/functions/Int32ArrayProperty.Serialize.html +0 -1
- package/docs/functions/Int32Property.CalcOverhead.html +0 -1
- package/docs/functions/Int32Property.Parse.html +0 -1
- package/docs/functions/Int32Property.ReadValue.html +0 -1
- package/docs/functions/Int32Property.Serialize.html +0 -1
- package/docs/functions/Int32Property.SerializeValue.html +0 -1
- package/docs/functions/Int32SetProperty.Parse.html +0 -1
- package/docs/functions/Int32SetProperty.Serialize.html +0 -1
- package/docs/functions/Int64ArrayProperty.Parse.html +0 -1
- package/docs/functions/Int64ArrayProperty.Serialize.html +0 -1
- package/docs/functions/Int64Property.CalcOverhead.html +0 -1
- package/docs/functions/Int8Property.CalcOverhead.html +0 -1
- package/docs/functions/Level.ReadAllObjectContents.html +0 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +0 -1
- package/docs/functions/Level.ReadLevel.html +0 -1
- package/docs/functions/Level.ReadNObjectContents.html +0 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +0 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +0 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +0 -1
- package/docs/functions/Level.SerializeLevel.html +0 -1
- package/docs/functions/MapProperty.CalcOverhead.html +0 -1
- package/docs/functions/ObjectArrayProperty.Parse.html +0 -1
- package/docs/functions/ObjectArrayProperty.Serialize.html +0 -1
- package/docs/functions/ObjectProperty.CalcOverhead.html +0 -1
- package/docs/functions/ObjectSetProperty.Parse.html +0 -1
- package/docs/functions/ObjectSetProperty.Serialize.html +0 -1
- package/docs/functions/SetProperty.CalcOverhead.html +0 -1
- package/docs/functions/SoftObjectArrayProperty.Parse.html +0 -1
- package/docs/functions/SoftObjectArrayProperty.Serialize.html +0 -1
- package/docs/functions/SoftObjectProperty.CalcOverhead.html +0 -1
- package/docs/functions/StrArrayProperty.Parse.html +0 -1
- package/docs/functions/StrArrayProperty.Serialize.html +0 -1
- package/docs/functions/StrProperty.CalcOverhead.html +0 -1
- package/docs/functions/StrSetProperty.Parse.html +0 -1
- package/docs/functions/StrSetProperty.Serialize.html +0 -1
- package/docs/functions/StructArrayProperty.Parse.html +0 -1
- package/docs/functions/StructArrayProperty.Serialize.html +0 -1
- package/docs/functions/StructProperty.CalcOverhead.html +0 -1
- package/docs/functions/StructSetProperty.Parse.html +0 -1
- package/docs/functions/StructSetProperty.Serialize.html +0 -1
- package/docs/functions/TextArrayProperty.Parse.html +0 -1
- package/docs/functions/TextArrayProperty.Serialize.html +0 -1
- package/docs/functions/TextProperty.CalcOverhead.html +0 -1
- package/docs/functions/Uint32Property.CalcOverhead.html +0 -1
- package/docs/functions/Uint32SetProperty.Parse.html +0 -1
- package/docs/functions/Uint32SetProperty.Serialize.html +0 -1
- package/docs/functions/Uint64Property.CalcOverhead.html +0 -1
- package/docs/functions/Uint8Property.CalcOverhead.html +0 -1
- package/docs/functions/isBoolArrayProperty.html +0 -1
- package/docs/functions/isByteArrayProperty.html +0 -1
- package/docs/functions/isDoubleArrayProperty.html +0 -1
- package/docs/functions/isEnumArrayProperty.html +0 -1
- package/docs/functions/isFloatArrayProperty.html +0 -1
- package/docs/functions/isInt32ArrayProperty.html +0 -1
- package/docs/functions/isInt32Property.html +0 -1
- package/docs/functions/isInt32SetProperty.html +0 -1
- package/docs/functions/isInt64ArrayProperty.html +0 -1
- package/docs/functions/isObjectArrayProperty.html +0 -1
- package/docs/functions/isObjectSetProperty.html +0 -1
- package/docs/functions/isSoftObjectArrayProperty.html +0 -1
- package/docs/functions/isStrArrayProperty.html +0 -1
- package/docs/functions/isStrSetProperty.html +0 -1
- package/docs/functions/isStructArrayProperty.html +0 -1
- package/docs/functions/isStructSetProperty.html +0 -1
- package/docs/functions/isTextArrayProperty.html +0 -1
- package/docs/functions/isUint32SetProperty.html +0 -1
- package/docs/interfaces/BlueprintConfig-1.html +0 -8
- package/docs/modules/BoolArrayProperty.html +0 -3
- package/docs/modules/ByteArrayProperty.html +0 -3
- package/docs/modules/DoubleArrayProperty.html +0 -3
- package/docs/modules/EnumArrayProperty.html +0 -3
- package/docs/modules/FloatArrayProperty.html +0 -3
- package/docs/modules/GUIDInfo.html +0 -3
- package/docs/modules/Int32ArrayProperty.html +0 -3
- package/docs/modules/Int32Property.html +0 -6
- package/docs/modules/Int32SetProperty.html +0 -3
- package/docs/modules/Int64ArrayProperty.html +0 -3
- package/docs/modules/ObjectArrayProperty.html +0 -3
- package/docs/modules/ObjectSetProperty.html +0 -3
- package/docs/modules/SoftObjectArrayProperty.html +0 -3
- package/docs/modules/StrArrayProperty.html +0 -3
- package/docs/modules/StrSetProperty.html +0 -3
- package/docs/modules/StructArrayProperty.html +0 -3
- package/docs/modules/StructSetProperty.html +0 -3
- package/docs/modules/TextArrayProperty.html +0 -3
- package/docs/modules/Uint32SetProperty.html +0 -3
- package/docs/types/AbstractBaseProperty-1.html +0 -7
- package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +0 -1
- package/docs/types/ArrayPropertyStructValueFields.html +0 -1
- package/docs/types/BlueprintHeader-1.html +0 -1
- package/docs/types/BoolArrayProperty-1.html +0 -1
- package/docs/types/BoolProperty-1.html +0 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +0 -1
- package/docs/types/BuildableTypeInstance-1.html +0 -1
- package/docs/types/ByteArrayProperty-1.html +0 -1
- package/docs/types/ByteProperty-1.html +0 -1
- package/docs/types/CircuitSpecialProperties-1.html +0 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +0 -1
- package/docs/types/ConveyorSpecialProperties-1.html +0 -1
- package/docs/types/DoubleArrayProperty-1.html +0 -1
- package/docs/types/DoubleProperty-1.html +0 -1
- package/docs/types/DynamicStructPropertyValue-1.html +0 -1
- package/docs/types/EmptySpecialProperties-1.html +0 -1
- package/docs/types/EnumArrayProperty-1.html +0 -1
- package/docs/types/EnumProperty-1.html +0 -1
- package/docs/types/FClientIdentityInfo-1.html +0 -2
- package/docs/types/FColor-1.html +0 -2
- package/docs/types/FGDynamicStruct-1.html +0 -6
- package/docs/types/FICFrameRange-1.html +0 -1
- package/docs/types/FINGPUT1BufferPixel-1.html +0 -1
- package/docs/types/FINItemStateFileSystem-1.html +0 -2
- package/docs/types/FINNetworkTrace-1.html +0 -1
- package/docs/types/FLBBalancerIndexing-1.html +0 -2
- package/docs/types/FLinearColor-1.html +0 -2
- package/docs/types/FloatArrayProperty-1.html +0 -1
- package/docs/types/FloatProperty-1.html +0 -1
- package/docs/types/GUID-1.html +0 -2
- package/docs/types/GUIDInfo-1.html +0 -2
- package/docs/types/Int32ArrayProperty-1.html +0 -1
- package/docs/types/Int32Property-1.html +0 -1
- package/docs/types/Int32SetProperty-1.html +0 -1
- package/docs/types/Int64ArrayProperty-1.html +0 -1
- package/docs/types/Int64Property-1.html +0 -1
- package/docs/types/Int8Property-1.html +0 -1
- package/docs/types/Level-1.html +0 -2
- package/docs/types/LevelToDestroyedActorsMap-1.html +0 -1
- package/docs/types/MAP_STRUCT_PROXY.html +0 -1
- package/docs/types/MD5Hash-1.html +0 -2
- package/docs/types/MapProperty-1.html +0 -1
- package/docs/types/ObjectArrayProperty-1.html +0 -1
- package/docs/types/ObjectProperty-1.html +0 -1
- package/docs/types/ObjectReference-1.html +0 -2
- package/docs/types/ObjectSetProperty-1.html +0 -1
- package/docs/types/ObjectsListSpecialProperties-1.html +0 -1
- package/docs/types/PlayerSpecialProperties-1.html +0 -1
- package/docs/types/PowerLineSpecialProperties-1.html +0 -1
- package/docs/types/SatisfactorySaveHeader-1.html +0 -1
- package/docs/types/SaveBodyChunks-1.html +0 -1
- package/docs/types/SaveBodyValidation-1.html +0 -1
- package/docs/types/SetProperty.AvailableSetPropertyTypes.html +0 -1
- package/docs/types/SoftObjectArrayProperty-1.html +0 -1
- package/docs/types/SoftObjectProperty-1.html +0 -1
- package/docs/types/SoftObjectReference-1.html +0 -1
- package/docs/types/SpecialDroneActionProperties-1.html +0 -1
- package/docs/types/StrArrayProperty-1.html +0 -1
- package/docs/types/StrProperty-1.html +0 -1
- package/docs/types/StrSetProperty-1.html +0 -1
- package/docs/types/StructArrayProperty-1.html +0 -1
- package/docs/types/StructProperty-1.html +0 -1
- package/docs/types/StructSetProperty-1.html +0 -1
- package/docs/types/TextArrayProperty-1.html +0 -1
- package/docs/types/TextProperty-1.html +0 -1
- package/docs/types/Transform-1.html +0 -2
- package/docs/types/Uint32Property-1.html +0 -1
- package/docs/types/Uint32SetProperty-1.html +0 -1
- package/docs/types/Uint64Property-1.html +0 -1
- package/docs/types/Uint8Property-1.html +0 -1
- package/docs/types/VehiclePhysicsData-1.html +0 -1
- package/docs/types/VehicleSpecialProperties-1.html +0 -1
- package/docs/types/col4-1.html +0 -2
- package/docs/types/vec2-1.html +0 -2
- package/docs/types/vec3-1.html +0 -2
- package/docs/types/vec4-1.html +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/SetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,yDAA0E;AAC1E,2DAA6E;AAC7E,qDAAoE;AACpE,2DAA6E;AAC7E,2DAA6E;AAEtE,MAAM,aAAa,GAAG,CAAC,GAAQ,EAAgD,EAAE,CACpF,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACrB,IAAA,qCAAkB,EAAC,GAAG,CAAC;OACvB,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,iCAAgB,EAAC,GAAG,CAAC;OACrB,IAAA,uCAAmB,EAAC,GAAG,CAAC,CAAC;AALnB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,MAAM,IAAI,iCAAkB,CAAC,8CAA+C,QAAgB,CAAC,OAAO,GAAG,CAAC,CAAC;QAC7G,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EApEgB,WAAW,2BAAX,WAAW,QAoE3B","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { Int32SetProperty, isInt32SetProperty } from './Int32SetProperty';\nimport { isObjectSetProperty, ObjectSetProperty } from './ObjectSetProperty';\nimport { isStrSetProperty, StrSetProperty } from './StrSetProperty';\nimport { isStructSetProperty, StructSetProperty } from './StructSetProperty';\nimport { isUint32SetProperty, Uint32SetProperty } from './Uint32SetProperty';\n\nexport const isSetProperty = (obj: any): obj is SetProperty.AvailableSetPropertyTypes =>\n isUint32SetProperty(obj)\n || isInt32SetProperty(obj)\n || isObjectSetProperty(obj)\n || isStrSetProperty(obj)\n || isStructSetProperty(obj);\n\nexport namespace SetProperty {\n\n export type AvailableSetPropertyTypes = Uint32SetProperty | Int32SetProperty | ObjectSetProperty | StrSetProperty | StructSetProperty;\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, propertyName: string, subtype: string): AvailableSetPropertyTypes => {\n\n reader.skipBytes(1); // 0\n const numElementsToRemove = reader.readInt32();\n if (numElementsToRemove > 0) {\n // not observed so far.\n throw new UnimplementedError('SetPreperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');\n }\n const elementCount = reader.readInt32();\n\n let property: AvailableSetPropertyTypes;\n switch (subtype) {\n\n case \"UInt32Property\":\n property = Uint32SetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"IntProperty\":\n property = Int32SetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"ObjectProperty\":\n property = ObjectSetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"NameProperty\":\n property = StrSetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"StructProperty\":\n property = StructSetProperty.Parse(reader, elementCount, subtype, ueType, index, propertyName);\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${subtype}.`);\n }\n\n return property;\n }\n\n export const CalcOverhead = (property: AvailableSetPropertyTypes, subtype: string): number => {\n return subtype.length + 5 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: AvailableSetPropertyTypes): void => {\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(0);\n writer.writeInt32(property.values.length);\n\n if (isInt32SetProperty(property)) {\n Int32SetProperty.Serialize(writer, property);\n } else if (isUint32SetProperty(property)) {\n Uint32SetProperty.Serialize(writer, property);\n } else if (isObjectSetProperty(property)) {\n ObjectSetProperty.Serialize(writer, property);\n } else if (isStrSetProperty(property)) {\n StrSetProperty.Serialize(writer, property);\n } else if (isStructSetProperty(property)) {\n StructSetProperty.Serialize(writer, property);\n } else {\n throw new UnimplementedError(`Not Implemented Serializing SetProperty of ${(property as any).subtype}.`);\n }\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
-
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
-
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
-
export declare const isStrSetProperty: (property: any) => property is StrSetProperty;
|
|
5
|
-
export type StrSetProperty = AbstractBaseProperty & {
|
|
6
|
-
type: 'StrSetProperty';
|
|
7
|
-
subtype: string;
|
|
8
|
-
values: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare namespace StrSetProperty {
|
|
11
|
-
const Parse: (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index?: number) => StrSetProperty;
|
|
12
|
-
const Serialize: (writer: ContextWriter, property: StrSetProperty) => void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=StrSetProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StrSetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.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,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgF,CAAC;AAE9I,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAErB,MAAM,KAAK,WAAY,aAAa,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,UAAS,MAAM,KAAO,cASvH,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,cAAc,KAAG,IAE3E,CAAA;CACJ"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StrSetProperty = exports.isStrSetProperty = void 0;
|
|
4
|
-
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
5
|
-
const StrProperty_1 = require("../StrProperty");
|
|
6
|
-
const isStrSetProperty = (property) => !Array.isArray(property) && property.type === 'StrSetProperty';
|
|
7
|
-
exports.isStrSetProperty = isStrSetProperty;
|
|
8
|
-
var StrSetProperty;
|
|
9
|
-
(function (StrSetProperty) {
|
|
10
|
-
StrSetProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
11
|
-
const values = new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader));
|
|
12
|
-
return {
|
|
13
|
-
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
|
|
14
|
-
type: 'StrSetProperty',
|
|
15
|
-
subtype,
|
|
16
|
-
values
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
StrSetProperty.Serialize = (writer, property) => {
|
|
20
|
-
property.values.forEach(value => StrProperty_1.StrProperty.SerializeValue(writer, value));
|
|
21
|
-
};
|
|
22
|
-
})(StrSetProperty || (exports.StrSetProperty = StrSetProperty = {}));
|
|
23
|
-
//# sourceMappingURL=StrSetProperty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StrSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StrSetProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,gDAA6C;AAEtC,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAQ9I,IAAiB,cAAc,CAgB9B;AAhBD,WAAiB,cAAc;IAEd,oBAAK,GAAG,CAAC,MAAqB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAkB,EAAE;QACrI,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAExF,OAAO;YACH,GAAG,2CAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;YAC3D,IAAI,EAAE,gBAAgB;YACtB,OAAO;YACP,MAAM;SACgB,CAAC;IAC/B,CAAC,CAAA;IAEY,wBAAS,GAAG,CAAC,MAAqB,EAAE,QAAwB,EAAQ,EAAE;QAC/E,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAA;AACL,CAAC,EAhBgB,cAAc,8BAAd,cAAc,QAgB9B","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { StrProperty } from '../StrProperty';\n\nexport const isStrSetProperty = (property: any): property is StrSetProperty => !Array.isArray(property) && property.type === 'StrSetProperty';\n\nexport type StrSetProperty = AbstractBaseProperty & {\n type: 'StrSetProperty';\n subtype: string;\n values: string[];\n};\n\nexport namespace StrSetProperty {\n\n export const Parse = (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number = 0): StrSetProperty => {\n const values = new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader));\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StrSetProperty',\n subtype,\n values\n } satisfies StrSetProperty;\n }\n\n export const Serialize = (writer: ContextWriter, property: StrSetProperty): void => {\n property.values.forEach(value => StrProperty.SerializeValue(writer, value));\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
-
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
-
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
-
export declare const isStructSetProperty: (property: any) => property is StructSetProperty;
|
|
5
|
-
export type StructSetProperty = AbstractBaseProperty & {
|
|
6
|
-
type: 'StructSetProperty';
|
|
7
|
-
subtype: string;
|
|
8
|
-
values: any[];
|
|
9
|
-
};
|
|
10
|
-
export declare namespace StructSetProperty {
|
|
11
|
-
const Parse: (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number | undefined, propertyName: string) => StructSetProperty;
|
|
12
|
-
const Serialize: (writer: ContextWriter, property: StructSetProperty) => void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=StructSetProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructSetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAItE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/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,GAAG,EAAE,CAAC;CACjB,CAAC;AAEF,yBAAiB,iBAAiB,CAAC;IAExB,MAAM,KAAK,WAAY,aAAa,gBAAgB,MAAM,WAAW,MAAM,UAAU,MAAM,SAAS,MAAM,4BAAoB,MAAM,KAAG,iBAiB7I,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,iBAAiB,KAAG,IAS9E,CAAA;CACJ"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StructSetProperty = exports.isStructSetProperty = void 0;
|
|
4
|
-
const parser_error_1 = require("../../../../../error/parser.error");
|
|
5
|
-
const GUID_1 = require("../../../structs/binary/GUID");
|
|
6
|
-
const vec3_1 = require("../../../structs/vec3");
|
|
7
|
-
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
8
|
-
const isStructSetProperty = (property) => !Array.isArray(property) && property.type === 'StructSetProperty';
|
|
9
|
-
exports.isStructSetProperty = isStructSetProperty;
|
|
10
|
-
var StructSetProperty;
|
|
11
|
-
(function (StructSetProperty) {
|
|
12
|
-
StructSetProperty.Parse = (reader, elementCount, subtype, ueType, index = 0, propertyName) => {
|
|
13
|
-
let values;
|
|
14
|
-
if (propertyName === 'mRemovalLocations') {
|
|
15
|
-
values = new Array(elementCount).fill(0).map(() => vec3_1.vec3.ParseF(reader));
|
|
16
|
-
}
|
|
17
|
-
else if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {
|
|
18
|
-
values = new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader));
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw new parser_error_1.UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${propertyName}.`);
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
|
|
25
|
-
type: 'StructSetProperty',
|
|
26
|
-
subtype,
|
|
27
|
-
values
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
StructSetProperty.Serialize = (writer, property) => {
|
|
31
|
-
if (property.name === 'mRemovalLocations') {
|
|
32
|
-
property.values.forEach(v => vec3_1.vec3.SerializeF(writer, v));
|
|
33
|
-
}
|
|
34
|
-
else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
|
|
35
|
-
property.values.forEach(v => GUID_1.GUID.write(writer, v));
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
})(StructSetProperty || (exports.StructSetProperty = StructSetProperty = {}));
|
|
42
|
-
//# sourceMappingURL=StructSetProperty.js.map
|
package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,uDAAoD;AACpD,gDAA6C;AAC7C,kEAA+D;AAExD,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,CA+BjC;AA/BD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAqB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAE,YAAoB,EAAqB,EAAE;QAE9J,IAAI,MAAiB,CAAC;QACtB,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAAC;YACvC,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5E,CAAC;aAAM,IAAI,YAAY,KAAK,mBAAmB,IAAI,YAAY,KAAK,iBAAiB,EAAE,CAAC;YACpF,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,iCAAkB,CAAC,mEAAmE,YAAY,GAAG,CAAC,CAAC;QACrH,CAAC;QAED,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;QAElF,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;YACxC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,IAAI,QAAQ,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;YACtF,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,0EAA0E,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;QAChH,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA/BgB,iBAAiB,iCAAjB,iBAAiB,QA+BjC","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { GUID } from '../../../structs/binary/GUID';\nimport { vec3 } from '../../../structs/vec3';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\n\nexport const isStructSetProperty = (property: any): property is StructSetProperty => !Array.isArray(property) && property.type === 'StructSetProperty';\n\nexport type StructSetProperty = AbstractBaseProperty & {\n type: 'StructSetProperty';\n subtype: string;\n values: any[];\n};\n\nexport namespace StructSetProperty {\n\n export const Parse = (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number = 0, propertyName: string): StructSetProperty => {\n\n let values: unknown[];\n if (propertyName === 'mRemovalLocations') {\n values = new Array(elementCount).fill(0).map(() => vec3.ParseF(reader));\n } else if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n values = new Array(elementCount).fill(0).map(() => GUID.read(reader));\n } else {\n throw new UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${propertyName}.`);\n }\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StructSetProperty',\n subtype,\n values\n } satisfies StructSetProperty;\n }\n\n export const Serialize = (writer: ContextWriter, property: StructSetProperty): void => {\n\n if (property.name === 'mRemovalLocations') {\n property.values.forEach(v => vec3.SerializeF(writer, v));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values.forEach(v => GUID.write(writer, v));\n } else {\n throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);\n }\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
-
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
-
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
-
export declare const isUint32SetProperty: (property: any) => property is Uint32SetProperty;
|
|
5
|
-
export type Uint32SetProperty = AbstractBaseProperty & {
|
|
6
|
-
type: 'Uint32SetProperty';
|
|
7
|
-
subtype: string;
|
|
8
|
-
values: number[];
|
|
9
|
-
};
|
|
10
|
-
export declare namespace Uint32SetProperty {
|
|
11
|
-
const Parse: (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index?: number) => Uint32SetProperty;
|
|
12
|
-
const Serialize: (writer: ContextWriter, property: Uint32SetProperty) => void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=Uint32SetProperty.d.ts.map
|
package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Uint32SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.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,MAAM,EAAE,CAAC;CACpB,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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Uint32SetProperty = exports.isUint32SetProperty = void 0;
|
|
4
|
-
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
5
|
-
const Uint32Property_1 = require("../Uint32Property");
|
|
6
|
-
const isUint32SetProperty = (property) => !Array.isArray(property) && property.type === 'Uint32SetProperty';
|
|
7
|
-
exports.isUint32SetProperty = isUint32SetProperty;
|
|
8
|
-
var Uint32SetProperty;
|
|
9
|
-
(function (Uint32SetProperty) {
|
|
10
|
-
Uint32SetProperty.Parse = (reader, elementCount, subtype, ueType, index = 0) => {
|
|
11
|
-
const values = new Array(elementCount).fill(0).map(() => Uint32Property_1.Uint32Property.ReadValue(reader));
|
|
12
|
-
return {
|
|
13
|
-
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, type: '' }),
|
|
14
|
-
type: 'Uint32SetProperty',
|
|
15
|
-
subtype,
|
|
16
|
-
values
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
Uint32SetProperty.Serialize = (writer, property) => {
|
|
20
|
-
property.values.forEach(value => Uint32Property_1.Uint32Property.SerializeValue(writer, value));
|
|
21
|
-
};
|
|
22
|
-
})(Uint32SetProperty || (exports.Uint32SetProperty = Uint32SetProperty = {}));
|
|
23
|
-
//# sourceMappingURL=Uint32SetProperty.js.map
|
package/build/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Uint32SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/Uint32SetProperty.ts"],"names":[],"mappings":";;;AAEA,kEAA+D;AAC/D,sDAAmD;AAE5C,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,+BAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QAE3F,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,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IACnF,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 { Uint32Property } from '../Uint32Property';\n\nexport const isUint32SetProperty = (property: any): property is Uint32SetProperty => !Array.isArray(property) && property.type === 'Uint32SetProperty';\n\nexport type Uint32SetProperty = AbstractBaseProperty & {\n type: 'Uint32SetProperty';\n subtype: string;\n values: number[];\n};\n\nexport namespace Uint32SetProperty {\n\n export const Parse = (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number = 0): Uint32SetProperty => {\n const values = new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader));\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'Uint32SetProperty',\n subtype,\n values\n } satisfies Uint32SetProperty;\n }\n\n export const Serialize = (writer: ContextWriter, property: Uint32SetProperty): void => {\n property.values.forEach(value => Uint32Property.SerializeValue(writer, value));\n }\n}\n"]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ContextReader } from '../../../../context/context-reader';
|
|
2
|
-
import { ContextWriter } from '../../../../context/context-writer';
|
|
3
|
-
import { FClientIdentityInfo } from '../../structs/binary/FClientIdentityInfo';
|
|
4
|
-
import { col4 } from '../../structs/col4';
|
|
5
|
-
import { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';
|
|
6
|
-
import { FGDynamicStruct } from '../../structs/FGDynamicStruct';
|
|
7
|
-
import { FINGPUT1BufferPixel } from '../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel';
|
|
8
|
-
import { FINLuaRuntimePersistenceState } from '../../structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState';
|
|
9
|
-
import { FINNetworkTrace } from '../../structs/mods/FicsItNetworks/FINNetworkTrace';
|
|
10
|
-
import { FLBBalancerIndexing } from '../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing';
|
|
11
|
-
import { ObjectReference } from '../../structs/ObjectReference';
|
|
12
|
-
import { vec2 } from '../../structs/vec2';
|
|
13
|
-
import { vec3 } from '../../structs/vec3';
|
|
14
|
-
import { vec4 } from '../../structs/vec4';
|
|
15
|
-
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
16
|
-
export type BasicMultipleStructPropertyValue = {
|
|
17
|
-
values: any;
|
|
18
|
-
};
|
|
19
|
-
export type BasicStructPropertyValue = {
|
|
20
|
-
value: any;
|
|
21
|
-
};
|
|
22
|
-
export type BoxStructPropertyValue = {
|
|
23
|
-
min: vec3;
|
|
24
|
-
max: vec3;
|
|
25
|
-
isValid: boolean;
|
|
26
|
-
};
|
|
27
|
-
export type RailroadTrackPositionStructPropertyValue = {
|
|
28
|
-
root: string;
|
|
29
|
-
instanceName: string;
|
|
30
|
-
offset: number;
|
|
31
|
-
forward: number;
|
|
32
|
-
};
|
|
33
|
-
export type InventoryItemStructPropertyValue = {
|
|
34
|
-
itemReference: ObjectReference;
|
|
35
|
-
itemState?: FGDynamicStruct;
|
|
36
|
-
legacyItemStateActor?: ObjectReference;
|
|
37
|
-
};
|
|
38
|
-
export type FICFrameRangeStructPropertyValue = {
|
|
39
|
-
begin: string;
|
|
40
|
-
end: string;
|
|
41
|
-
};
|
|
42
|
-
export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | FClientIdentityInfo | DynamicStructPropertyValue | col4 | vec2 | vec3 | vec4 | string | FINNetworkTrace | FINGPUT1BufferPixel | FLBBalancerIndexing | FINLuaRuntimePersistenceState;
|
|
43
|
-
export declare const isStructProperty: (property: any) => property is StructProperty;
|
|
44
|
-
export type StructProperty = AbstractBaseProperty & {
|
|
45
|
-
type: 'StructProperty';
|
|
46
|
-
subtype: string;
|
|
47
|
-
value: GENERIC_STRUCT_PROPERTY_VALUE;
|
|
48
|
-
unk1?: number;
|
|
49
|
-
unk2?: number;
|
|
50
|
-
unk3?: number;
|
|
51
|
-
unk4?: number;
|
|
52
|
-
};
|
|
53
|
-
export declare namespace StructProperty {
|
|
54
|
-
const Parse: (reader: ContextReader, ueType: string, index: number, size: number, subtype: string) => StructProperty;
|
|
55
|
-
const ParseValue: (reader: ContextReader, subtype: string, size: number) => GENERIC_STRUCT_PROPERTY_VALUE;
|
|
56
|
-
const CalcOverhead: (property: StructProperty, subtype: string) => number;
|
|
57
|
-
const Serialize: (writer: ContextWriter, property: StructProperty) => void;
|
|
58
|
-
const SerializeValue: (writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE) => void;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=StructProperty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAI/E,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAE,6BAA6B,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GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAC3J,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,6BAA6B,CAAC;AAEhG,eAAO,MAAM,gBAAgB,aAAc,GAAG,KAAG,QAAQ,IAAI,cAAgF,CAAC;AAE9I,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG;IAChD,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,6BAA6B,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,cAAc,CAAC;IAErB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,WAAW,MAAM,KAAG,cA4C3G,CAAA;IAEM,MAAM,UAAU,WAAY,aAAa,WAAW,MAAM,QAAQ,MAAM,KAAG,6BAgIjF,CAAA;IAEM,MAAM,YAAY,aAAc,cAAc,WAAW,MAAM,KAAG,MAExE,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,cAAc,KAAG,IAU3E,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,WAAW,MAAM,SAAS,6BAA6B,KAAG,IA0I7G,CAAA;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StructProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,kFAA+E;AAC/E,wDAAqD;AACrD,oEAAiE;AACjE,oDAAiD;AAEjD,yFAAsF;AACtF,mEAAgE;AAChE,qDAAkD;AAClD,8EAA2E;AAC3E,+FAA4F;AAC5F,mHAAgH;AAChH,uFAAoF;AACpF,qGAAkG;AAClG,mEAA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C,CAAC;gBACnC,MAAM;YAGV,KAAK,oBAAoB;gBACrB,yCAAmB,CAAC,KAAK,CAAC,MAAM,EAAE,KAA4B,CAAC,CAAC;gBAChE,MAAM;YAGV,KAAK,iBAAiB,CAAC;YACvB,KAAK,UAAU;gBACX,KAAK,GAAG,KAAwB,CAAC;gBACjC,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBACrC,MAAM;YAEV,KAAK,qBAAqB;gBACtB,KAAK,GAAG,KAA4B,CAAC;gBACrC,yCAAmB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBACzC,MAAM;YAEV,KAAK,6BAA6B,CAAC;YACnC,KAAK,+BAA+B;gBAChC,6DAA6B,CAAC,KAAK,CAAC,MAAM,EAAE,KAAsC,CAAC,CAAC;gBACpF,MAAM;YAEV;gBAEI,KAAK,GAAG,KAAmC,CAAC;gBAC5C,uDAA0B,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBAChD,MAAM;QACd,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA7UgB,cAAc,8BAAd,cAAc,QA6U9B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\nimport { FClientIdentityInfo } from '../../structs/binary/FClientIdentityInfo';\nimport { FColor } from '../../structs/binary/FColor';\nimport { FLinearColor } from '../../structs/binary/FLinearColor';\nimport { GUID } from '../../structs/binary/GUID';\nimport { col4 } from '../../structs/col4';\nimport { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';\nimport { FGDynamicStruct } from '../../structs/FGDynamicStruct';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { FICFrameRange } from '../../structs/mods/FicsItCam/FICFrameRange';\nimport { FINGPUT1BufferPixel } from '../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel';\nimport { FINLuaRuntimePersistenceState } from '../../structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState';\nimport { FINNetworkTrace } from '../../structs/mods/FicsItNetworks/FINNetworkTrace';\nimport { FLBBalancerIndexing } from '../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\nimport { vec4 } from '../../structs/vec4';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport type BasicMultipleStructPropertyValue = {\n values: any;\n};\n\nexport type BasicStructPropertyValue = {\n value: any;\n};\n\nexport type BoxStructPropertyValue = {\n min: vec3;\n max: vec3;\n isValid: boolean;\n};\n\nexport type RailroadTrackPositionStructPropertyValue = {\n root: string;\n instanceName: string;\n offset: number;\n forward: number;\n};\n\nexport type InventoryItemStructPropertyValue = {\n itemReference: ObjectReference;\n itemState?: FGDynamicStruct;\n legacyItemStateActor?: ObjectReference;\n};\n\nexport type FICFrameRangeStructPropertyValue = {\n begin: string;\n end: string;\n};\n\nexport type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue |\n InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | FClientIdentityInfo | DynamicStructPropertyValue | col4 | vec2 | vec3 | vec4 | string |\n FINNetworkTrace | FINGPUT1BufferPixel | FLBBalancerIndexing | FINLuaRuntimePersistenceState;\n\nexport const isStructProperty = (property: any): property is StructProperty => !Array.isArray(property) && property.type === 'StructProperty';\n\nexport type StructProperty = AbstractBaseProperty & {\n type: 'StructProperty';\n subtype: string;\n value: GENERIC_STRUCT_PROPERTY_VALUE;\n unk1?: number;\n unk2?: number;\n unk3?: number;\n unk4?: number;\n};\n\nexport namespace StructProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, size: number, subtype: string): StructProperty => {\n\n const guidInfo = GUIDInfo.read(reader);\n\n const struct: StructProperty = {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'StructProperty',\n value: { values: [] },\n subtype\n };\n\n const unk1 = reader.readInt32();\n if (unk1 !== 0) {\n struct.unk1 = unk1;\n }\n\n const unk2 = reader.readInt32();\n if (unk2 !== 0) {\n struct.unk2 = unk2;\n }\n\n const unk3 = reader.readInt32();\n if (unk3 !== 0) {\n struct.unk3 = unk3;\n }\n\n const unk4 = reader.readInt32();\n if (unk4 !== 0) {\n struct.unk4 = unk4;\n }\n\n const before = reader.getBufferPosition();\n struct.value = ParseValue(reader, struct.subtype, size);\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== size) {\n if (size - readBytes === 4) {\n // U8, fine\n reader.skipBytes(size - readBytes);\n } else {\n throw new Error(`possibly corrupt. Read ${readBytes} for StructProperty Content of ${struct.subtype}, but ${size} were indicated.`);\n }\n }\n\n return struct;\n }\n\n export const ParseValue = (reader: ContextReader, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE => {\n\n let value: GENERIC_STRUCT_PROPERTY_VALUE;\n const start = reader.getBufferPosition();\n\n switch (subtype) {\n case 'Color':\n value = FColor.read(reader);\n break;\n\n case 'IntPoint':\n value = reader.readInt64().toString();\n break;\n\n case 'LinearColor':\n value = FLinearColor.read(reader);\n break;\n\n case 'Vector2D':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec2.Parse(reader) : vec2.ParseF(reader);\n break;\n\n case 'Vector':\n case 'Rotator':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec3.Parse(reader) : vec3.ParseF(reader);\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec4.Parse(reader) : vec4.ParseF(reader);\n break;\n\n case 'Box':\n value = ((reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? {\n min: vec3.Parse(reader),\n max: vec3.Parse(reader),\n isValid: reader.readByte() >= 1\n } : {\n min: vec3.ParseF(reader),\n max: vec3.ParseF(reader),\n isValid: reader.readByte() >= 1\n }) satisfies BoxStructPropertyValue;\n break;\n\n case 'RailroadTrackPosition':\n value = {\n root: reader.readString(),\n instanceName: reader.readString(),\n offset: reader.readFloat32(),\n forward: reader.readFloat32()\n };\n break;\n\n case 'TimerHandle':\n value = reader.readString();\n break;\n\n case 'Guid':\n value = GUID.read(reader);\n break;\n\n case 'ClientIdentityInfo':\n value = FClientIdentityInfo.read(reader);\n break;\n\n case 'InventoryItem':\n const before = reader.getBufferPosition();\n\n value = {\n itemReference: ObjectReference.read(reader)\n } satisfies InventoryItemStructPropertyValue;\n\n // inventory items have potentially an item state. but not before explicit version\n if (reader.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n value.itemState = FGDynamicStruct.Parse(reader);\n } else {\n value.legacyItemStateActor = ObjectReference.read(reader);\n }\n\n break;\n\n case 'FluidBox':\n value = {\n value: reader.readFloat32()\n };\n break;\n\n case 'SlateBrush':\n value = reader.readString();\n break;\n\n case 'DateTime':\n value = reader.readInt64().toString();\n break;\n\n // FixsitCamera mod\n case 'FICFrameRange':\n value = FICFrameRange.read(reader);\n break;\n\n // MLB mod\n case 'LBBalancerIndexing':\n value = FLBBalancerIndexing.read(reader);\n break;\n\n // FicsIt-Networks mod\n case 'FINNetworkTrace':\n case 'FIRTrace':\n value = FINNetworkTrace.read(reader);\n break;\n\n case 'FINGPUT1BufferPixel':\n value = FINGPUT1BufferPixel.read(reader);\n break;\n\n case 'FINLuaProcessorStateStorage':\n case 'FINLuaRuntimePersistenceState':\n value = FINLuaRuntimePersistenceState.read(reader, size);\n break;\n\n default:\n //TODO: use buildversion\n value = DynamicStructPropertyValue.read(reader, subtype);\n break;\n }\n\n return value;\n }\n\n export const CalcOverhead = (property: StructProperty, subtype: string): number => {\n return subtype.length + 5 + 4 + 4 + 4 + 4 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: StructProperty): void => {\n writer.writeString(property.subtype);\n GUIDInfo.write(writer, property.guidInfo);\n\n writer.writeInt32(property.unk1 ?? 0);\n writer.writeInt32(property.unk2 ?? 0);\n writer.writeInt32(property.unk3 ?? 0);\n writer.writeInt32(property.unk4 ?? 0);\n\n StructProperty.SerializeValue(writer, property.subtype, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void => {\n\n switch (subtype) {\n case 'Color':\n FColor.write(writer, value as FColor);\n break;\n\n case 'IntPoint':\n writer.writeInt64(BigInt(value as string))\n break;\n\n case 'LinearColor':\n FLinearColor.write(writer, value as FLinearColor);\n break;\n\n case 'Vector2D':\n value = value as vec2;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec2.Serialize(writer, value);\n } else {\n vec2.SerializeF(writer, value);\n }\n break;\n\n case 'Vector':\n case 'Rotator':\n value = value as vec3;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec3.Serialize(writer, value as vec3);\n } else {\n vec3.SerializeF(writer, value as vec3);\n }\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = value as vec4;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec4.Serialize(writer, value as vec4);\n } else {\n vec4.SerializeF(writer, value as vec4);\n }\n break;\n\n case 'Box':\n value = value as BoxStructPropertyValue;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec3.Serialize(writer, value.min);\n vec3.Serialize(writer, value.max);\n } else {\n vec3.SerializeF(writer, value.min);\n vec3.SerializeF(writer, value.max);\n }\n writer.writeByte(value.isValid ? 1 : 0);\n break;\n\n case 'RailroadTrackPosition':\n value = value as RailroadTrackPositionStructPropertyValue;\n writer.writeString(value.root);\n writer.writeString(value.instanceName);\n writer.writeFloat32(value.offset);\n writer.writeFloat32(value.forward);\n break;\n\n case 'TimerHandle':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'Guid':\n GUID.write(writer, value as GUID);\n break;\n\n case 'ClientIdentityInfo':\n FClientIdentityInfo.write(writer, value as FClientIdentityInfo);\n break;\n\n case 'InventoryItem':\n value = value as InventoryItemStructPropertyValue;\n ObjectReference.write(writer, value.itemReference);\n\n if (writer.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n FGDynamicStruct.Serialize(writer, value.itemState!);\n } else {\n ObjectReference.write(writer, value.legacyItemStateActor!);\n }\n break;\n\n case 'FluidBox':\n value = value as BasicStructPropertyValue;\n writer.writeFloat32(value.value);\n break;\n\n case 'SlateBrush':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'DateTime':\n value = value as string;\n writer.writeInt64(BigInt(value));\n break;\n\n // MODS\n case 'FICFrameRange':\n value = value as FICFrameRange;\n FICFrameRange.write(writer, value);\n break;\n\n // MLB mod\n case 'LBBalancerIndexing':\n FLBBalancerIndexing.write(writer, value as FLBBalancerIndexing);\n break;\n\n // FicsItNetworks mod\n case 'FINNetworkTrace':\n case 'FIRTrace':\n value = value as FINNetworkTrace;\n FINNetworkTrace.write(writer, value);\n break;\n\n case 'FINGPUT1BufferPixel':\n value = value as FINGPUT1BufferPixel;\n FINGPUT1BufferPixel.write(writer, value);\n break;\n\n case 'FINLuaProcessorStateStorage':\n case 'FINLuaRuntimePersistenceState':\n FINLuaRuntimePersistenceState.write(writer, value as FINLuaRuntimePersistenceState);\n break;\n\n default:\n //TODO: use buildversion\n value = value as DynamicStructPropertyValue;\n DynamicStructPropertyValue.write(writer, value);\n break;\n }\n }\n}\n\n\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ContextReader } from '../../../context/context-reader';
|
|
2
|
-
import { ContextWriter } from '../../../context/context-writer';
|
|
3
|
-
export type GUID = [number, number, number, number];
|
|
4
|
-
export declare namespace GUID {
|
|
5
|
-
const read: (reader: ContextReader) => GUID;
|
|
6
|
-
const write: (writer: ContextWriter, guid: GUID) => void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=GUID.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAKhE,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,yBAAiB,IAAI,CAAC;IACX,MAAM,IAAI,WAAY,aAAa,KAAG,IAO5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,QAAQ,IAAI,KAAG,IAKzD,CAAA;CACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GUID = void 0;
|
|
4
|
-
var GUID;
|
|
5
|
-
(function (GUID) {
|
|
6
|
-
GUID.read = (reader) => {
|
|
7
|
-
return [
|
|
8
|
-
reader.readUint32(),
|
|
9
|
-
reader.readUint32(),
|
|
10
|
-
reader.readUint32(),
|
|
11
|
-
reader.readUint32(),
|
|
12
|
-
];
|
|
13
|
-
};
|
|
14
|
-
GUID.write = (writer, guid) => {
|
|
15
|
-
writer.writeUint32(guid[0]);
|
|
16
|
-
writer.writeUint32(guid[1]);
|
|
17
|
-
writer.writeUint32(guid[2]);
|
|
18
|
-
writer.writeUint32(guid[3]);
|
|
19
|
-
};
|
|
20
|
-
})(GUID || (exports.GUID = GUID = {}));
|
|
21
|
-
;
|
|
22
|
-
//# sourceMappingURL=GUID.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;AAQA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACJ,SAAI,GAAG,CAAC,MAAqB,EAAQ,EAAE;QAChD,OAAO;YACH,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;SACtB,CAAC;IACN,CAAC,CAAA;IAEY,UAAK,GAAG,CAAC,MAAqB,EAAE,IAAU,EAAQ,EAAE;QAC7D,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAA;AACL,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n/**\n * UE Guid structure, 4 uints.\n */\nexport type GUID = [number, number, number, number];\n\nexport namespace GUID {\n export const read = (reader: ContextReader): GUID => {\n return [\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n ];\n }\n\n export const write = (writer: ContextWriter, guid: GUID): void => {\n writer.writeUint32(guid[0]);\n writer.writeUint32(guid[1]);\n writer.writeUint32(guid[2]);\n writer.writeUint32(guid[3]);\n }\n};"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WritableStream } from "stream/web";
|
|
2
|
-
import { SatisfactorySave } from '../../satisfactory/save/satisfactory-save';
|
|
3
|
-
export declare class SaveStreamJsonStringifier {
|
|
4
|
-
static StreamStringifySave(save: SatisfactorySave, output: WritableStream<string>): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=save-stream-json-stringifier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"save-stream-json-stringifier.d.ts","sourceRoot":"","sources":["../../../../src/parser/stream/reworked/save-stream-json-stringifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAO7E,qBAAa,yBAAyB;WACjB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAqC9G"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SaveStreamJsonStringifier = void 0;
|
|
4
|
-
const save_stream_writer_class_1 = require("./save-stream-writer.class");
|
|
5
|
-
class SaveStreamJsonStringifier {
|
|
6
|
-
static async StreamStringifySave(save, output) {
|
|
7
|
-
const writer = new save_stream_writer_class_1.SaveStreamWriter(output.getWriter());
|
|
8
|
-
await writer.beginSave();
|
|
9
|
-
await writer.writeHeader(save.header);
|
|
10
|
-
if (save.compressionInfo) {
|
|
11
|
-
await writer.writeCompressionInfo(save.compressionInfo);
|
|
12
|
-
}
|
|
13
|
-
await writer.writeSaveBodyValidation(save.saveBodyValidation);
|
|
14
|
-
await writer.openLevels();
|
|
15
|
-
const objectBatchSize = 10000;
|
|
16
|
-
for (const level of Object.values(save.levels)) {
|
|
17
|
-
await writer.openLevel(level.name);
|
|
18
|
-
let i = 0;
|
|
19
|
-
for (i; i < level.objects.length; i += objectBatchSize) {
|
|
20
|
-
await writer.writeObjects(...level.objects.slice(i, Math.min(i + objectBatchSize, level.objects.length)));
|
|
21
|
-
}
|
|
22
|
-
await writer.switchInLevelToCollectables();
|
|
23
|
-
i = 0;
|
|
24
|
-
for (i; i < level.collectables.length; i += objectBatchSize) {
|
|
25
|
-
await writer.writeCollectables(...level.collectables.slice(i, Math.min(i + objectBatchSize, level.collectables.length)));
|
|
26
|
-
}
|
|
27
|
-
await writer.endLevel();
|
|
28
|
-
}
|
|
29
|
-
await writer.endLevels();
|
|
30
|
-
await writer.endSave();
|
|
31
|
-
await writer.close();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.SaveStreamJsonStringifier = SaveStreamJsonStringifier;
|
|
35
|
-
//# sourceMappingURL=save-stream-json-stringifier.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"save-stream-json-stringifier.js","sourceRoot":"","sources":["../../../../src/parser/stream/reworked/save-stream-json-stringifier.ts"],"names":[],"mappings":";;;AAEA,yEAA8D;AAM9D,MAAa,yBAAyB;IAC9B,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAsB,EAAE,MAA8B;QAC7F,MAAM,MAAM,GAAG,IAAI,2CAAgB,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAExD,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;QACzB,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,MAAM,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzD,CAAC;QAGD,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAG9D,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;QAC1B,MAAM,eAAe,GAAG,KAAK,CAAC;QAC9B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAChD,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEnC,IAAI,CAAC,GAAG,CAAC,CAAC;YACV,KAAK,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,eAAe,EAAE,CAAC;gBACxD,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3G,CAAC;YAED,MAAM,MAAM,CAAC,2BAA2B,EAAE,CAAC;YAE3C,CAAC,GAAG,CAAC,CAAC;YACN,KAAK,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,IAAI,eAAe,EAAE,CAAC;gBAC7D,MAAM,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC1H,CAAC;YAED,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;QACzB,CAAC;QACD,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;QACzB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACvB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CAED;AAtCD,8DAsCC","sourcesContent":["import { WritableStream } from \"stream/web\";\nimport { SatisfactorySave } from '../../satisfactory/save/satisfactory-save';\nimport { SaveStreamWriter } from \"./save-stream-writer.class\";\n\n/**\n * @deprecated use ReadableStreamParser instead.\n * simply streams a whole satisfactorySave without backpressure to Json.\n */\nexport class SaveStreamJsonStringifier {\n\tpublic static async StreamStringifySave(save: SatisfactorySave, output: WritableStream<string>): Promise<void> {\n\t\tconst writer = new SaveStreamWriter(output.getWriter());\n\n\t\tawait writer.beginSave();\n\t\tawait writer.writeHeader(save.header);\n\t\tif (save.compressionInfo) {\n\t\t\tawait writer.writeCompressionInfo(save.compressionInfo);\n\t\t}\n\n\t\t// save body validation\n\t\tawait writer.writeSaveBodyValidation(save.saveBodyValidation);\n\n\t\t// stream level objects in batches.\n\t\tawait writer.openLevels();\n\t\tconst objectBatchSize = 10000;\n\t\tfor (const level of Object.values(save.levels)) {\n\t\t\tawait writer.openLevel(level.name);\n\n\t\t\tlet i = 0;\n\t\t\tfor (i; i < level.objects.length; i += objectBatchSize) {\n\t\t\t\tawait writer.writeObjects(...level.objects.slice(i, Math.min(i + objectBatchSize, level.objects.length)));\n\t\t\t}\n\n\t\t\tawait writer.switchInLevelToCollectables();\n\n\t\t\ti = 0;\n\t\t\tfor (i; i < level.collectables.length; i += objectBatchSize) {\n\t\t\t\tawait writer.writeCollectables(...level.collectables.slice(i, Math.min(i + objectBatchSize, level.collectables.length)));\n\t\t\t}\n\n\t\t\tawait writer.endLevel();\n\t\t}\n\t\tawait writer.endLevels();\n\t\tawait writer.endSave();\n\t\tawait writer.close();\n\t}\n\n}"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { WritableStreamDefaultWriter } from "stream/web";
|
|
2
|
-
import { SatisfactorySaveHeader } from '../../satisfactory/save/satisfactory-save-header';
|
|
3
|
-
import { ChunkCompressionInfo } from "../../satisfactory/save/save-body-chunks";
|
|
4
|
-
import { SaveObject } from "../../satisfactory/types/objects/SaveObject";
|
|
5
|
-
import { ObjectReference } from '../../satisfactory/types/structs/ObjectReference';
|
|
6
|
-
import { SaveBodyValidation } from "../../satisfactory/types/structs/SaveBodyValidation";
|
|
7
|
-
export declare class SaveStreamWriter {
|
|
8
|
-
private writer;
|
|
9
|
-
private mode;
|
|
10
|
-
private tracker;
|
|
11
|
-
private formatTracker;
|
|
12
|
-
constructor(writer: WritableStreamDefaultWriter<string>);
|
|
13
|
-
private createExecutionFunction;
|
|
14
|
-
beginSave: () => Promise<void>;
|
|
15
|
-
writeHeader: (header: SatisfactorySaveHeader) => Promise<void>;
|
|
16
|
-
writeCompressionInfo: (compressionInfo: ChunkCompressionInfo) => Promise<void>;
|
|
17
|
-
writeSaveBodyValidation: (saveBodyValidation: SaveBodyValidation) => Promise<void>;
|
|
18
|
-
openLevels: () => Promise<void>;
|
|
19
|
-
openLevel: (levelName: string) => Promise<void>;
|
|
20
|
-
writeObjects: (...objects: SaveObject[]) => Promise<void>;
|
|
21
|
-
switchInLevelToCollectables: (...objects: SaveObject[]) => Promise<void>;
|
|
22
|
-
writeCollectables: (...collectables: ObjectReference[]) => Promise<void>;
|
|
23
|
-
endLevel: () => Promise<void>;
|
|
24
|
-
endLevels: () => Promise<void>;
|
|
25
|
-
endSave: () => Promise<void>;
|
|
26
|
-
close(): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=save-stream-writer.class.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"save-stream-writer.class.d.ts","sourceRoot":"","sources":["../../../../src/parser/stream/reworked/save-stream-writer.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAS,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAwBhG,qBAAa,gBAAgB;IAahB,OAAO,CAAC,MAAM;IAX1B,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,OAAO,CAAmB;IAGlC,OAAO,CAAC,aAAa,CAKnB;gBAEkB,MAAM,EAAE,2BAA2B,CAAC,MAAM,CAAC;IAQ/D,OAAO,CAAC,uBAAuB,CAI9B;IAEM,SAAS,QAAO,OAAO,CAAC,IAAI,CAAC,CAMlC;IAEK,WAAW,WAAY,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAAC,CAMlE;IAEK,oBAAoB,oBAAqB,oBAAoB,KAAG,OAAO,CAAC,IAAI,CAAC,CAMlF;IAEK,uBAAuB,uBAAwB,kBAAkB,KAAG,OAAO,CAAC,IAAI,CAAC,CAMtF;IAGK,UAAU,QAAO,OAAO,CAAC,IAAI,CAAC,CAMnC;IAEK,SAAS,cAAe,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAUnD;IAEK,YAAY,eAAgB,UAAU,EAAE,KAAG,OAAO,CAAC,IAAI,CAAC,CAW7D;IAEK,2BAA2B,eAAgB,UAAU,EAAE,KAAG,OAAO,CAAC,IAAI,CAAC,CAM5E;IAEK,iBAAiB,oBAAqB,eAAe,EAAE,KAAG,OAAO,CAAC,IAAI,CAAC,CAW5E;IAEK,QAAQ,QAAO,OAAO,CAAC,IAAI,CAAC,CAMjC;IAEK,SAAS,QAAO,OAAO,CAAC,IAAI,CAAC,CAMlC;IAEK,OAAO,QAAO,OAAO,CAAC,IAAI,CAAC,CAMhC;IAEW,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGnC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SaveStreamWriter = void 0;
|
|
4
|
-
class ModeStateTracker {
|
|
5
|
-
constructor(mode) {
|
|
6
|
-
this.mode = mode;
|
|
7
|
-
}
|
|
8
|
-
checkIsComingFrom(...allowedPredecessors) {
|
|
9
|
-
if (!allowedPredecessors.includes(this.mode)) {
|
|
10
|
-
throw new Error(`Wrong order of commands. mode is ${this.mode}. but only ${allowedPredecessors.join(', ')} is/are allowed.`);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
advance(newMode) {
|
|
14
|
-
this.mode = newMode;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
class SaveStreamWriter {
|
|
18
|
-
constructor(writer) {
|
|
19
|
-
this.writer = writer;
|
|
20
|
-
this.createExecutionFunction = async (allowedInputModes, fn, targetMode) => {
|
|
21
|
-
this.tracker.checkIsComingFrom(...allowedInputModes);
|
|
22
|
-
await fn();
|
|
23
|
-
this.tracker.advance(targetMode);
|
|
24
|
-
};
|
|
25
|
-
this.beginSave = () => this.createExecutionFunction(['BEFORE_START'], async () => {
|
|
26
|
-
await this.writer.write('{');
|
|
27
|
-
}, 'OPENED_SAVE');
|
|
28
|
-
this.writeHeader = (header) => this.createExecutionFunction(['OPENED_SAVE'], async () => {
|
|
29
|
-
await this.writer.write(`"header": ${JSON.stringify(header)}`);
|
|
30
|
-
}, 'FINISHED_HEADER');
|
|
31
|
-
this.writeCompressionInfo = (compressionInfo) => this.createExecutionFunction(['FINISHED_HEADER'], async () => {
|
|
32
|
-
await this.writer.write(`, "compressionInfo": ${JSON.stringify(compressionInfo)}`);
|
|
33
|
-
}, 'WROTE_COMPRESSION_INFO');
|
|
34
|
-
this.writeSaveBodyValidation = (saveBodyValidation) => this.createExecutionFunction(['WROTE_COMPRESSION_INFO'], async () => {
|
|
35
|
-
await this.writer.write(`, "saveBodyValidation": ${JSON.stringify(saveBodyValidation)}`);
|
|
36
|
-
}, 'WROTE_SAVE_BODY_VALIDATION');
|
|
37
|
-
this.openLevels = () => this.createExecutionFunction(['WROTE_SAVE_BODY_VALIDATION'], async () => {
|
|
38
|
-
await this.writer.write(`, "levels": [`);
|
|
39
|
-
}, 'OPENED_LEVELS');
|
|
40
|
-
this.openLevel = (levelName) => this.createExecutionFunction(['OPENED_LEVELS', 'FINISHED_LEVEL'], async () => {
|
|
41
|
-
this.formatTracker.levels.push({
|
|
42
|
-
objectCount: 0, collectablesCount: 0
|
|
43
|
-
});
|
|
44
|
-
const prefix = this.formatTracker.levels.length > 1 ? ', ' : '';
|
|
45
|
-
await this.writer.write(`${prefix}{"name": "${levelName}", "objects": [`);
|
|
46
|
-
}, 'OPENED_LEVEL');
|
|
47
|
-
this.writeObjects = (...objects) => this.createExecutionFunction(['OPENED_LEVEL', 'WROTE_OBJECT'], async () => {
|
|
48
|
-
const stringified = objects.map(saveObj => JSON.stringify(saveObj));
|
|
49
|
-
for (const obj of stringified) {
|
|
50
|
-
await this.writer.write(`${this.formatTracker.levels.at(-1).objectCount >= 1 ? ', ' : ''}${obj}`);
|
|
51
|
-
this.formatTracker.levels.at(-1).objectCount++;
|
|
52
|
-
}
|
|
53
|
-
}, 'WROTE_OBJECT');
|
|
54
|
-
this.switchInLevelToCollectables = (...objects) => this.createExecutionFunction(['OPENED_LEVEL', 'WROTE_OBJECT'], async () => {
|
|
55
|
-
await this.writer.write(`], "collectables": [`);
|
|
56
|
-
}, 'SWITCH_TO_COLLECTABLES');
|
|
57
|
-
this.writeCollectables = (...collectables) => this.createExecutionFunction(['SWITCH_TO_COLLECTABLES', 'WROTE_COLLECTABLE'], async () => {
|
|
58
|
-
const stringified = collectables.map(coll => JSON.stringify(coll));
|
|
59
|
-
for (const obj of stringified) {
|
|
60
|
-
await this.writer.write(`${this.formatTracker.levels.at(-1).collectablesCount >= 1 ? ', ' : ''}${obj}`);
|
|
61
|
-
this.formatTracker.levels.at(-1).collectablesCount++;
|
|
62
|
-
}
|
|
63
|
-
}, 'WROTE_COLLECTABLE');
|
|
64
|
-
this.endLevel = () => this.createExecutionFunction(['SWITCH_TO_COLLECTABLES', 'WROTE_COLLECTABLE'], async () => {
|
|
65
|
-
await this.writer.write(`]}`);
|
|
66
|
-
}, 'FINISHED_LEVEL');
|
|
67
|
-
this.endLevels = () => this.createExecutionFunction(['OPENED_LEVELS', 'FINISHED_LEVEL'], async () => {
|
|
68
|
-
await this.writer.write(`]`);
|
|
69
|
-
}, 'FINISHED_LEVELS');
|
|
70
|
-
this.endSave = () => this.createExecutionFunction(['FINISHED_LEVELS'], async () => {
|
|
71
|
-
await this.writer.write('}');
|
|
72
|
-
}, 'FINISHED_SAVE');
|
|
73
|
-
this.mode = 'BEFORE_START';
|
|
74
|
-
this.tracker = new ModeStateTracker(this.mode);
|
|
75
|
-
this.formatTracker = {
|
|
76
|
-
levels: []
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
async close() {
|
|
80
|
-
return this.writer.close();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.SaveStreamWriter = SaveStreamWriter;
|
|
84
|
-
//# sourceMappingURL=save-stream-writer.class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"save-stream-writer.class.js","sourceRoot":"","sources":["../../../../src/parser/stream/reworked/save-stream-writer.class.ts"],"names":[],"mappings":";;;AAUA,MAAM,gBAAgB;IACrB,YAAmB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;IAE7B,CAAC;IAEM,iBAAiB,CAAC,GAAG,mBAA2B;QACtD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9C,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,CAAC,IAAI,cAAc,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC9H,CAAC;IACF,CAAC;IAEM,OAAO,CAAC,OAAa;QAC3B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;IACrB,CAAC;CACD;AAKD,MAAa,gBAAgB;IAa5B,YAAoB,MAA2C;QAA3C,WAAM,GAAN,MAAM,CAAqC;QAQvD,4BAAuB,GAAG,KAAK,EAAE,iBAAyB,EAAE,EAA8B,EAAE,UAAgB,EAAiB,EAAE;YACtI,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC,CAAC;YACrD,MAAM,EAAE,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC,CAAA;QAEM,cAAS,GAAG,GAAkB,EAAE,CAAC,IAAI,CA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K,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC,EACD,iBAAiB,CACjB,CAAC;QAEK,YAAO,GAAG,GAAkB,EAAE,CAAC,IAAI,CAAC,uBAAuB,CACjE,CAAC,iBAAiB,CAAC,EACnB,KAAK,IAAI,EAAE;YACV,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC,EACD,eAAe,CACf,CAAC;QA1HD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG;YACpB,MAAM,EAAE,EAAE;SACV,CAAC;IACH,CAAC;IAuHM,KAAK,CAAC,KAAK;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;CACD;AA7ID,4CA6IC","sourcesContent":["import { WritableStreamDefaultWriter } from \"stream/web\";\nimport { SatisfactorySaveHeader } from '../../satisfactory/save/satisfactory-save-header';\nimport { ChunkCompressionInfo } from \"../../satisfactory/save/save-body-chunks\";\nimport { SaveObject } from \"../../satisfactory/types/objects/SaveObject\";\nimport { ObjectReference } from '../../satisfactory/types/structs/ObjectReference';\nimport { Grids, SaveBodyValidation } from \"../../satisfactory/types/structs/SaveBodyValidation\";\n\ntype Mode = 'BEFORE_START' | 'OPENED_SAVE' | 'FINISHED_HEADER' | 'OPENED_LEVELS' | 'FINISHED_LEVELS' | 'OPENED_LEVEL' | 'FINISHED_LEVEL' | 'FINISHED_SAVE'\n\t| 'WROTE_COMPRESSION_INFO' | 'WROTE_OBJECT' | 'SWITCH_TO_COLLECTABLES' | 'WROTE_COLLECTABLE' | 'WROTE_SAVE_BODY_VALIDATION';\n\nclass ModeStateTracker {\n\tconstructor(public mode: Mode) {\n\n\t}\n\n\tpublic checkIsComingFrom(...allowedPredecessors: Mode[]) {\n\t\tif (!allowedPredecessors.includes(this.mode)) {\n\t\t\tthrow new Error(`Wrong order of commands. mode is ${this.mode}. but only ${allowedPredecessors.join(', ')} is/are allowed.`);\n\t\t}\n\t}\n\n\tpublic advance(newMode: Mode) {\n\t\tthis.mode = newMode;\n\t}\n}\n\n/**\n * @deprecated use ReadableStreamParser instead.\n */\nexport class SaveStreamWriter {\n\n\tprivate mode: Mode;\n\tprivate tracker: ModeStateTracker;\n\n\t// we need some flat structure to keep track of number of elements.\n\tprivate formatTracker: {\n\t\tlevels: {\n\t\t\tobjectCount: number;\n\t\t\tcollectablesCount: number;\n\t\t}[]\n\t};\n\n\tconstructor(private writer: WritableStreamDefaultWriter<string>) {\n\t\tthis.mode = 'BEFORE_START';\n\t\tthis.tracker = new ModeStateTracker(this.mode);\n\t\tthis.formatTracker = {\n\t\t\tlevels: []\n\t\t};\n\t}\n\n\tprivate createExecutionFunction = async (allowedInputModes: Mode[], fn: () => Promise<void> | void, targetMode: Mode): Promise<void> => {\n\t\tthis.tracker.checkIsComingFrom(...allowedInputModes);\n\t\tawait fn();\n\t\tthis.tracker.advance(targetMode);\n\t}\n\n\tpublic beginSave = (): Promise<void> => this.createExecutionFunction(\n\t\t['BEFORE_START'],\n\t\tasync () => {\n\t\t\tawait this.writer.write('{');\n\t\t},\n\t\t'OPENED_SAVE'\n\t);\n\n\tpublic writeHeader = (header: SatisfactorySaveHeader): Promise<void> => this.createExecutionFunction(\n\t\t['OPENED_SAVE'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`\"header\": ${JSON.stringify(header)}`);\n\t\t},\n\t\t'FINISHED_HEADER'\n\t);\n\n\tpublic writeCompressionInfo = (compressionInfo: ChunkCompressionInfo): Promise<void> => this.createExecutionFunction(\n\t\t['FINISHED_HEADER'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`, \"compressionInfo\": ${JSON.stringify(compressionInfo)}`);\n\t\t},\n\t\t'WROTE_COMPRESSION_INFO'\n\t);\n\n\tpublic writeSaveBodyValidation = (saveBodyValidation: SaveBodyValidation): Promise<void> => this.createExecutionFunction(\n\t\t['WROTE_COMPRESSION_INFO'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`, \"saveBodyValidation\": ${JSON.stringify(saveBodyValidation)}`);\n\t\t},\n\t\t'WROTE_SAVE_BODY_VALIDATION'\n\t);\n\n\n\tpublic openLevels = (): Promise<void> => this.createExecutionFunction(\n\t\t['WROTE_SAVE_BODY_VALIDATION'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`, \"levels\": [`);\n\t\t},\n\t\t'OPENED_LEVELS'\n\t);\n\n\tpublic openLevel = (levelName: string): Promise<void> => this.createExecutionFunction(\n\t\t['OPENED_LEVELS', 'FINISHED_LEVEL'],\n\t\tasync () => {\n\t\t\tthis.formatTracker.levels.push({\n\t\t\t\tobjectCount: 0, collectablesCount: 0\n\t\t\t});\n\t\t\tconst prefix = this.formatTracker.levels.length > 1 ? ', ' : '';\n\t\t\tawait this.writer.write(`${prefix}{\"name\": \"${levelName}\", \"objects\": [`);\n\t\t},\n\t\t'OPENED_LEVEL'\n\t);\n\n\tpublic writeObjects = (...objects: SaveObject[]): Promise<void> => this.createExecutionFunction(\n\t\t['OPENED_LEVEL', 'WROTE_OBJECT'],\n\t\tasync () => {\n\t\t\tconst stringified = objects.map(saveObj => JSON.stringify(saveObj));\n\n\t\t\tfor (const obj of stringified) {\n\t\t\t\tawait this.writer.write(`${this.formatTracker.levels.at(-1)!.objectCount >= 1 ? ', ' : ''}${obj}`);\n\t\t\t\tthis.formatTracker.levels.at(-1)!.objectCount++;\n\t\t\t}\n\t\t},\n\t\t'WROTE_OBJECT'\n\t);\n\n\tpublic switchInLevelToCollectables = (...objects: SaveObject[]): Promise<void> => this.createExecutionFunction(\n\t\t['OPENED_LEVEL', 'WROTE_OBJECT'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`], \"collectables\": [`);\n\t\t},\n\t\t'SWITCH_TO_COLLECTABLES'\n\t);\n\n\tpublic writeCollectables = (...collectables: ObjectReference[]): Promise<void> => this.createExecutionFunction(\n\t\t['SWITCH_TO_COLLECTABLES', 'WROTE_COLLECTABLE'],\n\t\tasync () => {\n\t\t\tconst stringified = collectables.map(coll => JSON.stringify(coll));\n\n\t\t\tfor (const obj of stringified) {\n\t\t\t\tawait this.writer.write(`${this.formatTracker.levels.at(-1)!.collectablesCount >= 1 ? ', ' : ''}${obj}`);\n\t\t\t\tthis.formatTracker.levels.at(-1)!.collectablesCount++;\n\t\t\t}\n\t\t},\n\t\t'WROTE_COLLECTABLE'\n\t);\n\n\tpublic endLevel = (): Promise<void> => this.createExecutionFunction(\n\t\t['SWITCH_TO_COLLECTABLES', 'WROTE_COLLECTABLE'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`]}`);\n\t\t},\n\t\t'FINISHED_LEVEL'\n\t);\n\n\tpublic endLevels = (): Promise<void> => this.createExecutionFunction(\n\t\t['OPENED_LEVELS', 'FINISHED_LEVEL'],\n\t\tasync () => {\n\t\t\tawait this.writer.write(`]`);\n\t\t},\n\t\t'FINISHED_LEVELS'\n\t);\n\n\tpublic endSave = (): Promise<void> => this.createExecutionFunction(\n\t\t['FINISHED_LEVELS'],\n\t\tasync () => {\n\t\t\tawait this.writer.write('}');\n\t\t},\n\t\t'FINISHED_SAVE'\n\t);\n\n\tpublic async close(): Promise<void> {\n\t\treturn this.writer.close();\n\t}\n}"]}
|