@etothepii/satisfactory-file-parser 3.2.3 → 3.3.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/CHANGELOG.md +8 -0
- package/README.md +16 -1
- package/build/index.d.ts +13 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +14 -6
- package/build/index.js.map +1 -1
- package/build/parser/byte/byte-writer.class.d.ts +2 -0
- package/build/parser/byte/byte-writer.class.d.ts.map +1 -1
- package/build/parser/byte/byte-writer.class.js +8 -0
- package/build/parser/byte/byte-writer.class.js.map +1 -1
- package/build/parser/context/context.d.ts +2 -0
- package/build/parser/context/context.d.ts.map +1 -1
- package/build/parser/context/context.js.map +1 -1
- package/build/parser/parser.d.ts +2 -0
- package/build/parser/parser.d.ts.map +1 -1
- package/build/parser/parser.js +2 -0
- package/build/parser/parser.js.map +1 -1
- package/build/parser/satisfactory/blueprint/blueprint-header.js +5 -5
- package/build/parser/satisfactory/blueprint/blueprint-header.js.map +1 -1
- package/build/parser/satisfactory/save/level.d.ts.map +1 -1
- package/build/parser/satisfactory/save/level.js +32 -17
- package/build/parser/satisfactory/save/level.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js +24 -5
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +118 -97
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts +1 -0
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/AbstractBaseProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts +2 -2
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js +3 -4
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/ArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js +1 -1
- package/build/parser/satisfactory/types/property/generic/ArrayProperty/StructArrayProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts +2 -2
- package/build/parser/satisfactory/types/property/generic/ByteProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js +3 -4
- package/build/parser/satisfactory/types/property/generic/ByteProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts +2 -2
- package/build/parser/satisfactory/types/property/generic/EnumProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js +3 -4
- package/build/parser/satisfactory/types/property/generic/EnumProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts +2 -2
- package/build/parser/satisfactory/types/property/generic/MapProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/MapProperty.js +8 -5
- package/build/parser/satisfactory/types/property/generic/MapProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts +2 -2
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js +3 -4
- package/build/parser/satisfactory/types/property/generic/SetProperty/SetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js +1 -1
- package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts +8 -7
- package/build/parser/satisfactory/types/property/generic/StructProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/StructProperty.js +71 -47
- package/build/parser/satisfactory/types/property/generic/StructProperty.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.js +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
- package/build/parser/satisfactory/types/structs/binary/FClientIdentityInfo.d.ts +11 -0
- package/build/parser/satisfactory/types/structs/binary/FClientIdentityInfo.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FClientIdentityInfo.js +31 -0
- package/build/parser/satisfactory/types/structs/binary/FClientIdentityInfo.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FColor.d.ts +9 -0
- package/build/parser/satisfactory/types/structs/binary/FColor.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FColor.js +14 -0
- package/build/parser/satisfactory/types/structs/binary/FColor.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FLinearColor.d.ts +9 -0
- package/build/parser/satisfactory/types/structs/binary/FLinearColor.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/FLinearColor.js +14 -0
- package/build/parser/satisfactory/types/structs/binary/FLinearColor.js.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/GUID.d.ts +8 -0
- package/build/parser/satisfactory/types/structs/binary/GUID.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/binary/GUID.js +22 -0
- package/build/parser/satisfactory/types/structs/binary/GUID.js.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +2 -2
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js +2 -2
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.js.map +1 -1
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINGPUT1BufferPixel.d.ts +13 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINGPUT1BufferPixel.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINGPUT1BufferPixel.js +21 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINGPUT1BufferPixel.js.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINNetworkTrace.d.ts +13 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINNetworkTrace.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINNetworkTrace.js +35 -0
- package/build/parser/satisfactory/types/structs/mods/FicsItNetworks/FINNetworkTrace.js.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/ModularLoadBalancers/FLBBalancerIndexing.d.ts +12 -0
- package/build/parser/satisfactory/types/structs/mods/ModularLoadBalancers/FLBBalancerIndexing.d.ts.map +1 -0
- package/build/parser/satisfactory/types/structs/mods/ModularLoadBalancers/FLBBalancerIndexing.js +20 -0
- package/build/parser/satisfactory/types/structs/mods/ModularLoadBalancers/FLBBalancerIndexing.js.map +1 -0
- package/build/parser/stream/reworked/readable-stream-parser.d.ts.map +1 -1
- package/build/parser/stream/reworked/readable-stream-parser.js +6 -5
- package/build/parser/stream/reworked/readable-stream-parser.js.map +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BlueprintConfigReader.html +4 -4
- package/docs/classes/BlueprintReader.html +4 -4
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/ContextReader.html +36 -0
- package/docs/classes/ContextWriter.html +41 -0
- package/docs/classes/CorruptBlueprintError.html +2 -2
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/Parser.html +8 -8
- package/docs/classes/ParserError.html +2 -2
- 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 +6 -4
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- package/docs/enums/Alignment.html +3 -0
- 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 -0
- package/docs/functions/FClientIdentityInfo.write.html +1 -0
- package/docs/functions/FColor.read.html +1 -0
- package/docs/functions/FColor.write.html +1 -0
- package/docs/functions/FGDynamicStruct.Parse.html +1 -1
- package/docs/functions/FGDynamicStruct.Serialize.html +1 -1
- package/docs/functions/FICFrameRange.read.html +1 -0
- package/docs/functions/FICFrameRange.write.html +1 -0
- package/docs/functions/FINGPUT1BufferPixel.read.html +1 -0
- package/docs/functions/FINGPUT1BufferPixel.write.html +1 -0
- package/docs/functions/FINItemStateFileSystem.IsFINItemStateFileSystem.html +1 -0
- package/docs/functions/FINItemStateFileSystem.read.html +1 -0
- package/docs/functions/FINItemStateFileSystem.write.html +1 -0
- package/docs/functions/FINNetworkTrace.read.html +1 -0
- package/docs/functions/FINNetworkTrace.write.html +1 -0
- package/docs/functions/FLBBalancerIndexing.read.html +1 -0
- package/docs/functions/FLBBalancerIndexing.write.html +1 -0
- package/docs/functions/FLinearColor.read.html +1 -0
- package/docs/functions/FLinearColor.write.html +1 -0
- 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/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/isSpecialDroneActionProperties.html +1 -1
- package/docs/functions/isStrArrayProperty.html +1 -1
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStrSetProperty.html +1 -1
- package/docs/functions/isStructArrayProperty.html +1 -1
- package/docs/functions/isStructProperty.html +1 -1
- package/docs/functions/isStructSetProperty.html +1 -1
- package/docs/functions/isTextArrayProperty.html +1 -1
- package/docs/functions/isTextProperty.html +1 -1
- package/docs/functions/isUInt64Property.html +1 -1
- package/docs/functions/isUint32Property.html +1 -1
- package/docs/functions/isUint32SetProperty.html +1 -1
- package/docs/functions/isUint8Property.html +1 -1
- package/docs/functions/isVehicleSpecialProperties.html +1 -1
- package/docs/functions/vec2.Parse.html +1 -1
- package/docs/functions/vec2.ParseF.html +1 -1
- package/docs/functions/vec2.Serialize.html +1 -1
- package/docs/functions/vec2.SerializeF.html +1 -1
- package/docs/functions/vec3.Parse.html +1 -1
- package/docs/functions/vec3.ParseF.html +1 -1
- package/docs/functions/vec3.ParseInt.html +1 -1
- package/docs/functions/vec3.Serialize.html +1 -1
- package/docs/functions/vec3.SerializeF.html +1 -1
- package/docs/functions/vec3.SerializeInt.html +1 -1
- package/docs/functions/vec3.add.html +1 -1
- package/docs/functions/vec3.length.html +1 -1
- package/docs/functions/vec3.mult.html +1 -1
- package/docs/functions/vec3.norm.html +1 -1
- package/docs/functions/vec3.sub.html +1 -1
- package/docs/functions/vec4.Parse.html +1 -1
- package/docs/functions/vec4.ParseF.html +1 -1
- package/docs/functions/vec4.Serialize.html +1 -1
- package/docs/functions/vec4.SerializeF.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +15 -4
- 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 +3 -0
- package/docs/modules/FColor.html +3 -0
- package/docs/modules/FGDynamicStruct.html +1 -1
- package/docs/modules/FICFrameRange.html +3 -2
- package/docs/modules/FINGPUT1BufferPixel.html +4 -0
- package/docs/modules/FINItemStateFileSystem.html +5 -0
- package/docs/modules/FINNetworkTrace.html +4 -0
- package/docs/modules/FLBBalancerIndexing.html +3 -0
- package/docs/modules/FLinearColor.html +3 -0
- 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/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 +21 -4
- package/docs/types/AbstractBaseProperty-1.html +7 -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 +2 -0
- package/docs/types/BoolArrayProperty-1.html +1 -1
- package/docs/types/BoolProperty-1.html +1 -1
- package/docs/types/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -1
- package/docs/types/BuildableTypeInstance-1.html +1 -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 +2 -0
- package/docs/types/FColor-1.html +2 -0
- 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 -0
- package/docs/types/FINItemStateFileSystem-1.html +2 -0
- package/docs/types/FINNetworkTrace-1.html +1 -0
- package/docs/types/FLBBalancerIndexing-1.html +2 -0
- package/docs/types/FLinearColor-1.html +2 -0
- 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 -2
- 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 +2 -0
- 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 +3 -0
- package/docs/types/SetProperty.AvailableSetPropertyTypes.html +1 -1
- package/docs/types/SoftObjectArrayProperty-1.html +1 -1
- package/docs/types/SoftObjectReference-1.html +1 -1
- package/docs/types/SpecialDroneAction.html +1 -1
- package/docs/types/SpecialDroneActionProperties-1.html +1 -1
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -1
- package/docs/types/StrArrayProperty-1.html +1 -1
- package/docs/types/StrProperty-1.html +1 -1
- package/docs/types/StrSetProperty-1.html +1 -1
- package/docs/types/StructArrayProperty-1.html +1 -1
- package/docs/types/StructProperty-1.html +1 -1
- package/docs/types/StructSetProperty-1.html +1 -1
- package/docs/types/TextArrayProperty-1.html +1 -1
- package/docs/types/TextProperty-1.html +1 -1
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/Uint32Property-1.html +1 -1
- package/docs/types/Uint32SetProperty-1.html +1 -1
- package/docs/types/Uint64Property-1.html +1 -1
- package/docs/types/Uint8Property-1.html +1 -1
- package/docs/types/VehiclePhysicsData-1.html +1 -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 -0
- 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 +3 -3
- package/docs/classes/BlueprintConfigWriter.html +0 -39
- package/docs/classes/BlueprintWriter.html +0 -42
- package/docs/functions/FICFrameRange.Parse.html +0 -1
- package/docs/functions/FICFrameRange.Serialize.html +0 -1
- package/docs/types/ClientIdentityInfo.html +0 -1
|
@@ -15,8 +15,7 @@ const isSetProperty = (obj) => (0, Uint32SetProperty_1.isUint32SetProperty)(obj)
|
|
|
15
15
|
exports.isSetProperty = isSetProperty;
|
|
16
16
|
var SetProperty;
|
|
17
17
|
(function (SetProperty) {
|
|
18
|
-
SetProperty.Parse = (reader, ueType, index, propertyName) => {
|
|
19
|
-
const subtype = reader.readString();
|
|
18
|
+
SetProperty.Parse = (reader, ueType, index, propertyName, subtype) => {
|
|
20
19
|
reader.skipBytes(1);
|
|
21
20
|
const numElementsToRemove = reader.readInt32();
|
|
22
21
|
if (numElementsToRemove > 0) {
|
|
@@ -45,8 +44,8 @@ var SetProperty;
|
|
|
45
44
|
}
|
|
46
45
|
return property;
|
|
47
46
|
};
|
|
48
|
-
SetProperty.CalcOverhead = (property) => {
|
|
49
|
-
return
|
|
47
|
+
SetProperty.CalcOverhead = (property, subtype) => {
|
|
48
|
+
return subtype.length + 5 + 1;
|
|
50
49
|
};
|
|
51
50
|
SetProperty.Serialize = (writer, property) => {
|
|
52
51
|
writer.writeString(property.subtype);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/SetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,yDAA0E;AAC1E,2DAA6E;AAC7E,qDAAoE;AACpE,2DAA6E;AAC7E,2DAA6E;AAEtE,MAAM,aAAa,GAAG,CAAC,GAAQ,EAAgD,EAAE,CACpF,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACrB,IAAA,qCAAkB,EAAC,GAAG,CAAC;OACvB,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,iCAAgB,EAAC,GAAG,CAAC;OACrB,IAAA,uCAAmB,EAAC,GAAG,CAAC,CAAC;AALnB,QAAA,aAAa,iBAKM;AAEhC,IAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"SetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/SetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,yDAA0E;AAC1E,2DAA6E;AAC7E,qDAAoE;AACpE,2DAA6E;AAC7E,2DAA6E;AAEtE,MAAM,aAAa,GAAG,CAAC,GAAQ,EAAgD,EAAE,CACpF,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACrB,IAAA,qCAAkB,EAAC,GAAG,CAAC;OACvB,IAAA,uCAAmB,EAAC,GAAG,CAAC;OACxB,IAAA,iCAAgB,EAAC,GAAG,CAAC;OACrB,IAAA,uCAAmB,EAAC,GAAG,CAAC,CAAC;AALnB,QAAA,aAAa,iBAKM;AAEhC,IAAiB,WAAW,CAoE3B;AApED,WAAiB,WAAW;IAIX,iBAAK,GAAG,CAAC,MAAqB,EAAE,MAAc,EAAE,KAAa,EAAE,YAAoB,EAAE,OAAe,EAA6B,EAAE;QAE5I,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,mBAAmB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC/C,IAAI,mBAAmB,GAAG,CAAC,EAAE,CAAC;YAE1B,MAAM,IAAI,iCAAkB,CAAC,iGAAiG,CAAC,CAAC;QACpI,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAExC,IAAI,QAAmC,CAAC;QACxC,QAAQ,OAAO,EAAE,CAAC;YAEd,KAAK,gBAAgB;gBACjB,QAAQ,GAAG,qCAAiB,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO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,CAAC,EAAE,CAAC;YAC/B,mCAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACjD,CAAC;aAAM,IAAI,IAAA,uCAAmB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,qCAAiB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,IAAI,IAAA,uCAAmB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,qCAAiB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,IAAI,IAAA,iCAAgB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACpC,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC/C,CAAC;aAAM,IAAI,IAAA,uCAAmB,EAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,qCAAiB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,iCAAkB,CAAC,8CAA+C,QAAgB,CAAC,OAAO,GAAG,CAAC,CAAC;QAC7G,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EApEgB,WAAW,2BAAX,WAAW,QAoE3B","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { Int32SetProperty, isInt32SetProperty } from './Int32SetProperty';\nimport { isObjectSetProperty, ObjectSetProperty } from './ObjectSetProperty';\nimport { isStrSetProperty, StrSetProperty } from './StrSetProperty';\nimport { isStructSetProperty, StructSetProperty } from './StructSetProperty';\nimport { isUint32SetProperty, Uint32SetProperty } from './Uint32SetProperty';\n\nexport const isSetProperty = (obj: any): obj is SetProperty.AvailableSetPropertyTypes =>\n isUint32SetProperty(obj)\n || isInt32SetProperty(obj)\n || isObjectSetProperty(obj)\n || isStrSetProperty(obj)\n || isStructSetProperty(obj);\n\nexport namespace SetProperty {\n\n export type AvailableSetPropertyTypes = Uint32SetProperty | Int32SetProperty | ObjectSetProperty | StrSetProperty | StructSetProperty;\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, propertyName: string, subtype: string): AvailableSetPropertyTypes => {\n\n reader.skipBytes(1); // 0\n const numElementsToRemove = reader.readInt32();\n if (numElementsToRemove > 0) {\n // not observed so far.\n throw new UnimplementedError('SetPreperty does not yet support Number of Elements to be removed. Feel free to raise an issue.');\n }\n const elementCount = reader.readInt32();\n\n let property: AvailableSetPropertyTypes;\n switch (subtype) {\n\n case \"UInt32Property\":\n property = Uint32SetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"IntProperty\":\n property = Int32SetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"ObjectProperty\":\n property = ObjectSetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"NameProperty\":\n property = StrSetProperty.Parse(reader, elementCount, subtype, ueType, index);\n break;\n\n case \"StructProperty\":\n property = StructSetProperty.Parse(reader, elementCount, subtype, ueType, index, propertyName);\n break;\n\n default:\n throw new Error(`Not Implemented SetProperty of ${subtype}.`);\n }\n\n return property;\n }\n\n export const CalcOverhead = (property: AvailableSetPropertyTypes, subtype: string): number => {\n return subtype.length + 5 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: AvailableSetPropertyTypes): void => {\n writer.writeString(property.subtype);\n writer.writeByte(0);\n writer.writeInt32(0);\n writer.writeInt32(property.values.length);\n\n if (isInt32SetProperty(property)) {\n Int32SetProperty.Serialize(writer, property);\n } else if (isUint32SetProperty(property)) {\n Uint32SetProperty.Serialize(writer, property);\n } else if (isObjectSetProperty(property)) {\n ObjectSetProperty.Serialize(writer, property);\n } else if (isStrSetProperty(property)) {\n StrSetProperty.Serialize(writer, property);\n } else if (isStructSetProperty(property)) {\n StructSetProperty.Serialize(writer, property);\n } else {\n throw new UnimplementedError(`Not Implemented Serializing SetProperty of ${(property as any).subtype}.`);\n }\n }\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StructSetProperty = exports.isStructSetProperty = void 0;
|
|
4
4
|
const parser_error_1 = require("../../../../../error/parser.error");
|
|
5
|
-
const GUID_1 = require("../../../structs/GUID");
|
|
5
|
+
const GUID_1 = require("../../../structs/binary/GUID");
|
|
6
6
|
const vec3_1 = require("../../../structs/vec3");
|
|
7
7
|
const AbstractBaseProperty_1 = require("../AbstractBaseProperty");
|
|
8
8
|
const isStructSetProperty = (property) => !Array.isArray(property) && property.type === 'StructSetProperty';
|
package/build/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StructSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"StructSetProperty.js","sourceRoot":"","sources":["../../../../../../../src/parser/satisfactory/types/property/generic/SetProperty/StructSetProperty.ts"],"names":[],"mappings":";;;AAEA,oEAAuE;AACvE,uDAAoD;AACpD,gDAA6C;AAC7C,kEAA+D;AAExD,MAAM,mBAAmB,GAAG,CAAC,QAAa,EAAiC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC;AAA1I,QAAA,mBAAmB,uBAAuH;AAQvJ,IAAiB,iBAAiB,CA+BjC;AA/BD,WAAiB,iBAAiB;IAEjB,uBAAK,GAAG,CAAC,MAAqB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,QAAgB,CAAC,EAAE,YAAoB,EAAqB,EAAE;QAE9J,IAAI,MAAiB,CAAC;QACtB,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAA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,CAAC,0EAA0E,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;QAChH,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA/BgB,iBAAiB,iCAAjB,iBAAiB,QA+BjC","sourcesContent":["import { ContextReader } from '../../../../../context/context-reader';\nimport { ContextWriter } from '../../../../../context/context-writer';\nimport { UnimplementedError } from '../../../../../error/parser.error';\nimport { GUID } from '../../../structs/binary/GUID';\nimport { vec3 } from '../../../structs/vec3';\nimport { AbstractBaseProperty } from '../AbstractBaseProperty';\n\nexport const isStructSetProperty = (property: any): property is StructSetProperty => !Array.isArray(property) && property.type === 'StructSetProperty';\n\nexport type StructSetProperty = AbstractBaseProperty & {\n type: 'StructSetProperty';\n subtype: string;\n values: any[];\n};\n\nexport namespace StructSetProperty {\n\n export const Parse = (reader: ContextReader, elementCount: number, subtype: string, ueType: string, index: number = 0, propertyName: string): StructSetProperty => {\n\n let values: unknown[];\n if (propertyName === 'mRemovalLocations') {\n values = new Array(elementCount).fill(0).map(() => vec3.ParseF(reader));\n } else if (propertyName === 'mDestroyedPickups' || propertyName === 'mLootedDropPods') {\n values = new Array(elementCount).fill(0).map(() => GUID.read(reader));\n } else {\n throw new UnimplementedError(`Not Implemented SetProperty of StructProperty for property type ${propertyName}.`);\n }\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, type: '' }),\n type: 'StructSetProperty',\n subtype,\n values\n } satisfies StructSetProperty;\n }\n\n export const Serialize = (writer: ContextWriter, property: StructSetProperty): void => {\n\n if (property.name === 'mRemovalLocations') {\n property.values.forEach(v => vec3.SerializeF(writer, v));\n } else if (property.name === 'mDestroyedPickups' || property.name === 'mLootedDropPods') {\n property.values.forEach(v => GUID.write(writer, v));\n } else {\n throw new Error(`Not Implemented serializing SetProperty of StructProperty for property ${property.name}.`);\n }\n }\n}\n"]}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ContextReader } from '../../../../context/context-reader';
|
|
2
2
|
import { ContextWriter } from '../../../../context/context-writer';
|
|
3
|
+
import { FClientIdentityInfo } from '../../structs/binary/FClientIdentityInfo';
|
|
3
4
|
import { col4 } from '../../structs/col4';
|
|
4
5
|
import { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';
|
|
5
6
|
import { FGDynamicStruct } from '../../structs/FGDynamicStruct';
|
|
7
|
+
import { FINGPUT1BufferPixel } from '../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel';
|
|
8
|
+
import { FINNetworkTrace } from '../../structs/mods/FicsItNetworks/FINNetworkTrace';
|
|
9
|
+
import { FLBBalancerIndexing } from '../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing';
|
|
6
10
|
import { ObjectReference } from '../../structs/ObjectReference';
|
|
11
|
+
import { vec2 } from '../../structs/vec2';
|
|
7
12
|
import { vec3 } from '../../structs/vec3';
|
|
8
13
|
import { vec4 } from '../../structs/vec4';
|
|
9
14
|
import { AbstractBaseProperty } from './AbstractBaseProperty';
|
|
@@ -33,11 +38,7 @@ export type FICFrameRangeStructPropertyValue = {
|
|
|
33
38
|
begin: string;
|
|
34
39
|
end: string;
|
|
35
40
|
};
|
|
36
|
-
export type
|
|
37
|
-
offlineId: string;
|
|
38
|
-
accountIds: Record<number, number[]>;
|
|
39
|
-
};
|
|
40
|
-
export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | ClientIdentityInfo | DynamicStructPropertyValue | col4 | vec3 | vec4 | string;
|
|
41
|
+
export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | FClientIdentityInfo | DynamicStructPropertyValue | col4 | vec2 | vec3 | vec4 | string | FINNetworkTrace | FINGPUT1BufferPixel | FLBBalancerIndexing;
|
|
41
42
|
export declare const isStructProperty: (property: any) => property is StructProperty;
|
|
42
43
|
export type StructProperty = AbstractBaseProperty & {
|
|
43
44
|
type: 'StructProperty';
|
|
@@ -49,9 +50,9 @@ export type StructProperty = AbstractBaseProperty & {
|
|
|
49
50
|
unk4?: number;
|
|
50
51
|
};
|
|
51
52
|
export declare namespace StructProperty {
|
|
52
|
-
const Parse: (reader: ContextReader, ueType: string, index: number, size: number) => StructProperty;
|
|
53
|
+
const Parse: (reader: ContextReader, ueType: string, index: number, size: number, subtype: string) => StructProperty;
|
|
53
54
|
const ParseValue: (reader: ContextReader, subtype: string, size: number) => GENERIC_STRUCT_PROPERTY_VALUE;
|
|
54
|
-
const CalcOverhead: (property: StructProperty) => number;
|
|
55
|
+
const CalcOverhead: (property: StructProperty, subtype: string) => number;
|
|
55
56
|
const Serialize: (writer: ContextWriter, property: StructProperty) => void;
|
|
56
57
|
const SerializeValue: (writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE) => void;
|
|
57
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StructProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"StructProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC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
|
|
4
4
|
const save_custom_version_1 = require("../../../save/save-custom-version");
|
|
5
|
-
const
|
|
5
|
+
const FClientIdentityInfo_1 = require("../../structs/binary/FClientIdentityInfo");
|
|
6
|
+
const FColor_1 = require("../../structs/binary/FColor");
|
|
7
|
+
const FLinearColor_1 = require("../../structs/binary/FLinearColor");
|
|
8
|
+
const GUID_1 = require("../../structs/binary/GUID");
|
|
6
9
|
const DynamicStructPropertyValue_1 = require("../../structs/DynamicStructPropertyValue");
|
|
7
10
|
const FGDynamicStruct_1 = require("../../structs/FGDynamicStruct");
|
|
8
|
-
const GUID_1 = require("../../structs/GUID");
|
|
9
11
|
const GUIDInfo_1 = require("../../structs/GUIDInfo");
|
|
10
12
|
const FICFrameRange_1 = require("../../structs/mods/FicsItCam/FICFrameRange");
|
|
13
|
+
const FINGPUT1BufferPixel_1 = require("../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel");
|
|
14
|
+
const FINNetworkTrace_1 = require("../../structs/mods/FicsItNetworks/FINNetworkTrace");
|
|
15
|
+
const FLBBalancerIndexing_1 = require("../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing");
|
|
11
16
|
const ObjectReference_1 = require("../../structs/ObjectReference");
|
|
17
|
+
const vec2_1 = require("../../structs/vec2");
|
|
12
18
|
const vec3_1 = require("../../structs/vec3");
|
|
13
19
|
const vec4_1 = require("../../structs/vec4");
|
|
14
20
|
const AbstractBaseProperty_1 = require("./AbstractBaseProperty");
|
|
@@ -16,8 +22,7 @@ const isStructProperty = (property) => !Array.isArray(property) && property.type
|
|
|
16
22
|
exports.isStructProperty = isStructProperty;
|
|
17
23
|
var StructProperty;
|
|
18
24
|
(function (StructProperty) {
|
|
19
|
-
StructProperty.Parse = (reader, ueType, index, size) => {
|
|
20
|
-
const subtype = reader.readString();
|
|
25
|
+
StructProperty.Parse = (reader, ueType, index, size, subtype) => {
|
|
21
26
|
const guidInfo = GUIDInfo_1.GUIDInfo.read(reader);
|
|
22
27
|
const struct = {
|
|
23
28
|
...AbstractBaseProperty_1.AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),
|
|
@@ -58,33 +63,35 @@ var StructProperty;
|
|
|
58
63
|
let value;
|
|
59
64
|
switch (subtype) {
|
|
60
65
|
case 'Color':
|
|
61
|
-
value =
|
|
66
|
+
value = FColor_1.FColor.read(reader);
|
|
62
67
|
break;
|
|
63
68
|
case 'IntPoint':
|
|
64
69
|
value = reader.readInt64().toString();
|
|
65
70
|
break;
|
|
66
71
|
case 'LinearColor':
|
|
67
|
-
value =
|
|
72
|
+
value = FLinearColor_1.FLinearColor.read(reader);
|
|
73
|
+
break;
|
|
74
|
+
case 'Vector2D':
|
|
75
|
+
value = (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec2_1.vec2.Parse(reader) : vec2_1.vec2.ParseF(reader);
|
|
68
76
|
break;
|
|
69
77
|
case 'Vector':
|
|
70
78
|
case 'Rotator':
|
|
71
|
-
|
|
72
|
-
value = (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.UnrealEngine5) ? vec3_1.vec3.Parse(reader) : vec3_1.vec3.ParseF(reader);
|
|
79
|
+
value = (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec3_1.vec3.Parse(reader) : vec3_1.vec3.ParseF(reader);
|
|
73
80
|
break;
|
|
74
81
|
case 'Quat':
|
|
75
82
|
case 'Vector4':
|
|
76
83
|
case 'Vector4D':
|
|
77
|
-
value = (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.
|
|
84
|
+
value = (reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec4_1.vec4.Parse(reader) : vec4_1.vec4.ParseF(reader);
|
|
78
85
|
break;
|
|
79
86
|
case 'Box':
|
|
80
|
-
value = ((
|
|
81
|
-
min: vec3_1.vec3.ParseF(reader),
|
|
82
|
-
max: vec3_1.vec3.ParseF(reader),
|
|
83
|
-
isValid: reader.readByte() >= 1
|
|
84
|
-
} : {
|
|
87
|
+
value = ((reader.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) ? {
|
|
85
88
|
min: vec3_1.vec3.Parse(reader),
|
|
86
89
|
max: vec3_1.vec3.Parse(reader),
|
|
87
90
|
isValid: reader.readByte() >= 1
|
|
91
|
+
} : {
|
|
92
|
+
min: vec3_1.vec3.ParseF(reader),
|
|
93
|
+
max: vec3_1.vec3.ParseF(reader),
|
|
94
|
+
isValid: reader.readByte() >= 1
|
|
88
95
|
});
|
|
89
96
|
break;
|
|
90
97
|
case 'RailroadTrackPosition':
|
|
@@ -102,19 +109,7 @@ var StructProperty;
|
|
|
102
109
|
value = GUID_1.GUID.read(reader);
|
|
103
110
|
break;
|
|
104
111
|
case 'ClientIdentityInfo':
|
|
105
|
-
|
|
106
|
-
const numAccountIds = reader.readInt32();
|
|
107
|
-
const accountIds = {};
|
|
108
|
-
for (let i = 0; i < numAccountIds; i++) {
|
|
109
|
-
const platformFlagMaybe = reader.readByte();
|
|
110
|
-
const idSize = reader.readInt32();
|
|
111
|
-
const accountId = Array.from(reader.readBytes(idSize));
|
|
112
|
-
accountIds[platformFlagMaybe] = accountId;
|
|
113
|
-
}
|
|
114
|
-
value = {
|
|
115
|
-
offlineId,
|
|
116
|
-
accountIds
|
|
117
|
-
};
|
|
112
|
+
value = FClientIdentityInfo_1.FClientIdentityInfo.read(reader);
|
|
118
113
|
break;
|
|
119
114
|
case 'InventoryItem':
|
|
120
115
|
const before = reader.getBufferPosition();
|
|
@@ -140,15 +135,26 @@ var StructProperty;
|
|
|
140
135
|
value = reader.readInt64().toString();
|
|
141
136
|
break;
|
|
142
137
|
case 'FICFrameRange':
|
|
143
|
-
value = FICFrameRange_1.FICFrameRange.
|
|
138
|
+
value = FICFrameRange_1.FICFrameRange.read(reader);
|
|
139
|
+
break;
|
|
140
|
+
case 'LBBalancerIndexing':
|
|
141
|
+
value = FLBBalancerIndexing_1.FLBBalancerIndexing.read(reader);
|
|
142
|
+
break;
|
|
143
|
+
case 'FINNetworkTrace':
|
|
144
|
+
case 'FIRTrace':
|
|
145
|
+
value = FINNetworkTrace_1.FINNetworkTrace.read(reader);
|
|
146
|
+
break;
|
|
147
|
+
case 'FINGPUT1BufferPixel':
|
|
148
|
+
value = FINGPUT1BufferPixel_1.FINGPUT1BufferPixel.read(reader);
|
|
144
149
|
break;
|
|
145
150
|
default:
|
|
146
151
|
value = DynamicStructPropertyValue_1.DynamicStructPropertyValue.read(reader, subtype);
|
|
152
|
+
break;
|
|
147
153
|
}
|
|
148
154
|
return value;
|
|
149
155
|
};
|
|
150
|
-
StructProperty.CalcOverhead = (property) => {
|
|
151
|
-
return
|
|
156
|
+
StructProperty.CalcOverhead = (property, subtype) => {
|
|
157
|
+
return subtype.length + 5 + 4 + 4 + 4 + 4 + 1;
|
|
152
158
|
};
|
|
153
159
|
StructProperty.Serialize = (writer, property) => {
|
|
154
160
|
writer.writeString(property.subtype);
|
|
@@ -162,21 +168,27 @@ var StructProperty;
|
|
|
162
168
|
StructProperty.SerializeValue = (writer, subtype, value) => {
|
|
163
169
|
switch (subtype) {
|
|
164
170
|
case 'Color':
|
|
165
|
-
|
|
166
|
-
col4_1.col4.SerializeBGRA(writer, value);
|
|
171
|
+
FColor_1.FColor.write(writer, value);
|
|
167
172
|
break;
|
|
168
173
|
case 'IntPoint':
|
|
169
174
|
writer.writeInt64(BigInt(value));
|
|
170
175
|
break;
|
|
171
176
|
case 'LinearColor':
|
|
177
|
+
FLinearColor_1.FLinearColor.write(writer, value);
|
|
178
|
+
break;
|
|
179
|
+
case 'Vector2D':
|
|
172
180
|
value = value;
|
|
173
|
-
|
|
181
|
+
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) {
|
|
182
|
+
vec2_1.vec2.Serialize(writer, value);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
vec2_1.vec2.SerializeF(writer, value);
|
|
186
|
+
}
|
|
174
187
|
break;
|
|
175
188
|
case 'Vector':
|
|
176
189
|
case 'Rotator':
|
|
177
|
-
case 'Vector2D':
|
|
178
190
|
value = value;
|
|
179
|
-
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.
|
|
191
|
+
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) {
|
|
180
192
|
vec3_1.vec3.Serialize(writer, value);
|
|
181
193
|
}
|
|
182
194
|
else {
|
|
@@ -187,7 +199,7 @@ var StructProperty;
|
|
|
187
199
|
case 'Vector4':
|
|
188
200
|
case 'Vector4D':
|
|
189
201
|
value = value;
|
|
190
|
-
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.
|
|
202
|
+
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) {
|
|
191
203
|
vec4_1.vec4.Serialize(writer, value);
|
|
192
204
|
}
|
|
193
205
|
else {
|
|
@@ -196,8 +208,14 @@ var StructProperty;
|
|
|
196
208
|
break;
|
|
197
209
|
case 'Box':
|
|
198
210
|
value = value;
|
|
199
|
-
|
|
200
|
-
|
|
211
|
+
if (writer.context.saveVersion >= save_custom_version_1.SaveCustomVersion.SwitchTo64BitSaveArchive) {
|
|
212
|
+
vec3_1.vec3.Serialize(writer, value.min);
|
|
213
|
+
vec3_1.vec3.Serialize(writer, value.max);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
vec3_1.vec3.SerializeF(writer, value.min);
|
|
217
|
+
vec3_1.vec3.SerializeF(writer, value.max);
|
|
218
|
+
}
|
|
201
219
|
writer.writeByte(value.isValid ? 1 : 0);
|
|
202
220
|
break;
|
|
203
221
|
case 'RailroadTrackPosition':
|
|
@@ -215,14 +233,7 @@ var StructProperty;
|
|
|
215
233
|
GUID_1.GUID.write(writer, value);
|
|
216
234
|
break;
|
|
217
235
|
case 'ClientIdentityInfo':
|
|
218
|
-
|
|
219
|
-
writer.writeString(value.offlineId);
|
|
220
|
-
writer.writeInt32(Object.values(value.accountIds).length);
|
|
221
|
-
for (const [platformFlagMaybe, accountId] of Object.entries(value.accountIds)) {
|
|
222
|
-
writer.writeByte(Number(platformFlagMaybe));
|
|
223
|
-
writer.writeInt32(accountId.length);
|
|
224
|
-
writer.writeBytesArray(accountId);
|
|
225
|
-
}
|
|
236
|
+
FClientIdentityInfo_1.FClientIdentityInfo.write(writer, value);
|
|
226
237
|
break;
|
|
227
238
|
case 'InventoryItem':
|
|
228
239
|
value = value;
|
|
@@ -248,11 +259,24 @@ var StructProperty;
|
|
|
248
259
|
break;
|
|
249
260
|
case 'FICFrameRange':
|
|
250
261
|
value = value;
|
|
251
|
-
FICFrameRange_1.FICFrameRange.
|
|
262
|
+
FICFrameRange_1.FICFrameRange.write(writer, value);
|
|
263
|
+
break;
|
|
264
|
+
case 'LBBalancerIndexing':
|
|
265
|
+
FLBBalancerIndexing_1.FLBBalancerIndexing.write(writer, value);
|
|
266
|
+
break;
|
|
267
|
+
case 'FINNetworkTrace':
|
|
268
|
+
case 'FIRTrace':
|
|
269
|
+
value = value;
|
|
270
|
+
FINNetworkTrace_1.FINNetworkTrace.write(writer, value);
|
|
271
|
+
break;
|
|
272
|
+
case 'FINGPUT1BufferPixel':
|
|
273
|
+
value = value;
|
|
274
|
+
FINGPUT1BufferPixel_1.FINGPUT1BufferPixel.write(writer, value);
|
|
252
275
|
break;
|
|
253
276
|
default:
|
|
254
277
|
value = value;
|
|
255
278
|
DynamicStructPropertyValue_1.DynamicStructPropertyValue.write(writer, value);
|
|
279
|
+
break;
|
|
256
280
|
}
|
|
257
281
|
};
|
|
258
282
|
})(StructProperty || (exports.StructProperty = StructProperty = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StructProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,6CAA0C;AAC1C,yFAAsF;AACt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/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\nimport { col4 } from '../../structs/col4';\nimport { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';\nimport { FGDynamicStruct } from '../../structs/FGDynamicStruct';\nimport { GUID } from '../../structs/GUID';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { FICFrameRange } from '../../structs/mods/FicsItCam/FICFrameRange';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\nimport { vec4 } from '../../structs/vec4';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport type BasicMultipleStructPropertyValue = {\n values: any;\n};\n\nexport type BasicStructPropertyValue = {\n value: any;\n};\n\nexport type BoxStructPropertyValue = {\n min: vec3;\n max: vec3;\n isValid: boolean;\n};\n\nexport type RailroadTrackPositionStructPropertyValue = {\n root: string;\n instanceName: string;\n offset: number;\n forward: number;\n};\n\nexport type InventoryItemStructPropertyValue = {\n itemReference: ObjectReference;\n itemState?: FGDynamicStruct;\n legacyItemStateActor?: ObjectReference;\n};\n\nexport type FICFrameRangeStructPropertyValue = {\n begin: string;\n end: string;\n};\n\nexport type ClientIdentityInfo = {\n offlineId: string;\n accountIds: Record<number, number[]>;\n};\n\nexport type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue |\n InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | ClientIdentityInfo | DynamicStructPropertyValue | col4 | vec3 | vec4 | string;\n\nexport const isStructProperty = (property: any): property is StructProperty => !Array.isArray(property) && property.type === 'StructProperty';\n\nexport type StructProperty = AbstractBaseProperty & {\n type: 'StructProperty';\n subtype: string;\n value: GENERIC_STRUCT_PROPERTY_VALUE;\n unk1?: number;\n unk2?: number;\n unk3?: number;\n unk4?: number;\n};\n\nexport namespace StructProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, size: number): StructProperty => {\n const subtype = reader.readString();\n const guidInfo = GUIDInfo.read(reader);\n\n const struct: StructProperty = {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'StructProperty',\n value: { values: [] },\n subtype\n };\n\n const unk1 = reader.readInt32();\n if (unk1 !== 0) {\n struct.unk1 = unk1;\n }\n\n const unk2 = reader.readInt32();\n if (unk2 !== 0) {\n struct.unk2 = unk2;\n }\n\n const unk3 = reader.readInt32();\n if (unk3 !== 0) {\n struct.unk3 = unk3;\n }\n\n const unk4 = reader.readInt32();\n if (unk4 !== 0) {\n struct.unk4 = unk4;\n }\n\n const before = reader.getBufferPosition();\n struct.value = ParseValue(reader, struct.subtype, size);\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== size) {\n if (size - readBytes === 4) {\n // U8, fine\n reader.skipBytes(size - readBytes);\n } else {\n throw new Error(`possibly corrupt. Read ${readBytes} for StructProperty Content of ${struct.subtype}, but ${size} were indicated.`);\n }\n }\n\n return struct;\n }\n\n export const ParseValue = (reader: ContextReader, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE => {\n\n let value: GENERIC_STRUCT_PROPERTY_VALUE;\n\n switch (subtype) {\n case 'Color':\n value = col4.ParseBGRA(reader);\n break;\n\n case 'IntPoint':\n value = reader.readInt64().toString();\n break;\n\n case 'LinearColor':\n value = col4.ParseRGBA(reader);\n break;\n\n case 'Vector':\n case 'Rotator':\n case 'Vector2D':\n value = (reader.context.saveVersion >= SaveCustomVersion.UnrealEngine5) ? vec3.Parse(reader) : vec3.ParseF(reader);\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = (reader.context.saveVersion >= SaveCustomVersion.UnrealEngine5) ? vec4.Parse(reader) : vec4.ParseF(reader);\n break;\n\n case 'Box':\n value = ((size === 25) ? {\n min: vec3.ParseF(reader),\n max: vec3.ParseF(reader),\n isValid: reader.readByte() >= 1\n } : {\n min: vec3.Parse(reader),\n max: vec3.Parse(reader),\n isValid: reader.readByte() >= 1\n }) satisfies BoxStructPropertyValue;\n break;\n\n case 'RailroadTrackPosition':\n value = {\n root: reader.readString(),\n instanceName: reader.readString(),\n offset: reader.readFloat32(),\n forward: reader.readFloat32()\n };\n break;\n\n case 'TimerHandle':\n value = reader.readString();\n break;\n\n case 'Guid':\n value = GUID.read(reader);\n break;\n\n case 'ClientIdentityInfo':\n const offlineId = reader.readString();\n const numAccountIds = reader.readInt32();\n\n const accountIds: Record<number, number[]> = {};\n for (let i = 0; i < numAccountIds; i++) {\n const platformFlagMaybe = reader.readByte(); // 1 for Epic, 6 for steam ? Only seen 1s and 6s so far.\n const idSize = reader.readInt32();\n const accountId = Array.from(reader.readBytes(idSize));\n accountIds[platformFlagMaybe] = accountId;\n }\n\n value = {\n offlineId,\n accountIds\n } satisfies ClientIdentityInfo;\n break;\n\n case 'InventoryItem':\n const before = reader.getBufferPosition();\n\n value = {\n itemReference: ObjectReference.read(reader)\n } satisfies InventoryItemStructPropertyValue;\n\n // inventory items have potentially an item state. but not before explicit version\n if (reader.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n value.itemState = FGDynamicStruct.Parse(reader);\n } else {\n value.legacyItemStateActor = ObjectReference.read(reader);\n }\n\n break;\n\n case 'FluidBox':\n value = {\n value: reader.readFloat32()\n };\n break;\n\n case 'SlateBrush':\n value = reader.readString();\n break;\n\n case 'DateTime':\n value = reader.readInt64().toString();\n break;\n\n // MODS\n case 'FICFrameRange': // https://github.com/Panakotta00/FicsIt-Cam/blob/master/Source/FicsItCam/Public/Data/FICTypes.h#35\n value = FICFrameRange.Parse(reader);\n break;\n\n default:\n //TODO: use buildversion\n value = DynamicStructPropertyValue.read(reader, subtype);\n }\n\n return value;\n }\n\n export const CalcOverhead = (property: StructProperty): number => {\n return property.subtype.length + 5 + 4 + 4 + 4 + 4 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: StructProperty): void => {\n writer.writeString(property.subtype);\n GUIDInfo.write(writer, property.guidInfo);\n\n writer.writeInt32(property.unk1 ?? 0);\n writer.writeInt32(property.unk2 ?? 0);\n writer.writeInt32(property.unk3 ?? 0);\n writer.writeInt32(property.unk4 ?? 0);\n\n StructProperty.SerializeValue(writer, property.subtype, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void => {\n\n switch (subtype) {\n case 'Color':\n value = value as col4;\n col4.SerializeBGRA(writer, value);\n break;\n\n case 'IntPoint':\n writer.writeInt64(BigInt(value as string))\n break;\n\n case 'LinearColor':\n value = value as col4;\n col4.SerializeRGBA(writer, value);\n break;\n\n case 'Vector':\n case 'Rotator':\n case 'Vector2D':\n value = value as vec3;\n if (writer.context.saveVersion >= SaveCustomVersion.UnrealEngine5) {\n vec3.Serialize(writer, value);\n } else {\n vec3.SerializeF(writer, value);\n }\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = value as vec4;\n if (writer.context.saveVersion >= SaveCustomVersion.UnrealEngine5) {\n vec4.Serialize(writer, value as vec4);\n } else {\n vec4.SerializeF(writer, value as vec4);\n }\n break;\n\n case 'Box':\n value = value as BoxStructPropertyValue;\n vec3.Serialize(writer, value.min);\n vec3.Serialize(writer, value.max);\n writer.writeByte(value.isValid ? 1 : 0);\n break;\n\n case 'RailroadTrackPosition':\n value = value as RailroadTrackPositionStructPropertyValue;\n writer.writeString(value.root);\n writer.writeString(value.instanceName);\n writer.writeFloat32(value.offset);\n writer.writeFloat32(value.forward);\n break;\n\n case 'TimerHandle':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'Guid':\n GUID.write(writer, value as GUID);\n break;\n\n case 'ClientIdentityInfo':\n value = value as ClientIdentityInfo;\n writer.writeString(value.offlineId);\n writer.writeInt32(Object.values(value.accountIds).length);\n for (const [platformFlagMaybe, accountId] of Object.entries(value.accountIds)) {\n writer.writeByte(Number(platformFlagMaybe));\n writer.writeInt32(accountId.length);\n writer.writeBytesArray(accountId);\n }\n\n break;\n\n case 'InventoryItem':\n value = value as InventoryItemStructPropertyValue;\n ObjectReference.write(writer, value.itemReference);\n\n if (writer.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n FGDynamicStruct.Serialize(writer, value.itemState!);\n } else {\n ObjectReference.write(writer, value.legacyItemStateActor!);\n }\n break;\n\n case 'FluidBox':\n value = value as BasicStructPropertyValue;\n writer.writeFloat32(value.value);\n break;\n\n case 'SlateBrush':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'DateTime':\n value = value as string;\n writer.writeInt64(BigInt(value));\n break;\n\n // MODS\n case 'FICFrameRange': // https://github.com/Panakotta00/FicsIt-Cam/blob/master/Source/FicsItCam/Public/Data/FICTypes.h#35\n value = value as FICFrameRange;\n FICFrameRange.Serialize(writer, value);\n break;\n\n default:\n //TODO: use buildversion\n value = value as DynamicStructPropertyValue;\n DynamicStructPropertyValue.write(writer, value);\n }\n }\n}\n\n\n"]}
|
|
1
|
+
{"version":3,"file":"StructProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/StructProperty.ts"],"names":[],"mappings":";;;AAEA,2EAAsE;AACtE,kFAA+E;AAC/E,wDAAqD;AACrD,oEAAiE;AACjE,oDAAiD;AAEjD,yFAAsF;AACtF,mEAAgE;AAChE,qDAAkD;AAClD,8EAA2E;AAC3E,+FAA4F;AAC5F,uFAAoF;AACpF,qGAAkG;AAClG,mEAAgE;AAChE,6CAA0C;AAC1C,6CAA0C;AAC1C,6CAA0C;AAC1C,iEAA8D;AAuCvD,MAAM,gBAAgB,GAAG,CAAC,QAAa,EAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAAjI,QAAA,gBAAgB,oBAAiH;AAY9I,IAAiB,cAAc,CAkU9B;AAlUD,WAAiB,cAAc;IAEd,oBAAK,GAAG,CAAC,MAAqB,EAAE,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AAC;IACL,CAAC,CAAA;AACL,CAAC,EAlUgB,cAAc,8BAAd,cAAc,QAkU9B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { SaveCustomVersion } from '../../../save/save-custom-version';\nimport { FClientIdentityInfo } from '../../structs/binary/FClientIdentityInfo';\nimport { FColor } from '../../structs/binary/FColor';\nimport { FLinearColor } from '../../structs/binary/FLinearColor';\nimport { GUID } from '../../structs/binary/GUID';\nimport { col4 } from '../../structs/col4';\nimport { DynamicStructPropertyValue } from '../../structs/DynamicStructPropertyValue';\nimport { FGDynamicStruct } from '../../structs/FGDynamicStruct';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { FICFrameRange } from '../../structs/mods/FicsItCam/FICFrameRange';\nimport { FINGPUT1BufferPixel } from '../../structs/mods/FicsItNetworks/FINGPUT1BufferPixel';\nimport { FINNetworkTrace } from '../../structs/mods/FicsItNetworks/FINNetworkTrace';\nimport { FLBBalancerIndexing } from '../../structs/mods/ModularLoadBalancers/FLBBalancerIndexing';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\nimport { vec4 } from '../../structs/vec4';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\n\nexport type BasicMultipleStructPropertyValue = {\n values: any;\n};\n\nexport type BasicStructPropertyValue = {\n value: any;\n};\n\nexport type BoxStructPropertyValue = {\n min: vec3;\n max: vec3;\n isValid: boolean;\n};\n\nexport type RailroadTrackPositionStructPropertyValue = {\n root: string;\n instanceName: string;\n offset: number;\n forward: number;\n};\n\nexport type InventoryItemStructPropertyValue = {\n itemReference: ObjectReference;\n itemState?: FGDynamicStruct;\n legacyItemStateActor?: ObjectReference;\n};\n\nexport type FICFrameRangeStructPropertyValue = {\n begin: string;\n end: string;\n};\n\nexport type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue |\n InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | FClientIdentityInfo | DynamicStructPropertyValue | col4 | vec2 | vec3 | vec4 | string |\n FINNetworkTrace | FINGPUT1BufferPixel | FLBBalancerIndexing;\n\nexport const isStructProperty = (property: any): property is StructProperty => !Array.isArray(property) && property.type === 'StructProperty';\n\nexport type StructProperty = AbstractBaseProperty & {\n type: 'StructProperty';\n subtype: string;\n value: GENERIC_STRUCT_PROPERTY_VALUE;\n unk1?: number;\n unk2?: number;\n unk3?: number;\n unk4?: number;\n};\n\nexport namespace StructProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number, size: number, subtype: string): StructProperty => {\n\n const guidInfo = GUIDInfo.read(reader);\n\n const struct: StructProperty = {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'StructProperty',\n value: { values: [] },\n subtype\n };\n\n const unk1 = reader.readInt32();\n if (unk1 !== 0) {\n struct.unk1 = unk1;\n }\n\n const unk2 = reader.readInt32();\n if (unk2 !== 0) {\n struct.unk2 = unk2;\n }\n\n const unk3 = reader.readInt32();\n if (unk3 !== 0) {\n struct.unk3 = unk3;\n }\n\n const unk4 = reader.readInt32();\n if (unk4 !== 0) {\n struct.unk4 = unk4;\n }\n\n const before = reader.getBufferPosition();\n struct.value = ParseValue(reader, struct.subtype, size);\n const readBytes = reader.getBufferPosition() - before;\n if (readBytes !== size) {\n if (size - readBytes === 4) {\n // U8, fine\n reader.skipBytes(size - readBytes);\n } else {\n throw new Error(`possibly corrupt. Read ${readBytes} for StructProperty Content of ${struct.subtype}, but ${size} were indicated.`);\n }\n }\n\n return struct;\n }\n\n export const ParseValue = (reader: ContextReader, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE => {\n\n let value: GENERIC_STRUCT_PROPERTY_VALUE;\n\n switch (subtype) {\n case 'Color':\n value = FColor.read(reader);\n break;\n\n case 'IntPoint':\n value = reader.readInt64().toString();\n break;\n\n case 'LinearColor':\n value = FLinearColor.read(reader);\n break;\n\n case 'Vector2D':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec2.Parse(reader) : vec2.ParseF(reader);\n break;\n\n case 'Vector':\n case 'Rotator':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec3.Parse(reader) : vec3.ParseF(reader);\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = (reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? vec4.Parse(reader) : vec4.ParseF(reader);\n break;\n\n case 'Box':\n value = ((reader.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) ? {\n min: vec3.Parse(reader),\n max: vec3.Parse(reader),\n isValid: reader.readByte() >= 1\n } : {\n min: vec3.ParseF(reader),\n max: vec3.ParseF(reader),\n isValid: reader.readByte() >= 1\n }) satisfies BoxStructPropertyValue;\n break;\n\n case 'RailroadTrackPosition':\n value = {\n root: reader.readString(),\n instanceName: reader.readString(),\n offset: reader.readFloat32(),\n forward: reader.readFloat32()\n };\n break;\n\n case 'TimerHandle':\n value = reader.readString();\n break;\n\n case 'Guid':\n value = GUID.read(reader);\n break;\n\n case 'ClientIdentityInfo':\n value = FClientIdentityInfo.read(reader);\n break;\n\n case 'InventoryItem':\n const before = reader.getBufferPosition();\n\n value = {\n itemReference: ObjectReference.read(reader)\n } satisfies InventoryItemStructPropertyValue;\n\n // inventory items have potentially an item state. but not before explicit version\n if (reader.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n value.itemState = FGDynamicStruct.Parse(reader);\n } else {\n value.legacyItemStateActor = ObjectReference.read(reader);\n }\n\n break;\n\n case 'FluidBox':\n value = {\n value: reader.readFloat32()\n };\n break;\n\n case 'SlateBrush':\n value = reader.readString();\n break;\n\n case 'DateTime':\n value = reader.readInt64().toString();\n break;\n\n // FixsitCamera mod\n case 'FICFrameRange':\n value = FICFrameRange.read(reader);\n break;\n\n // MLB mod\n case 'LBBalancerIndexing':\n value = FLBBalancerIndexing.read(reader);\n break;\n\n // FicsIt-Networks mod\n case 'FINNetworkTrace':\n case 'FIRTrace':\n value = FINNetworkTrace.read(reader);\n break;\n\n case 'FINGPUT1BufferPixel':\n value = FINGPUT1BufferPixel.read(reader);\n break;\n\n default:\n //TODO: use buildversion\n value = DynamicStructPropertyValue.read(reader, subtype);\n break;\n }\n\n return value;\n }\n\n export const CalcOverhead = (property: StructProperty, subtype: string): number => {\n return subtype.length + 5 + 4 + 4 + 4 + 4 + 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: StructProperty): void => {\n writer.writeString(property.subtype);\n GUIDInfo.write(writer, property.guidInfo);\n\n writer.writeInt32(property.unk1 ?? 0);\n writer.writeInt32(property.unk2 ?? 0);\n writer.writeInt32(property.unk3 ?? 0);\n writer.writeInt32(property.unk4 ?? 0);\n\n StructProperty.SerializeValue(writer, property.subtype, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void => {\n\n switch (subtype) {\n case 'Color':\n FColor.write(writer, value as FColor);\n break;\n\n case 'IntPoint':\n writer.writeInt64(BigInt(value as string))\n break;\n\n case 'LinearColor':\n FLinearColor.write(writer, value as FLinearColor);\n break;\n\n case 'Vector2D':\n value = value as vec2;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec2.Serialize(writer, value);\n } else {\n vec2.SerializeF(writer, value);\n }\n break;\n\n case 'Vector':\n case 'Rotator':\n value = value as vec3;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec3.Serialize(writer, value as vec3);\n } else {\n vec3.SerializeF(writer, value as vec3);\n }\n break;\n\n case 'Quat':\n case 'Vector4':\n case 'Vector4D':\n value = value as vec4;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec4.Serialize(writer, value as vec4);\n } else {\n vec4.SerializeF(writer, value as vec4);\n }\n break;\n\n case 'Box':\n value = value as BoxStructPropertyValue;\n if (writer.context.saveVersion >= SaveCustomVersion.SwitchTo64BitSaveArchive) {\n vec3.Serialize(writer, value.min);\n vec3.Serialize(writer, value.max);\n } else {\n vec3.SerializeF(writer, value.min);\n vec3.SerializeF(writer, value.max);\n }\n writer.writeByte(value.isValid ? 1 : 0);\n break;\n\n case 'RailroadTrackPosition':\n value = value as RailroadTrackPositionStructPropertyValue;\n writer.writeString(value.root);\n writer.writeString(value.instanceName);\n writer.writeFloat32(value.offset);\n writer.writeFloat32(value.forward);\n break;\n\n case 'TimerHandle':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'Guid':\n GUID.write(writer, value as GUID);\n break;\n\n case 'ClientIdentityInfo':\n FClientIdentityInfo.write(writer, value as FClientIdentityInfo);\n break;\n\n case 'InventoryItem':\n value = value as InventoryItemStructPropertyValue;\n ObjectReference.write(writer, value.itemReference);\n\n if (writer.context.saveVersion >= SaveCustomVersion.RefactoredInventoryItemState) {\n FGDynamicStruct.Serialize(writer, value.itemState!);\n } else {\n ObjectReference.write(writer, value.legacyItemStateActor!);\n }\n break;\n\n case 'FluidBox':\n value = value as BasicStructPropertyValue;\n writer.writeFloat32(value.value);\n break;\n\n case 'SlateBrush':\n value = value as string;\n writer.writeString(value);\n break;\n\n case 'DateTime':\n value = value as string;\n writer.writeInt64(BigInt(value));\n break;\n\n // MODS\n case 'FICFrameRange':\n value = value as FICFrameRange;\n FICFrameRange.write(writer, value);\n break;\n\n // MLB mod\n case 'LBBalancerIndexing':\n FLBBalancerIndexing.write(writer, value as FLBBalancerIndexing);\n break;\n\n // FicsItNetworks mod\n case 'FINNetworkTrace':\n case 'FIRTrace':\n value = value as FINNetworkTrace;\n FINNetworkTrace.write(writer, value);\n break;\n\n case 'FINGPUT1BufferPixel':\n value = value as FINGPUT1BufferPixel;\n FINGPUT1BufferPixel.write(writer, value);\n break;\n\n default:\n //TODO: use buildversion\n value = value as DynamicStructPropertyValue;\n DynamicStructPropertyValue.write(writer, value);\n break;\n }\n }\n}\n\n\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContextReader } from '../../../context/context-reader';
|
|
2
2
|
import { ContextWriter } from '../../../context/context-writer';
|
|
3
|
-
import { GUID } from './GUID';
|
|
3
|
+
import { GUID } from './binary/GUID';
|
|
4
4
|
export type GUIDInfo = undefined | GUID;
|
|
5
5
|
export declare namespace GUIDInfo {
|
|
6
6
|
const read: (reader: ContextReader) => GUIDInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUIDInfo.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GUIDInfo.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAExC,yBAAiB,QAAQ,CAAC;IACf,MAAM,IAAI,WAAY,aAAa,KAAG,QAO5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,QAAQ,QAAQ,KAAG,IAQ7D,CAAA;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,wCAAqC;AAQrC,IAAiB,QAAQ,CAmBxB;AAnBD,WAAiB,QAAQ;IACR,aAAI,GAAG,CAAC,MAAqB,EAAY,EAAE;QAEpD,IAAI,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC,CAAA;IAEY,cAAK,GAAG,CAAC,MAAqB,EAAE,IAAc,EAAQ,EAAE;QACjE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO;QACX,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,WAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EAnBgB,QAAQ,wBAAR,QAAQ,QAmBxB;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { GUID } from './binary/GUID';\n\n\n/**\n * contains a flag whether the Guid is valid, and the Guid itself if valid.\n */\nexport type GUIDInfo = undefined | GUID;\n\nexport namespace GUIDInfo {\n export const read = (reader: ContextReader): GUIDInfo => {\n // means whether it has guid.\n if (reader.readByte() === 1) {\n return GUID.read(reader);\n } else {\n return undefined;\n }\n }\n\n export const write = (writer: ContextWriter, guid: GUIDInfo): void => {\n if (guid === undefined) {\n writer.writeByte(0);\n return;\n } else {\n writer.writeByte(1);\n GUID.write(writer, guid);\n }\n }\n};"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContextReader } from "../../../../context/context-reader";
|
|
2
|
+
import { ContextWriter } from "../../../../context/context-writer";
|
|
3
|
+
export type FClientIdentityInfo = {
|
|
4
|
+
offlineId: string;
|
|
5
|
+
accountIds: Record<number, number[]>;
|
|
6
|
+
};
|
|
7
|
+
export declare namespace FClientIdentityInfo {
|
|
8
|
+
const read: (reader: ContextReader) => FClientIdentityInfo;
|
|
9
|
+
const write: (writer: ContextWriter, value: FClientIdentityInfo) => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=FClientIdentityInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FClientIdentityInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FClientIdentityInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAOnE,MAAM,MAAM,mBAAmB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACxC,CAAC;AAEF,yBAAiB,mBAAmB,CAAC;IAE1B,MAAM,IAAI,WAAY,aAAa,KAAG,mBAgB5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,SAAS,mBAAmB,KAAG,IAQzE,CAAA;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FClientIdentityInfo = void 0;
|
|
4
|
+
var FClientIdentityInfo;
|
|
5
|
+
(function (FClientIdentityInfo) {
|
|
6
|
+
FClientIdentityInfo.read = (reader) => {
|
|
7
|
+
const offlineId = reader.readString();
|
|
8
|
+
const numAccountIds = reader.readInt32();
|
|
9
|
+
const accountIds = {};
|
|
10
|
+
for (let i = 0; i < numAccountIds; i++) {
|
|
11
|
+
const platformFlagMaybe = reader.readByte();
|
|
12
|
+
const idSize = reader.readInt32();
|
|
13
|
+
const accountId = Array.from(reader.readBytes(idSize));
|
|
14
|
+
accountIds[platformFlagMaybe] = accountId;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
offlineId,
|
|
18
|
+
accountIds
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
FClientIdentityInfo.write = (writer, value) => {
|
|
22
|
+
writer.writeString(value.offlineId);
|
|
23
|
+
writer.writeInt32(Object.values(value.accountIds).length);
|
|
24
|
+
for (const [platformFlagMaybe, accountId] of Object.entries(value.accountIds)) {
|
|
25
|
+
writer.writeByte(Number(platformFlagMaybe));
|
|
26
|
+
writer.writeInt32(accountId.length);
|
|
27
|
+
writer.writeBytesArray(accountId);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
})(FClientIdentityInfo || (exports.FClientIdentityInfo = FClientIdentityInfo = {}));
|
|
31
|
+
//# sourceMappingURL=FClientIdentityInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FClientIdentityInfo.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FClientIdentityInfo.ts"],"names":[],"mappings":";;;AAaA,IAAiB,mBAAmB,CA6BnC;AA7BD,WAAiB,mBAAmB;IAEnB,wBAAI,GAAG,CAAC,MAAqB,EAAuB,EAAE;QAC/D,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACtC,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEzC,MAAM,UAAU,GAA6B,EAAE,CAAC;QAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,iBAAiB,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;YAC5C,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;YAClC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;YACvD,UAAU,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;QAC9C,CAAC;QAED,OAAO;YACH,SAAS;YACT,UAAU;SACiB,CAAC;IACpC,CAAC,CAAA;IAEY,yBAAK,GAAG,CAAC,MAAqB,EAAE,KAA0B,EAAQ,EAAE;QAC7E,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACpC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;QAC1D,KAAK,MAAM,CAAC,iBAAiB,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5E,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC5C,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACpC,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA7BgB,mBAAmB,mCAAnB,mBAAmB,QA6BnC","sourcesContent":["import { ContextReader } from \"../../../../context/context-reader\";\nimport { ContextWriter } from \"../../../../context/context-writer\";\n\n\n/**\n * specific binary struct\n */\n\nexport type FClientIdentityInfo = {\n offlineId: string;\n accountIds: Record<number, number[]>;\n};\n\nexport namespace FClientIdentityInfo {\n\n export const read = (reader: ContextReader): FClientIdentityInfo => {\n const offlineId = reader.readString();\n const numAccountIds = reader.readInt32();\n\n const accountIds: Record<number, number[]> = {};\n for (let i = 0; i < numAccountIds; i++) {\n const platformFlagMaybe = reader.readByte(); // 1 for Epic, 6 for steam ? Only seen 1s and 6s so far.\n const idSize = reader.readInt32();\n const accountId = Array.from(reader.readBytes(idSize));\n accountIds[platformFlagMaybe] = accountId;\n }\n\n return {\n offlineId,\n accountIds\n } satisfies FClientIdentityInfo;\n }\n\n export const write = (writer: ContextWriter, value: FClientIdentityInfo): void => {\n writer.writeString(value.offlineId);\n writer.writeInt32(Object.values(value.accountIds).length);\n for (const [platformFlagMaybe, accountId] of Object.entries(value.accountIds)) {\n writer.writeByte(Number(platformFlagMaybe));\n writer.writeInt32(accountId.length);\n writer.writeBytesArray(accountId);\n }\n }\n}"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextReader } from "../../../../context/context-reader";
|
|
2
|
+
import { ContextWriter } from "../../../../context/context-writer";
|
|
3
|
+
import { col4 } from "../col4";
|
|
4
|
+
export type FColor = col4;
|
|
5
|
+
export declare namespace FColor {
|
|
6
|
+
const read: (reader: ContextReader) => FColor;
|
|
7
|
+
const write: (writer: ContextWriter, value: FColor) => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=FColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FColor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAO/B,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC;AAE1B,yBAAiB,MAAM,CAAC;IAEb,MAAM,IAAI,WAAY,aAAa,KAAG,MAE5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,SAAS,MAAM,KAAG,IAE5D,CAAA;CACJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FColor = void 0;
|
|
4
|
+
const col4_1 = require("../col4");
|
|
5
|
+
var FColor;
|
|
6
|
+
(function (FColor) {
|
|
7
|
+
FColor.read = (reader) => {
|
|
8
|
+
return col4_1.col4.ParseBGRA(reader);
|
|
9
|
+
};
|
|
10
|
+
FColor.write = (writer, value) => {
|
|
11
|
+
col4_1.col4.SerializeBGRA(writer, value);
|
|
12
|
+
};
|
|
13
|
+
})(FColor || (exports.FColor = FColor = {}));
|
|
14
|
+
//# sourceMappingURL=FColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FColor.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/structs/binary/FColor.ts"],"names":[],"mappings":";;;AAEA,kCAA+B;AAS/B,IAAiB,MAAM,CAStB;AATD,WAAiB,MAAM;IAEN,WAAI,GAAG,CAAC,MAAqB,EAAU,EAAE;QAClD,OAAO,WAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC,CAAA;IAEY,YAAK,GAAG,CAAC,MAAqB,EAAE,KAAa,EAAQ,EAAE;QAChE,WAAI,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC,CAAA;AACL,CAAC,EATgB,MAAM,sBAAN,MAAM,QAStB","sourcesContent":["import { ContextReader } from \"../../../../context/context-reader\";\nimport { ContextWriter } from \"../../../../context/context-writer\";\nimport { col4 } from \"../col4\";\n\n\n/**\n * specific binary struct\n */\n\nexport type FColor = col4;\n\nexport namespace FColor {\n\n export const read = (reader: ContextReader): FColor => {\n return col4.ParseBGRA(reader);\n }\n\n export const write = (writer: ContextWriter, value: FColor): void => {\n col4.SerializeBGRA(writer, value);\n }\n}"]}
|