@etothepii/satisfactory-file-parser 1.0.3 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENCE.md +1 -1
- package/LICENSE +1 -1
- package/README.md +8 -2
- package/build/index.d.ts +10 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +10 -1
- package/build/index.js.map +1 -1
- package/build/parser/satisfactory/save/object-references-list.d.ts +2 -2
- package/build/parser/satisfactory/save/object-references-list.d.ts.map +1 -1
- package/build/parser/satisfactory/save/object-references-list.js.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts +2 -2
- package/build/parser/satisfactory/types/objects/SaveObject.d.ts.map +1 -1
- package/build/parser/satisfactory/types/objects/SaveObject.js +3 -3
- package/build/parser/satisfactory/types/objects/SaveObject.js.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts +3 -5
- package/build/parser/satisfactory/types/property/PropertiesList.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/PropertiesList.js +10 -13
- package/build/parser/satisfactory/types/property/PropertiesList.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts +31 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js +81 -0
- package/build/parser/satisfactory/types/property/special/BuildableSubsystemSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts +16 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js +31 -0
- package/build/parser/satisfactory/types/property/special/CircuitSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts +40 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js +101 -0
- package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts +11 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js +18 -0
- package/build/parser/satisfactory/types/property/special/ConveyorSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts +11 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js +15 -0
- package/build/parser/satisfactory/types/property/special/EmptySpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts +13 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js +20 -0
- package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts +14 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js +40 -0
- package/build/parser/satisfactory/types/property/special/PlayerSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts +17 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js +28 -0
- package/build/parser/satisfactory/types/property/special/PowerLineSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts +18 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js +47 -0
- package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.js.map +1 -0
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts +13 -3
- package/build/parser/satisfactory/types/property/special/SpecialProperties.d.ts.map +1 -1
- package/build/parser/satisfactory/types/property/special/SpecialProperties.js +75 -195
- package/build/parser/satisfactory/types/property/special/SpecialProperties.js.map +1 -1
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts +19 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.d.ts.map +1 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js +46 -0
- package/build/parser/satisfactory/types/property/special/VehicleSpecialProperties.js.map +1 -0
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js +2 -21
- package/build/parser/satisfactory/types/structs/DynamicStructPropertyValue.js.map +1 -1
- package/build/parser/satisfactory/types/structs/GUID.d.ts +2 -2
- 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 +2 -2
- 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/ObjectReference.d.ts +2 -2
- 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 +3 -3
- 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 +3 -3
- package/build/parser/satisfactory/types/structs/col4.d.ts.map +1 -1
- package/build/parser/satisfactory/types/structs/col4.js.map +1 -1
- package/build/parser/satisfactory/types/structs/mods/FicsItCam/FICFrameRange.d.ts +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.map +1 -1
- package/build/parser/satisfactory/types/structs/vec2.d.ts +3 -3
- 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 +4 -4
- 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 +3 -3
- 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/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AbstractBaseProperty.html +2 -2
- package/docs/classes/AbstractProperty.html +2 -2
- package/docs/classes/ArrayProperty.html +2 -2
- package/docs/classes/BasicProperty.html +2 -2
- package/docs/classes/BlueprintConfigReader.html +3 -3
- package/docs/classes/BlueprintConfigWriter.html +3 -3
- package/docs/classes/BlueprintReader.html +3 -3
- package/docs/classes/BlueprintWriter.html +3 -3
- package/docs/classes/BoolProperty.html +2 -2
- package/docs/classes/ByteProperty.html +2 -2
- package/docs/classes/CompressionLibraryError.html +2 -2
- package/docs/classes/CorruptSaveError.html +2 -2
- package/docs/classes/DoubleProperty.html +2 -2
- package/docs/classes/EnumProperty.html +2 -2
- package/docs/classes/FloatProperty.html +2 -2
- package/docs/classes/Int32Property.html +2 -2
- package/docs/classes/Int64Property.html +2 -2
- package/docs/classes/Int8Property.html +2 -2
- package/docs/classes/MapProperty.html +2 -2
- package/docs/classes/ObjectProperty.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/SaveReader.html +3 -3
- package/docs/classes/SaveStreamJsonStringifier.html +2 -2
- package/docs/classes/SaveStreamWriter.html +2 -2
- package/docs/classes/SaveWriter.html +3 -3
- package/docs/classes/SetProperty.html +2 -2
- package/docs/classes/StrProperty.html +2 -2
- package/docs/classes/StructProperty.html +2 -2
- package/docs/classes/TextProperty.html +2 -2
- package/docs/classes/TimeoutError.html +2 -2
- package/docs/classes/Uint32Property.html +2 -2
- package/docs/classes/Uint64Property.html +2 -2
- package/docs/classes/Uint8Property.html +2 -2
- package/docs/classes/UnimplementedError.html +2 -2
- package/docs/classes/UnsupportedVersionError.html +2 -2
- package/docs/functions/BuildableSubsystemSpecialProperties.Parse.html +1 -0
- package/docs/functions/BuildableSubsystemSpecialProperties.Serialize.html +1 -0
- package/docs/functions/CircuitSpecialProperties.Parse.html +1 -0
- package/docs/functions/CircuitSpecialProperties.Serialize.html +1 -0
- package/docs/functions/ConveyorChainActorSpecialProperties.Parse.html +1 -0
- package/docs/functions/ConveyorChainActorSpecialProperties.Serialize.html +1 -0
- package/docs/functions/ConveyorSpecialProperties.Parse.html +1 -0
- package/docs/functions/ConveyorSpecialProperties.Serialize.html +1 -0
- package/docs/functions/DynamicStructPropertyValue.read.html +1 -1
- package/docs/functions/DynamicStructPropertyValue.write.html +1 -1
- package/docs/functions/EmptySpecialProperties.Parse.html +1 -0
- package/docs/functions/EmptySpecialProperties.Serialize.html +1 -0
- package/docs/functions/FICFrameRange.Parse.html +1 -1
- package/docs/functions/FICFrameRange.Serialize.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/Level.ReadAllObjectContents.html +1 -1
- package/docs/functions/Level.ReadAllObjectHeaders.html +1 -1
- package/docs/functions/Level.ReadLevel.html +1 -1
- package/docs/functions/Level.ReadNObjectContents.html +1 -1
- package/docs/functions/Level.ReadNObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeAllObjectContents.html +1 -1
- package/docs/functions/Level.SerializeAllObjectHeaders.html +1 -1
- package/docs/functions/Level.SerializeLevel.html +1 -1
- package/docs/functions/MD5Hash.read.html +1 -1
- package/docs/functions/MD5Hash.write.html +1 -1
- package/docs/functions/ObjectReference.read.html +1 -1
- package/docs/functions/ObjectReference.write.html +1 -1
- package/docs/functions/ObjectsListSpecialProperties.Parse.html +1 -0
- package/docs/functions/ObjectsListSpecialProperties.Serialize.html +1 -0
- package/docs/functions/PlayerSpecialProperties.Parse.html +1 -0
- package/docs/functions/PlayerSpecialProperties.Serialize.html +1 -0
- package/docs/functions/PowerLineSpecialProperties.Parse.html +1 -0
- package/docs/functions/PowerLineSpecialProperties.Serialize.html +1 -0
- 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/SoftObjectReference.read.html +1 -1
- package/docs/functions/SoftObjectReference.write.html +1 -1
- package/docs/functions/SpecialDroneActionProperties.Parse.html +1 -0
- package/docs/functions/SpecialDroneActionProperties.Serialize.html +1 -0
- package/docs/functions/SpecialProperties.ParseClassSpecificSpecialProperties.html +1 -1
- package/docs/functions/SpecialProperties.SerializeClassSpecificSpecialProperties.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/VehicleSpecialProperties.Parse.html +1 -0
- package/docs/functions/VehicleSpecialProperties.Serialize.html +1 -0
- package/docs/functions/col4.ParseBGRA.html +1 -1
- package/docs/functions/col4.ParseRGBA.html +1 -1
- package/docs/functions/col4.SerializeBGRA.html +1 -1
- package/docs/functions/col4.SerializeRGBA.html +1 -1
- package/docs/functions/isArrayProperty.html +1 -1
- package/docs/functions/isBoolProperty.html +1 -1
- package/docs/functions/isBuildableSubsystemSpecialProperties.html +1 -0
- package/docs/functions/isByteProperty.html +1 -1
- package/docs/functions/isCircuitSpecialProperties.html +1 -0
- package/docs/functions/isConveyorChainActorSpecialProperties.html +1 -0
- package/docs/functions/isConveyorSpecialProperties.html +1 -0
- package/docs/functions/isDoubleProperty.html +1 -1
- package/docs/functions/isEmptySpecialProperties.html +1 -0
- package/docs/functions/isEnumProperty.html +1 -1
- package/docs/functions/isFloatProperty.html +1 -1
- package/docs/functions/isInt32Property.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/isObjectProperty.html +1 -1
- package/docs/functions/isObjectsListSpecialProperties.html +1 -0
- package/docs/functions/isPlayerSpecialProperties.html +1 -0
- package/docs/functions/isPowerLineSpecialProperties.html +1 -0
- package/docs/functions/isSaveComponent.html +1 -1
- package/docs/functions/isSaveEntity.html +1 -1
- package/docs/functions/isSetProperty.html +1 -1
- package/docs/functions/isSpecialDroneActionProperties.html +1 -0
- package/docs/functions/isStrProperty.html +1 -1
- package/docs/functions/isStructProperty.html +1 -1
- package/docs/functions/isTextProperty.html +1 -1
- package/docs/functions/isUInt64Property.html +1 -1
- package/docs/functions/isUint32Property.html +1 -1
- package/docs/functions/isUint8Property.html +1 -1
- package/docs/functions/isVehicleSpecialProperties.html +1 -0
- package/docs/functions/vec2.Parse.html +1 -1
- package/docs/functions/vec2.ParseF.html +1 -1
- package/docs/functions/vec2.Serialize.html +1 -1
- package/docs/functions/vec2.SerializeF.html +1 -1
- package/docs/functions/vec3.Parse.html +1 -1
- package/docs/functions/vec3.ParseF.html +1 -1
- package/docs/functions/vec3.ParseInt.html +1 -1
- package/docs/functions/vec3.Serialize.html +1 -1
- package/docs/functions/vec3.SerializeF.html +1 -1
- package/docs/functions/vec3.SerializeInt.html +1 -1
- package/docs/functions/vec3.add.html +1 -1
- package/docs/functions/vec3.length.html +1 -1
- package/docs/functions/vec3.mult.html +1 -1
- package/docs/functions/vec3.norm.html +1 -1
- package/docs/functions/vec3.sub.html +1 -1
- package/docs/functions/vec4.Parse.html +1 -1
- package/docs/functions/vec4.ParseF.html +1 -1
- package/docs/functions/vec4.Serialize.html +1 -1
- package/docs/functions/vec4.SerializeF.html +1 -1
- package/docs/index.html +8 -3
- package/docs/interfaces/Blueprint.html +2 -2
- package/docs/interfaces/BlueprintConfig.html +2 -2
- package/docs/interfaces/ModData.html +2 -2
- package/docs/interfaces/SatisfactoryModMetadata.html +2 -2
- package/docs/interfaces/SatisfactorySaveHeader.html +2 -2
- package/docs/interfaces/SaveComponentHeader.html +2 -2
- package/docs/interfaces/SaveEntityHeader.html +2 -2
- package/docs/modules/BuildableSubsystemSpecialProperties.html +3 -0
- package/docs/modules/CircuitSpecialProperties.html +3 -0
- package/docs/modules/ConveyorChainActorSpecialProperties.html +3 -0
- package/docs/modules/ConveyorSpecialProperties.html +3 -0
- package/docs/modules/DynamicStructPropertyValue.html +1 -1
- package/docs/modules/EmptySpecialProperties.html +3 -0
- package/docs/modules/FICFrameRange.html +1 -1
- package/docs/modules/GUID.html +1 -1
- package/docs/modules/GUIDInfo.html +1 -1
- package/docs/modules/Level.html +1 -1
- package/docs/modules/MD5Hash.html +1 -1
- package/docs/modules/ObjectReference.html +1 -1
- package/docs/modules/ObjectsListSpecialProperties.html +3 -0
- package/docs/modules/PlayerSpecialProperties.html +3 -0
- package/docs/modules/PowerLineSpecialProperties.html +3 -0
- package/docs/modules/PropertiesList.html +1 -1
- package/docs/modules/SoftObjectReference.html +1 -1
- package/docs/modules/SpecialDroneActionProperties.html +3 -0
- package/docs/modules/SpecialProperties.html +2 -1
- package/docs/modules/Transform.html +1 -1
- package/docs/modules/VehicleSpecialProperties.html +3 -0
- 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 +32 -7
- 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.html +1 -1
- package/docs/types/BoxStructPropertyValue.html +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties-1.html +1 -0
- package/docs/types/BuildableTypeInstance.html +1 -1
- package/docs/types/BytePropertyValue.html +1 -1
- package/docs/types/CircuitSpecialProperties-1.html +1 -0
- package/docs/types/ClientIdentityInfo.html +1 -1
- package/docs/types/ConveyorChainActorSpecialProperties-1.html +1 -0
- package/docs/types/ConveyorChainSegmentSpecialProperties.html +1 -1
- package/docs/types/ConveyorItemSpecialProperties.html +1 -1
- package/docs/types/ConveyorSpecialProperties-1.html +1 -0
- package/docs/types/DynamicStructPropertyValue-1.html +1 -1
- package/docs/types/EmptySpecialProperties-1.html +1 -0
- package/docs/types/FICFrameRange-1.html +1 -1
- package/docs/types/FICFrameRangeStructPropertyValue.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/InventoryItemStructPropertyValue.html +1 -1
- package/docs/types/Level-1.html +1 -1
- package/docs/types/MAP_STRUCT_KEY_PROXY.html +1 -1
- package/docs/types/MD5Hash-1.html +1 -1
- package/docs/types/ObjectReference-1.html +1 -1
- package/docs/types/ObjectsListSpecialProperties-1.html +1 -0
- package/docs/types/PlayerSpecialProperties-1.html +1 -0
- package/docs/types/PowerLineSpecialProperties-1.html +1 -0
- package/docs/types/PropertiesMap.html +1 -1
- package/docs/types/RailroadTrackPositionStructPropertyValue.html +1 -1
- package/docs/types/RoughSaveVersion.html +1 -1
- package/docs/types/SoftObjectReference-1.html +1 -1
- package/docs/types/SpecialDroneAction.html +1 -0
- package/docs/types/SpecialDroneActionProperties-1.html +1 -0
- package/docs/types/SpecialProperties.AvailableSpecialPropertiesTypes.html +1 -0
- package/docs/types/TextPropertyValue.html +1 -1
- package/docs/types/Transform-1.html +1 -1
- package/docs/types/VehicleSpecialProperties-1.html +1 -0
- 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/EDIT.html +1 -1
- package/package.json +1 -1
- package/docs/types/BuildableSubsystemSpecialProperties.html +0 -1
- package/docs/types/ConveyorChainActorSpecialProperties.html +0 -1
- package/docs/types/EmptySpecialProperties.html +0 -1
- package/docs/types/PlayerSpecialProperties.html +0 -1
- package/docs/types/PowerLineSpecialProperties.html +0 -1
- package/docs/types/SpecialAnyProperties.html +0 -1
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SpecialProperties = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const BuildableSubsystemSpecialProperties_1 = require("./BuildableSubsystemSpecialProperties");
|
|
5
|
+
const CircuitSpecialProperties_1 = require("./CircuitSpecialProperties");
|
|
6
|
+
const ConveyorChainActorSpecialProperties_1 = require("./ConveyorChainActorSpecialProperties");
|
|
7
|
+
const ConveyorSpecialProperties_1 = require("./ConveyorSpecialProperties");
|
|
8
|
+
const EmptySpecialProperties_1 = require("./EmptySpecialProperties");
|
|
9
|
+
const ObjectsListSpecialProperties_1 = require("./ObjectsListSpecialProperties");
|
|
10
|
+
const PlayerSpecialProperties_1 = require("./PlayerSpecialProperties");
|
|
11
|
+
const PowerLineSpecialProperties_1 = require("./PowerLineSpecialProperties");
|
|
12
|
+
const SpecialDroneActionProperties_1 = require("./SpecialDroneActionProperties");
|
|
13
|
+
const VehicleSpecialProperties_1 = require("./VehicleSpecialProperties");
|
|
8
14
|
var SpecialProperties;
|
|
9
15
|
(function (SpecialProperties) {
|
|
10
16
|
SpecialProperties.ParseClassSpecificSpecialProperties = (reader, typePath, remainingLen) => {
|
|
11
17
|
let property;
|
|
12
|
-
const start = reader.getBufferPosition();
|
|
13
18
|
switch (typePath) {
|
|
14
19
|
case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':
|
|
15
20
|
case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':
|
|
@@ -23,212 +28,87 @@ var SpecialProperties;
|
|
|
23
28
|
case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':
|
|
24
29
|
case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':
|
|
25
30
|
case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
property = ConveyorSpecialProperties_1.ConveyorSpecialProperties.Parse(reader);
|
|
32
|
+
break;
|
|
33
|
+
case '/Game/FactoryGame/-Shared/Blueprint/BP_CircuitSubsystem.BP_CircuitSubsystem_C':
|
|
34
|
+
property = CircuitSpecialProperties_1.CircuitSpecialProperties.Parse(reader);
|
|
35
|
+
break;
|
|
36
|
+
case '/Game/FactoryGame/-Shared/Blueprint/BP_GameState.BP_GameState_C':
|
|
37
|
+
case '/Game/FactoryGame/-Shared/Blueprint/BP_GameMode.BP_GameMode_C':
|
|
38
|
+
property = ObjectsListSpecialProperties_1.ObjectsListSpecialProperties.Parse(reader);
|
|
28
39
|
break;
|
|
29
40
|
case '/Script/FactoryGame.FGConveyorChainActor':
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const chainActorRef = ObjectReference_1.ObjectReference.read(reader);
|
|
36
|
-
const beltRef = ObjectReference_1.ObjectReference.read(reader);
|
|
37
|
-
const someCount = reader.readInt32();
|
|
38
|
-
const unknownUseBytes = Array.from(reader.readBytes(someCount * 3 * 24 + 12));
|
|
39
|
-
const firstItemIndex = reader.readInt32();
|
|
40
|
-
const lastItemIndex = reader.readInt32();
|
|
41
|
-
const beltIndexInChain = reader.readInt32();
|
|
42
|
-
beltsInChain.push({
|
|
43
|
-
chainActorRef,
|
|
44
|
-
beltRef,
|
|
45
|
-
someCount,
|
|
46
|
-
unknownUseBytes,
|
|
47
|
-
firstItemIndex,
|
|
48
|
-
lastItemIndex,
|
|
49
|
-
beltIndexInChain
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const unknownInts = [reader.readInt32(), reader.readInt32()];
|
|
53
|
-
const firstChainItemIndex = reader.readInt32();
|
|
54
|
-
const lastChainItemIndex = reader.readInt32();
|
|
55
|
-
const countItemsInChain = reader.readInt32();
|
|
56
|
-
const items = [];
|
|
57
|
-
for (let n = 0; n < countItemsInChain; n++) {
|
|
58
|
-
reader.readInt32();
|
|
59
|
-
const itemName = reader.readString();
|
|
60
|
-
reader.readInt32();
|
|
61
|
-
const position = reader.readInt32();
|
|
62
|
-
items.push({ itemName, position });
|
|
63
|
-
}
|
|
64
|
-
property = {
|
|
65
|
-
firstBelt: firstBelt,
|
|
66
|
-
lastBelt: lastBelt,
|
|
67
|
-
beltsInChain,
|
|
68
|
-
unknownInts,
|
|
69
|
-
firstChainItemIndex,
|
|
70
|
-
lastChainItemIndex,
|
|
71
|
-
items
|
|
72
|
-
};
|
|
41
|
+
case '/Script/FactoryGame.FGConveyorChainActor_RepSizeMedium':
|
|
42
|
+
case '/Script/FactoryGame.FGConveyorChainActor_RepSizeLarge':
|
|
43
|
+
case '/Script/FactoryGame.FGConveyorChainActor_RepSizeHuge':
|
|
44
|
+
case '/Script/FactoryGame.FGConveyorChainActor_RepSizeNoCull':
|
|
45
|
+
property = ConveyorChainActorSpecialProperties_1.ConveyorChainActorSpecialProperties.Parse(reader);
|
|
73
46
|
break;
|
|
74
47
|
case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':
|
|
75
48
|
case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':
|
|
76
|
-
property =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
49
|
+
property = PowerLineSpecialProperties_1.PowerLineSpecialProperties.Parse(reader, remainingLen);
|
|
50
|
+
break;
|
|
51
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Tractor/BP_Tractor.BP_Tractor_C':
|
|
52
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Truck/BP_Truck.BP_Truck_C':
|
|
53
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Explorer/BP_Explorer.BP_Explorer_C':
|
|
54
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Cyberwagon/Testa_BP_WB.Testa_BP_WB_C':
|
|
55
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_Golfcart.BP_Golfcart_C':
|
|
56
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_GolfcartGold.BP_GolfcartGold_C':
|
|
57
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C':
|
|
58
|
+
case '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C':
|
|
59
|
+
property = VehicleSpecialProperties_1.VehicleSpecialProperties.Parse(reader, remainingLen, typePath);
|
|
60
|
+
break;
|
|
61
|
+
case '/Game/FactoryGame/Buildable/Factory/DroneStation/BP_DroneTransport.BP_DroneTransport_C':
|
|
62
|
+
property = SpecialDroneActionProperties_1.SpecialDroneActionProperties.Parse(reader);
|
|
84
63
|
break;
|
|
85
64
|
case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':
|
|
86
|
-
property =
|
|
87
|
-
property.flag = reader.readByte();
|
|
88
|
-
switch (property.flag) {
|
|
89
|
-
case 248:
|
|
90
|
-
const eos = reader.readString();
|
|
91
|
-
property.eosData = reader.readString();
|
|
92
|
-
break;
|
|
93
|
-
case 25:
|
|
94
|
-
break;
|
|
95
|
-
default:
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
65
|
+
property = PlayerSpecialProperties_1.PlayerSpecialProperties.Parse(reader);
|
|
98
66
|
break;
|
|
99
67
|
case '/Script/FactoryGame.FGLightweightBuildableSubsystem':
|
|
100
|
-
property =
|
|
101
|
-
const entriesCount = reader.readInt32();
|
|
102
|
-
if (entriesCount > 0) {
|
|
103
|
-
for (let i = 0; i < entriesCount; i++) {
|
|
104
|
-
reader.readInt32();
|
|
105
|
-
const typePath = reader.readString();
|
|
106
|
-
const count = reader.readInt32();
|
|
107
|
-
const instances = [];
|
|
108
|
-
for (let j = 0; j < count; j++) {
|
|
109
|
-
const transform = Transform_1.Transform.Parse(reader);
|
|
110
|
-
reader.readInt32();
|
|
111
|
-
const swatchSlotTypePath = reader.readString();
|
|
112
|
-
reader.readInt32();
|
|
113
|
-
reader.readInt64();
|
|
114
|
-
const patternPath = reader.readString();
|
|
115
|
-
const zeroes = vec2_1.vec2.Parse(reader);
|
|
116
|
-
const oneZeroOne = vec3_1.vec3.Parse(reader);
|
|
117
|
-
const unknownUseNumbers = [zeroes, oneZeroOne];
|
|
118
|
-
reader.readInt32();
|
|
119
|
-
const paintFinishPath = reader.readString();
|
|
120
|
-
reader.readInt32();
|
|
121
|
-
reader.readBytes(1);
|
|
122
|
-
const recipeTypePath = reader.readString();
|
|
123
|
-
const blueprintProxy = ObjectReference_1.ObjectReference.read(reader);
|
|
124
|
-
instances.push({
|
|
125
|
-
transform,
|
|
126
|
-
unknownUseNumbers,
|
|
127
|
-
swatchSlotTypePath,
|
|
128
|
-
paintFinishPath,
|
|
129
|
-
recipeTypePath,
|
|
130
|
-
patternPath,
|
|
131
|
-
blueprintProxy
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
property.buildables.push({
|
|
135
|
-
typePath,
|
|
136
|
-
instances
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
68
|
+
property = BuildableSubsystemSpecialProperties_1.BuildableSubsystemSpecialProperties.Parse(reader);
|
|
140
69
|
break;
|
|
141
70
|
default:
|
|
142
|
-
property =
|
|
71
|
+
property = EmptySpecialProperties_1.EmptySpecialProperties.Parse(reader);
|
|
143
72
|
break;
|
|
144
73
|
}
|
|
145
74
|
return property;
|
|
146
75
|
};
|
|
147
76
|
SpecialProperties.SerializeClassSpecificSpecialProperties = (writer, typePath, property) => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
writer.writeString(item.itemName);
|
|
184
|
-
writer.writeInt32(0);
|
|
185
|
-
writer.writeInt32(item.position);
|
|
186
|
-
}
|
|
187
|
-
break;
|
|
188
|
-
case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':
|
|
189
|
-
case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':
|
|
190
|
-
ObjectReference_1.ObjectReference.write(writer, property.source);
|
|
191
|
-
ObjectReference_1.ObjectReference.write(writer, property.target);
|
|
192
|
-
break;
|
|
193
|
-
case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':
|
|
194
|
-
writer.writeByte(property.flag);
|
|
195
|
-
switch (property.flag) {
|
|
196
|
-
case 248:
|
|
197
|
-
writer.writeString('EOS');
|
|
198
|
-
writer.writeString(property.eosData);
|
|
199
|
-
break;
|
|
200
|
-
case 25:
|
|
201
|
-
break;
|
|
202
|
-
default:
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
break;
|
|
206
|
-
case '/Script/FactoryGame.FGLightweightBuildableSubsystem':
|
|
207
|
-
writer.writeInt32(property.buildables.length);
|
|
208
|
-
if (property.buildables.length > 0) {
|
|
209
|
-
for (const buildable of property.buildables) {
|
|
210
|
-
writer.writeInt32(0);
|
|
211
|
-
writer.writeString(buildable.typePath);
|
|
212
|
-
writer.writeInt32(buildable.instances.length);
|
|
213
|
-
for (const instance of buildable.instances) {
|
|
214
|
-
Transform_1.Transform.Serialize(writer, instance.transform);
|
|
215
|
-
writer.writeInt32(0);
|
|
216
|
-
writer.writeString(instance.swatchSlotTypePath);
|
|
217
|
-
writer.writeInt32(0);
|
|
218
|
-
writer.writeInt64(0n);
|
|
219
|
-
writer.writeString(instance.patternPath);
|
|
220
|
-
vec2_1.vec2.Serialize(writer, instance.unknownUseNumbers[0]);
|
|
221
|
-
vec3_1.vec3.Serialize(writer, instance.unknownUseNumbers[1]);
|
|
222
|
-
writer.writeInt32(0);
|
|
223
|
-
writer.writeString(instance.paintFinishPath);
|
|
224
|
-
writer.writeInt32(0);
|
|
225
|
-
writer.writeByte(0);
|
|
226
|
-
writer.writeString(instance.recipeTypePath);
|
|
227
|
-
ObjectReference_1.ObjectReference.write(writer, instance.blueprintProxy);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
77
|
+
if ((0, ConveyorSpecialProperties_1.isConveyorSpecialProperties)(property)) {
|
|
78
|
+
ConveyorSpecialProperties_1.ConveyorSpecialProperties.Serialize(writer, property);
|
|
79
|
+
}
|
|
80
|
+
else if ((0, CircuitSpecialProperties_1.isCircuitSpecialProperties)(property)) {
|
|
81
|
+
CircuitSpecialProperties_1.CircuitSpecialProperties.Serialize(writer, property);
|
|
82
|
+
}
|
|
83
|
+
else if ((0, ConveyorSpecialProperties_1.isConveyorSpecialProperties)(property)) {
|
|
84
|
+
ConveyorSpecialProperties_1.ConveyorSpecialProperties.Serialize(writer, property);
|
|
85
|
+
}
|
|
86
|
+
else if ((0, ConveyorChainActorSpecialProperties_1.isConveyorChainActorSpecialProperties)(property)) {
|
|
87
|
+
ConveyorChainActorSpecialProperties_1.ConveyorChainActorSpecialProperties.Serialize(writer, property);
|
|
88
|
+
}
|
|
89
|
+
else if ((0, PowerLineSpecialProperties_1.isPowerLineSpecialProperties)(property)) {
|
|
90
|
+
PowerLineSpecialProperties_1.PowerLineSpecialProperties.Serialize(writer, property);
|
|
91
|
+
}
|
|
92
|
+
else if ((0, ObjectsListSpecialProperties_1.isObjectsListSpecialProperties)(property)) {
|
|
93
|
+
ObjectsListSpecialProperties_1.ObjectsListSpecialProperties.Serialize(writer, property);
|
|
94
|
+
}
|
|
95
|
+
else if ((0, VehicleSpecialProperties_1.isVehicleSpecialProperties)(property)) {
|
|
96
|
+
VehicleSpecialProperties_1.VehicleSpecialProperties.Serialize(writer, property);
|
|
97
|
+
}
|
|
98
|
+
else if ((0, SpecialDroneActionProperties_1.isSpecialDroneActionProperties)(property)) {
|
|
99
|
+
SpecialDroneActionProperties_1.SpecialDroneActionProperties.Serialize(writer, property);
|
|
100
|
+
}
|
|
101
|
+
else if ((0, PlayerSpecialProperties_1.isPlayerSpecialProperties)(property)) {
|
|
102
|
+
PlayerSpecialProperties_1.PlayerSpecialProperties.Serialize(writer, property);
|
|
103
|
+
}
|
|
104
|
+
else if ((0, BuildableSubsystemSpecialProperties_1.isBuildableSubsystemSpecialProperties)(property)) {
|
|
105
|
+
BuildableSubsystemSpecialProperties_1.BuildableSubsystemSpecialProperties.Serialize(writer, property);
|
|
106
|
+
}
|
|
107
|
+
else if ((0, EmptySpecialProperties_1.isEmptySpecialProperties)(property)) {
|
|
108
|
+
EmptySpecialProperties_1.EmptySpecialProperties.Serialize(writer, property);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
console.warn(`Parser is not serializing special property ${JSON.stringify(property)} of object with type ${typePath}. Unimplemented.`);
|
|
232
112
|
}
|
|
233
113
|
};
|
|
234
114
|
})(SpecialProperties || (exports.SpecialProperties = SpecialProperties = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA0C;AAK1C,IAAiB,iBAAiB,CA+TjC;AA/TD,WAAiB,iBAAiB;IAEjB,qDAAmC,GAAG,CAAC,MAAsB,EAAE,QAAgB,EAAE,YAAoB,EAAwB,EAAE;QACxI,IAAI,QAAQ,CAAC;QAEb,MAAM,KAAK,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QACzC,QAAQ,QAAQ,EAAE,CAAC;YACf,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGAAmG,CAAC;YACzG,KAAK,mGA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QA+TjC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { Transform } from '../../structs/Transform';\nimport { vec2 } from '../../structs/vec2';\nimport { vec3 } from '../../structs/vec3';\nimport { BuildableSubsystemSpecialProperties, BuildableTypeInstance, ConveyorChainActorSpecialProperties, ConveyorChainSegmentSpecialProperties, ConveyorItemSpecialProperties, EmptySpecialProperties, PlayerSpecialProperties, PowerLineSpecialProperties, SpecialAnyProperties } from './SpecialAnyProperties';\n\n\n\nexport namespace SpecialProperties {\n\n export const ParseClassSpecificSpecialProperties = (reader: BinaryReadable, typePath: string, remainingLen: number): SpecialAnyProperties => {\n let property;\n\n const start = reader.getBufferPosition();\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // since U1.0 the conveyor items are now in ConveyorChainActor. Not anymore on the belt itself. so this count of items is always 0.\n reader.readInt32();\n property = {} satisfies EmptySpecialProperties;\n break;\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n\n const lastBelt = ObjectReference.read(reader);\n const firstBelt = ObjectReference.read(reader);\n const countBeltsInChain = reader.readInt32();\n\n const beltsInChain: ConveyorChainSegmentSpecialProperties[] = [];\n for (let i = 0; i < countBeltsInChain; i++) {\n const chainActorRef = ObjectReference.read(reader);\n const beltRef = ObjectReference.read(reader);\n const someCount = reader.readInt32();\n\n //2, 6*24 + 12 somethings, not always 0\n //4, 12*24 + 12 somethings\n //6, 18*24 + 12 somethings\n //almost looks like GUIDs\n const unknownUseBytes = Array.from(reader.readBytes(someCount * 3 * 24 + 12));\n\n // indices which items of this chain are on this belt.\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n someCount,\n unknownUseBytes,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const unknownInts = [reader.readInt32(), reader.readInt32()] satisfies [number, number];\n const firstChainItemIndex = reader.readInt32();\n const lastChainItemIndex = reader.readInt32();\n const countItemsInChain = reader.readInt32();\n\n const items: ConveyorItemSpecialProperties[] = [];\n for (let n = 0; n < countItemsInChain; n++) {\n reader.readInt32(); //0\n const itemName = reader.readString();\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemName, position });\n }\n\n property = {\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n unknownInts,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n } satisfies ConveyorChainActorSpecialProperties;\n\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n property = {\n source: ObjectReference.read(reader),\n target: ObjectReference.read(reader)\n } as PowerLineSpecialProperties;\n\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n // TODO - i don't know enough about player state yet. need more players.\n property = {} as PlayerSpecialProperties;\n\n // 241 = byte, byte, length? flag, id with length bytes\n property.flag = reader.readByte(); // 241?\n switch (property.flag) {\n case 248: // default EOS\n const eos = reader.readString();\n property.eosData = reader.readString();\n break;\n case 25: // steam!?\n break;\n default:\n break;\n }\n break;\n\n //buildables like foundations are now here\n // Persistent_Level:PersistentLevel.LightweightBuildableSubsystem\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n property = { buildables: [] } as BuildableSubsystemSpecialProperties;\n\n const entriesCount = reader.readInt32();\n if (entriesCount > 0) {\n\n for (let i = 0; i < entriesCount; i++) {\n reader.readInt32(); //0\n const typePath = reader.readString();\n const count = reader.readInt32();\n\n const instances = [];\n for (let j = 0; j < count; j++) {\n\n const transform = Transform.Parse(reader);\n\n reader.readInt32(); // 0\n\n\n const swatchSlotTypePath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readInt64(); // 0\n\n const patternPath = reader.readString();\n\n //TODO: whatever this is, not sure whether something is gonna be here.\n const zeroes = vec2.Parse(reader);\n const oneZeroOne = vec3.Parse(reader);\n const unknownUseNumbers = [zeroes, oneZeroOne] as [vec2, vec3];\n\n reader.readInt32(); // 0\n\n const paintFinishPath = reader.readString();\n\n reader.readInt32(); // 0\n reader.readBytes(1); // 0\n\n const recipeTypePath = reader.readString();\n\n const blueprintProxy = ObjectReference.read(reader);\n\n instances.push({\n transform,\n unknownUseNumbers,\n swatchSlotTypePath,\n paintFinishPath,\n recipeTypePath,\n patternPath,\n blueprintProxy\n } satisfies BuildableTypeInstance);\n }\n\n property.buildables.push({\n typePath,\n instances\n });\n }\n }\n\n break;\n\n default:\n // ignore / empty. Rest will land in trailing data anyway.\n property = {} satisfies EmptySpecialProperties;\n break;\n }\n\n return property;\n }\n\n export const SerializeClassSpecificSpecialProperties = (writer: ByteWriter, typePath: string, property: SpecialAnyProperties): void => {\n\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n\n // see parsing behavior.\n writer.writeInt32(0);\n break;\n\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).lastBelt);\n ObjectReference.write(writer, (property as ConveyorChainActorSpecialProperties).firstBelt);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).beltsInChain.length);\n\n for (const belt of (property as ConveyorChainActorSpecialProperties).beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.someCount);\n\n writer.writeBytesArray(belt.unknownUseBytes);\n\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[0]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).unknownInts[1]);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).firstChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).lastChainItemIndex);\n writer.writeInt32((property as ConveyorChainActorSpecialProperties).items.length);\n\n for (const item of (property as ConveyorChainActorSpecialProperties).items) {\n writer.writeInt32(0);\n writer.writeString(item.itemName);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).source);\n ObjectReference.write(writer, (property as PowerLineSpecialProperties).target);\n\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n\n writer.writeByte((property as PlayerSpecialProperties).flag);\n switch ((property as PlayerSpecialProperties).flag) {\n case 248: // default EOS\n writer.writeString('EOS');\n writer.writeString((property as PlayerSpecialProperties).eosData!);\n break;\n case 25: // steam!?\n break;\n default:\n break;\n\n }\n break;\n\n\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n\n writer.writeInt32((property as BuildableSubsystemSpecialProperties).buildables.length);\n\n if ((property as BuildableSubsystemSpecialProperties).buildables.length > 0) {\n\n for (const buildable of (property as BuildableSubsystemSpecialProperties).buildables) {\n writer.writeInt32(0);\n writer.writeString(buildable.typePath);\n writer.writeInt32(buildable.instances.length);\n\n for (const instance of buildable.instances) {\n\n Transform.Serialize(writer, instance.transform);\n writer.writeInt32(0);\n\n\n writer.writeString(instance.swatchSlotTypePath);\n\n writer.writeInt32(0);\n writer.writeInt64(0n);\n\n writer.writeString(instance.patternPath);\n\n //TODO: same, whatever this is\n vec2.Serialize(writer, instance.unknownUseNumbers[0]);\n vec3.Serialize(writer, instance.unknownUseNumbers[1]);\n\n writer.writeInt32(0);\n\n writer.writeString(instance.paintFinishPath);\n\n writer.writeInt32(0);\n writer.writeByte(0);\n\n\n writer.writeString(instance.recipeTypePath);\n\n ObjectReference.write(writer, instance.blueprintProxy);\n }\n }\n }\n\n break;\n }\n\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":";;;AAEA,+FAAmI;AACnI,yEAAkG;AAClG,+FAAmI;AACnI,2EAAqG;AACrG,qEAA4F;AAC5F,iFAA8G;AAC9G,uEAA+F;AAC/F,6EAAwG;AACxG,iFAA8G;AAC9G,yEAAkG;AAIlG,IAAiB,iBAAiB,CA0GjC;AA1GD,WAAiB,iBAAiB;IAIjB,qDAAmC,GAAG,CAAC,MAAsB,EAAE,QAAgB,EAAE,YAAoB,EA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CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC3D,CAAC;aAAM,IAAI,IAAA,6DAA8B,EAAC,QAAQ,CAAC,EAAE,CAAC;YAClD,2DAA4B,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,IAAA,qDAA0B,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC9C,mDAAwB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACzD,CAAC;aAAM,IAAI,IAAA,6DAA8B,EAAC,QAAQ,CAAC,EAAE,CAAC;YAClD,2DAA4B,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,IAAA,mDAAyB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC7C,iDAAuB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxD,CAAC;aAAM,IAAI,IAAA,2EAAqC,EAAC,QAAQ,CAAC,EAAE,CAAC;YACzD,yEAAmC,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpE,CAAC;aAAM,IAAI,IAAA,iDAAwB,EAAC,QAAQ,CAAC,EAAE,CAAC;YAC5C,+CAAsB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,IAAI,CAAC,8CAA8C,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,wBAAwB,QAAQ,kBAAkB,CAAC,CAAC;QAC3I,CAAC;IACL,CAAC,CAAA;AACL,CAAC,EA1GgB,iBAAiB,iCAAjB,iBAAiB,QA0GjC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { BuildableSubsystemSpecialProperties, isBuildableSubsystemSpecialProperties } from './BuildableSubsystemSpecialProperties';\nimport { CircuitSpecialProperties, isCircuitSpecialProperties } from './CircuitSpecialProperties';\nimport { ConveyorChainActorSpecialProperties, isConveyorChainActorSpecialProperties } from './ConveyorChainActorSpecialProperties';\nimport { ConveyorSpecialProperties, isConveyorSpecialProperties } from './ConveyorSpecialProperties';\nimport { EmptySpecialProperties, isEmptySpecialProperties } from './EmptySpecialProperties';\nimport { isObjectsListSpecialProperties, ObjectsListSpecialProperties } from './ObjectsListSpecialProperties';\nimport { isPlayerSpecialProperties, PlayerSpecialProperties } from './PlayerSpecialProperties';\nimport { isPowerLineSpecialProperties, PowerLineSpecialProperties } from './PowerLineSpecialProperties';\nimport { isSpecialDroneActionProperties, SpecialDroneActionProperties } from './SpecialDroneActionProperties';\nimport { isVehicleSpecialProperties, VehicleSpecialProperties } from './VehicleSpecialProperties';\n\n\n\nexport namespace SpecialProperties {\n\n export type AvailableSpecialPropertiesTypes = ReturnType<typeof ParseClassSpecificSpecialProperties>;\n\n export const ParseClassSpecificSpecialProperties = (reader: BinaryReadable, typePath: string, remainingLen: number) => {\n let property;\n\n switch (typePath) {\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk1/Build_ConveyorBeltMk1.Build_ConveyorBeltMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk2/Build_ConveyorBeltMk2.Build_ConveyorBeltMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk3/Build_ConveyorBeltMk3.Build_ConveyorBeltMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk4/Build_ConveyorBeltMk4.Build_ConveyorBeltMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk5/Build_ConveyorBeltMk5.Build_ConveyorBeltMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorBeltMk6/Build_ConveyorBeltMk6.Build_ConveyorBeltMk6_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk1/Build_ConveyorLiftMk1.Build_ConveyorLiftMk1_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk2/Build_ConveyorLiftMk2.Build_ConveyorLiftMk2_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk3/Build_ConveyorLiftMk3.Build_ConveyorLiftMk3_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk4/Build_ConveyorLiftMk4.Build_ConveyorLiftMk4_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk5/Build_ConveyorLiftMk5.Build_ConveyorLiftMk5_C':\n case '/Game/FactoryGame/Buildable/Factory/ConveyorLiftMk6/Build_ConveyorLiftMk6.Build_ConveyorLiftMk6_C':\n // since U1.0 the conveyor items are now in ConveyorChainActor.\n property = ConveyorSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/-Shared/Blueprint/BP_CircuitSubsystem.BP_CircuitSubsystem_C':\n property = CircuitSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/-Shared/Blueprint/BP_GameState.BP_GameState_C':\n case '/Game/FactoryGame/-Shared/Blueprint/BP_GameMode.BP_GameMode_C':\n property = ObjectsListSpecialProperties.Parse(reader);\n break;\n\n case '/Script/FactoryGame.FGConveyorChainActor':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeMedium':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeLarge':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeHuge':\n case '/Script/FactoryGame.FGConveyorChainActor_RepSizeNoCull':\n property = ConveyorChainActorSpecialProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/PowerLine/Build_PowerLine.Build_PowerLine_C':\n case '/Game/FactoryGame/Events/Christmas/Buildings/PowerLineLights/Build_XmassLightsLine.Build_XmassLightsLine_C':\n property = PowerLineSpecialProperties.Parse(reader, remainingLen);\n break;\n\n case '/Game/FactoryGame/Buildable/Vehicle/Tractor/BP_Tractor.BP_Tractor_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Truck/BP_Truck.BP_Truck_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Explorer/BP_Explorer.BP_Explorer_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Cyberwagon/Testa_BP_WB.Testa_BP_WB_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_Golfcart.BP_Golfcart_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Golfcart/BP_GolfcartGold.BP_GolfcartGold_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C':\n case '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C':\n property = VehicleSpecialProperties.Parse(reader, remainingLen, typePath);\n break;\n\n case '/Game/FactoryGame/Buildable/Factory/DroneStation/BP_DroneTransport.BP_DroneTransport_C':\n property = SpecialDroneActionProperties.Parse(reader);\n break;\n\n case '/Game/FactoryGame/Character/Player/BP_PlayerState.BP_PlayerState_C':\n property = PlayerSpecialProperties.Parse(reader);\n break;\n\n //buildables like foundations are now here since 1.0\n case '/Script/FactoryGame.FGLightweightBuildableSubsystem':\n property = BuildableSubsystemSpecialProperties.Parse(reader);\n break;\n\n default:\n // ignore / empty. Rest will land in trailing data anyway.\n property = EmptySpecialProperties.Parse(reader);\n break;\n }\n\n return property;\n }\n\n export const SerializeClassSpecificSpecialProperties = (writer: ByteWriter, typePath: string, property: AvailableSpecialPropertiesTypes): void => {\n if (isConveyorSpecialProperties(property)) {\n ConveyorSpecialProperties.Serialize(writer, property);\n } else if (isCircuitSpecialProperties(property)) {\n CircuitSpecialProperties.Serialize(writer, property);\n } else if (isConveyorSpecialProperties(property)) {\n ConveyorSpecialProperties.Serialize(writer, property);\n } else if (isConveyorChainActorSpecialProperties(property)) {\n ConveyorChainActorSpecialProperties.Serialize(writer, property);\n } else if (isPowerLineSpecialProperties(property)) {\n PowerLineSpecialProperties.Serialize(writer, property);\n } else if (isObjectsListSpecialProperties(property)) {\n ObjectsListSpecialProperties.Serialize(writer, property);\n } else if (isVehicleSpecialProperties(property)) {\n VehicleSpecialProperties.Serialize(writer, property);\n } else if (isSpecialDroneActionProperties(property)) {\n SpecialDroneActionProperties.Serialize(writer, property);\n } else if (isPlayerSpecialProperties(property)) {\n PlayerSpecialProperties.Serialize(writer, property);\n } else if (isBuildableSubsystemSpecialProperties(property)) {\n BuildableSubsystemSpecialProperties.Serialize(writer, property);\n } else if (isEmptySpecialProperties(property)) {\n EmptySpecialProperties.Serialize(writer, property);\n } else {\n console.warn(`Parser is not serializing special property ${JSON.stringify(property)} of object with type ${typePath}. Unimplemented.`);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
import { ObjectReference } from '../../structs/ObjectReference';
|
|
4
|
+
export declare const isVehicleSpecialProperties: (obj: any) => obj is VehicleSpecialProperties;
|
|
5
|
+
export type VehicleSpecialProperties = {
|
|
6
|
+
type: 'VehicleSpecialProperties';
|
|
7
|
+
objects: {
|
|
8
|
+
name: string;
|
|
9
|
+
unknownBytes: number[];
|
|
10
|
+
unknownFlag: number;
|
|
11
|
+
}[];
|
|
12
|
+
vehicleInFront?: ObjectReference;
|
|
13
|
+
vehicleBehind?: ObjectReference;
|
|
14
|
+
};
|
|
15
|
+
export declare namespace VehicleSpecialProperties {
|
|
16
|
+
const Parse: (reader: BinaryReadable, remainingLen: number, typePath: string) => VehicleSpecialProperties;
|
|
17
|
+
const Serialize: (writer: ByteWriter, property: VehicleSpecialProperties) => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=VehicleSpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VehicleSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/VehicleSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,0BAA0B,QAAS,GAAG,KAAG,GAAG,IAAI,wBAAmE,CAAC;AAEjI,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,aAAa,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,YAAY,MAAM,KAAG,wBA6BtF,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,wBAAwB,SAa/E,CAAC;CACL"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleSpecialProperties = exports.isVehicleSpecialProperties = void 0;
|
|
4
|
+
const ObjectReference_1 = require("../../structs/ObjectReference");
|
|
5
|
+
const isVehicleSpecialProperties = (obj) => obj.type === 'VehicleSpecialProperties';
|
|
6
|
+
exports.isVehicleSpecialProperties = isVehicleSpecialProperties;
|
|
7
|
+
var VehicleSpecialProperties;
|
|
8
|
+
(function (VehicleSpecialProperties) {
|
|
9
|
+
VehicleSpecialProperties.Parse = (reader, remainingLen, typePath) => {
|
|
10
|
+
const start = reader.getBufferPosition();
|
|
11
|
+
const objects = [];
|
|
12
|
+
const countObjects = reader.readInt32();
|
|
13
|
+
for (let i = 0; i < countObjects; i++) {
|
|
14
|
+
objects.push({
|
|
15
|
+
name: reader.readString(),
|
|
16
|
+
unknownBytes: Array.from(reader.readBytes(104)),
|
|
17
|
+
unknownFlag: reader.readByte()
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
const property = {
|
|
21
|
+
type: 'VehicleSpecialProperties',
|
|
22
|
+
objects
|
|
23
|
+
};
|
|
24
|
+
const reminingVehicleSize = (remainingLen - (reader.getBufferPosition() - start));
|
|
25
|
+
if ((typePath === '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C'
|
|
26
|
+
|| typePath === '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C') && reminingVehicleSize > 0) {
|
|
27
|
+
property.vehicleInFront = ObjectReference_1.ObjectReference.read(reader);
|
|
28
|
+
property.vehicleBehind = ObjectReference_1.ObjectReference.read(reader);
|
|
29
|
+
}
|
|
30
|
+
return property;
|
|
31
|
+
};
|
|
32
|
+
VehicleSpecialProperties.Serialize = (writer, property) => {
|
|
33
|
+
writer.writeInt32(property.objects.length);
|
|
34
|
+
for (const object of property.objects) {
|
|
35
|
+
writer.writeString(object.name);
|
|
36
|
+
writer.writeBytesArray(object.unknownBytes);
|
|
37
|
+
writer.writeByte(object.unknownFlag);
|
|
38
|
+
}
|
|
39
|
+
if (property.vehicleInFront !== undefined
|
|
40
|
+
&& property.vehicleBehind !== undefined) {
|
|
41
|
+
ObjectReference_1.ObjectReference.write(writer, property.vehicleInFront);
|
|
42
|
+
ObjectReference_1.ObjectReference.write(writer, property.vehicleBehind);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
})(VehicleSpecialProperties || (exports.VehicleSpecialProperties = VehicleSpecialProperties = {}));
|
|
46
|
+
//# sourceMappingURL=VehicleSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VehicleSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/VehicleSpecialProperties.ts"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CAAC;IACpB,CAAC,CAAC;IAEW,kCAAS,GAAG,CAAC,MAAkB,EAAE,QAAkC,EAAE,EAAE;QAChF,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3C,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACpC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC5C,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,QAAQ,CAAC,cAAc,KAAK,SAAS;eAClC,QAAQ,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;YAC1C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAe,CAAC,CAAC;YACxD,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAc,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA9CgB,wBAAwB,wCAAxB,wBAAwB,QA8CxC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\nexport const isVehicleSpecialProperties = (obj: any): obj is VehicleSpecialProperties => obj.type === 'VehicleSpecialProperties';\n\nexport type VehicleSpecialProperties = {\n type: 'VehicleSpecialProperties';\n objects: {\n name: string;\n unknownBytes: number[];\n unknownFlag: number;\n }[];\n vehicleInFront?: ObjectReference;\n vehicleBehind?: ObjectReference;\n};\n\nexport namespace VehicleSpecialProperties {\n export const Parse = (reader: BinaryReadable, remainingLen: number, typePath: string): VehicleSpecialProperties => {\n const start = reader.getBufferPosition();\n\n const objects = [];\n const countObjects = reader.readInt32();\n for (let i = 0; i < countObjects; i++) {\n objects.push({\n name: reader.readString(),\n unknownBytes: Array.from(reader.readBytes(104)),\n unknownFlag: reader.readByte() // 1\n });\n }\n\n const property: VehicleSpecialProperties = {\n type: 'VehicleSpecialProperties',\n objects\n };\n\n // CAN have more data.\n const reminingVehicleSize = (remainingLen - (reader.getBufferPosition() - start));\n if ((typePath === '/Game/FactoryGame/Buildable/Vehicle/Train/Locomotive/BP_Locomotive.BP_Locomotive_C'\n || typePath === '/Game/FactoryGame/Buildable/Vehicle/Train/Wagon/BP_FreightWagon.BP_FreightWagon_C'\n ) && reminingVehicleSize > 0) {\n\n property.vehicleInFront = ObjectReference.read(reader);\n property.vehicleBehind = ObjectReference.read(reader);\n }\n\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: VehicleSpecialProperties) => {\n writer.writeInt32(property.objects.length);\n for (const object of property.objects) {\n writer.writeString(object.name);\n writer.writeBytesArray(object.unknownBytes);\n writer.writeByte(object.unknownFlag);\n }\n\n if (property.vehicleInFront !== undefined\n && property.vehicleBehind !== undefined) {\n ObjectReference.write(writer, property.vehicleInFront!);\n ObjectReference.write(writer, property.vehicleBehind!);\n }\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicStructPropertyValue.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"DynamicStructPropertyValue.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,yBAAiB,0BAA0B,CAAC;IAEjC,MAAM,IAAI,WAAY,cAAc,gBAAgB,MAAM,QAAQ,MAAM,KAAG,0BAQjF,CAAC;IAEK,MAAM,KAAK,WAAY,UAAU,gBAAgB,MAAM,QAAQ,0BAA0B,KAAG,IAElG,CAAC;CACL"}
|
|
@@ -8,30 +8,11 @@ var DynamicStructPropertyValue;
|
|
|
8
8
|
const data = {
|
|
9
9
|
type, properties: {}
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
while (propertyName !== 'None') {
|
|
13
|
-
const parsedProperty = PropertiesList_1.PropertiesList.ParseSingleProperty(reader, buildVersion, propertyName);
|
|
14
|
-
if (data.properties[propertyName]) {
|
|
15
|
-
if (!Array.isArray(data.properties[propertyName])) {
|
|
16
|
-
data.properties[propertyName] = [data.properties[propertyName]];
|
|
17
|
-
}
|
|
18
|
-
data.properties[propertyName].push(parsedProperty);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
data.properties[propertyName] = parsedProperty;
|
|
22
|
-
}
|
|
23
|
-
propertyName = reader.readString();
|
|
24
|
-
}
|
|
11
|
+
data.properties = PropertiesList_1.PropertiesList.ParseList(reader, buildVersion);
|
|
25
12
|
return data;
|
|
26
13
|
};
|
|
27
14
|
DynamicStructPropertyValue.write = (writer, buildVersion, data) => {
|
|
28
|
-
|
|
29
|
-
for (const prop of (Array.isArray(data.properties[key]) ? data.properties[key] : [data.properties[key]])) {
|
|
30
|
-
writer.writeString(key);
|
|
31
|
-
PropertiesList_1.PropertiesList.SerializeSingleProperty(writer, prop, key, buildVersion);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
writer.writeString('None');
|
|
15
|
+
PropertiesList_1.PropertiesList.SerializeList(data.properties, writer, buildVersion);
|
|
35
16
|
};
|
|
36
17
|
})(DynamicStructPropertyValue || (exports.DynamicStructPropertyValue = DynamicStructPropertyValue = {}));
|
|
37
18
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicStructPropertyValue.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":";;;AAEA,+DAA4D;AAQ5D,IAAiB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"DynamicStructPropertyValue.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/DynamicStructPropertyValue.ts"],"names":[],"mappings":";;;AAEA,+DAA4D;AAQ5D,IAAiB,0BAA0B,CAe1C;AAfD,WAAiB,0BAA0B;IAE1B,+BAAI,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAAE,IAAY,EAA8B,EAAE;QAC3G,MAAM,IAAI,GAA+B;YACrC,IAAI,EAAE,UAAU,EAAE,EAAE;SACvB,CAAC;QAEF,IAAI,CAAC,UAAU,GAAG,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEW,gCAAK,GAAG,CAAC,MAAkB,EAAE,YAAoB,EAAE,IAAgC,EAAQ,EAAE;QACtG,+BAAc,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IACxE,CAAC,CAAC;AACN,CAAC,EAfgB,0BAA0B,0CAA1B,0BAA0B,QAe1C;AAAA,CAAC","sourcesContent":["import { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../byte/byte-writer.class';\nimport { PropertiesList } from '../property/PropertiesList';\nimport { PropertiesMap } from '../property/generic/BasicProperty';\n\nexport type DynamicStructPropertyValue = {\n type: string;\n properties: PropertiesMap;\n};\n\nexport namespace DynamicStructPropertyValue {\n\n export const read = (reader: BinaryReadable, buildVersion: number, type: string): DynamicStructPropertyValue => {\n const data: DynamicStructPropertyValue = {\n type, properties: {}\n };\n\n data.properties = PropertiesList.ParseList(reader, buildVersion);\n\n return data;\n };\n\n export const write = (writer: ByteWriter, buildVersion: number, data: DynamicStructPropertyValue): void => {\n PropertiesList.SerializeList(data.properties, writer, buildVersion);\n };\n};"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../byte/binary-readable.interface';
|
|
2
|
-
import {
|
|
2
|
+
import { BinaryWritable } from '../../../byte/binary-writable.interface';
|
|
3
3
|
export type GUID = [number, number, number, number];
|
|
4
4
|
export declare namespace GUID {
|
|
5
5
|
const read: (reader: BinaryReadable) => GUID;
|
|
6
|
-
const write: (writer:
|
|
6
|
+
const write: (writer: BinaryWritable, guid: GUID) => void;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=GUID.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GUID.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,yBAAiB,IAAI,CAAC;IACX,MAAM,IAAI,WAAY,cAAc,KAAG,IAO7C,CAAA;IAEM,MAAM,KAAK,WAAY,cAAc,QAAQ,IAAI,KAAG,IAK1D,CAAA;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;AAKA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACJ,SAAI,GAAG,CAAC,MAAsB,EAAQ,EAAE;QACjD,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,
|
|
1
|
+
{"version":3,"file":"GUID.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUID.ts"],"names":[],"mappings":";;;AAKA,IAAiB,IAAI,CAgBpB;AAhBD,WAAiB,IAAI;IACJ,SAAI,GAAG,CAAC,MAAsB,EAAQ,EAAE;QACjD,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,MAAsB,EAAE,IAAU,EAAQ,EAAE;QAC9D,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 { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { BinaryWritable } from '../../../byte/binary-writable.interface';\n\nexport type GUID = [number, number, number, number];\n\nexport namespace GUID {\n export const read = (reader: BinaryReadable): GUID => {\n return [\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n reader.readUint32(),\n ];\n }\n\n export const write = (writer: BinaryWritable, 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,9 +1,9 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../byte/binary-readable.interface';
|
|
2
|
-
import {
|
|
2
|
+
import { BinaryWritable } from '../../../byte/binary-writable.interface';
|
|
3
3
|
import { GUID } from './GUID';
|
|
4
4
|
export type GUIDInfo = undefined | GUID;
|
|
5
5
|
export declare namespace GUIDInfo {
|
|
6
6
|
const read: (reader: BinaryReadable) => GUIDInfo;
|
|
7
|
-
const write: (writer:
|
|
7
|
+
const write: (writer: BinaryWritable, guid: GUIDInfo) => void;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=GUIDInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUIDInfo.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GUIDInfo.d.ts","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAExC,yBAAiB,QAAQ,CAAC;IACf,MAAM,IAAI,WAAY,cAAc,KAAG,QAO7C,CAAA;IAEM,MAAM,KAAK,WAAY,cAAc,QAAQ,QAAQ,KAAG,IAQ9D,CAAA;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAI9B,IAAiB,QAAQ,CAmBxB;AAnBD,WAAiB,QAAQ;IACR,aAAI,GAAG,CAAC,MAAsB,EAAY,EAAE;QAErD,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,
|
|
1
|
+
{"version":3,"file":"GUIDInfo.js","sourceRoot":"","sources":["../../../../../src/parser/satisfactory/types/structs/GUIDInfo.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAI9B,IAAiB,QAAQ,CAmBxB;AAnBD,WAAiB,QAAQ;IACR,aAAI,GAAG,CAAC,MAAsB,EAAY,EAAE;QAErD,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,MAAsB,EAAE,IAAc,EAAQ,EAAE;QAClE,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 { BinaryReadable } from '../../../byte/binary-readable.interface';\nimport { BinaryWritable } from '../../../byte/binary-writable.interface';\nimport { GUID } from './GUID';\n\nexport type GUIDInfo = undefined | GUID;\n\nexport namespace GUIDInfo {\n export const read = (reader: BinaryReadable): 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: BinaryWritable, 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};"]}
|