@etothepii/satisfactory-file-parser 3.3.0 → 4.0.0
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/.vscode/settings.json +6 -0
- package/CHANGELOG.md +35 -4
- package/GUIDE.md +11 -7
- package/README.md +8 -6
- package/build/index.d.ts +112 -101
- package/build/index.d.ts.map +1 -1
- package/build/index.js +43 -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 +36 -20
- 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/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 +12 -7
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js +37 -34
- 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} +69 -82
- 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/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.d.ts +22 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.js +40 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState.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 +90 -50
- 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/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BlueprintConfigReader.html +4 -4
- package/docs/classes/BlueprintReader.html +4 -4
- package/docs/classes/CompressionLibraryError.html +27 -6
- package/docs/classes/ContextReader.html +4 -4
- package/docs/classes/ContextWriter.html +4 -4
- package/docs/classes/CorruptBlueprintError.html +27 -6
- package/docs/classes/CorruptSaveError.html +27 -6
- package/docs/classes/Parser.html +6 -6
- package/docs/classes/ParserError.html +27 -6
- package/docs/classes/ReadableStreamParser.html +2 -2
- package/docs/classes/SatisfactorySave.html +2 -2
- package/docs/classes/SaveComponent.html +2 -2
- package/docs/classes/SaveEntity.html +2 -2
- package/docs/classes/SaveObject.html +2 -2
- package/docs/classes/SaveReader.html +4 -4
- package/docs/classes/SaveStreamJsonStringifier.html +2 -2
- package/docs/classes/SaveStreamWriter.html +2 -2
- package/docs/classes/SaveWriter.html +4 -4
- package/docs/classes/TimeoutError.html +27 -6
- package/docs/classes/UnimplementedError.html +27 -6
- package/docs/classes/UnsupportedVersionError.html +27 -6
- package/docs/enums/Alignment.html +2 -2
- package/docs/enums/BlueprintConfigVersion.html +2 -2
- package/docs/enums/BlueprintHeaderVersion.html +2 -2
- package/docs/enums/CompressionAlgorithmCode.html +2 -2
- package/docs/enums/FactoryGameCustomVersion.html +2 -2
- package/docs/enums/RuntimeBuildableInstanceDataVersion.html +2 -2
- package/docs/enums/SaveCustomVersion.html +10 -10
- package/docs/enums/SaveHeaderType.html +2 -2
- package/docs/functions/AbstractBaseProperty.Create.html +1 -1
- package/docs/functions/ArrayProperty.CalcOverhead.html +1 -1
- package/docs/functions/ArrayProperty.Parse.html +1 -1
- package/docs/functions/ArrayProperty.Serialize.html +1 -1
- package/docs/functions/BlueprintConfig.Parse.html +1 -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/BoolArrayProperty.Parse.html +1 -1
- package/docs/functions/BoolArrayProperty.Serialize.html +1 -1
- package/docs/functions/BoolProperty.CalcOverhead.html +1 -1
- package/docs/functions/BoolProperty.Parse.html +1 -1
- package/docs/functions/BoolProperty.ReadValue.html +1 -1
- package/docs/functions/BoolProperty.Serialize.html +1 -1
- package/docs/functions/BoolProperty.SerializeValue.html +1 -1
- package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -1
- package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -1
- package/docs/functions/BuildableTypeInstance.Parse.html +1 -1
- package/docs/functions/BuildableTypeInstance.Serialize.html +1 -1
- package/docs/functions/ByteArrayProperty.Parse.html +1 -1
- package/docs/functions/ByteArrayProperty.Serialize.html +1 -1
- package/docs/functions/ByteProperty.CalcOverhead.html +1 -1
- package/docs/functions/ByteProperty.Parse.html +1 -1
- package/docs/functions/ByteProperty.ReadValue.html +1 -1
- package/docs/functions/ByteProperty.Serialize.html +1 -1
- package/docs/functions/ByteProperty.SerializeValue.html +1 -1
- package/docs/functions/CircuitSpecialProperties.Parse.html +1 -1
- package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -1
- package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -1
- package/docs/functions/DoubleArrayProperty.Parse.html +1 -1
- package/docs/functions/DoubleArrayProperty.Serialize.html +1 -1
- package/docs/functions/DoubleProperty.CalcOverhead.html +1 -1
- package/docs/functions/DoubleProperty.Parse.html +1 -1
- package/docs/functions/DoubleProperty.ReadValue.html +1 -1
- package/docs/functions/DoubleProperty.Serialize.html +1 -1
- package/docs/functions/DoubleProperty.SerializeValue.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
- package/docs/functions/EmptySpecialProperties.Parse.html +1 -1
- package/docs/functions/EmptySpecialProperties.Serialize.html +1 -1
- package/docs/functions/EnumArrayProperty.Parse.html +1 -1
- package/docs/functions/EnumArrayProperty.Serialize.html +1 -1
- package/docs/functions/EnumProperty.CalcOverhead.html +1 -1
- package/docs/functions/EnumProperty.Parse.html +1 -1
- package/docs/functions/EnumProperty.ReadValue.html +1 -1
- package/docs/functions/EnumProperty.Serialize.html +1 -1
- package/docs/functions/EnumProperty.SerializeValue.html +1 -1
- package/docs/functions/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/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/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/FloatArrayProperty.Parse.html +1 -1
- package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.CalcOverhead.html +1 -1
- package/docs/functions/FloatProperty.Parse.html +1 -1
- package/docs/functions/FloatProperty.ReadValue.html +1 -1
- package/docs/functions/FloatProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.SerializeValue.html +1 -1
- package/docs/functions/GUID.read.html +1 -1
- package/docs/functions/GUID.write.html +1 -1
- package/docs/functions/GUIDInfo.read.html +1 -1
- package/docs/functions/GUIDInfo.write.html +1 -1
- package/docs/functions/Int32ArrayProperty.Parse.html +1 -1
- package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int32Property.CalcOverhead.html +1 -1
- package/docs/functions/Int32Property.Parse.html +1 -1
- package/docs/functions/Int32Property.ReadValue.html +1 -1
- package/docs/functions/Int32Property.Serialize.html +1 -1
- package/docs/functions/Int32Property.SerializeValue.html +1 -1
- package/docs/functions/Int32SetProperty.Parse.html +1 -1
- package/docs/functions/Int32SetProperty.Serialize.html +1 -1
- package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
- package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int64Property.CalcOverhead.html +1 -1
- package/docs/functions/Int64Property.Parse.html +1 -1
- package/docs/functions/Int64Property.ReadValue.html +1 -1
- package/docs/functions/Int64Property.Serialize.html +1 -1
- package/docs/functions/Int64Property.SerializeValue.html +1 -1
- package/docs/functions/Int8Property.CalcOverhead.html +1 -1
- package/docs/functions/Int8Property.Parse.html +1 -1
- package/docs/functions/Int8Property.ReadValue.html +1 -1
- package/docs/functions/Int8Property.Serialize.html +1 -1
- package/docs/functions/Int8Property.SerializeValue.html +1 -1
- package/docs/functions/Level.ReadAllObjectContents.html +1 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
- package/docs/functions/Level.ReadLevel.html +1 -1
- package/docs/functions/Level.ReadNObjectContents.html +1 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeLevel.html +1 -1
- package/docs/functions/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.CalcOverhead.html +1 -1
- package/docs/functions/MapProperty.Parse.html +1 -1
- package/docs/functions/MapProperty.Serialize.html +1 -1
- package/docs/functions/ObjectArrayProperty.Parse.html +1 -1
- package/docs/functions/ObjectArrayProperty.Serialize.html +1 -1
- package/docs/functions/ObjectProperty.CalcOverhead.html +1 -1
- package/docs/functions/ObjectProperty.Parse.html +1 -1
- package/docs/functions/ObjectProperty.ReadValue.html +1 -1
- package/docs/functions/ObjectProperty.Serialize.html +1 -1
- package/docs/functions/ObjectProperty.SerializeValue.html +1 -1
- package/docs/functions/ObjectReference.IsEqual.html +1 -1
- package/docs/functions/ObjectReference.read.html +1 -1
- package/docs/functions/ObjectReference.write.html +1 -1
- package/docs/functions/ObjectSetProperty.Parse.html +1 -1
- package/docs/functions/ObjectSetProperty.Serialize.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Parse.html +1 -1
- package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -1
- package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -1
- package/docs/functions/PropertiesList.ParseList.html +1 -1
- package/docs/functions/PropertiesList.ParseSingleProperty.html +1 -1
- package/docs/functions/PropertiesList.SerializeList.html +1 -1
- package/docs/functions/PropertiesList.SerializeSingleProperty.html +1 -1
- package/docs/functions/SatisfactorySaveHeader.Parse.html +1 -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.CalcOverhead.html +1 -1
- package/docs/functions/SetProperty.Parse.html +1 -1
- package/docs/functions/SetProperty.Serialize.html +1 -1
- package/docs/functions/SoftObjectArrayProperty.Parse.html +1 -1
- package/docs/functions/SoftObjectArrayProperty.Serialize.html +1 -1
- package/docs/functions/SoftObjectProperty.CalcOverhead.html +1 -0
- package/docs/functions/SoftObjectProperty.Parse.html +1 -0
- package/docs/functions/SoftObjectProperty.ReadValue.html +1 -0
- package/docs/functions/SoftObjectProperty.Serialize.html +1 -0
- package/docs/functions/SoftObjectProperty.SerializeValue.html +1 -0
- package/docs/functions/SoftObjectReference.read.html +1 -1
- package/docs/functions/SoftObjectReference.write.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -1
- package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/StrArrayProperty.Parse.html +1 -1
- package/docs/functions/StrArrayProperty.Serialize.html +1 -1
- package/docs/functions/StrProperty.CalcOverhead.html +1 -1
- package/docs/functions/StrProperty.Parse.html +1 -1
- package/docs/functions/StrProperty.ReadValue.html +1 -1
- package/docs/functions/StrProperty.Serialize.html +1 -1
- package/docs/functions/StrProperty.SerializeValue.html +1 -1
- package/docs/functions/StrSetProperty.Parse.html +1 -1
- package/docs/functions/StrSetProperty.Serialize.html +1 -1
- package/docs/functions/StructArrayProperty.Parse.html +1 -1
- package/docs/functions/StructArrayProperty.Serialize.html +1 -1
- package/docs/functions/StructProperty.CalcOverhead.html +1 -1
- package/docs/functions/StructProperty.Parse.html +1 -1
- package/docs/functions/StructProperty.ParseValue.html +1 -1
- package/docs/functions/StructProperty.Serialize.html +1 -1
- package/docs/functions/StructProperty.SerializeValue.html +1 -1
- package/docs/functions/StructSetProperty.Parse.html +1 -1
- package/docs/functions/StructSetProperty.Serialize.html +1 -1
- package/docs/functions/TextArrayProperty.Parse.html +1 -1
- package/docs/functions/TextArrayProperty.Serialize.html +1 -1
- package/docs/functions/TextProperty.CalcOverhead.html +1 -1
- package/docs/functions/TextProperty.Parse.html +1 -1
- package/docs/functions/TextProperty.ReadValue.html +1 -1
- package/docs/functions/TextProperty.Serialize.html +1 -1
- package/docs/functions/TextProperty.SerializeValue.html +1 -1
- package/docs/functions/Transform.Parse.html +1 -1
- package/docs/functions/Transform.ParseF.html +1 -1
- package/docs/functions/Transform.Serialize.html +1 -1
- package/docs/functions/Transform.SerializeF.html +1 -1
- package/docs/functions/Uint32Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint32Property.Parse.html +1 -1
- package/docs/functions/Uint32Property.ReadValue.html +1 -1
- package/docs/functions/Uint32Property.Serialize.html +1 -1
- package/docs/functions/Uint32Property.SerializeValue.html +1 -1
- package/docs/functions/Uint32SetProperty.Parse.html +1 -1
- package/docs/functions/Uint32SetProperty.Serialize.html +1 -1
- package/docs/functions/Uint64Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint64Property.Parse.html +1 -1
- package/docs/functions/Uint64Property.ReadValue.html +1 -1
- package/docs/functions/Uint64Property.Serialize.html +1 -1
- package/docs/functions/Uint64Property.SerializeValue.html +1 -1
- package/docs/functions/Uint8Property.CalcOverhead.html +1 -1
- package/docs/functions/Uint8Property.Parse.html +1 -1
- package/docs/functions/Uint8Property.ReadValue.html +1 -1
- package/docs/functions/Uint8Property.Serialize.html +1 -1
- package/docs/functions/Uint8Property.SerializeValue.html +1 -1
- package/docs/functions/VehiclePhysicsData.Parse.html +1 -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/isBoolArrayProperty.html +1 -1
- package/docs/functions/isBoolProperty.html +1 -1
- package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -1
- package/docs/functions/isByteArrayProperty.html +1 -1
- package/docs/functions/isByteProperty.html +1 -1
- package/docs/functions/isCircuitSpecialProperties.html +1 -1
- package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -1
- package/docs/functions/isConveyorSpecialProperties.html +1 -1
- package/docs/functions/isDoubleArrayProperty.html +1 -1
- package/docs/functions/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -1
- package/docs/functions/isEnumArrayProperty.html +1 -1
- package/docs/functions/isEnumProperty.html +1 -1
- package/docs/functions/isFloatArrayProperty.html +1 -1
- package/docs/functions/isFloatProperty.html +1 -1
- package/docs/functions/isInt32ArrayProperty.html +1 -1
- package/docs/functions/isInt32Property.html +1 -1
- package/docs/functions/isInt32SetProperty.html +1 -1
- package/docs/functions/isInt64ArrayProperty.html +1 -1
- package/docs/functions/isInt64Property.html +1 -1
- package/docs/functions/isInt8Property.html +1 -1
- package/docs/functions/isMapProperty.html +1 -1
- package/docs/functions/isObjectArrayProperty.html +1 -1
- package/docs/functions/isObjectProperty.html +1 -1
- package/docs/functions/isObjectSetProperty.html +1 -1
- package/docs/functions/isObjectsListSpecialProperties.html +1 -1
- package/docs/functions/isPlayerSpecialProperties.html +1 -1
- package/docs/functions/isPowerLineSpecialProperties.html +1 -1
- package/docs/functions/isSaveComponent.html +1 -1
- package/docs/functions/isSaveEntity.html +1 -1
- package/docs/functions/isSetProperty.html +1 -1
- package/docs/functions/isSoftObjectArrayProperty.html +1 -1
- package/docs/functions/isSoftObjectProperty.html +1 -0
- package/docs/functions/isSpecialDroneActionProperties.html +1 -1
- package/docs/functions/isStrArrayProperty.html +1 -1
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStrSetProperty.html +1 -1
- package/docs/functions/isStructArrayProperty.html +1 -1
- package/docs/functions/isStructProperty.html +1 -1
- package/docs/functions/isStructSetProperty.html +1 -1
- package/docs/functions/isTextArrayProperty.html +1 -1
- package/docs/functions/isTextProperty.html +1 -1
- package/docs/functions/isUInt64Property.html +1 -1
- package/docs/functions/isUint32Property.html +1 -1
- package/docs/functions/isUint32SetProperty.html +1 -1
- package/docs/functions/isUint8Property.html +1 -1
- package/docs/functions/isVehicleSpecialProperties.html +1 -1
- package/docs/functions/vec2.Parse.html +1 -1
- package/docs/functions/vec2.ParseF.html +1 -1
- package/docs/functions/vec2.Serialize.html +1 -1
- package/docs/functions/vec2.SerializeF.html +1 -1
- package/docs/functions/vec3.Parse.html +1 -1
- package/docs/functions/vec3.ParseF.html +1 -1
- package/docs/functions/vec3.ParseInt.html +1 -1
- package/docs/functions/vec3.Serialize.html +1 -1
- package/docs/functions/vec3.SerializeF.html +1 -1
- package/docs/functions/vec3.SerializeInt.html +1 -1
- package/docs/functions/vec3.add.html +1 -1
- package/docs/functions/vec3.length.html +1 -1
- package/docs/functions/vec3.mult.html +1 -1
- package/docs/functions/vec3.norm.html +1 -1
- package/docs/functions/vec3.sub.html +1 -1
- package/docs/functions/vec4.Parse.html +1 -1
- package/docs/functions/vec4.ParseF.html +1 -1
- package/docs/functions/vec4.Serialize.html +1 -1
- package/docs/functions/vec4.SerializeF.html +1 -1
- package/docs/index.html +3 -2
- package/docs/interfaces/Blueprint.html +2 -2
- package/docs/interfaces/BlueprintConfig-1.html +2 -2
- package/docs/interfaces/SaveComponentHeader.html +2 -2
- package/docs/interfaces/SaveEntityHeader.html +2 -2
- package/docs/interfaces/SaveObjectHeader.html +2 -2
- package/docs/modules/AbstractBaseProperty.html +1 -1
- package/docs/modules/ArrayProperty.html +1 -1
- package/docs/modules/BlueprintConfig.html +1 -1
- package/docs/modules/BlueprintHeader.html +1 -1
- package/docs/modules/BoolArrayProperty.html +1 -1
- package/docs/modules/BoolProperty.html +1 -1
- package/docs/modules/BuildableSubsystemSpecialProperties.html +1 -1
- package/docs/modules/BuildableTypeInstance.html +1 -1
- package/docs/modules/ByteArrayProperty.html +1 -1
- package/docs/modules/ByteProperty.html +1 -1
- package/docs/modules/CircuitSpecialProperties.html +1 -1
- package/docs/modules/ConveyorChainActorSpecialProperties.html +1 -1
- package/docs/modules/ConveyorSpecialProperties.html +1 -1
- package/docs/modules/DoubleArrayProperty.html +1 -1
- package/docs/modules/DoubleProperty.html +1 -1
- package/docs/modules/DynamicStructPropertyValue.html +1 -1
- package/docs/modules/EmptySpecialProperties.html +1 -1
- package/docs/modules/EnumArrayProperty.html +1 -1
- package/docs/modules/EnumProperty.html +1 -1
- package/docs/modules/FClientIdentityInfo.html +1 -1
- package/docs/modules/FColor.html +1 -1
- package/docs/modules/FGDynamicStruct.html +1 -1
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/FINGPUT1BufferPixel.html +1 -1
- package/docs/modules/FINItemStateFileSystem.html +1 -1
- package/docs/modules/FINNetworkTrace.html +1 -1
- package/docs/modules/FLBBalancerIndexing.html +1 -1
- package/docs/modules/FLinearColor.html +1 -1
- package/docs/modules/FloatArrayProperty.html +1 -1
- package/docs/modules/FloatProperty.html +1 -1
- package/docs/modules/GUID.html +1 -1
- package/docs/modules/GUIDInfo.html +1 -1
- package/docs/modules/Int32ArrayProperty.html +1 -1
- package/docs/modules/Int32Property.html +1 -1
- package/docs/modules/Int32SetProperty.html +1 -1
- package/docs/modules/Int64ArrayProperty.html +1 -1
- package/docs/modules/Int64Property.html +1 -1
- package/docs/modules/Int8Property.html +1 -1
- package/docs/modules/Level.html +1 -1
- package/docs/modules/LevelToDestroyedActorsMap.html +1 -1
- package/docs/modules/MD5Hash.html +1 -1
- package/docs/modules/MapProperty.html +1 -1
- package/docs/modules/ObjectArrayProperty.html +1 -1
- package/docs/modules/ObjectProperty.html +1 -1
- package/docs/modules/ObjectReference.html +1 -1
- package/docs/modules/ObjectSetProperty.html +1 -1
- package/docs/modules/ObjectsListSpecialProperties.html +1 -1
- package/docs/modules/PlayerSpecialProperties.html +1 -1
- package/docs/modules/PowerLineSpecialProperties.html +1 -1
- package/docs/modules/PropertiesList.html +1 -1
- package/docs/modules/SatisfactorySaveHeader.html +1 -1
- package/docs/modules/SaveBodyChunks.html +1 -1
- package/docs/modules/SaveBodyValidation.html +1 -1
- package/docs/modules/SetProperty.html +1 -1
- package/docs/modules/SoftObjectArrayProperty.html +1 -1
- package/docs/modules/SoftObjectProperty.html +6 -0
- package/docs/modules/SoftObjectReference.html +1 -1
- package/docs/modules/SpecialDroneActionProperties.html +1 -1
- package/docs/modules/SpecialProperties.html +1 -1
- package/docs/modules/StrArrayProperty.html +1 -1
- package/docs/modules/StrProperty.html +1 -1
- package/docs/modules/StrSetProperty.html +1 -1
- package/docs/modules/StructArrayProperty.html +1 -1
- package/docs/modules/StructProperty.html +1 -1
- package/docs/modules/StructSetProperty.html +1 -1
- package/docs/modules/TextArrayProperty.html +1 -1
- package/docs/modules/TextProperty.html +1 -1
- package/docs/modules/Transform.html +1 -1
- package/docs/modules/Uint32Property.html +1 -1
- package/docs/modules/Uint32SetProperty.html +1 -1
- package/docs/modules/Uint64Property.html +1 -1
- package/docs/modules/Uint8Property.html +1 -1
- package/docs/modules/VehiclePhysicsData.html +1 -1
- package/docs/modules/VehicleSpecialProperties.html +1 -1
- package/docs/modules/col4.html +1 -1
- package/docs/modules/vec2.html +1 -1
- package/docs/modules/vec3.html +1 -1
- package/docs/modules/vec4.html +1 -1
- package/docs/modules.html +3 -0
- package/docs/types/AbstractBaseProperty-1.html +1 -1
- package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
- package/docs/types/ArrayPropertyStructValueFields.html +1 -1
- package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
- package/docs/types/BasicStructPropertyValue.html +1 -1
- package/docs/types/BlueprintHeader-1.html +1 -1
- package/docs/types/BlueprintReaderWriterContext.html +1 -1
- package/docs/types/BoolArrayProperty-1.html +1 -1
- package/docs/types/BoolProperty-1.html +1 -1
- package/docs/types/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
- package/docs/types/BuildableTypeInstance-1.html +1 -1
- package/docs/types/ByteArrayProperty-1.html +1 -1
- package/docs/types/ByteProperty-1.html +1 -1
- package/docs/types/BytePropertyValue.html +1 -1
- package/docs/types/ChunkCompressionInfo.html +1 -1
- package/docs/types/ChunkSummary.html +1 -1
- package/docs/types/CircuitSpecialProperties-1.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -1
- package/docs/types/DoubleArrayProperty-1.html +1 -1
- package/docs/types/DoubleProperty-1.html +1 -1
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -1
- package/docs/types/EnumArrayProperty-1.html +1 -1
- package/docs/types/EnumProperty-1.html +1 -1
- package/docs/types/FClientIdentityInfo-1.html +1 -1
- package/docs/types/FColor-1.html +1 -1
- package/docs/types/FGDynamicStruct-1.html +1 -1
- package/docs/types/FICFrameRange-1.html +1 -1
- package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
- package/docs/types/FINGPUT1BufferPixel-1.html +1 -1
- package/docs/types/FINItemStateFileSystem-1.html +1 -1
- package/docs/types/FINNetworkTrace-1.html +1 -1
- package/docs/types/FLBBalancerIndexing-1.html +1 -1
- package/docs/types/FLinearColor-1.html +1 -1
- package/docs/types/FloatArrayProperty-1.html +1 -1
- package/docs/types/FloatProperty-1.html +1 -1
- package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
- package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
- package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
- package/docs/types/GUID-1.html +1 -1
- package/docs/types/GUIDInfo-1.html +1 -1
- package/docs/types/Grids.html +1 -1
- package/docs/types/Int32ArrayProperty-1.html +1 -1
- package/docs/types/Int32Property-1.html +1 -1
- package/docs/types/Int32SetProperty-1.html +1 -1
- package/docs/types/Int64ArrayProperty-1.html +1 -1
- package/docs/types/Int64Property-1.html +1 -1
- package/docs/types/Int8Property-1.html +1 -1
- package/docs/types/InventoryItemStructPropertyValue.html +1 -1
- package/docs/types/Level-1.html +1 -1
- package/docs/types/LevelToDestroyedActorsMap-1.html +1 -1
- package/docs/types/Levels.html +1 -1
- package/docs/types/MAP_STRUCT_PROXY.html +1 -1
- package/docs/types/MD5Hash-1.html +1 -1
- package/docs/types/MapProperty-1.html +1 -1
- package/docs/types/ModData.html +1 -1
- package/docs/types/ObjectArrayProperty-1.html +1 -1
- package/docs/types/ObjectProperty-1.html +1 -1
- package/docs/types/ObjectReference-1.html +1 -1
- package/docs/types/ObjectSetProperty-1.html +1 -1
- package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
- package/docs/types/PlayerSpecialProperties-1.html +1 -1
- package/docs/types/PowerLineSpecialProperties-1.html +1 -1
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
- package/docs/types/ReaderWriterContext.html +1 -1
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SatisfactoryModMetadata.html +1 -1
- package/docs/types/SatisfactorySaveHeader-1.html +1 -1
- package/docs/types/SaveBodyChunks-1.html +1 -1
- package/docs/types/SaveBodyValidation-1.html +1 -1
- package/docs/types/SaveReaderWriterContext.html +1 -1
- package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
- package/docs/types/SoftObjectArrayProperty-1.html +1 -1
- package/docs/types/SoftObjectProperty-1.html +1 -0
- package/docs/types/SoftObjectReference-1.html +1 -1
- package/docs/types/SpecialDroneAction.html +1 -1
- package/docs/types/SpecialDroneActionProperties-1.html +1 -1
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
- package/docs/types/StrArrayProperty-1.html +1 -1
- package/docs/types/StrProperty-1.html +1 -1
- package/docs/types/StrSetProperty-1.html +1 -1
- package/docs/types/StructArrayProperty-1.html +1 -1
- package/docs/types/StructProperty-1.html +1 -1
- package/docs/types/StructSetProperty-1.html +1 -1
- package/docs/types/TextArrayProperty-1.html +1 -1
- package/docs/types/TextProperty-1.html +1 -1
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/Uint32Property-1.html +1 -1
- package/docs/types/Uint32SetProperty-1.html +1 -1
- package/docs/types/Uint64Property-1.html +1 -1
- package/docs/types/Uint8Property-1.html +1 -1
- package/docs/types/VehiclePhysicsData-1.html +1 -1
- package/docs/types/VehicleSpecialProperties-1.html +1 -1
- package/docs/types/col4-1.html +1 -1
- package/docs/types/vec2-1.html +1 -1
- package/docs/types/vec3-1.html +1 -1
- package/docs/types/vec4-1.html +1 -1
- package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -1
- package/docs/variables/EDIT.html +1 -1
- 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/jsr.json +1 -1
- package/package.json +6 -5
- package/tsconfig.test.json +13 -0
- 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 -59
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayPropertySpecificTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBA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C/B,QAAQ,sBAwBqF,CAAC;AAErG,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;AACtE,eAAO,MAAM,kBAAkB,aA5Bb,oBAAoB,KAC/B,QAAQ,oBA2B+E,CAAC;AAE/F,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,cAAc,CAAC,CAAC;AAC5E,eAAO,MAAM,qBAAqB,aA/BhB,oBAAoB,KAC/B,QAAQ,uBA8BwF,CAAC;AAExG,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;AAClF,eAAO,MAAM,wBAAwB,aAlCnB,oBAAoB,KAC/B,QAAQ,0BAiCiG,CAAC;AAEjH,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;AACpF,eAAO,MAAM,yBAAyB,aArCpB,oBAAoB,KAC/B,QAAQ,2BAoCoG,CAAC;AAEpH,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;AACtE,eAAO,MAAM,kBAAkB,aAxCb,oBAAoB,KAC/B,QAAQ,oBAuC+E,CAAC;AAE/F,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,cAAc,CAAC,CAAC;AAC5E,eAAO,MAAM,qBAAqB,aA3ChB,oBAAoB,KAC/B,QAAQ,uBA0CwF,CAAC;AAExG,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;AACxE,eAAO,MAAM,mBAAmB,aA9Cd,oBAAoB,KAC/B,QAAQ,qBA6CkF,CAAC"}
|
package/build/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTextArrayProperty = exports.isStructArrayPRoperty = exports.isStrArrayProperty = exports.isSoftObjectArrayProperty = exports.isInterfaceArrayProperty = exports.isObjectArrayProperty = exports.isIntArrayProperty = exports.isFloatArrayProperty = exports.isEnumArrayProperty = exports.isDoubleArrayProperty = exports.isByteArrayProperty = exports.isInt64ArrayProperty = exports.isBoolArrayProperty = void 0;
|
|
4
|
+
const ArrayProperty_1 = require("./ArrayProperty");
|
|
5
|
+
function createArrayPropertyGuardFor(typeName) {
|
|
6
|
+
return (property) => {
|
|
7
|
+
return ((0, ArrayProperty_1.isArrayProperty)(property) &&
|
|
8
|
+
property.propertyTagType?.children[0]?.name === typeName);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.isBoolArrayProperty = createArrayPropertyGuardFor('BoolProperty');
|
|
12
|
+
exports.isInt64ArrayProperty = createArrayPropertyGuardFor('Int64Property');
|
|
13
|
+
exports.isByteArrayProperty = createArrayPropertyGuardFor('ByteProperty');
|
|
14
|
+
exports.isDoubleArrayProperty = createArrayPropertyGuardFor('DoubleProperty');
|
|
15
|
+
exports.isEnumArrayProperty = createArrayPropertyGuardFor('EnumProperty');
|
|
16
|
+
exports.isFloatArrayProperty = createArrayPropertyGuardFor('FloatProperty');
|
|
17
|
+
exports.isIntArrayProperty = createArrayPropertyGuardFor('IntProperty');
|
|
18
|
+
exports.isObjectArrayProperty = createArrayPropertyGuardFor('ObjectProperty');
|
|
19
|
+
exports.isInterfaceArrayProperty = createArrayPropertyGuardFor('InterfaceProperty');
|
|
20
|
+
exports.isSoftObjectArrayProperty = createArrayPropertyGuardFor('SoftObjectProperty');
|
|
21
|
+
exports.isStrArrayProperty = createArrayPropertyGuardFor('StrProperty');
|
|
22
|
+
exports.isStructArrayPRoperty = createArrayPropertyGuardFor('StructProperty');
|
|
23
|
+
exports.isTextArrayProperty = createArrayPropertyGuardFor('TextProperty');
|
|
24
|
+
//# sourceMappingURL=ArrayPropertySpecificTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayPropertySpecificTypes.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/ArrayPropertySpecificTypes.ts"],"names":[],"mappings":";;;AAcA,mDAAkD;AAgBlD,SAAS,2BAA2B,CAChC,QAAgD;IAEhD,OAAO,CACH,QAA8B,EACJ,EAAE;QAC5B,OAAO,CACH,IAAA,+BAAe,EAAC,QAAQ,CAAC;YACzB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,QAAQ,CAC3D,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAGY,QAAA,mBAAmB,GAAG,2BAA2B,CAAoB,cAAc,CAAC,CAAC;AAGrF,QAAA,oBAAoB,GAAG,2BAA2B,CAAqB,eAAe,CAAC,CAAC;AAGxF,QAAA,mBAAmB,GAAG,2BAA2B,CAAoB,cAAc,CAAC,CAAC;AAGrF,QAAA,qBAAqB,GAAG,2BAA2B,CAAsB,gBAAgB,CAAC,CAAC;AAG3F,QAAA,mBAAmB,GAAG,2BAA2B,CAAoB,cAAc,CAAC,CAAC;AAGrF,QAAA,oBAAoB,GAAG,2BAA2B,CAAqB,eAAe,CAAC,CAAC;AAGxF,QAAA,kBAAkB,GAAG,2BAA2B,CAAmB,aAAa,CAAC,CAAC;AAGlF,QAAA,qBAAqB,GAAG,2BAA2B,CAAsB,gBAAgB,CAAC,CAAC;AAG3F,QAAA,wBAAwB,GAAG,2BAA2B,CAAyB,mBAAmB,CAAC,CAAC;AAGpG,QAAA,yBAAyB,GAAG,2BAA2B,CAA0B,oBAAoB,CAAC,CAAC;AAGvG,QAAA,kBAAkB,GAAG,2BAA2B,CAAmB,aAAa,CAAC,CAAC;AAGlF,QAAA,qBAAqB,GAAG,2BAA2B,CAAsB,gBAAgB,CAAC,CAAC;AAG3F,QAAA,mBAAmB,GAAG,2BAA2B,CAAoB,cAAc,CAAC,CAAC","sourcesContent":["import { FPropertyTagNode } from \"../../../structs/binary/FPropertyTagNode\";\nimport { AbstractBaseProperty } from \"../AbstractBaseProperty\";\nimport { BoolProperty } from \"../BoolProperty\";\nimport { ByteProperty } from \"../ByteProperty\";\nimport { DoubleProperty } from \"../DoubleProperty\";\nimport { EnumProperty } from \"../EnumProperty\";\nimport { FloatProperty } from \"../FloatProperty\";\nimport { Int64Property } from \"../Int64Property\";\nimport { InterfaceProperty } from \"../InterfaceProperty\";\nimport { IntProperty } from \"../IntProperty\";\nimport { ObjectProperty } from \"../ObjectProperty\";\nimport { SoftObjectProperty } from \"../SoftObjectProperty\";\nimport { StrProperty } from \"../StrProperty\";\nimport { TextProperty } from \"../TextProperty\";\nimport { isArrayProperty } from \"./ArrayProperty\";\nimport { StructProperty } from \"./StructProperty\";\n\n// Helpers to create type guards.\n// Not necessarily needed, but checking for a \"StrArrayProperty\" can be useful i guess.\ntype SpecificArrayPropertyType<TSubtype extends AbstractBaseProperty, TSubtypevalue = TSubtype['value']> = AbstractBaseProperty & {\n propertyTagType: {\n name: 'ArrayProperty';\n children: [{\n name: TSubtype['type'];\n children: FPropertyTagNode[];\n }];\n };\n values: TSubtypevalue[];\n};\ntype ExtractSubtype<T> = T extends SpecificArrayPropertyType<infer U> ? U : never;\nfunction createArrayPropertyGuardFor<TArrayProperty extends SpecificArrayPropertyType<AbstractBaseProperty>>(\n typeName: ExtractSubtype<TArrayProperty>['type']\n) {\n return (\n property: AbstractBaseProperty\n ): property is TArrayProperty => {\n return (\n isArrayProperty(property) &&\n property.propertyTagType?.children[0]?.name === typeName\n );\n };\n}\n\nexport type BoolArrayProperty = SpecificArrayPropertyType<BoolProperty, number>;\nexport const isBoolArrayProperty = createArrayPropertyGuardFor<BoolArrayProperty>('BoolProperty');\n\nexport type Int64ArrayProperty = SpecificArrayPropertyType<Int64Property>;\nexport const isInt64ArrayProperty = createArrayPropertyGuardFor<Int64ArrayProperty>('Int64Property');\n\nexport type ByteArrayProperty = SpecificArrayPropertyType<ByteProperty, number>;\nexport const isByteArrayProperty = createArrayPropertyGuardFor<ByteArrayProperty>('ByteProperty');\n\nexport type DoubleArrayProperty = SpecificArrayPropertyType<DoubleProperty>;\nexport const isDoubleArrayProperty = createArrayPropertyGuardFor<DoubleArrayProperty>('DoubleProperty');\n\nexport type EnumArrayProperty = SpecificArrayPropertyType<EnumProperty>;\nexport const isEnumArrayProperty = createArrayPropertyGuardFor<EnumArrayProperty>('EnumProperty');\n\nexport type FloatArrayProperty = SpecificArrayPropertyType<FloatProperty>;\nexport const isFloatArrayProperty = createArrayPropertyGuardFor<FloatArrayProperty>('FloatProperty');\n\nexport type IntArrayProperty = SpecificArrayPropertyType<IntProperty>;\nexport const isIntArrayProperty = createArrayPropertyGuardFor<IntArrayProperty>('IntProperty');\n\nexport type ObjectArrayProperty = SpecificArrayPropertyType<ObjectProperty>;\nexport const isObjectArrayProperty = createArrayPropertyGuardFor<ObjectArrayProperty>('ObjectProperty');\n\nexport type InterfaceArrayProperty = SpecificArrayPropertyType<InterfaceProperty>;\nexport const isInterfaceArrayProperty = createArrayPropertyGuardFor<InterfaceArrayProperty>('InterfaceProperty');\n\nexport type SoftObjectArrayProperty = SpecificArrayPropertyType<SoftObjectProperty>;\nexport const isSoftObjectArrayProperty = createArrayPropertyGuardFor<SoftObjectArrayProperty>('SoftObjectProperty');\n\nexport type StrArrayProperty = SpecificArrayPropertyType<StrProperty>;\nexport const isStrArrayProperty = createArrayPropertyGuardFor<StrArrayProperty>('StrProperty');\n\nexport type StructArrayProperty = SpecificArrayPropertyType<StructProperty>;\nexport const isStructArrayPRoperty = createArrayPropertyGuardFor<StructArrayProperty>('StructProperty');\n\nexport type TextArrayProperty = SpecificArrayPropertyType<TextProperty>;\nexport const isTextArrayProperty = createArrayPropertyGuardFor<TextArrayProperty>('TextProperty');"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
+
import { LBBalancerIndexing } from '../../../structs/binary/LBBalancerIndexing';
|
|
4
|
+
import { ObjectReference } from '../../../structs/ObjectReference';
|
|
5
|
+
import { vec3 } from '../../../structs/vec3';
|
|
6
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
7
|
+
import { GENERIC_STRUCT_PROPERTY_VALUE } from './StructProperty';
|
|
8
|
+
export type GENERIC_MAP_KEY_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | vec3;
|
|
9
|
+
export type GENERIC_MAP_VALUE_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | LBBalancerIndexing;
|
|
10
|
+
export declare const isMapProperty: (property: any) => property is MapProperty;
|
|
11
|
+
export type MapProperty = AbstractBaseProperty & {
|
|
12
|
+
type: 'MapProperty';
|
|
13
|
+
numElementsToRemove?: number;
|
|
14
|
+
values: [key: GENERIC_MAP_KEY_TYPE, value: GENERIC_MAP_VALUE_TYPE][];
|
|
15
|
+
};
|
|
16
|
+
export declare namespace MapProperty {
|
|
17
|
+
function Parse(reader: ContextReader, property: MapProperty): void;
|
|
18
|
+
function Serialize(writer: ContextWriter, property: MapProperty): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=MapProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/MapProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAO/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGjE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BAA6B,GAAG,IAAI,CAAC;AAC7G,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,6BAA6B,GAAG,kBAAkB,CAAC;AAE7H,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0F,CAAC;AAErJ,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG;IAC7C,IAAI,EAAE,aAAa,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,sBAAsB,CAAC,EAAE,CAAC;CACxE,CAAC;AAGF,yBAAiB,WAAW,CAAC;IAEzB,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CAwFxE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CA6E5E;CACJ"}
|
|
@@ -1,45 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MapProperty = exports.isMapProperty = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
4
|
+
const parser_error_1 = require("../../../../../error/parser.error");
|
|
5
|
+
const LBBalancerIndexing_1 = require("../../../structs/binary/LBBalancerIndexing");
|
|
6
|
+
const DynamicStructPropertyValue_1 = require("../../../structs/DynamicStructPropertyValue");
|
|
7
|
+
const vec3_1 = require("../../../structs/vec3");
|
|
8
|
+
const ByteProperty_1 = require("../ByteProperty");
|
|
9
|
+
const EnumProperty_1 = require("../EnumProperty");
|
|
10
|
+
const Int64Property_1 = require("../Int64Property");
|
|
11
|
+
const IntProperty_1 = require("../IntProperty");
|
|
12
|
+
const ObjectProperty_1 = require("../ObjectProperty");
|
|
13
|
+
const StrProperty_1 = require("../StrProperty");
|
|
14
|
+
const isMapProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'MapProperty';
|
|
13
15
|
exports.isMapProperty = isMapProperty;
|
|
14
16
|
var MapProperty;
|
|
15
17
|
(function (MapProperty) {
|
|
16
|
-
|
|
18
|
+
function Parse(reader, property) {
|
|
17
19
|
const start = reader.getBufferPosition();
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
values: [],
|
|
26
|
-
modeUnk1: undefined,
|
|
27
|
-
modeUnk2: '',
|
|
28
|
-
modeUnk3: ''
|
|
29
|
-
};
|
|
30
|
-
reader.readByte();
|
|
31
|
-
property.modeType = reader.readInt32();
|
|
20
|
+
const keyType = property.propertyTagType.children[0].name;
|
|
21
|
+
const valueType = property.propertyTagType.children[1].name;
|
|
22
|
+
property.numElementsToRemove = reader.readInt32();
|
|
23
|
+
if (property.numElementsToRemove > 0) {
|
|
24
|
+
throw new parser_error_1.UnimplementedError('MapProperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');
|
|
25
|
+
}
|
|
26
|
+
property.values = [];
|
|
32
27
|
const elementCount = reader.readInt32();
|
|
33
28
|
for (let i = 0; i < elementCount; i++) {
|
|
34
29
|
let key;
|
|
35
30
|
let value;
|
|
36
|
-
switch (
|
|
31
|
+
switch (keyType) {
|
|
37
32
|
case 'StructProperty':
|
|
38
|
-
if (
|
|
39
|
-
key =
|
|
33
|
+
if (property.name === 'mSaveData' || property.name === 'mUnresolvedSaveData') {
|
|
34
|
+
key = vec3_1.vec3.ParseInt(reader);
|
|
40
35
|
}
|
|
41
36
|
else {
|
|
42
|
-
key = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader,
|
|
37
|
+
key = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader, keyType);
|
|
43
38
|
}
|
|
44
39
|
break;
|
|
45
40
|
case 'ObjectProperty':
|
|
@@ -53,8 +48,7 @@ var MapProperty;
|
|
|
53
48
|
key = EnumProperty_1.EnumProperty.ReadValue(reader);
|
|
54
49
|
break;
|
|
55
50
|
case 'IntProperty':
|
|
56
|
-
|
|
57
|
-
key = Int32Property_1.Int32Property.ReadValue(reader);
|
|
51
|
+
key = IntProperty_1.IntProperty.ReadValue(reader);
|
|
58
52
|
break;
|
|
59
53
|
case 'Int64Property':
|
|
60
54
|
key = Int64Property_1.Int64Property.ReadValue(reader);
|
|
@@ -63,18 +57,18 @@ var MapProperty;
|
|
|
63
57
|
key = ByteProperty_1.ByteProperty.ReadValue(reader);
|
|
64
58
|
break;
|
|
65
59
|
default:
|
|
66
|
-
throw new Error(`not implemented map key type ${
|
|
60
|
+
throw new Error(`not implemented map key type ${keyType}`);
|
|
67
61
|
}
|
|
68
|
-
switch (
|
|
62
|
+
switch (valueType) {
|
|
69
63
|
case 'StructProperty':
|
|
70
|
-
if (
|
|
71
|
-
value =
|
|
64
|
+
if (property.name === 'mIndexMapping' && reader.context.mods.MLBAlternates !== undefined) {
|
|
65
|
+
value = LBBalancerIndexing_1.LBBalancerIndexing.read(reader);
|
|
72
66
|
}
|
|
73
|
-
else if (
|
|
74
|
-
value = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader,
|
|
67
|
+
else if (property.name === 'Senders' && reader.context.mods.FicsItNetworks !== undefined) {
|
|
68
|
+
value = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader, valueType);
|
|
75
69
|
}
|
|
76
70
|
else {
|
|
77
|
-
value = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader,
|
|
71
|
+
value = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader, valueType);
|
|
78
72
|
}
|
|
79
73
|
break;
|
|
80
74
|
case 'ObjectProperty':
|
|
@@ -88,8 +82,7 @@ var MapProperty;
|
|
|
88
82
|
value = EnumProperty_1.EnumProperty.ReadValue(reader);
|
|
89
83
|
break;
|
|
90
84
|
case 'IntProperty':
|
|
91
|
-
|
|
92
|
-
value = Int32Property_1.Int32Property.ReadValue(reader);
|
|
85
|
+
value = IntProperty_1.IntProperty.ReadValue(reader);
|
|
93
86
|
break;
|
|
94
87
|
case 'Int64Property':
|
|
95
88
|
value = Int64Property_1.Int64Property.ReadValue(reader);
|
|
@@ -98,26 +91,22 @@ var MapProperty;
|
|
|
98
91
|
value = ByteProperty_1.ByteProperty.ReadValue(reader);
|
|
99
92
|
break;
|
|
100
93
|
default:
|
|
101
|
-
throw new Error(`not implemented map value type ${
|
|
94
|
+
throw new Error(`not implemented map value type ${valueType}`);
|
|
102
95
|
}
|
|
103
96
|
property.values.push([key, value]);
|
|
104
97
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
writer.writeString(property.keyType);
|
|
112
|
-
writer.writeString(property.valueType);
|
|
113
|
-
writer.writeByte(0);
|
|
114
|
-
writer.writeInt32(property.modeType);
|
|
98
|
+
}
|
|
99
|
+
MapProperty.Parse = Parse;
|
|
100
|
+
function Serialize(writer, property) {
|
|
101
|
+
const keyType = property.propertyTagType.children[0].name;
|
|
102
|
+
const valueType = property.propertyTagType.children[1].name;
|
|
103
|
+
writer.writeInt32(property.numElementsToRemove ?? 0);
|
|
115
104
|
writer.writeInt32(property.values.length);
|
|
116
105
|
for (const entry of property.values) {
|
|
117
|
-
switch (
|
|
106
|
+
switch (keyType) {
|
|
118
107
|
case 'StructProperty':
|
|
119
108
|
if (property.name === 'mSaveData' || property.name === 'mUnresolvedSaveData') {
|
|
120
|
-
|
|
109
|
+
vec3_1.vec3.SerializeInt(writer, entry[0]);
|
|
121
110
|
}
|
|
122
111
|
else {
|
|
123
112
|
DynamicStructPropertyValue_1.DynamicStructPropertyValue.write(writer, entry[0]);
|
|
@@ -134,8 +123,7 @@ var MapProperty;
|
|
|
134
123
|
EnumProperty_1.EnumProperty.SerializeValue(writer, entry[0]);
|
|
135
124
|
break;
|
|
136
125
|
case 'IntProperty':
|
|
137
|
-
|
|
138
|
-
Int32Property_1.Int32Property.SerializeValue(writer, entry[0]);
|
|
126
|
+
IntProperty_1.IntProperty.SerializeValue(writer, entry[0]);
|
|
139
127
|
break;
|
|
140
128
|
case 'Int64Property':
|
|
141
129
|
Int64Property_1.Int64Property.SerializeValue(writer, entry[0]);
|
|
@@ -144,12 +132,15 @@ var MapProperty;
|
|
|
144
132
|
ByteProperty_1.ByteProperty.SerializeValue(writer, entry[0]);
|
|
145
133
|
break;
|
|
146
134
|
default:
|
|
147
|
-
throw new Error(`not implemented map key type ${
|
|
135
|
+
throw new Error(`not implemented map key type ${valueType}`);
|
|
148
136
|
}
|
|
149
|
-
switch (
|
|
137
|
+
switch (valueType) {
|
|
150
138
|
case 'StructProperty':
|
|
151
139
|
if (property.name === 'mIndexMapping' && writer.context.mods.MLBAlternates !== undefined) {
|
|
152
|
-
|
|
140
|
+
LBBalancerIndexing_1.LBBalancerIndexing.write(writer, entry[1]);
|
|
141
|
+
}
|
|
142
|
+
else if (property.name === 'Senders' && writer.context.mods.FicsItNetworks !== undefined) {
|
|
143
|
+
DynamicStructPropertyValue_1.DynamicStructPropertyValue.write(writer, entry[1]);
|
|
153
144
|
}
|
|
154
145
|
else {
|
|
155
146
|
DynamicStructPropertyValue_1.DynamicStructPropertyValue.write(writer, entry[1]);
|
|
@@ -166,8 +157,7 @@ var MapProperty;
|
|
|
166
157
|
EnumProperty_1.EnumProperty.SerializeValue(writer, entry[1]);
|
|
167
158
|
break;
|
|
168
159
|
case 'IntProperty':
|
|
169
|
-
|
|
170
|
-
Int32Property_1.Int32Property.SerializeValue(writer, entry[1]);
|
|
160
|
+
IntProperty_1.IntProperty.SerializeValue(writer, entry[1]);
|
|
171
161
|
break;
|
|
172
162
|
case 'Int64Property':
|
|
173
163
|
Int64Property_1.Int64Property.SerializeValue(writer, entry[1]);
|
|
@@ -176,9 +166,10 @@ var MapProperty;
|
|
|
176
166
|
ByteProperty_1.ByteProperty.SerializeValue(writer, entry[1]);
|
|
177
167
|
break;
|
|
178
168
|
default:
|
|
179
|
-
throw new Error(`not implemented map value type ${
|
|
169
|
+
throw new Error(`not implemented map value type ${valueType}`);
|
|
180
170
|
}
|
|
181
171
|
}
|
|
182
|
-
}
|
|
172
|
+
}
|
|
173
|
+
MapProperty.Serialize = Serialize;
|
|
183
174
|
})(MapProperty || (exports.MapProperty = MapProperty = {}));
|
|
184
175
|
//# sourceMappingURL=MapProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/MapProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,mFAAgF;AAChF,4FAAyF;AAEzF,gDAA6C;AAE7C,kDAA+C;AAC/C,kDAA+C;AAC/C,oDAAiD;AACjD,gDAA6C;AAC7C,sDAAmD;AACnD,gDAA6C;AAOtC,MAAM,aAAa,GAAG,CAAC,QAAa,EAA2B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,aAAa,CAAC;AAAxI,QAAA,aAAa,iBAA2H;AASrJ,IAAiB,WAAW,CA0K3B;AA1KD,WAAiB,WAAW;IAExB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAqB;QAC9D,MAAM,KAAK,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAEzC,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC1D,MAAM,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAE5D,QAAQ,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CAAC,CAA+B,CAAC,CAAC;oBACrF,CAAC;oBAED,MAAM;gBACV,KAAK,gBAAgB;oBACjB,+BAAc,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAoB,CAAC,CAAC;oBACnE,MAAM;gBACV,KAAK,aAAa,CAAC;gBACnB,KAAK,cAAc;oBACf,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACvD,MAAM;gBACV,KAAK,cAAc;oBACf,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACxD,MAAM;gBACV,KAAK,aAAa;oBACd,yBAAW,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACvD,MAAM;gBACV,KAAK,eAAe;oBAChB,6BAAa,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACzD,MAAM;gBACV,KAAK,cAAc;oBACf,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;oBACxD,MAAM;gBACV;oBACI,MAAM,IAAI,KAAK,CAAC,kCAAkC,SAAS,EAAE,CAAC,CAAC;YACvE,CAAC;QACL,CAAC;IACL,CAAC;IA7Ee,qBAAS,YA6ExB,CAAA;AACL,CAAC,EA1KgB,WAAW,2BAAX,WAAW,QA0K3B","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { LBBalancerIndexing } from '../../../structs/binary/LBBalancerIndexing';\nimport { DynamicStructPropertyValue } from '../../../structs/DynamicStructPropertyValue';\nimport { ObjectReference } from '../../../structs/ObjectReference';\nimport { vec3 } from '../../../structs/vec3';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\nimport { ByteProperty } from '../ByteProperty';\nimport { EnumProperty } from '../EnumProperty';\nimport { Int64Property } from '../Int64Property';\nimport { IntProperty } from '../IntProperty';\nimport { ObjectProperty } from '../ObjectProperty';\nimport { StrProperty } from '../StrProperty';\nimport { GENERIC_STRUCT_PROPERTY_VALUE } from './StructProperty';\n\n\nexport type GENERIC_MAP_KEY_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | vec3;\nexport type GENERIC_MAP_VALUE_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | LBBalancerIndexing;\n\nexport const isMapProperty = (property: any): property is MapProperty => !Array.isArray(property) && property.propertyTagType.name === 'MapProperty';\n\nexport type MapProperty = AbstractBaseProperty & {\n type: 'MapProperty';\n numElementsToRemove?: number;\n values: [key: GENERIC_MAP_KEY_TYPE, value: GENERIC_MAP_VALUE_TYPE][];\n};\n\n\nexport namespace MapProperty {\n\n export function Parse(reader: ContextReader, property: MapProperty): void {\n const start = reader.getBufferPosition();\n\n const keyType = property.propertyTagType.children[0].name;\n const valueType = property.propertyTagType.children[1].name;\n\n property.numElementsToRemove = reader.readInt32();\n if (property.numElementsToRemove > 0) {\n // not observed so far.\n throw new UnimplementedError('MapProperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');\n }\n\n property.values = [];\n const elementCount = reader.readInt32();\n for (let i = 0; i < elementCount; i++) {\n let key: GENERIC_MAP_KEY_TYPE;\n let value: GENERIC_MAP_VALUE_TYPE;\n switch (keyType) {\n case 'StructProperty':\n\n // We dont know the specific structure of some properties alone from the save. We have to observe and hardcode.\n if (property.name === 'mSaveData' || property.name === 'mUnresolvedSaveData') {\n key = vec3.ParseInt(reader);\n } else {\n key = DynamicStructPropertyValue.read(reader, keyType);\n }\n\n break;\n case 'ObjectProperty':\n key = ObjectProperty.ReadValue(reader);\n break;\n case 'StrProperty':\n case 'NameProperty':\n key = StrProperty.ReadValue(reader);\n break;\n case 'EnumProperty':\n key = EnumProperty.ReadValue(reader);\n break;\n case 'IntProperty':\n key = IntProperty.ReadValue(reader);\n break;\n case 'Int64Property':\n key = Int64Property.ReadValue(reader);\n break;\n case 'ByteProperty':\n key = ByteProperty.ReadValue(reader);\n break;\n default:\n throw new Error(`not implemented map key type ${keyType}`);\n }\n\n switch (valueType) {\n case 'StructProperty':\n\n // We dont know the specific structure of some properties alone from the save. We have to observe and hardcode.\n if (property.name === 'mIndexMapping' && reader.context.mods.MLBAlternates !== undefined) {\n value = LBBalancerIndexing.read(reader);\n } else if (property.name === 'Senders' && reader.context.mods.FicsItNetworks !== undefined) {\n value = DynamicStructPropertyValue.read(reader, valueType);\n } else {\n value = DynamicStructPropertyValue.read(reader, valueType);\n }\n break;\n case 'ObjectProperty':\n value = ObjectProperty.ReadValue(reader);\n break;\n case 'StrProperty':\n case 'NameProperty':\n value = StrProperty.ReadValue(reader);\n break;\n case 'EnumProperty':\n value = EnumProperty.ReadValue(reader);\n break;\n case 'IntProperty':\n value = IntProperty.ReadValue(reader);\n break;\n case 'Int64Property':\n value = Int64Property.ReadValue(reader);\n break;\n case 'ByteProperty':\n value = ByteProperty.ReadValue(reader);\n break;\n default:\n throw new Error(`not implemented map value type ${valueType}`);\n }\n\n property.values.push([key, value]);\n }\n }\n\n export function Serialize(writer: ContextWriter, property: MapProperty): void {\n\n const keyType = property.propertyTagType.children[0].name;\n const valueType = property.propertyTagType.children[1].name;\n\n writer.writeInt32(property.numElementsToRemove ?? 0);\n writer.writeInt32(property.values.length);\n for (const entry of property.values) {\n\n switch (keyType) {\n case 'StructProperty':\n\n if (property.name === 'mSaveData' || property.name === 'mUnresolvedSaveData') {\n vec3.SerializeInt(writer, entry[0] as vec3);\n } else {\n DynamicStructPropertyValue.write(writer, entry[0] as DynamicStructPropertyValue);\n }\n\n break;\n case 'ObjectProperty':\n ObjectProperty.SerializeValue(writer, entry[0] as ObjectReference);\n break;\n case 'StrProperty':\n case 'NameProperty':\n StrProperty.SerializeValue(writer, entry[0] as string);\n break;\n case 'EnumProperty':\n EnumProperty.SerializeValue(writer, entry[0] as string);\n break;\n case 'IntProperty':\n IntProperty.SerializeValue(writer, entry[0] as number);\n break;\n case 'Int64Property':\n Int64Property.SerializeValue(writer, entry[0] as string);\n break;\n case 'ByteProperty':\n ByteProperty.SerializeValue(writer, entry[0] as number);\n break;\n default:\n throw new Error(`not implemented map key type ${valueType}`);\n }\n\n switch (valueType) {\n case 'StructProperty':\n\n if (property.name === 'mIndexMapping' && writer.context.mods.MLBAlternates !== undefined) {\n LBBalancerIndexing.write(writer, entry[1] as LBBalancerIndexing);\n } else if (property.name === 'Senders' && writer.context.mods.FicsItNetworks !== undefined) {\n DynamicStructPropertyValue.write(writer, entry[1] as DynamicStructPropertyValue);\n } else {\n DynamicStructPropertyValue.write(writer, entry[1] as DynamicStructPropertyValue);\n }\n\n break;\n case 'ObjectProperty':\n ObjectProperty.SerializeValue(writer, entry[1] as ObjectReference);\n break;\n case 'StrProperty':\n case 'NameProperty':\n StrProperty.SerializeValue(writer, entry[1] as string);\n break;\n case 'EnumProperty':\n EnumProperty.SerializeValue(writer, entry[1] as string);\n break;\n case 'IntProperty':\n IntProperty.SerializeValue(writer, entry[1] as number);\n break;\n case 'Int64Property':\n Int64Property.SerializeValue(writer, entry[1] as string);\n break;\n case 'ByteProperty':\n ByteProperty.SerializeValue(writer, entry[1] as number);\n break;\n default:\n throw new Error(`not implemented map value type ${valueType}`);\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
4
|
+
export declare const isSetProperty: (property: any) => property is SetProperty;
|
|
5
|
+
export type SetProperty = AbstractBaseProperty & {
|
|
6
|
+
type: 'SetProperty';
|
|
7
|
+
numElementsToRemove?: number;
|
|
8
|
+
values: any[];
|
|
9
|
+
};
|
|
10
|
+
export declare namespace SetProperty {
|
|
11
|
+
function Parse(reader: ContextReader, property: SetProperty): void;
|
|
12
|
+
function Serialize(writer: ContextWriter, property: SetProperty): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SetProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/SetProperty.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;AAO/D,eAAO,MAAM,aAAa,aAAc,GAAG,KAAG,QAAQ,IAAI,WAA0F,CAAC;AAErJ,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG;IAC7C,IAAI,EAAE,aAAa,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,GAAG,EAAE,CAAC;CACjB,CAAA;AAED,yBAAiB,WAAW,CAAC;IAEzB,SAAgB,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CA4CxE;IAED,SAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,CAwC5E;CACJ"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetProperty = exports.isSetProperty = 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 IntProperty_1 = require("../IntProperty");
|
|
8
|
+
const NameProperty_1 = require("../NameProperty");
|
|
9
|
+
const ObjectProperty_1 = require("../ObjectProperty");
|
|
10
|
+
const StrProperty_1 = require("../StrProperty");
|
|
11
|
+
const Uint32Property_1 = require("../Uint32Property");
|
|
12
|
+
const isSetProperty = (property) => !Array.isArray(property) && property.propertyTagType.name === 'SetProperty';
|
|
13
|
+
exports.isSetProperty = isSetProperty;
|
|
14
|
+
var SetProperty;
|
|
15
|
+
(function (SetProperty) {
|
|
16
|
+
function Parse(reader, property) {
|
|
17
|
+
property.numElementsToRemove = reader.readInt32();
|
|
18
|
+
if (property.numElementsToRemove > 0) {
|
|
19
|
+
throw new parser_error_1.UnimplementedError('SetProperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');
|
|
20
|
+
}
|
|
21
|
+
const elementCount = reader.readInt32();
|
|
22
|
+
switch (property.propertyTagType.children[0].name) {
|
|
23
|
+
case "UInt32Property":
|
|
24
|
+
property.values = new Array(elementCount).fill(0).map(() => Uint32Property_1.Uint32Property.ReadValue(reader));
|
|
25
|
+
break;
|
|
26
|
+
case "IntProperty":
|
|
27
|
+
property.values = new Array(elementCount).fill(0).map(() => IntProperty_1.IntProperty.ReadValue(reader));
|
|
28
|
+
break;
|
|
29
|
+
case "ObjectProperty":
|
|
30
|
+
property.values = new Array(elementCount).fill(0).map(() => ObjectProperty_1.ObjectProperty.ReadValue(reader));
|
|
31
|
+
break;
|
|
32
|
+
case "NameProperty":
|
|
33
|
+
property.values = new Array(elementCount).fill(0).map(() => NameProperty_1.NameProperty.ReadValue(reader));
|
|
34
|
+
break;
|
|
35
|
+
case "StrProperty":
|
|
36
|
+
property.values = new Array(elementCount).fill(0).map(() => StrProperty_1.StrProperty.ReadValue(reader));
|
|
37
|
+
break;
|
|
38
|
+
case "StructProperty":
|
|
39
|
+
if (property.name === 'mRemovalLocations') {
|
|
40
|
+
property.values = new Array(elementCount).fill(0).map(() => vec3_1.vec3.ParseF(reader));
|
|
41
|
+
}
|
|
42
|
+
else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
|
|
43
|
+
property.values = new Array(elementCount).fill(0).map(() => GUID_1.GUID.read(reader));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
throw new parser_error_1.UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${property.name}.`);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
throw new Error(`Not Implemented SetProperty of ${property.propertyTagType.children[0].name}.`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
SetProperty.Parse = Parse;
|
|
54
|
+
function Serialize(writer, property) {
|
|
55
|
+
writer.writeInt32(property.numElementsToRemove ?? 0);
|
|
56
|
+
writer.writeInt32(property.values.length);
|
|
57
|
+
switch (property.propertyTagType.children[0].name) {
|
|
58
|
+
case "UInt32Property":
|
|
59
|
+
property.values.forEach(value => Uint32Property_1.Uint32Property.SerializeValue(writer, value));
|
|
60
|
+
break;
|
|
61
|
+
case "IntProperty":
|
|
62
|
+
property.values.forEach(value => IntProperty_1.IntProperty.SerializeValue(writer, value));
|
|
63
|
+
break;
|
|
64
|
+
case "ObjectProperty":
|
|
65
|
+
property.values.forEach(value => ObjectProperty_1.ObjectProperty.SerializeValue(writer, value));
|
|
66
|
+
break;
|
|
67
|
+
case "NameProperty":
|
|
68
|
+
property.values.forEach(value => NameProperty_1.NameProperty.SerializeValue(writer, value));
|
|
69
|
+
break;
|
|
70
|
+
case "StrProperty":
|
|
71
|
+
property.values.forEach(value => StrProperty_1.StrProperty.SerializeValue(writer, value));
|
|
72
|
+
break;
|
|
73
|
+
case "StructProperty":
|
|
74
|
+
if (property.name === 'mRemovalLocations') {
|
|
75
|
+
property.values.forEach(v => vec3_1.vec3.SerializeF(writer, v));
|
|
76
|
+
}
|
|
77
|
+
else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {
|
|
78
|
+
property.values.forEach(v => GUID_1.GUID.write(writer, v));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
default:
|
|
85
|
+
throw new Error(`Not Implemented SetProperty of ${property.propertyTagType.children[0].name}.`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
SetProperty.Serialize = Serialize;
|
|
89
|
+
})(SetProperty || (exports.SetProperty = SetProperty = {}));
|
|
90
|
+
//# sourceMappingURL=SetProperty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/SetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,uDAAoD;AACpD,gDAA6C;AAE7C,gDAA6C;AAC7C,kDAA+C;AAC/C,sDAAmD;AACnD,gDAA6C;AAC7C,sDAAmD;AAE5C,MAAM,aAAa,GAAG,CAAC,QAAa,EAA2B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,KAAK,aAAa,CAAC;AAAxI,QAAA,aAAa,iBAA2H;AAQrJ,IAAiB,WAAW,CAyF3B;AAzFD,WAAiB,WAAW;IAExB,SAAgB,KAAK,CAAC,MAAqB,EAAE,QAAqB;QAE9D,QAAQ,CAAC,mBAAmB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAClD,IAAI,QAAQ,CAAC,mBAAmB,GAAG,CAAC,EAAE,CAAC;YAEnC,MAAM,IAAI,iCAAkB,CAAC,iGAAiG,CAAC,CAAC;QACpI,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAExC,QAAQ,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAEhD,KAAK,gBAAgB;gBACjB,QAAQ,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,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ourcesContent":["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';\nimport { IntProperty } from '../IntProperty';\nimport { NameProperty } from '../NameProperty';\nimport { ObjectProperty } from '../ObjectProperty';\nimport { StrProperty } from '../StrProperty';\nimport { Uint32Property } from '../Uint32Property';\n\nexport const isSetProperty = (property: any): property is SetProperty => !Array.isArray(property) && property.propertyTagType.name === 'SetProperty';\n\nexport type SetProperty = AbstractBaseProperty & {\n type: 'SetProperty';\n numElementsToRemove?: number;\n values: any[];\n}\n\nexport namespace SetProperty {\n\n export function Parse(reader: ContextReader, property: SetProperty): void {\n\n property.numElementsToRemove = reader.readInt32();\n if (property.numElementsToRemove > 0) {\n // not observed so far.\n throw new UnimplementedError('SetProperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');\n }\n const elementCount = reader.readInt32();\n\n switch (property.propertyTagType.children[0].name) {\n\n case \"UInt32Property\":\n property.values = new Array(elementCount).fill(0).map(() => Uint32Property.ReadValue(reader));\n break;\n\n case \"IntProperty\":\n property.values = new Array(elementCount).fill(0).map(() => IntProperty.ReadValue(reader));\n break;\n\n case \"ObjectProperty\":\n property.values = new Array(elementCount).fill(0).map(() => ObjectProperty.ReadValue(reader));\n break;\n\n case \"NameProperty\":\n property.values = new Array(elementCount).fill(0).map(() => NameProperty.ReadValue(reader));\n break;\n\n case \"StrProperty\":\n property.values = new Array(elementCount).fill(0).map(() => StrProperty.ReadValue(reader));\n break;\n\n case \"StructProperty\":\n if (property.name === 'mRemovalLocations') {\n property.values = new Array(elementCount).fill(0).map(() => vec3.ParseF(reader));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values = new Array(elementCount).fill(0).map(() => GUID.read(reader));\n } else {\n throw new UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${property.name}.`);\n }\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${property.propertyTagType.children[0].name}.`);\n }\n }\n\n export function Serialize(writer: ContextWriter, property: SetProperty): void {\n\n writer.writeInt32(property.numElementsToRemove ?? 0);\n writer.writeInt32(property.values.length);\n\n switch (property.propertyTagType.children[0].name) {\n\n case \"UInt32Property\":\n property.values.forEach(value => Uint32Property.SerializeValue(writer, value));\n break;\n\n case \"IntProperty\":\n property.values.forEach(value => IntProperty.SerializeValue(writer, value));\n break;\n\n case \"ObjectProperty\":\n property.values.forEach(value => ObjectProperty.SerializeValue(writer, value));\n break;\n\n case \"NameProperty\":\n property.values.forEach(value => NameProperty.SerializeValue(writer, value));\n break;\n\n case \"StrProperty\":\n property.values.forEach(value => StrProperty.SerializeValue(writer, value));\n break;\n\n case \"StructProperty\":\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 break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${property.propertyTagType.children[0].name}.`);\n }\n }\n}\n"]}
|
package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FPropertyTagNode } from "../../../structs/binary/FPropertyTagNode";
|
|
2
|
+
import { AbstractBaseProperty } from "../AbstractBaseProperty";
|
|
3
|
+
import { IntProperty } from "../IntProperty";
|
|
4
|
+
import { NameProperty } from "../NameProperty";
|
|
5
|
+
import { ObjectProperty } from "../ObjectProperty";
|
|
6
|
+
import { StrProperty } from "../StrProperty";
|
|
7
|
+
import { Uint32Property } from "../Uint32Property";
|
|
8
|
+
import { StructProperty } from "./StructProperty";
|
|
9
|
+
type SpecificSetPropertyType<TSubtype extends AbstractBaseProperty, TSubtypevalue = TSubtype['value']> = AbstractBaseProperty & {
|
|
10
|
+
propertyTagType: {
|
|
11
|
+
name: 'SetProperty';
|
|
12
|
+
children: [
|
|
13
|
+
{
|
|
14
|
+
name: TSubtype['type'];
|
|
15
|
+
children: FPropertyTagNode[];
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
};
|
|
19
|
+
values: TSubtypevalue[];
|
|
20
|
+
};
|
|
21
|
+
export type Uint32SetProperty = SpecificSetPropertyType<Uint32Property>;
|
|
22
|
+
export declare const isUint32SetProperty: (property: AbstractBaseProperty) => property is Uint32SetProperty;
|
|
23
|
+
export type IntSetProperty = SpecificSetPropertyType<IntProperty>;
|
|
24
|
+
export declare const isIntSetProperty: (property: AbstractBaseProperty) => property is IntSetProperty;
|
|
25
|
+
export type ObjectSetProperty = SpecificSetPropertyType<ObjectProperty>;
|
|
26
|
+
export declare const isObjectSetProperty: (property: AbstractBaseProperty) => property is ObjectSetProperty;
|
|
27
|
+
export type StrSetProperty = SpecificSetPropertyType<StrProperty>;
|
|
28
|
+
export declare const isStrSetProperty: (property: AbstractBaseProperty) => property is StrSetProperty;
|
|
29
|
+
export type NameSetProperty = SpecificSetPropertyType<NameProperty>;
|
|
30
|
+
export declare const isNameSetProperty: (property: AbstractBaseProperty) => property is NameSetProperty;
|
|
31
|
+
export type StructSetProperty = SpecificSetPropertyType<StructProperty>;
|
|
32
|
+
export declare const isStructSetProperty: (property: AbstractBaseProperty) => property is StructSetProperty;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=SetPropertySpecificTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetPropertySpecificTypes.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MA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AM,eAAe,GAAG,uBAAuB,CAAC,YAAY,CAAC,CAAC;AACpE,eAAO,MAAM,iBAAiB,aAtBZ,oBAAoB,KAC/B,QAAQ,mBAqB4E,CAAC;AAE5F,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,cAAc,CAAC,CAAC;AACxE,eAAO,MAAM,mBAAmB,aAzBd,oBAAoB,KAC/B,QAAQ,qBAwBkF,CAAC"}
|
package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isStructSetProperty = exports.isNameSetProperty = exports.isStrSetProperty = exports.isObjectSetProperty = exports.isIntSetProperty = exports.isUint32SetProperty = void 0;
|
|
4
|
+
const SetProperty_1 = require("./SetProperty");
|
|
5
|
+
function createSetPropertyGuardFor(typeName) {
|
|
6
|
+
return (property) => {
|
|
7
|
+
return ((0, SetProperty_1.isSetProperty)(property) &&
|
|
8
|
+
property.propertyTagType?.children[0]?.name === typeName);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.isUint32SetProperty = createSetPropertyGuardFor('Uint32Property');
|
|
12
|
+
exports.isIntSetProperty = createSetPropertyGuardFor('IntProperty');
|
|
13
|
+
exports.isObjectSetProperty = createSetPropertyGuardFor('ObjectProperty');
|
|
14
|
+
exports.isStrSetProperty = createSetPropertyGuardFor('StrProperty');
|
|
15
|
+
exports.isNameSetProperty = createSetPropertyGuardFor('NameProperty');
|
|
16
|
+
exports.isStructSetProperty = createSetPropertyGuardFor('StructProperty');
|
|
17
|
+
//# sourceMappingURL=SetPropertySpecificTypes.js.map
|
package/build/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetPropertySpecificTypes.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/SetPropertySpecificTypes.ts"],"names":[],"mappings":";;;AAOA,+CAA8C;AAgB9C,SAAS,yBAAyB,CAC9B,QAAgD;IAEhD,OAAO,CACH,QAA8B,EACJ,EAAE;QAC5B,OAAO,CACH,IAAA,2BAAa,EAAC,QAAQ,CAAC;YACvB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,QAAQ,CAC3D,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAGY,QAAA,mBAAmB,GAAG,yBAAyB,CAAoB,gBAAgB,CAAC,CAAC;AAGrF,QAAA,gBAAgB,GAAG,yBAAyB,CAAiB,aAAa,CAAC,CAAC;AAG5E,QAAA,mBAAmB,GAAG,yBAAyB,CAAoB,gBAAgB,CAAC,CAAC;AAGrF,QAAA,gBAAgB,GAAG,yBAAyB,CAAiB,aAAa,CAAC,CAAC;AAG5E,QAAA,iBAAiB,GAAG,yBAAyB,CAAkB,cAAc,CAAC,CAAC;AAG/E,QAAA,mBAAmB,GAAG,yBAAyB,CAAoB,gBAAgB,CAAC,CAAC","sourcesContent":["import { FPropertyTagNode } from \"../../../structs/binary/FPropertyTagNode\";\nimport { AbstractBaseProperty } from \"../AbstractBaseProperty\";\nimport { IntProperty } from \"../IntProperty\";\nimport { NameProperty } from \"../NameProperty\";\nimport { ObjectProperty } from \"../ObjectProperty\";\nimport { StrProperty } from \"../StrProperty\";\nimport { Uint32Property } from \"../Uint32Property\";\nimport { isSetProperty } from \"./SetProperty\";\nimport { StructProperty } from \"./StructProperty\";\n\n// Helpers to create type guards.\n// Not necessarily needed, but checking for a \"StrSetProperty\" can be useful i guess.\ntype SpecificSetPropertyType<TSubtype extends AbstractBaseProperty, TSubtypevalue = TSubtype['value']> = AbstractBaseProperty & {\n propertyTagType: {\n name: 'SetProperty';\n children: [{\n name: TSubtype['type'];\n children: FPropertyTagNode[];\n }];\n };\n values: TSubtypevalue[];\n};\ntype ExtractSubtype<T> = T extends SpecificSetPropertyType<infer U> ? U : never;\nfunction createSetPropertyGuardFor<TArrayProperty extends SpecificSetPropertyType<AbstractBaseProperty>>(\n typeName: ExtractSubtype<TArrayProperty>['type']\n) {\n return (\n property: AbstractBaseProperty\n ): property is TArrayProperty => {\n return (\n isSetProperty(property) &&\n property.propertyTagType?.children[0]?.name === typeName\n );\n };\n}\n\nexport type Uint32SetProperty = SpecificSetPropertyType<Uint32Property>;\nexport const isUint32SetProperty = createSetPropertyGuardFor<Uint32SetProperty>('Uint32Property');\n\nexport type IntSetProperty = SpecificSetPropertyType<IntProperty>;\nexport const isIntSetProperty = createSetPropertyGuardFor<IntSetProperty>('IntProperty');\n\nexport type ObjectSetProperty = SpecificSetPropertyType<ObjectProperty>;\nexport const isObjectSetProperty = createSetPropertyGuardFor<ObjectSetProperty>('ObjectProperty');\n\nexport type StrSetProperty = SpecificSetPropertyType<StrProperty>;\nexport const isStrSetProperty = createSetPropertyGuardFor<StrSetProperty>('StrProperty');\n\nexport type NameSetProperty = SpecificSetPropertyType<NameProperty>;\nexport const isNameSetProperty = createSetPropertyGuardFor<NameSetProperty>('NameProperty');\n\nexport type StructSetProperty = SpecificSetPropertyType<StructProperty>;\nexport const isStructSetProperty = createSetPropertyGuardFor<StructSetProperty>('StructProperty');\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ContextReader } from '../../../../../context/context-reader';
|
|
2
|
+
import { ContextWriter } from '../../../../../context/context-writer';
|
|
3
|
+
import { FClientIdentityInfo } from '../../../structs/binary/FClientIdentityInfo';
|
|
4
|
+
import { FPlayerInfoHandle } from '../../../structs/binary/FPlayerInfoHandle';
|
|
5
|
+
import { FPropertyTag } from '../../../structs/binary/FPropertyTag';
|
|
6
|
+
import { FPropertyTagNode } from '../../../structs/binary/FPropertyTagNode';
|
|
7
|
+
import { FUniqueNetIdRepl } from '../../../structs/binary/FUniqueNetIdRepl';
|
|
8
|
+
import { col4 } from '../../../structs/col4';
|
|
9
|
+
import { DynamicStructPropertyValue } from '../../../structs/DynamicStructPropertyValue';
|
|
10
|
+
import { FGDynamicStruct } from '../../../structs/FGDynamicStruct';
|
|
11
|
+
import { FINGPUT1BufferPixel } from '../../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel';
|
|
12
|
+
import { FINLuaRuntimePersistenceState } from '../../../structs/mods/FicsItNetworks/FINLuaRuntimePersistenceState';
|
|
13
|
+
import { FINNetworkTrace } from '../../../structs/mods/FicsItNetworks/FINNetworkTrace';
|
|
14
|
+
import { FLBBalancerIndexing } from '../../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing';
|
|
15
|
+
import { ObjectReference } from '../../../structs/ObjectReference';
|
|
16
|
+
import { vec2 } from '../../../structs/vec2';
|
|
17
|
+
import { vec3 } from '../../../structs/vec3';
|
|
18
|
+
import { vec4 } from '../../../structs/vec4';
|
|
19
|
+
import { AbstractBaseProperty } from '../AbstractBaseProperty';
|
|
20
|
+
export type BasicMultipleStructPropertyValue = {
|
|
21
|
+
values: any;
|
|
22
|
+
};
|
|
23
|
+
export type BasicStructPropertyValue = {
|
|
24
|
+
value: any;
|
|
25
|
+
};
|
|
26
|
+
export type BoxStructPropertyValue = {
|
|
27
|
+
min: vec3;
|
|
28
|
+
max: vec3;
|
|
29
|
+
isValid: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type RailroadTrackPositionStructPropertyValue = {
|
|
32
|
+
root: string;
|
|
33
|
+
instanceName: string;
|
|
34
|
+
offset: number;
|
|
35
|
+
forward: number;
|
|
36
|
+
};
|
|
37
|
+
export type InventoryItemStructPropertyValue = {
|
|
38
|
+
itemReference: ObjectReference;
|
|
39
|
+
itemState?: FGDynamicStruct;
|
|
40
|
+
legacyItemStateActor?: ObjectReference;
|
|
41
|
+
};
|
|
42
|
+
export type FICFrameRangeStructPropertyValue = {
|
|
43
|
+
begin: string;
|
|
44
|
+
end: string;
|
|
45
|
+
};
|
|
46
|
+
export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | FClientIdentityInfo | DynamicStructPropertyValue | col4 | vec2 | vec3 | vec4 | string | FINNetworkTrace | FINGPUT1BufferPixel | FLBBalancerIndexing | FINLuaRuntimePersistenceState | FUniqueNetIdRepl | FPlayerInfoHandle;
|
|
47
|
+
export declare const isStructProperty: (property: any) => property is StructProperty;
|
|
48
|
+
export type StructProperty = AbstractBaseProperty & {
|
|
49
|
+
type: 'StructProperty';
|
|
50
|
+
subtype: string;
|
|
51
|
+
value: GENERIC_STRUCT_PROPERTY_VALUE;
|
|
52
|
+
};
|
|
53
|
+
export declare namespace StructProperty {
|
|
54
|
+
function Parse(reader: ContextReader, property: StructProperty, tag: FPropertyTag): void;
|
|
55
|
+
function ParseValue(reader: ContextReader, propertyTagType: FPropertyTagNode, size: number): GENERIC_STRUCT_PROPERTY_VALUE;
|
|
56
|
+
function Serialize(writer: ContextWriter, property: StructProperty): void;
|
|
57
|
+
function SerializeValue(writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=StructProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StructProperty.d.ts","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/containers/StructProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAGlF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE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