@etothepii/satisfactory-file-parser 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish-jsr.yml +1 -2
- package/CHANGELOG.md +10 -0
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts +2 -0
- package/build/parser/satisfactory/types/property/generic/TextProperty.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js +9 -1
- package/build/parser/satisfactory/types/property/generic/TextProperty.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUID.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/GUID.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/GUIDInfo.js.map +1 -1
- package/build/parser/satisfactory/types/structs/MD5Hash.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/MD5Hash.js.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/ObjectReference.js.map +1 -1
- package/build/parser/satisfactory/types/structs/Transform.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/Transform.js.map +1 -1
- package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec2.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec2.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec3.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec3.js.map +1 -1
- package/build/parser/satisfactory/types/structs/vec4.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/vec4.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BlueprintConfigReader.html +4 -4
- package/docs/classes/BlueprintConfigWriter.html +4 -4
- package/docs/classes/BlueprintReader.html +4 -4
- package/docs/classes/BlueprintWriter.html +4 -4
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/CorruptBlueprintError.html +2 -2
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/Parser.html +6 -6
- 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 +4 -4
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- package/docs/enums/BlueprintConfigVersion.html +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/FGDynamicStruct.Parse.html +1 -1
- package/docs/functions/FGDynamicStruct.Serialize.html +1 -1
- package/docs/functions/FICFrameRange.Parse.html +1 -1
- package/docs/functions/FICFrameRange.Serialize.html +1 -1
- package/docs/functions/FloatArrayProperty.Parse.html +1 -1
- package/docs/functions/FloatArrayProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.CalcOverhead.html +1 -1
- package/docs/functions/FloatProperty.Parse.html +1 -1
- package/docs/functions/FloatProperty.ReadValue.html +1 -1
- package/docs/functions/FloatProperty.Serialize.html +1 -1
- package/docs/functions/FloatProperty.SerializeValue.html +1 -1
- package/docs/functions/GUID.read.html +1 -1
- package/docs/functions/GUID.write.html +1 -1
- package/docs/functions/GUIDInfo.read.html +1 -1
- package/docs/functions/GUIDInfo.write.html +1 -1
- package/docs/functions/Int32ArrayProperty.Parse.html +1 -1
- package/docs/functions/Int32ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int32Property.CalcOverhead.html +1 -1
- package/docs/functions/Int32Property.Parse.html +1 -1
- package/docs/functions/Int32Property.ReadValue.html +1 -1
- package/docs/functions/Int32Property.Serialize.html +1 -1
- package/docs/functions/Int32Property.SerializeValue.html +1 -1
- package/docs/functions/Int32SetProperty.Parse.html +1 -1
- package/docs/functions/Int32SetProperty.Serialize.html +1 -1
- package/docs/functions/Int64ArrayProperty.Parse.html +1 -1
- package/docs/functions/Int64ArrayProperty.Serialize.html +1 -1
- package/docs/functions/Int64Property.CalcOverhead.html +1 -1
- package/docs/functions/Int64Property.Parse.html +1 -1
- package/docs/functions/Int64Property.ReadValue.html +1 -1
- package/docs/functions/Int64Property.Serialize.html +1 -1
- package/docs/functions/Int64Property.SerializeValue.html +1 -1
- package/docs/functions/Int8Property.CalcOverhead.html +1 -1
- package/docs/functions/Int8Property.Parse.html +1 -1
- package/docs/functions/Int8Property.ReadValue.html +1 -1
- package/docs/functions/Int8Property.Serialize.html +1 -1
- package/docs/functions/Int8Property.SerializeValue.html +1 -1
- package/docs/functions/Level.ReadAllObjectContents.html +1 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
- package/docs/functions/Level.ReadLevel.html +1 -1
- package/docs/functions/Level.ReadNObjectContents.html +1 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeLevel.html +1 -1
- package/docs/functions/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/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/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/FGDynamicStruct.html +1 -1
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/FloatArrayProperty.html +1 -1
- package/docs/modules/FloatProperty.html +1 -1
- package/docs/modules/GUID.html +1 -1
- package/docs/modules/GUIDInfo.html +1 -1
- package/docs/modules/Int32ArrayProperty.html +1 -1
- package/docs/modules/Int32Property.html +1 -1
- package/docs/modules/Int32SetProperty.html +1 -1
- package/docs/modules/Int64ArrayProperty.html +1 -1
- package/docs/modules/Int64Property.html +1 -1
- package/docs/modules/Int8Property.html +1 -1
- package/docs/modules/Level.html +1 -1
- package/docs/modules/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/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 +2 -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/types/AbstractBaseProperty-1.html +1 -1
- package/docs/types/ArrayProperty.AvailableArrayPropertyTypes.html +1 -1
- package/docs/types/ArrayPropertyStructValueFields.html +1 -1
- package/docs/types/BasicMultipleStructPropertyValue.html +1 -1
- package/docs/types/BasicStructPropertyValue.html +1 -1
- package/docs/types/BlueprintHeader-1.html +1 -1
- package/docs/types/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/ByteArray4.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/ClientIdentityInfo.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -1
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -1
- package/docs/types/DoubleArrayProperty-1.html +1 -1
- package/docs/types/DoubleProperty-1.html +1 -1
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -1
- package/docs/types/EnumArrayProperty-1.html +1 -1
- package/docs/types/EnumProperty-1.html +1 -1
- package/docs/types/FGDynamicStruct-1.html +1 -1
- package/docs/types/FICFrameRange-1.html +1 -1
- package/docs/types/FICFrameRangeStructPropertyValue.html +1 -1
- package/docs/types/FloatArrayProperty-1.html +1 -1
- package/docs/types/FloatProperty-1.html +1 -1
- package/docs/types/GENERIC_MAP_KEY_TYPE.html +1 -1
- package/docs/types/GENERIC_MAP_VALUE_TYPE.html +1 -1
- package/docs/types/GENERIC_STRUCT_PROPERTY_VALUE.html +1 -1
- package/docs/types/GUID-1.html +2 -1
- package/docs/types/GUIDInfo-1.html +2 -1
- package/docs/types/Grids.html +1 -1
- package/docs/types/Int32ArrayProperty-1.html +1 -1
- package/docs/types/Int32Property-1.html +1 -1
- package/docs/types/Int32SetProperty-1.html +1 -1
- package/docs/types/Int64ArrayProperty-1.html +1 -1
- package/docs/types/Int64Property-1.html +1 -1
- package/docs/types/Int8Property-1.html +1 -1
- package/docs/types/InventoryItemStructPropertyValue.html +1 -1
- package/docs/types/Level-1.html +1 -1
- package/docs/types/LevelToDestroyedActorsMap-1.html +1 -1
- package/docs/types/Levels.html +1 -1
- package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
- package/docs/types/MD5Hash-1.html +2 -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 +2 -1
- package/docs/types/ObjectSetProperty-1.html +1 -1
- package/docs/types/ObjectsListSpecialProperties-1.html +1 -1
- package/docs/types/PlayerSpecialProperties-1.html +1 -1
- package/docs/types/PowerLineSpecialProperties-1.html +1 -1
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SatisfactoryModMetadata.html +1 -1
- package/docs/types/SatisfactorySaveHeader-1.html +1 -1
- package/docs/types/SaveBodyChunks-1.html +1 -1
- package/docs/types/SaveBodyValidation.html +1 -1
- 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 +2 -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 +2 -1
- package/docs/types/vec2-1.html +2 -1
- package/docs/types/vec3-1.html +2 -1
- package/docs/types/vec4-1.html +2 -1
- package/docs/variables/DEFAULT_SATISFACTORY_CHUNK_HEADER_SIZE.html +1 -1
- package/docs/variables/EDIT.html +1 -1
- package/docs/variables/SaveBodyChunks.HEADER_V1.html +1 -1
- package/docs/variables/SaveBodyChunks.HEADER_V2.html +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
### [3.1.2] (2025-08-30)
|
|
3
|
+
#### Extending Mod Support
|
|
4
|
+
* Added Support for Circuitry Mod
|
|
5
|
+
|
|
6
|
+
### [3.1.1] (2025-08-24)
|
|
7
|
+
#### Bugfix for writing Blueprints
|
|
8
|
+
* Fixed a bug where serialized blueprints would have 4 bytes too much and would cause issues when reading again.
|
|
9
|
+
#### Internal Cleanup
|
|
10
|
+
* provided complete enums for custom versions `BlueprintHeaderVersion`, `SaveCustomVersion`, `SaveHeaderType`
|
|
11
|
+
|
|
2
12
|
### [3.0.3] (2025-08-08)
|
|
3
13
|
#### Internal Cleanup
|
|
4
14
|
* Renamed sample test saves to not include whitespaces.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,YAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,
|
|
1
|
+
{"version":3,"file":"TextProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,cAAc,aAAc,GAAG,KAAG,QAAQ,IAAI,YAA4E,CAAC;AAExI,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG;IAC9C,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAEnB,MAAM,KAAK,WAAY,aAAa,UAAU,MAAM,UAAS,MAAM,KAAO,YAShF,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,KAAG,iBAkEjD,CAAA;IAEM,MAAM,YAAY,aAAc,YAAY,KAAG,MAErD,CAAA;IAEM,MAAM,SAAS,WAAY,aAAa,YAAY,YAAY,KAAG,IAGzE,CAAA;IAEM,MAAM,cAAc,WAAY,aAAa,SAAS,iBAAiB,KAAG,IA2DhF,CAAA;CACJ;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,iBAAiB,CAAC;KAAE,EAAE,CAAC;IAGrF,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC"}
|
|
@@ -50,6 +50,10 @@ var TextProperty;
|
|
|
50
50
|
prop.sourceText = TextProperty.ReadValue(reader);
|
|
51
51
|
prop.transformType = reader.readByte();
|
|
52
52
|
break;
|
|
53
|
+
case 11:
|
|
54
|
+
prop.tableId = reader.readString();
|
|
55
|
+
prop.textKey = reader.readString();
|
|
56
|
+
break;
|
|
53
57
|
case 255:
|
|
54
58
|
prop.hasCultureInvariantString = reader.readInt32() === 1;
|
|
55
59
|
if (prop.hasCultureInvariantString) {
|
|
@@ -57,7 +61,7 @@ var TextProperty;
|
|
|
57
61
|
}
|
|
58
62
|
break;
|
|
59
63
|
default:
|
|
60
|
-
throw new Error('Unimplemented historyType
|
|
64
|
+
throw new Error('Unimplemented TextProperty historyType ' + prop.historyType);
|
|
61
65
|
}
|
|
62
66
|
return prop;
|
|
63
67
|
};
|
|
@@ -98,6 +102,10 @@ var TextProperty;
|
|
|
98
102
|
TextProperty.SerializeValue(writer, value.sourceText);
|
|
99
103
|
writer.writeByte(value.transformType);
|
|
100
104
|
break;
|
|
105
|
+
case 11:
|
|
106
|
+
writer.writeString(value.tableId);
|
|
107
|
+
writer.writeString(value.textKey);
|
|
108
|
+
break;
|
|
101
109
|
case 255:
|
|
102
110
|
writer.writeInt32(value.hasCultureInvariantString ? 1 : 0);
|
|
103
111
|
if (value.hasCultureInvariantString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextProper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AAC;wBACpB,KAAK,CAAC;4BACF,aAAA,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,aAAc,CAAC,CAAC;4BAC3C,MAAM;wBACV;4BAEI,MAAM,IAAI,KAAK,CAAC,oCAAoC,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;oBAC/F,CAAC;gBACL,CAAC;gBACD,MAAM;YAGV,KAAK,EAAE;gBACH,aAAA,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,UAAW,CAAC,CAAC;gBAC1C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,aAAc,CAAC,CAAC;gBACvC,MAAM;YAEV,KAAK,GAAG;gBAGJ,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3D,IAAI,KAAK,CAAC,yBAAyB,EAAE,CAAC;oBAClC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAM,CAAC,CAAC;gBACrC,CAAC;gBACD,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA5IgB,YAAY,4BAAZ,YAAY,QA4I5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isTextProperty = (property: any): property is TextProperty => !Array.isArray(property) && property.type === 'TextProperty';\n\nexport type TextProperty = AbstractBaseProperty & {\n type: 'TextProperty';\n value: TextPropertyValue;\n};\n\nexport namespace TextProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number = 0): TextProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = TextProperty.ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'TextProperty',\n value,\n } satisfies TextProperty;\n }\n\n export const ReadValue = (reader: ContextReader): TextPropertyValue => {\n const prop: TextPropertyValue = {\n flags: reader.readInt32(),\n historyType: reader.readByte()\n };\n\n switch (prop.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n prop.namespace = reader.readString();\n prop.key = reader.readString();\n prop.value = reader.readString();\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n prop.sourceFmt = ReadValue(reader);\n\n const argumentsCount = reader.readInt32();\n prop.arguments = [];\n\n for (let i = 0; i < argumentsCount; i++) {\n let currentArgumentsData: any = {};\n currentArgumentsData.name = reader.readString();\n currentArgumentsData.valueType = reader.readByte();\n\n switch (currentArgumentsData.valueType) {\n case 4:\n currentArgumentsData.argumentValue = ReadValue(reader);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n\n prop.arguments.push(currentArgumentsData);\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n prop.sourceText = ReadValue(reader);\n prop.transformType = reader.readByte();\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n prop.hasCultureInvariantString = reader.readInt32() === 1;\n\n if (prop.hasCultureInvariantString) {\n prop.value = reader.readString();\n }\n break;\n\n default:\n throw new Error('Unimplemented historyType `' + prop.historyType);\n }\n\n return prop;\n }\n\n export const CalcOverhead = (property: TextProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: TextProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, value: TextPropertyValue): void => {\n writer.writeInt32(value.flags);\n writer.writeByte(value.historyType);\n\n\n switch (value.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n writer.writeString(value.namespace!);\n writer.writeString(value.key!);\n writer.writeString(value.value!);\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n SerializeValue(writer, value.sourceFmt!);\n\n writer.writeInt32(value.arguments!.length);\n\n for (const arg of value.arguments!) {\n let currentArgumentsData: any = {};\n writer.writeString(arg.name);\n writer.writeByte(arg.valueType);\n\n switch (arg.valueType) {\n case 4:\n SerializeValue(writer, arg.argumentValue!);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n SerializeValue(writer, value.sourceText!);\n writer.writeByte(value.transformType!);\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n writer.writeInt32(value.hasCultureInvariantString ? 1 : 0);\n\n if (value.hasCultureInvariantString) {\n writer.writeString(value.value!);\n }\n break;\n default:\n throw new Error('Unimplemented historyType `' + value.historyType);\n }\n }\n}\n\nexport type TextPropertyValue = {\n flags: number;\n historyType: number;\n\n // flag 0\n namespace?: string;\n key?: string;\n value?: string;\n\n // flag 1 + 3\n sourceFmt?: TextPropertyValue;\n arguments?: { name: string; valueType: number; argumentValue: TextPropertyValue; }[];\n\n // flag 10\n sourceText?: TextPropertyValue;\n transformType?: number;\n\n // flag 255, reusing value\n hasCultureInvariantString?: boolean;\n};\n\n"]}
|
|
1
|
+
{"version":3,"file":"TextProperty.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/generic/TextProperty.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,i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,CAAC,CAAC;oBAEhC,QAAQ,GAAG,CAAC,SAAS,EAAE,CAAC;wBACpB,KAAK,CAAC;4BACF,aAAA,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,aAAc,CAAC,CAAC;4BAC3C,MAAM;wBACV;4BAEI,MAAM,IAAI,KAAK,CAAC,oCAAoC,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;oBAC/F,CAAC;gBACL,CAAC;gBACD,MAAM;YAGV,KAAK,EAAE;gBACH,aAAA,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,UAAW,CAAC,CAAC;gBAC1C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,aAAc,CAAC,CAAC;gBACvC,MAAM;YAEV,KAAK,EAAE;gBACH,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,OAAQ,CAAC,CAAC;gBACnC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,OAAQ,CAAC,CAAC;gBACnC,MAAM;YAEV,KAAK,GAAG;gBAGJ,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3D,IAAI,KAAK,CAAC,yBAAyB,EAAE,CAAC;oBAClC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAM,CAAC,CAAC;gBACrC,CAAC;gBACD,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EAtJgB,YAAY,4BAAZ,YAAY,QAsJ5B","sourcesContent":["import { ContextReader } from '../../../../context/context-reader';\nimport { ContextWriter } from '../../../../context/context-writer';\nimport { GUIDInfo } from '../../structs/GUIDInfo';\nimport { AbstractBaseProperty } from './AbstractBaseProperty';\n\nexport const isTextProperty = (property: any): property is TextProperty => !Array.isArray(property) && property.type === 'TextProperty';\n\nexport type TextProperty = AbstractBaseProperty & {\n type: 'TextProperty';\n value: TextPropertyValue;\n};\n\nexport namespace TextProperty {\n\n export const Parse = (reader: ContextReader, ueType: string, index: number = 0): TextProperty => {\n const guidInfo = GUIDInfo.read(reader);\n const value = TextProperty.ReadValue(reader);\n\n return {\n ...AbstractBaseProperty.Create({ index, ueType, guidInfo, type: '' }),\n type: 'TextProperty',\n value,\n } satisfies TextProperty;\n }\n\n export const ReadValue = (reader: ContextReader): TextPropertyValue => {\n const prop: TextPropertyValue = {\n flags: reader.readInt32(),\n historyType: reader.readByte()\n };\n\n switch (prop.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n prop.namespace = reader.readString();\n prop.key = reader.readString();\n prop.value = reader.readString();\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n prop.sourceFmt = ReadValue(reader);\n\n const argumentsCount = reader.readInt32();\n prop.arguments = [];\n\n for (let i = 0; i < argumentsCount; i++) {\n let currentArgumentsData: any = {};\n currentArgumentsData.name = reader.readString();\n currentArgumentsData.valueType = reader.readByte();\n\n switch (currentArgumentsData.valueType) {\n case 4:\n currentArgumentsData.argumentValue = ReadValue(reader);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n\n prop.arguments.push(currentArgumentsData);\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n prop.sourceText = ReadValue(reader);\n prop.transformType = reader.readByte();\n break;\n // HISTORYTYPE_STRING_TABLE_ENTRY\n case 11:\n prop.tableId = reader.readString();\n prop.textKey = reader.readString();\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n prop.hasCultureInvariantString = reader.readInt32() === 1;\n\n if (prop.hasCultureInvariantString) {\n prop.value = reader.readString();\n }\n break;\n\n default:\n throw new Error('Unimplemented TextProperty historyType ' + prop.historyType);\n }\n\n return prop;\n }\n\n export const CalcOverhead = (property: TextProperty): number => {\n return 1;\n }\n\n export const Serialize = (writer: ContextWriter, property: TextProperty): void => {\n GUIDInfo.write(writer, property.guidInfo);\n SerializeValue(writer, property.value);\n }\n\n export const SerializeValue = (writer: ContextWriter, value: TextPropertyValue): void => {\n writer.writeInt32(value.flags);\n writer.writeByte(value.historyType);\n\n\n switch (value.historyType) {\n // HISTORYTYPE_BASE\n case 0:\n writer.writeString(value.namespace!);\n writer.writeString(value.key!);\n writer.writeString(value.value!);\n break;\n // HISTORYTYPE_NAMEDFORMAT\n case 1:\n // HISTORYTYPE_ARGUMENTFORMAT\n case 3:\n SerializeValue(writer, value.sourceFmt!);\n\n writer.writeInt32(value.arguments!.length);\n\n for (const arg of value.arguments!) {\n let currentArgumentsData: any = {};\n writer.writeString(arg.name);\n writer.writeByte(arg.valueType);\n\n switch (arg.valueType) {\n case 4:\n SerializeValue(writer, arg.argumentValue!);\n break;\n default:\n\n throw new Error('Unimplemented FormatArgumentType `' + currentArgumentsData.valueType);\n }\n }\n break;\n // see https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp#L2268\n // HISTORYTYPE_TRANSFORM\n case 10:\n SerializeValue(writer, value.sourceText!);\n writer.writeByte(value.transformType!);\n break;\n // HISTORYTYPE_STRING_TABLE_ENTRY\n case 11:\n writer.writeString(value.tableId!);\n writer.writeString(value.textKey!);\n break;\n // HISTORYTYPE_NONE\n case 255:\n // See: https://github.com/EpicGames/UnrealEngine/blob/4.25/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp#L894\n\n writer.writeInt32(value.hasCultureInvariantString ? 1 : 0);\n\n if (value.hasCultureInvariantString) {\n writer.writeString(value.value!);\n }\n break;\n default:\n throw new Error('Unimplemented historyType `' + value.historyType);\n }\n }\n}\n\nexport type TextPropertyValue = {\n flags: number;\n historyType: number;\n\n // flag 0\n namespace?: string;\n key?: string;\n value?: string;\n\n // flag 1 + 3\n sourceFmt?: TextPropertyValue;\n arguments?: { name: string; valueType: number; argumentValue: TextPropertyValue; }[];\n\n // flag 10\n sourceText?: TextPropertyValue;\n transformType?: number;\n\n // flag 11\n tableId?: string;\n textKey?: string;\n\n // flag 255, reusing value\n hasCultureInvariantString?: boolean;\n};\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAKhE,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,yBAAiB,IAAI,CAAC;IACX,MAAM,IAAI,WAAY,aAAa,KAAG,IAO5C,CAAA;IAEM,MAAM,KAAK,WAAY,aAAa,QAAQ,IAAI,KAAG,IAKzD,CAAA;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;AAQA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACJ,SAAI,GAAG,CAAC,MAAqB,EAAQ,EAAE;QAChD,OAAO;YACH,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;YACnB,MAAM,CAAC,UAAU,EAAE;SACtB,CAAC;IACN,CAAC,CAAA;IAEY,UAAK,GAAG,CAAC,MAAqB,EAAE,IAAU,EAAQ,EAAE;QAC7D,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAA;AACL,CAAC,EAhBgB,IAAI,oBAAJ,IAAI,QAgBpB;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n/**\n * UE Guid structure, 4 uints.\n */\nexport type GUID = [number, number, number, number];\n\nexport namespace GUID {\n export const read = (reader: ContextReader): GUID => {\n return [\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n ];\n }\n\n export const write = (writer: ContextWriter, guid: GUID): void => {\n writer.writeUint32(guid[0]);\n writer.writeUint32(guid[1]);\n writer.writeUint32(guid[2]);\n writer.writeUint32(guid[3]);\n }\n};"]}
|
|
@@ -1 +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,QAAQ,CAAC;
|
|
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,QAAQ,CAAC;AAM9B,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,iCAA8B;
|
|
1
|
+
{"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAQ9B,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 './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};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MD5Hash.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"MD5Hash.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAKhE,MAAM,MAAM,OAAO,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,yBAAiB,OAAO,CAAC;IACd,MAAM,IAAI,WAAY,aAAa,KAAG,OAO5C,CAAC;IAEK,MAAM,KAAK,WAAY,aAAa,WAAW,OAAO,KAAG,IAK/D,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MD5Hash.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MD5Hash.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/MD5Hash.ts"],"names":[],"mappings":";;;AAWA,IAAiB,OAAO,CAgBvB;AAhBD,WAAiB,OAAO;IACP,YAAI,GAAG,CAAC,MAAqB,EAAW,EAAE;QACnD,MAAM,OAAO,GAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5C,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC,CAAC;IAEW,aAAK,GAAG,CAAC,MAAqB,EAAE,OAAgB,EAAQ,EAAE;QACnE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,IAAK,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAhBgB,OAAO,uBAAP,OAAO,QAgBvB;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n/**\n * a UE MD5 hash. consists of 16 bytes and a validity byte.\n */\nexport type MD5Hash = {\n isValid: boolean;\n hash?: number[];\n};\n\nexport namespace MD5Hash {\n export const read = (reader: ContextReader): MD5Hash => {\n const md5Hash: MD5Hash = { isValid: false };\n md5Hash.isValid = reader.readInt32() === 1;\n if (md5Hash.isValid) {\n md5Hash.hash = Array.from(reader.readBytes(16));\n }\n return md5Hash;\n };\n\n export const write = (writer: ContextWriter, md5Hash: MD5Hash): void => {\n writer.writeInt32(md5Hash.isValid ? 1 : 0);\n if (md5Hash.isValid) {\n writer.writeBytesArray(md5Hash.hash!);\n }\n };\n};"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectReference.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/ObjectReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"ObjectReference.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/ObjectReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMhE,MAAM,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,yBAAiB,eAAe,CAAC;IACzB,MAAM,IAAI,WAAY,aAAa,KAAG,eAK5C,CAAC;IAEK,MAAM,KAAK,WAAY,aAAa,OAAO,eAAe,KAAG,IAGnE,CAAC;IAEK,MAAM,OAAO,SAAU,eAAe,QAAQ,eAAe,YAAyE,CAAC;CAC9I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectReference.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/ObjectReference.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ObjectReference.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/ObjectReference.ts"],"names":[],"mappings":";;;AAYA,IAAiB,eAAe,CAc/B;AAdD,WAAiB,eAAe;IAClB,oBAAI,GAAG,CAAC,MAAqB,EAAmB,EAAE;QAC9D,OAAO;YACN,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE;YAC9B,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE;SAC7B,CAAC;IACH,CAAC,CAAC;IAEW,qBAAK,GAAG,CAAC,MAAqB,EAAE,GAAoB,EAAQ,EAAE;QAC1E,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC,CAAC;IAEW,uBAAO,GAAG,CAAC,IAAqB,EAAE,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC;AAC/I,CAAC,EAdgB,eAAe,+BAAf,eAAe,QAc/B;AAAA,CAAC","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n\n/**\n * Reference to an object in saves/blueprints.\n */\nexport type ObjectReference = {\n\tlevelName: string;\n\tpathName: string;\n};\n\nexport namespace ObjectReference {\n\texport const read = (reader: ContextReader): ObjectReference => {\n\t\treturn {\n\t\t\tlevelName: reader.readString(),\n\t\t\tpathName: reader.readString()\n\t\t};\n\t};\n\n\texport const write = (writer: ContextWriter, ref: ObjectReference): void => {\n\t\twriter.writeString(ref.levelName);\n\t\twriter.writeString(ref.pathName);\n\t};\n\n\texport const IsEqual = (ref1: ObjectReference, ref2: ObjectReference) => ref1.levelName === ref2.levelName && ref1.pathName === ref2.pathName;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transform.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/Transform.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,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Transform.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/Transform.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,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAK9B,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,EAAE,IAAI,CAAC;IACf,WAAW,EAAE,IAAI,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC;CACjB,CAAC;AAKF,yBAAiB,SAAS,CAAC;IAChB,MAAM,MAAM,WAAY,aAAa,KAAG,SAM9C,CAAC;IAEK,MAAM,KAAK,WAAY,aAAa,KAAG,SAM7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,aAAa,SAAS,KAAG,IAIvE,CAAC;IAEK,MAAM,UAAU,WAAY,aAAa,aAAa,SAAS,KAAG,IAIxE,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transform.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/Transform.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAC9B,iCAA8B;
|
|
1
|
+
{"version":3,"file":"Transform.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/Transform.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAC9B,iCAA8B;AAc9B,IAAiB,SAAS,CA4BzB;AA5BD,WAAiB,SAAS;IACT,gBAAM,GAAG,CAAC,MAAqB,EAAa,EAAE;QACvD,OAAO;YACH,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7B,WAAW,EAAE,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YAChC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC;SAC/B,CAAC;IACN,CAAC,CAAC;IAEW,eAAK,GAAG,CAAC,MAAqB,EAAa,EAAE;QACtD,OAAO;YACH,QAAQ,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;YAC/B,OAAO,EAAE,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC;SAC9B,CAAC;IACN,CAAC,CAAC;IAEW,mBAAS,GAAG,CAAC,MAAqB,EAAE,SAAoB,EAAQ,EAAE;QAC3E,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3C,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;QAC9C,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC,CAAC;IAEW,oBAAU,GAAG,CAAC,MAAqB,EAAE,SAAoB,EAAQ,EAAE;QAC5E,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC5C,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;QAC/C,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC,CAAC;AACN,CAAC,EA5BgB,SAAS,yBAAT,SAAS,QA4BzB","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { vec3 } from './vec3';\nimport { vec4 } from './vec4';\n\n/**\n * An object's transform in saves/blueprints.\n */\nexport type Transform = {\n rotation: vec4;\n translation: vec3;\n scale3d: vec3;\n};\n\n/**\n * An object's transform in saves/blueprints.\n */\nexport namespace Transform {\n export const ParseF = (reader: ContextReader): Transform => {\n return {\n rotation: vec4.ParseF(reader),\n translation: vec3.ParseF(reader),\n scale3d: vec3.ParseF(reader),\n };\n };\n\n export const Parse = (reader: ContextReader): Transform => {\n return {\n rotation: vec4.Parse(reader),\n translation: vec3.Parse(reader),\n scale3d: vec3.Parse(reader),\n };\n };\n\n export const Serialize = (writer: ContextWriter, transform: Transform): void => {\n vec4.Serialize(writer, transform.rotation);\n vec3.Serialize(writer, transform.translation);\n vec3.Serialize(writer, transform.scale3d);\n };\n\n export const SerializeF = (writer: ContextWriter, transform: Transform): void => {\n vec4.SerializeF(writer, transform.rotation);\n vec3.SerializeF(writer, transform.translation);\n vec3.SerializeF(writer, transform.scale3d);\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col4.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/col4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"col4.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/col4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMhE,MAAM,MAAM,IAAI,GAAG;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,yBAAiB,IAAI,CAAC;IACX,MAAM,aAAa,WAAY,aAAa,SAAS,IAAI,KAAG,IAKlE,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,KAAG,IAOjD,CAAC;IAEK,MAAM,aAAa,WAAY,aAAa,SAAS,IAAI,KAAG,IAKlE,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,KAAG,IAOjD,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col4.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/col4.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"col4.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/col4.ts"],"names":[],"mappings":";;;AAcA,IAAiB,IAAI,CAgCpB;AAhCD,WAAiB,IAAI;IACJ,kBAAa,GAAG,CAAC,MAAqB,EAAE,KAAW,EAAQ,EAAE;QACtE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC;IAEW,cAAS,GAAG,CAAC,MAAqB,EAAQ,EAAE;QACrD,OAAO;YACH,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;YACvB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;YACvB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;YACvB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;SAC1B,CAAC;IACN,CAAC,CAAC;IAEW,kBAAa,GAAG,CAAC,MAAqB,EAAE,KAAW,EAAQ,EAAE;QACtE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEW,cAAS,GAAG,CAAC,MAAqB,EAAQ,EAAE;QACrD,OAAO;YACH,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE;YACpB,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE;YACpB,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE;YACpB,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE;SACvB,CAAC;IACN,CAAC,CAAC;AACN,CAAC,EAhCgB,IAAI,oBAAJ,IAAI,QAgCpB","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n\n/**\n * a 4-component color. can be encoded as 16 bytes RGBA or 4 bytes BGRA.\n */\nexport type col4 = {\n r: number;\n g: number;\n b: number;\n a: number;\n};\n\nexport namespace col4 {\n export const SerializeRGBA = (writer: ContextWriter, value: col4): void => {\n writer.writeFloat32(value.r);\n writer.writeFloat32(value.g);\n writer.writeFloat32(value.b);\n writer.writeFloat32(value.a);\n };\n\n export const ParseRGBA = (reader: ContextReader): col4 => {\n return {\n r: reader.readFloat32(),\n g: reader.readFloat32(),\n b: reader.readFloat32(),\n a: reader.readFloat32(),\n };\n };\n\n export const SerializeBGRA = (writer: ContextWriter, value: col4): void => {\n writer.writeByte(value.b);\n writer.writeByte(value.g);\n writer.writeByte(value.r);\n writer.writeByte(value.a);\n };\n\n export const ParseBGRA = (reader: ContextReader): col4 => {\n return {\n b: reader.readByte(),\n g: reader.readByte(),\n r: reader.readByte(),\n a: reader.readByte(),\n };\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec2.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"vec2.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAKhE,MAAM,MAAM,IAAI,GAAG;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,yBAAiB,IAAI,CAAC;IAEX,MAAM,KAAK,WAAY,aAAa,KAAG,IAK7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,OAAO,IAAI,KAAG,IAG5D,CAAC;IAEK,MAAM,MAAM,WAAY,aAAa,KAAG,IAK9C,CAAC;IAEK,MAAM,UAAU,WAAY,aAAa,OAAO,IAAI,KAAG,IAG7D,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec2.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec2.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vec2.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec2.ts"],"names":[],"mappings":";;;AAWA,IAAiB,IAAI,CAyBpB;AAzBD,WAAiB,IAAI;IAEJ,UAAK,GAAG,CAAC,MAAqB,EAAQ,EAAE;QACjD,OAAO;YACH,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE;YACtB,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE;SACzB,CAAC;IACN,CAAC,CAAC;IAEW,cAAS,GAAG,CAAC,MAAqB,EAAE,GAAS,EAAQ,EAAE;QAChE,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEW,WAAM,GAAG,CAAC,MAAqB,EAAQ,EAAE;QAClD,OAAO;YACH,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;YACvB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;SAC1B,CAAC;IACN,CAAC,CAAC;IAEW,eAAU,GAAG,CAAC,MAAqB,EAAE,GAAS,EAAQ,EAAE;QACjE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACN,CAAC,EAzBgB,IAAI,oBAAJ,IAAI,QAyBpB","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\n\n/**\n * 2D vector.\n */\nexport type vec2 = {\n x: number;\n y: number;\n};\n\nexport namespace vec2 {\n\n export const Parse = (reader: ContextReader): vec2 => {\n return {\n x: reader.readDouble(),\n y: reader.readDouble(),\n };\n };\n\n export const Serialize = (writer: ContextWriter, vec: vec2): void => {\n writer.writeDouble(vec.x);\n writer.writeDouble(vec.y);\n };\n\n export const ParseF = (reader: ContextReader): vec2 => {\n return {\n x: reader.readFloat32(),\n y: reader.readFloat32(),\n };\n };\n\n export const SerializeF = (writer: ContextWriter, vec: vec2): void => {\n writer.writeFloat32(vec.x);\n writer.writeFloat32(vec.y);\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec3.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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"vec3.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec3.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,QAAQ,CAAC;AAK9B,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG;IACtB,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,yBAAiB,IAAI,CAAC;IACX,MAAM,KAAK,WAAY,aAAa,KAAG,IAK7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,OAAO,IAAI,KAAG,IAG5D,CAAC;IAEK,MAAM,QAAQ,WAAY,aAAa,KAAG,IAMhD,CAAC;IAEK,MAAM,YAAY,WAAY,aAAa,OAAO,IAAI,KAAG,IAI/D,CAAC;IAEK,MAAM,MAAM,WAAY,aAAa,KAAG,IAK9C,CAAC;IAEK,MAAM,UAAU,WAAY,aAAa,OAAO,IAAI,KAAG,IAG7D,CAAC;IAGK,MAAM,GAAG,UAAW,IAAI,OAAO,IAAI,KAAG,IAAwE,CAAC;IAC/G,MAAM,GAAG,QAAS,IAAI,SAAS,IAAI,KAAG,IAAwE,CAAC;IAC/G,MAAM,MAAM,QAAS,IAAI,KAAG,MAAyD,CAAC;IACtF,MAAM,IAAI,QAAS,IAAI,SAAS,MAAM,KAAG,IAAkE,CAAC;IAC5G,MAAM,IAAI,QAAS,IAAI,KAAG,IAAmC,CAAC;CAExE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec3.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec3.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;
|
|
1
|
+
{"version":3,"file":"vec3.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec3.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAS9B,IAAiB,IAAI,CA8CpB;AA9CD,WAAiB,IAAI;IACJ,UAAK,GAAG,CAAC,MAAqB,EAAQ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AE,GAAS,EAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,QAAG,GAAG,CAAC,GAAS,EAAE,KAAW,EAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,WAAM,GAAG,CAAC,GAAS,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAChF,SAAI,GAAG,CAAC,GAAS,EAAE,KAAa,EAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IACtG,SAAI,GAAG,CAAC,GAAS,EAAQ,EAAE,CAAC,KAAA,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,KAAA,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzE,CAAC,EA9CgB,IAAI,oBAAJ,IAAI,QA8CpB","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { vec2 } from './vec2';\n\n/**\n * 3D vector.\n */\nexport type vec3 = vec2 & {\n z: number;\n};\n\nexport namespace vec3 {\n export const Parse = (reader: ContextReader): vec3 => {\n return {\n ...(vec2.Parse(reader)),\n z: reader.readDouble()\n };\n };\n\n export const Serialize = (writer: ContextWriter, vec: vec3): void => {\n vec2.Serialize(writer, vec as vec2);\n writer.writeDouble(vec.z);\n };\n\n export const ParseInt = (reader: ContextReader): vec3 => {\n return {\n x: reader.readInt32(),\n y: reader.readInt32(),\n z: reader.readInt32()\n };\n };\n\n export const SerializeInt = (writer: ContextWriter, vec: vec3): void => {\n writer.writeInt32(vec.x);\n writer.writeInt32(vec.y);\n writer.writeInt32(vec.z);\n };\n\n export const ParseF = (reader: ContextReader): vec3 => {\n return {\n ...(vec2.ParseF(reader)),\n z: reader.readFloat32()\n };\n };\n\n export const SerializeF = (writer: ContextWriter, vec: vec3): void => {\n vec2.SerializeF(writer, vec as vec2);\n writer.writeFloat32(vec.z);\n };\n\n\n export const sub = (other: vec3, vec: vec3): vec3 => ({ x: other.x - vec.x, y: other.y - vec.y, z: other.z - vec.z });\n export const add = (vec: vec3, other: vec3): vec3 => ({ x: vec.x + other.x, y: vec.y + other.y, z: vec.z + other.z });\n export const length = (vec: vec3): number => Math.sqrt(vec.x ** 2 + vec.y ** 2 + vec.z ** 2);\n export const mult = (vec: vec3, scale: number): vec3 => ({ x: vec.x * scale, y: vec.y * scale, z: vec.z * scale });\n export const norm = (vec: vec3): vec3 => mult(vec, 1. / length(vec));\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec4.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec4.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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"vec4.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec4.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,QAAQ,CAAC;AAK9B,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG;IACtB,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,yBAAiB,IAAI,CAAC;IACX,MAAM,KAAK,WAAY,aAAa,KAAG,IAK7C,CAAC;IAEK,MAAM,SAAS,WAAY,aAAa,OAAO,IAAI,KAAG,IAG5D,CAAC;IAEK,MAAM,MAAM,WAAY,aAAa,KAAG,IAK9C,CAAC;IAEK,MAAM,UAAU,WAAY,aAAa,OAAO,IAAI,KAAG,IAG7D,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vec4.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec4.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;
|
|
1
|
+
{"version":3,"file":"vec4.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/vec4.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAS9B,IAAiB,IAAI,CAwBpB;AAxBD,WAAiB,IAAI;IACJ,UAAK,GAAG,CAAC,MAAqB,EAAQ,EAAE;QACjD,OAAO;YACH,GAAG,CAAC,WAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACvB,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE;SACzB,CAAC;IACN,CAAC,CAAC;IAEW,cAAS,GAAG,CAAC,MAAqB,EAAE,GAAS,EAAQ,EAAE;QAChE,WAAI,CAAC,SAAS,CAAC,MAAM,EAAE,GAAW,CAAC,CAAC;QACpC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEW,WAAM,GAAG,CAAC,MAAqB,EAAQ,EAAE;QAClD,OAAO;YACH,GAAG,CAAC,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;SAC1B,CAAC;IACN,CAAC,CAAC;IAEW,eAAU,GAAG,CAAC,MAAqB,EAAE,GAAS,EAAQ,EAAE;QACjE,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,GAAW,CAAC,CAAC;QACrC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACN,CAAC,EAxBgB,IAAI,oBAAJ,IAAI,QAwBpB","sourcesContent":["import { ContextReader } from '../../../context/context-reader';\nimport { ContextWriter } from '../../../context/context-writer';\nimport { vec3 } from './vec3';\n\n/**\n * 4D vector.\n */\nexport type vec4 = vec3 & {\n w: number;\n};\n\nexport namespace vec4 {\n export const Parse = (reader: ContextReader): vec4 => {\n return {\n ...(vec3.Parse(reader)),\n w: reader.readDouble()\n };\n };\n\n export const Serialize = (writer: ContextWriter, vec: vec4): void => {\n vec3.Serialize(writer, vec as vec3);\n writer.writeDouble(vec.w);\n };\n\n export const ParseF = (reader: ContextReader): vec4 => {\n return {\n ...(vec3.ParseF(reader)),\n w: reader.readFloat32()\n };\n };\n\n export const SerializeF = (writer: ContextWriter, vec: vec4): void => {\n vec3.SerializeF(writer, vec as vec3);\n writer.writeFloat32(vec.w);\n };\n}\n"]}
|