@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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CircuitSpecialProperties = exports.isCircuitSpecialProperties = void 0;
|
|
4
|
+
const ObjectReference_1 = require("../../structs/ObjectReference");
|
|
5
|
+
const isCircuitSpecialProperties = (obj) => obj.type === 'CircuitSpecialProperties';
|
|
6
|
+
exports.isCircuitSpecialProperties = isCircuitSpecialProperties;
|
|
7
|
+
var CircuitSpecialProperties;
|
|
8
|
+
(function (CircuitSpecialProperties) {
|
|
9
|
+
CircuitSpecialProperties.Parse = (reader) => {
|
|
10
|
+
const count = reader.readInt32();
|
|
11
|
+
const circuits = [];
|
|
12
|
+
for (let i = 0; i < count; i++) {
|
|
13
|
+
circuits.push({
|
|
14
|
+
id: reader.readInt32(),
|
|
15
|
+
objectReference: ObjectReference_1.ObjectReference.read(reader)
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
type: 'CircuitSpecialProperties',
|
|
20
|
+
circuits
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
CircuitSpecialProperties.Serialize = (writer, property) => {
|
|
24
|
+
writer.writeInt32(property.circuits.length);
|
|
25
|
+
for (const circuit of property.circuits) {
|
|
26
|
+
writer.writeInt32(circuit.id);
|
|
27
|
+
ObjectReference_1.ObjectReference.write(writer, circuit.objectReference);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
})(CircuitSpecialProperties || (exports.CircuitSpecialProperties = CircuitSpecialProperties = {}));
|
|
31
|
+
//# sourceMappingURL=CircuitSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircuitSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/CircuitSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAIzD,MAAM,0BAA0B,GAAG,CAAC,GAAQ,EAAmC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,0BAA0B,CAAC;AAApH,QAAA,0BAA0B,8BAA0F;AAUjI,IAAiB,wBAAwB,CAwBxC;AAxBD,WAAiB,wBAAwB;IACxB,8BAAK,GAAG,CAAC,MAAsB,EAA4B,EAAE;QACtE,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,EAAE,CAAC;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,QAAQ,CAAC,IAAI,CAAC;gBACV,EAAE,EAAE,MAAM,CAAC,SAAS,EAAE;gBACtB,eAAe,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;aAChD,CAAC,CAAC;QACP,CAAC;QAED,OAAO;YACH,IAAI,EAAE,0BAA0B;YAChC,QAAQ;SACX,CAAC;IACN,CAAC,CAAC;IAEW,kCAAS,GAAG,CAAC,MAAkB,EAAE,QAAkC,EAAE,EAAE;QAChF,MAAM,CAAC,UAAU,CAAE,QAAqC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1E,KAAK,MAAM,OAAO,IAAK,QAAqC,CAAC,QAAQ,EAAE,CAAC;YACpE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAC9B,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAxBgB,wBAAwB,wCAAxB,wBAAwB,QAwBxC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\n\n\nexport const isCircuitSpecialProperties = (obj: any): obj is CircuitSpecialProperties => obj.type === 'CircuitSpecialProperties';\n\nexport type CircuitSpecialProperties = {\n type: 'CircuitSpecialProperties';\n circuits: {\n id: number;\n objectReference: ObjectReference;\n }[];\n};\n\nexport namespace CircuitSpecialProperties {\n export const Parse = (reader: BinaryReadable): CircuitSpecialProperties => {\n const count = reader.readInt32();\n const circuits = [];\n for (let i = 0; i < count; i++) {\n circuits.push({\n id: reader.readInt32(),\n objectReference: ObjectReference.read(reader)\n });\n }\n\n return {\n type: 'CircuitSpecialProperties',\n circuits\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: CircuitSpecialProperties) => {\n writer.writeInt32((property as CircuitSpecialProperties).circuits.length);\n for (const circuit of (property as CircuitSpecialProperties).circuits) {\n writer.writeInt32(circuit.id);\n ObjectReference.write(writer, circuit.objectReference);\n }\n };\n}\n"]}
|
package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
import { ObjectReference } from '../../structs/ObjectReference';
|
|
4
|
+
import { vec3 } from '../../structs/vec3';
|
|
5
|
+
export declare const isConveyorChainActorSpecialProperties: (obj: any) => obj is ConveyorChainActorSpecialProperties;
|
|
6
|
+
export type ConveyorChainActorSpecialProperties = {
|
|
7
|
+
type: 'ConveyorChainActorSpecialProperties';
|
|
8
|
+
firstBelt: ObjectReference;
|
|
9
|
+
lastBelt: ObjectReference;
|
|
10
|
+
beltsInChain: ConveyorChainSegmentSpecialProperties[];
|
|
11
|
+
totalLength: number;
|
|
12
|
+
totalNumberItemsMaybe: number;
|
|
13
|
+
firstChainItemIndex: number;
|
|
14
|
+
lastChainItemIndex: number;
|
|
15
|
+
items: ConveyorItemSpecialProperties[];
|
|
16
|
+
};
|
|
17
|
+
export declare namespace ConveyorChainActorSpecialProperties {
|
|
18
|
+
const Parse: (reader: BinaryReadable) => ConveyorChainActorSpecialProperties;
|
|
19
|
+
const Serialize: (writer: ByteWriter, property: ConveyorChainActorSpecialProperties) => void;
|
|
20
|
+
}
|
|
21
|
+
export type ConveyorChainSegmentSpecialProperties = {
|
|
22
|
+
chainActorRef: ObjectReference;
|
|
23
|
+
beltRef: ObjectReference;
|
|
24
|
+
splinePoints: {
|
|
25
|
+
location: vec3;
|
|
26
|
+
arriveTangent: vec3;
|
|
27
|
+
leaveTangent: vec3;
|
|
28
|
+
}[];
|
|
29
|
+
offsetAtStart: number;
|
|
30
|
+
startsAtLength: number;
|
|
31
|
+
endsAtLength: number;
|
|
32
|
+
firstItemIndex: number;
|
|
33
|
+
lastItemIndex: number;
|
|
34
|
+
beltIndexInChain: number;
|
|
35
|
+
};
|
|
36
|
+
export type ConveyorItemSpecialProperties = {
|
|
37
|
+
position: number;
|
|
38
|
+
itemReference: ObjectReference;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ConveyorChainActorSpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConveyorChainActorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.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;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI1C,eAAO,MAAM,qCAAqC,QAAS,GAAG,KAAG,GAAG,IAAI,mCAAyF,CAAC;AAElK,MAAM,MAAM,mCAAmC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C,SAAS,EAAE,eAAe,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,qCAAqC,EAAE,CAAC;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,6BAA6B,EAAE,CAAC;CAC1C,CAAC;AAEF,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,KAAK,WAAY,cAAc,KAAG,mCAoE9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,mCAAmC,SAqC1F,CAAC;CACL;AACD,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,eAAe,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE;QACV,QAAQ,EAAE,IAAI,CAAC;QACf,aAAa,EAAE,IAAI,CAAC;QACpB,YAAY,EAAE,IAAI,CAAC;KACtB,EAAE,CAAC;IACJ,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC;CAClC,CAAC"}
|
package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConveyorChainActorSpecialProperties = exports.isConveyorChainActorSpecialProperties = void 0;
|
|
4
|
+
const ObjectReference_1 = require("../../structs/ObjectReference");
|
|
5
|
+
const vec3_1 = require("../../structs/vec3");
|
|
6
|
+
const isConveyorChainActorSpecialProperties = (obj) => obj.type === 'ConveyorChainActorSpecialProperties';
|
|
7
|
+
exports.isConveyorChainActorSpecialProperties = isConveyorChainActorSpecialProperties;
|
|
8
|
+
var ConveyorChainActorSpecialProperties;
|
|
9
|
+
(function (ConveyorChainActorSpecialProperties) {
|
|
10
|
+
ConveyorChainActorSpecialProperties.Parse = (reader) => {
|
|
11
|
+
const lastBelt = ObjectReference_1.ObjectReference.read(reader);
|
|
12
|
+
const firstBelt = ObjectReference_1.ObjectReference.read(reader);
|
|
13
|
+
const countBeltsInChain = reader.readInt32();
|
|
14
|
+
const beltsInChain = [];
|
|
15
|
+
for (let i = 0; i < countBeltsInChain; i++) {
|
|
16
|
+
const chainActorRef = ObjectReference_1.ObjectReference.read(reader);
|
|
17
|
+
const beltRef = ObjectReference_1.ObjectReference.read(reader);
|
|
18
|
+
const splinePointsCount = reader.readInt32();
|
|
19
|
+
const splinePoints = [];
|
|
20
|
+
for (let j = 0; j < splinePointsCount; j++) {
|
|
21
|
+
splinePoints.push({
|
|
22
|
+
location: vec3_1.vec3.Parse(reader),
|
|
23
|
+
arriveTangent: vec3_1.vec3.Parse(reader),
|
|
24
|
+
leaveTangent: vec3_1.vec3.Parse(reader),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const offsetAtStart = reader.readFloat32();
|
|
28
|
+
const startsAtLength = reader.readFloat32();
|
|
29
|
+
const endsAtLength = reader.readFloat32();
|
|
30
|
+
const firstItemIndex = reader.readInt32();
|
|
31
|
+
const lastItemIndex = reader.readInt32();
|
|
32
|
+
const beltIndexInChain = reader.readInt32();
|
|
33
|
+
beltsInChain.push({
|
|
34
|
+
chainActorRef,
|
|
35
|
+
beltRef,
|
|
36
|
+
splinePoints,
|
|
37
|
+
offsetAtStart,
|
|
38
|
+
startsAtLength,
|
|
39
|
+
endsAtLength,
|
|
40
|
+
firstItemIndex,
|
|
41
|
+
lastItemIndex,
|
|
42
|
+
beltIndexInChain
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const totalLength = reader.readFloat32();
|
|
46
|
+
const totalNumberItemsMaybe = reader.readInt32();
|
|
47
|
+
const firstChainItemIndex = reader.readInt32();
|
|
48
|
+
const lastChainItemIndex = reader.readInt32();
|
|
49
|
+
const countItemsInChain = reader.readInt32();
|
|
50
|
+
const items = [];
|
|
51
|
+
for (let n = 0; n < countItemsInChain; n++) {
|
|
52
|
+
const item = ObjectReference_1.ObjectReference.read(reader);
|
|
53
|
+
reader.readInt32();
|
|
54
|
+
const position = reader.readInt32();
|
|
55
|
+
items.push({ itemReference: item, position });
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
type: 'ConveyorChainActorSpecialProperties',
|
|
59
|
+
firstBelt: firstBelt,
|
|
60
|
+
lastBelt: lastBelt,
|
|
61
|
+
beltsInChain,
|
|
62
|
+
totalLength,
|
|
63
|
+
totalNumberItemsMaybe,
|
|
64
|
+
firstChainItemIndex,
|
|
65
|
+
lastChainItemIndex,
|
|
66
|
+
items
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
ConveyorChainActorSpecialProperties.Serialize = (writer, property) => {
|
|
70
|
+
ObjectReference_1.ObjectReference.write(writer, property.lastBelt);
|
|
71
|
+
ObjectReference_1.ObjectReference.write(writer, property.firstBelt);
|
|
72
|
+
writer.writeInt32(property.beltsInChain.length);
|
|
73
|
+
for (const belt of property.beltsInChain) {
|
|
74
|
+
ObjectReference_1.ObjectReference.write(writer, belt.chainActorRef);
|
|
75
|
+
ObjectReference_1.ObjectReference.write(writer, belt.beltRef);
|
|
76
|
+
writer.writeInt32(belt.splinePoints.length);
|
|
77
|
+
for (const splinepoint of belt.splinePoints) {
|
|
78
|
+
vec3_1.vec3.Serialize(writer, splinepoint.location);
|
|
79
|
+
vec3_1.vec3.Serialize(writer, splinepoint.arriveTangent);
|
|
80
|
+
vec3_1.vec3.Serialize(writer, splinepoint.leaveTangent);
|
|
81
|
+
}
|
|
82
|
+
writer.writeFloat32(belt.offsetAtStart);
|
|
83
|
+
writer.writeFloat32(belt.startsAtLength);
|
|
84
|
+
writer.writeFloat32(belt.endsAtLength);
|
|
85
|
+
writer.writeInt32(belt.firstItemIndex);
|
|
86
|
+
writer.writeInt32(belt.lastItemIndex);
|
|
87
|
+
writer.writeInt32(belt.beltIndexInChain);
|
|
88
|
+
}
|
|
89
|
+
writer.writeInt32(property.totalLength);
|
|
90
|
+
writer.writeInt32(property.totalNumberItemsMaybe);
|
|
91
|
+
writer.writeInt32(property.firstChainItemIndex);
|
|
92
|
+
writer.writeInt32(property.lastChainItemIndex);
|
|
93
|
+
writer.writeInt32(property.items.length);
|
|
94
|
+
for (const item of property.items) {
|
|
95
|
+
ObjectReference_1.ObjectReference.write(writer, item.itemReference);
|
|
96
|
+
writer.writeInt32(0);
|
|
97
|
+
writer.writeInt32(item.position);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
})(ConveyorChainActorSpecialProperties || (exports.ConveyorChainActorSpecialProperties = ConveyorChainActorSpecialProperties = {}));
|
|
101
|
+
//# sourceMappingURL=ConveyorChainActorSpecialProperties.js.map
|
package/build/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConveyorChainActorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorChainActorSpecialProperties.ts"],"names":[],"mappings":"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","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\n\n\n\nexport const isConveyorChainActorSpecialProperties = (obj: any): obj is ConveyorChainActorSpecialProperties => obj.type === 'ConveyorChainActorSpecialProperties';\n\nexport type ConveyorChainActorSpecialProperties = {\n type: 'ConveyorChainActorSpecialProperties';\n firstBelt: ObjectReference;\n lastBelt: ObjectReference;\n beltsInChain: ConveyorChainSegmentSpecialProperties[];\n totalLength: number;\n totalNumberItemsMaybe: number;\n firstChainItemIndex: number;\n lastChainItemIndex: number;\n items: ConveyorItemSpecialProperties[];\n};\n\nexport namespace ConveyorChainActorSpecialProperties {\n export const Parse = (reader: BinaryReadable): ConveyorChainActorSpecialProperties => {\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 splinePointsCount = reader.readInt32();\n\n const splinePoints: { location: vec3; arriveTangent: vec3; leaveTangent: vec3; }[] = [];\n for (let j = 0; j < splinePointsCount; j++) {\n splinePoints.push({\n location: vec3.Parse(reader),\n arriveTangent: vec3.Parse(reader),\n leaveTangent: vec3.Parse(reader),\n });\n }\n\n // indices which items of this chain are on this belt.\n const offsetAtStart = reader.readFloat32();\n const startsAtLength = reader.readFloat32();\n const endsAtLength = reader.readFloat32();\n const firstItemIndex = reader.readInt32();\n const lastItemIndex = reader.readInt32();\n const beltIndexInChain = reader.readInt32();\n\n beltsInChain.push({\n chainActorRef,\n beltRef,\n splinePoints,\n offsetAtStart,\n startsAtLength,\n endsAtLength,\n firstItemIndex,\n lastItemIndex,\n beltIndexInChain\n });\n }\n\n const totalLength = reader.readFloat32();\n const totalNumberItemsMaybe = reader.readInt32();\n\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 const item = ObjectReference.read(reader);\n reader.readInt32(); //0\n const position = reader.readInt32();\n items.push({ itemReference: item, position });\n }\n\n return {\n type: 'ConveyorChainActorSpecialProperties',\n firstBelt: firstBelt,\n lastBelt: lastBelt,\n beltsInChain,\n totalLength,\n totalNumberItemsMaybe,\n firstChainItemIndex,\n lastChainItemIndex,\n items\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: ConveyorChainActorSpecialProperties) => {\n\n ObjectReference.write(writer, property.lastBelt);\n ObjectReference.write(writer, property.firstBelt);\n writer.writeInt32(property.beltsInChain.length);\n\n for (const belt of property.beltsInChain) {\n ObjectReference.write(writer, belt.chainActorRef);\n ObjectReference.write(writer, belt.beltRef);\n writer.writeInt32(belt.splinePoints.length);\n\n\n for (const splinepoint of belt.splinePoints) {\n vec3.Serialize(writer, splinepoint.location);\n vec3.Serialize(writer, splinepoint.arriveTangent);\n vec3.Serialize(writer, splinepoint.leaveTangent);\n }\n\n writer.writeFloat32(belt.offsetAtStart);\n writer.writeFloat32(belt.startsAtLength);\n writer.writeFloat32(belt.endsAtLength);\n writer.writeInt32(belt.firstItemIndex);\n writer.writeInt32(belt.lastItemIndex);\n writer.writeInt32(belt.beltIndexInChain);\n }\n\n writer.writeInt32(property.totalLength);\n writer.writeInt32(property.totalNumberItemsMaybe);\n writer.writeInt32(property.firstChainItemIndex);\n writer.writeInt32(property.lastChainItemIndex);\n writer.writeInt32(property.items.length);\n\n for (const item of property.items) {\n ObjectReference.write(writer, item.itemReference);\n writer.writeInt32(0);\n writer.writeInt32(item.position);\n }\n };\n}\nexport type ConveyorChainSegmentSpecialProperties = {\n chainActorRef: ObjectReference;\n beltRef: ObjectReference;\n splinePoints: {\n location: vec3;\n arriveTangent: vec3;\n leaveTangent: vec3;\n }[];\n offsetAtStart: number;\n startsAtLength: number;\n endsAtLength: number;\n firstItemIndex: number;\n lastItemIndex: number;\n beltIndexInChain: number;\n};\nexport type ConveyorItemSpecialProperties = {\n position: number;\n itemReference: ObjectReference;\n};\n\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
export declare const isConveyorSpecialProperties: (obj: any) => obj is ConveyorSpecialProperties;
|
|
4
|
+
export type ConveyorSpecialProperties = {
|
|
5
|
+
type: 'ConveyorSpecialProperties';
|
|
6
|
+
};
|
|
7
|
+
export declare namespace ConveyorSpecialProperties {
|
|
8
|
+
const Parse: (reader: BinaryReadable) => ConveyorSpecialProperties;
|
|
9
|
+
const Serialize: (writer: ByteWriter, property: ConveyorSpecialProperties) => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ConveyorSpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConveyorSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,2BAA2B,QAAS,GAAG,KAAG,GAAG,IAAI,yBAAqE,CAAC;AAEpI,MAAM,MAAM,yBAAyB,GAAG;IACpC,IAAI,EAAE,2BAA2B,CAAC;CACrC,CAAC;AAEF,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,KAAK,WAAY,cAAc,KAAG,yBAK9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,yBAAyB,SAEhF,CAAC;CACL"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConveyorSpecialProperties = exports.isConveyorSpecialProperties = void 0;
|
|
4
|
+
const isConveyorSpecialProperties = (obj) => obj.type === 'ConveyorSpecialProperties';
|
|
5
|
+
exports.isConveyorSpecialProperties = isConveyorSpecialProperties;
|
|
6
|
+
var ConveyorSpecialProperties;
|
|
7
|
+
(function (ConveyorSpecialProperties) {
|
|
8
|
+
ConveyorSpecialProperties.Parse = (reader) => {
|
|
9
|
+
reader.readInt32();
|
|
10
|
+
return {
|
|
11
|
+
type: 'ConveyorSpecialProperties',
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
ConveyorSpecialProperties.Serialize = (writer, property) => {
|
|
15
|
+
writer.writeInt32(0);
|
|
16
|
+
};
|
|
17
|
+
})(ConveyorSpecialProperties || (exports.ConveyorSpecialProperties = ConveyorSpecialProperties = {}));
|
|
18
|
+
//# sourceMappingURL=ConveyorSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConveyorSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ConveyorSpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,2BAA2B,GAAG,CAAC,GAAQ,EAAoC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,2BAA2B,CAAC;AAAvH,QAAA,2BAA2B,+BAA4F;AAMpI,IAAiB,yBAAyB,CAWzC;AAXD,WAAiB,yBAAyB;IACzB,+BAAK,GAAG,CAAC,MAAsB,EAA6B,EAAE;QACvE,MAAM,CAAC,SAAS,EAAE,CAAC;QACnB,OAAO;YACH,IAAI,EAAE,2BAA2B;SACpC,CAAC;IACN,CAAC,CAAC;IAEW,mCAAS,GAAG,CAAC,MAAkB,EAAE,QAAmC,EAAE,EAAE;QACjF,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC;AACN,CAAC,EAXgB,yBAAyB,yCAAzB,yBAAyB,QAWzC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isConveyorSpecialProperties = (obj: any): obj is ConveyorSpecialProperties => obj.type === 'ConveyorSpecialProperties';\n\nexport type ConveyorSpecialProperties = {\n type: 'ConveyorSpecialProperties';\n};\n\nexport namespace ConveyorSpecialProperties {\n export const Parse = (reader: BinaryReadable): ConveyorSpecialProperties => {\n reader.readInt32(); // 0\n return {\n type: 'ConveyorSpecialProperties',\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: ConveyorSpecialProperties) => {\n writer.writeInt32(0);\n };\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
export declare const isEmptySpecialProperties: (obj: any) => obj is EmptySpecialProperties;
|
|
4
|
+
export type EmptySpecialProperties = {
|
|
5
|
+
type: 'EmptySpecialProperties';
|
|
6
|
+
};
|
|
7
|
+
export declare namespace EmptySpecialProperties {
|
|
8
|
+
const Parse: (reader: BinaryReadable) => EmptySpecialProperties;
|
|
9
|
+
const Serialize: (writer: ByteWriter, property: EmptySpecialProperties) => void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=EmptySpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptySpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/EmptySpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,wBAAwB,QAAS,GAAG,KAAG,GAAG,IAAI,sBAA+D,CAAC;AAE3H,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,KAAK,WAAY,cAAc,KAAG,sBAI9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,sBAAsB,SAAQ,CAAC;CAC1F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmptySpecialProperties = exports.isEmptySpecialProperties = void 0;
|
|
4
|
+
const isEmptySpecialProperties = (obj) => obj.type === 'EmptySpecialProperties';
|
|
5
|
+
exports.isEmptySpecialProperties = isEmptySpecialProperties;
|
|
6
|
+
var EmptySpecialProperties;
|
|
7
|
+
(function (EmptySpecialProperties) {
|
|
8
|
+
EmptySpecialProperties.Parse = (reader) => {
|
|
9
|
+
return {
|
|
10
|
+
type: 'EmptySpecialProperties',
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
EmptySpecialProperties.Serialize = (writer, property) => { };
|
|
14
|
+
})(EmptySpecialProperties || (exports.EmptySpecialProperties = EmptySpecialProperties = {}));
|
|
15
|
+
//# sourceMappingURL=EmptySpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptySpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/EmptySpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,wBAAwB,GAAG,CAAC,GAAQ,EAAiC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,wBAAwB,CAAC;AAA9G,QAAA,wBAAwB,4BAAsF;AAM3H,IAAiB,sBAAsB,CAQtC;AARD,WAAiB,sBAAsB;IACtB,4BAAK,GAAG,CAAC,MAAsB,EAA0B,EAAE;QACpE,OAAO;YACH,IAAI,EAAE,wBAAwB;SACjC,CAAC;IACN,CAAC,CAAC;IAEW,gCAAS,GAAG,CAAC,MAAkB,EAAE,QAAgC,EAAE,EAAE,GAAG,CAAC,CAAC;AAC3F,CAAC,EARgB,sBAAsB,sCAAtB,sBAAsB,QAQtC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isEmptySpecialProperties = (obj: any): obj is EmptySpecialProperties => obj.type === 'EmptySpecialProperties';\n\nexport type EmptySpecialProperties = {\n type: 'EmptySpecialProperties';\n};\n\nexport namespace EmptySpecialProperties {\n export const Parse = (reader: BinaryReadable): EmptySpecialProperties => {\n return {\n type: 'EmptySpecialProperties',\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: EmptySpecialProperties) => { };\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 isObjectsListSpecialProperties: (obj: any) => obj is ObjectsListSpecialProperties;
|
|
5
|
+
export type ObjectsListSpecialProperties = {
|
|
6
|
+
type: 'ObjectsListSpecialProperties';
|
|
7
|
+
objects: ObjectReference[];
|
|
8
|
+
};
|
|
9
|
+
export declare namespace ObjectsListSpecialProperties {
|
|
10
|
+
const Parse: (reader: BinaryReadable) => ObjectsListSpecialProperties;
|
|
11
|
+
const Serialize: (writer: ByteWriter, property: ObjectsListSpecialProperties) => void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ObjectsListSpecialProperties.d.ts.map
|
package/build/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectsListSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,eAAO,MAAM,8BAA8B,QAAS,GAAG,KAAG,GAAG,IAAI,4BAA2E,CAAC;AAE7I,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAC;IACrC,OAAO,EAAE,eAAe,EAAE,CAAC;CAC9B,CAAC;AAEF,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,KAAK,WAAY,cAAc,KAAG,4BAM9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,4BAA4B,SAEnF,CAAC;CACL"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectsListSpecialProperties = exports.isObjectsListSpecialProperties = void 0;
|
|
4
|
+
const object_references_list_1 = require("../../../save/object-references-list");
|
|
5
|
+
const isObjectsListSpecialProperties = (obj) => obj.type === 'ObjectsListSpecialProperties';
|
|
6
|
+
exports.isObjectsListSpecialProperties = isObjectsListSpecialProperties;
|
|
7
|
+
var ObjectsListSpecialProperties;
|
|
8
|
+
(function (ObjectsListSpecialProperties) {
|
|
9
|
+
ObjectsListSpecialProperties.Parse = (reader) => {
|
|
10
|
+
const objectsList = object_references_list_1.ObjectReferencesList.ReadList(reader);
|
|
11
|
+
return {
|
|
12
|
+
type: 'ObjectsListSpecialProperties',
|
|
13
|
+
objects: objectsList
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
ObjectsListSpecialProperties.Serialize = (writer, property) => {
|
|
17
|
+
object_references_list_1.ObjectReferencesList.SerializeList(writer, property.objects);
|
|
18
|
+
};
|
|
19
|
+
})(ObjectsListSpecialProperties || (exports.ObjectsListSpecialProperties = ObjectsListSpecialProperties = {}));
|
|
20
|
+
//# sourceMappingURL=ObjectsListSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectsListSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/ObjectsListSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,iFAA4E;AAKrE,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAAuC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,8BAA8B,CAAC;AAAhI,QAAA,8BAA8B,kCAAkG;AAO7I,IAAiB,4BAA4B,CAY5C;AAZD,WAAiB,4BAA4B;IAC5B,kCAAK,GAAG,CAAC,MAAsB,EAAgC,EAAE;QAC1E,MAAM,WAAW,GAAG,6CAAoB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO;YACH,IAAI,EAAE,8BAA8B;YACpC,OAAO,EAAE,WAAW;SACvB,CAAC;IACN,CAAC,CAAC;IAEW,sCAAS,GAAG,CAAC,MAAkB,EAAE,QAAsC,EAAE,EAAE;QACpF,6CAAoB,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC,EAZgB,4BAA4B,4CAA5B,4BAA4B,QAY5C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReferencesList } from '../../../save/object-references-list';\nimport { ObjectReference } from '../../structs/ObjectReference';\n\n\n\nexport const isObjectsListSpecialProperties = (obj: any): obj is ObjectsListSpecialProperties => obj.type === 'ObjectsListSpecialProperties';\n\nexport type ObjectsListSpecialProperties = {\n type: 'ObjectsListSpecialProperties';\n objects: ObjectReference[];\n};\n\nexport namespace ObjectsListSpecialProperties {\n export const Parse = (reader: BinaryReadable): ObjectsListSpecialProperties => {\n const objectsList = ObjectReferencesList.ReadList(reader);\n return {\n type: 'ObjectsListSpecialProperties',\n objects: objectsList\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: ObjectsListSpecialProperties) => {\n ObjectReferencesList.SerializeList(writer, property.objects);\n };\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
export declare const isPlayerSpecialProperties: (obj: any) => obj is PlayerSpecialProperties;
|
|
4
|
+
export type PlayerSpecialProperties = {
|
|
5
|
+
type: 'PlayerSpecialProperties';
|
|
6
|
+
flag: number;
|
|
7
|
+
eosData?: string;
|
|
8
|
+
steamPlayerData?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare namespace PlayerSpecialProperties {
|
|
11
|
+
const Parse: (reader: BinaryReadable) => PlayerSpecialProperties;
|
|
12
|
+
const Serialize: (writer: ByteWriter, property: PlayerSpecialProperties) => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PlayerSpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PlayerSpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,eAAO,MAAM,yBAAyB,QAAS,GAAG,KAAG,GAAG,IAAI,uBAAiE,CAAC;AAE9H,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,yBAAyB,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,KAAK,WAAY,cAAc,KAAG,uBAwB9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,uBAAuB,SAa9E,CAAC;CACL"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlayerSpecialProperties = exports.isPlayerSpecialProperties = void 0;
|
|
4
|
+
const isPlayerSpecialProperties = (obj) => obj.type === 'PlayerSpecialProperties';
|
|
5
|
+
exports.isPlayerSpecialProperties = isPlayerSpecialProperties;
|
|
6
|
+
var PlayerSpecialProperties;
|
|
7
|
+
(function (PlayerSpecialProperties) {
|
|
8
|
+
PlayerSpecialProperties.Parse = (reader) => {
|
|
9
|
+
const flag = reader.readByte();
|
|
10
|
+
const property = {
|
|
11
|
+
type: 'PlayerSpecialProperties',
|
|
12
|
+
flag
|
|
13
|
+
};
|
|
14
|
+
switch (property.flag) {
|
|
15
|
+
case 248:
|
|
16
|
+
const eos = reader.readString();
|
|
17
|
+
property.eosData = reader.readString();
|
|
18
|
+
break;
|
|
19
|
+
case 25:
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
return property;
|
|
25
|
+
};
|
|
26
|
+
PlayerSpecialProperties.Serialize = (writer, property) => {
|
|
27
|
+
writer.writeByte(property.flag);
|
|
28
|
+
switch (property.flag) {
|
|
29
|
+
case 248:
|
|
30
|
+
writer.writeString('EOS');
|
|
31
|
+
writer.writeString(property.eosData);
|
|
32
|
+
break;
|
|
33
|
+
case 25:
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
})(PlayerSpecialProperties || (exports.PlayerSpecialProperties = PlayerSpecialProperties = {}));
|
|
40
|
+
//# sourceMappingURL=PlayerSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PlayerSpecialProperties.ts"],"names":[],"mappings":";;;AAKO,MAAM,yBAAyB,GAAG,CAAC,GAAQ,EAAkC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,yBAAyB,CAAC;AAAjH,QAAA,yBAAyB,6BAAwF;AAS9H,IAAiB,uBAAuB,CAyCvC;AAzCD,WAAiB,uBAAuB;IACvB,6BAAK,GAAG,CAAC,MAAsB,EAA2B,EAAE;QAErE,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAI/B,MAAM,QAAQ,GAA4B;YACtC,IAAI,EAAE,yBAAyB;YAC/B,IAAI;SACP,CAAC;QAGF,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;YACpB,KAAK,GAAG;gBACJ,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBAChC,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBACvC,MAAM;YACV,KAAK,EAAE;gBACH,MAAM;YACV;gBACI,MAAM;QACd,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;IAEW,iCAAS,GAAG,CAAC,MAAkB,EAAE,QAAiC,EAAE,EAAE;QAC/E,MAAM,CAAC,SAAS,CAAE,QAAoC,CAAC,IAAI,CAAC,CAAC;QAC7D,QAAS,QAAoC,CAAC,IAAI,EAAE,CAAC;YACjD,KAAK,GAAG;gBACJ,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBAC1B,MAAM,CAAC,WAAW,CAAE,QAAoC,CAAC,OAAQ,CAAC,CAAC;gBACnE,MAAM;YACV,KAAK,EAAE;gBACH,MAAM;YACV;gBACI,MAAM;QAEd,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EAzCgB,uBAAuB,uCAAvB,uBAAuB,QAyCvC","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\n\n\n\nexport const isPlayerSpecialProperties = (obj: any): obj is PlayerSpecialProperties => obj.type === 'PlayerSpecialProperties';\n\nexport type PlayerSpecialProperties = {\n type: 'PlayerSpecialProperties';\n flag: number;\n eosData?: string;\n steamPlayerData?: string;\n};\n\nexport namespace PlayerSpecialProperties {\n export const Parse = (reader: BinaryReadable): PlayerSpecialProperties => {\n\n const flag = reader.readByte(); // 241?\n\n\n // TODO - i don't know enough about player state yet. need more players.\n const property: PlayerSpecialProperties = {\n type: 'PlayerSpecialProperties',\n flag\n };\n\n // 241 = byte, byte, length? flag, id with length bytes\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\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: PlayerSpecialProperties) => {\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 };\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
import { ObjectReference } from '../../structs/ObjectReference';
|
|
4
|
+
import { vec3 } from '../../structs/vec3';
|
|
5
|
+
export declare const isPowerLineSpecialProperties: (obj: any) => obj is PowerLineSpecialProperties;
|
|
6
|
+
export type PowerLineSpecialProperties = {
|
|
7
|
+
type: 'PowerLineSpecialProperties';
|
|
8
|
+
source: ObjectReference;
|
|
9
|
+
target: ObjectReference;
|
|
10
|
+
sourceTranslation?: vec3;
|
|
11
|
+
targetTranslation?: vec3;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace PowerLineSpecialProperties {
|
|
14
|
+
const Parse: (reader: BinaryReadable, remainingLen: number) => PowerLineSpecialProperties;
|
|
15
|
+
const Serialize: (writer: ByteWriter, property: PowerLineSpecialProperties) => void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=PowerLineSpecialProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PowerLineSpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.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;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI1C,eAAO,MAAM,4BAA4B,QAAS,GAAG,KAAG,GAAG,IAAI,0BAAuE,CAAC;AAEvI,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,4BAA4B,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,KAAK,WAAY,cAAc,gBAAgB,MAAM,KAAG,0BAcpE,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,0BAA0B,SAGjF,CAAC;CACL"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PowerLineSpecialProperties = exports.isPowerLineSpecialProperties = void 0;
|
|
4
|
+
const ObjectReference_1 = require("../../structs/ObjectReference");
|
|
5
|
+
const vec3_1 = require("../../structs/vec3");
|
|
6
|
+
const isPowerLineSpecialProperties = (obj) => obj.type === 'PowerLineSpecialProperties';
|
|
7
|
+
exports.isPowerLineSpecialProperties = isPowerLineSpecialProperties;
|
|
8
|
+
var PowerLineSpecialProperties;
|
|
9
|
+
(function (PowerLineSpecialProperties) {
|
|
10
|
+
PowerLineSpecialProperties.Parse = (reader, remainingLen) => {
|
|
11
|
+
const start = reader.getBufferPosition();
|
|
12
|
+
const property = {
|
|
13
|
+
type: 'PowerLineSpecialProperties',
|
|
14
|
+
source: ObjectReference_1.ObjectReference.read(reader),
|
|
15
|
+
target: ObjectReference_1.ObjectReference.read(reader)
|
|
16
|
+
};
|
|
17
|
+
if (remainingLen - (reader.getBufferPosition() - start) >= 24) {
|
|
18
|
+
property.sourceTranslation = vec3_1.vec3.ParseF(reader);
|
|
19
|
+
property.targetTranslation = vec3_1.vec3.ParseF(reader);
|
|
20
|
+
}
|
|
21
|
+
return property;
|
|
22
|
+
};
|
|
23
|
+
PowerLineSpecialProperties.Serialize = (writer, property) => {
|
|
24
|
+
ObjectReference_1.ObjectReference.write(writer, property.source);
|
|
25
|
+
ObjectReference_1.ObjectReference.write(writer, property.target);
|
|
26
|
+
};
|
|
27
|
+
})(PowerLineSpecialProperties || (exports.PowerLineSpecialProperties = PowerLineSpecialProperties = {}));
|
|
28
|
+
//# sourceMappingURL=PowerLineSpecialProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PowerLineSpecialProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/PowerLineSpecialProperties.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAChE,6CAA0C;AAInC,MAAM,4BAA4B,GAAG,CAAC,GAAQ,EAAqC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,4BAA4B,CAAC;AAA1H,QAAA,4BAA4B,gCAA8F;AAUvI,IAAiB,0BAA0B,CAqB1C;AArBD,WAAiB,0BAA0B;IAC1B,gCAAK,GAAG,CAAC,MAAsB,EAAE,YAAoB,EAA8B,EAAE;QAC9F,MAAM,KAAK,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;QACzC,MAAM,QAAQ,GAA+B;YACzC,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,MAAM,EAAE,iCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,CAAC;QAEF,IAAI,YAAY,GAAG,CAAC,MAAM,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5D,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACjD,QAAQ,CAAC,iBAAiB,GAAG,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAC;IAEW,oCAAS,GAAG,CAAC,MAAkB,EAAE,QAAoC,EAAE,EAAE;QAClF,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,iCAAe,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;AACN,CAAC,EArBgB,0BAA0B,0CAA1B,0BAA0B,QAqB1C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { ObjectReference } from '../../structs/ObjectReference';\nimport { vec3 } from '../../structs/vec3';\n\n\n\nexport const isPowerLineSpecialProperties = (obj: any): obj is PowerLineSpecialProperties => obj.type === 'PowerLineSpecialProperties';\n\nexport type PowerLineSpecialProperties = {\n type: 'PowerLineSpecialProperties';\n source: ObjectReference;\n target: ObjectReference;\n sourceTranslation?: vec3;\n targetTranslation?: vec3;\n};\n\nexport namespace PowerLineSpecialProperties {\n export const Parse = (reader: BinaryReadable, remainingLen: number): PowerLineSpecialProperties => {\n const start = reader.getBufferPosition();\n const property: PowerLineSpecialProperties = {\n type: 'PowerLineSpecialProperties',\n source: ObjectReference.read(reader),\n target: ObjectReference.read(reader)\n };\n\n if (remainingLen - (reader.getBufferPosition() - start) >= 24) {\n property.sourceTranslation = vec3.ParseF(reader);\n property.targetTranslation = vec3.ParseF(reader);\n }\n\n return property;\n };\n\n export const Serialize = (writer: ByteWriter, property: PowerLineSpecialProperties) => {\n ObjectReference.write(writer, property.source);\n ObjectReference.write(writer, property.target);\n };\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
|
+
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
+
import { PropertiesMap } from '../generic/BasicProperty';
|
|
4
|
+
export type SpecialDroneAction = {
|
|
5
|
+
actionName: string;
|
|
6
|
+
properties: PropertiesMap;
|
|
7
|
+
};
|
|
8
|
+
export declare const isSpecialDroneActionProperties: (obj: any) => obj is SpecialDroneActionProperties;
|
|
9
|
+
export type SpecialDroneActionProperties = {
|
|
10
|
+
type: 'SpecialDroneActionProperties';
|
|
11
|
+
activeActions: SpecialDroneAction[];
|
|
12
|
+
queuedActions: SpecialDroneAction[];
|
|
13
|
+
};
|
|
14
|
+
export declare namespace SpecialDroneActionProperties {
|
|
15
|
+
const Parse: (reader: BinaryReadable) => SpecialDroneActionProperties;
|
|
16
|
+
const Serialize: (writer: ByteWriter, property: SpecialDroneActionProperties) => void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=SpecialDroneActionProperties.d.ts.map
|
package/build/parser/satisfactory/types/property/special/SpecialDroneActionProperties.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecialDroneActionProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialDroneActionProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAAS,GAAG,KAAG,GAAG,IAAI,4BAA2E,CAAC;AAE7I,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAC;IACrC,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,aAAa,EAAE,kBAAkB,EAAE,CAAC;CACvC,CAAC;AAEF,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,KAAK,WAAY,cAAc,KAAG,4BA0B9C,CAAC;IAEK,MAAM,SAAS,WAAY,UAAU,YAAY,4BAA4B,SAcnF,CAAC;CACL"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpecialDroneActionProperties = exports.isSpecialDroneActionProperties = void 0;
|
|
4
|
+
const PropertiesList_1 = require("../PropertiesList");
|
|
5
|
+
const isSpecialDroneActionProperties = (obj) => obj.type === 'SpecialDroneActionProperties';
|
|
6
|
+
exports.isSpecialDroneActionProperties = isSpecialDroneActionProperties;
|
|
7
|
+
var SpecialDroneActionProperties;
|
|
8
|
+
(function (SpecialDroneActionProperties) {
|
|
9
|
+
SpecialDroneActionProperties.Parse = (reader) => {
|
|
10
|
+
reader.readInt32();
|
|
11
|
+
const countActiveActions = reader.readInt32();
|
|
12
|
+
const activeActions = [];
|
|
13
|
+
for (let i = 0; i < countActiveActions; i++) {
|
|
14
|
+
activeActions.push({
|
|
15
|
+
actionName: reader.readString(),
|
|
16
|
+
properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const countQueuedActions = reader.readInt32();
|
|
20
|
+
const queuedActions = [];
|
|
21
|
+
for (let i = 0; i < countQueuedActions; i++) {
|
|
22
|
+
queuedActions.push({
|
|
23
|
+
actionName: reader.readString(),
|
|
24
|
+
properties: PropertiesList_1.PropertiesList.ParseList(reader, 0)
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
type: 'SpecialDroneActionProperties',
|
|
29
|
+
activeActions,
|
|
30
|
+
queuedActions
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
SpecialDroneActionProperties.Serialize = (writer, property) => {
|
|
34
|
+
writer.writeInt32(0);
|
|
35
|
+
writer.writeInt32(property.activeActions.length);
|
|
36
|
+
for (const action of property.activeActions) {
|
|
37
|
+
writer.writeString(action.actionName);
|
|
38
|
+
PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
|
|
39
|
+
}
|
|
40
|
+
writer.writeInt32(property.queuedActions.length);
|
|
41
|
+
for (const action of property.queuedActions) {
|
|
42
|
+
writer.writeString(action.actionName);
|
|
43
|
+
PropertiesList_1.PropertiesList.SerializeList(action.properties, writer, 0);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
})(SpecialDroneActionProperties || (exports.SpecialDroneActionProperties = SpecialDroneActionProperties = {}));
|
|
47
|
+
//# sourceMappingURL=SpecialDroneActionProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecialDroneActionProperties.js","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialDroneActionProperties.ts"],"names":[],"mappings":";;;AAGA,sDAAmD;AAQ5C,MAAM,8BAA8B,GAAG,CAAC,GAAQ,EAAuC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,8BAA8B,CAAC;AAAhI,QAAA,8BAA8B,kCAAkG;AAQ7I,IAAiB,4BAA4B,CA4C5C;AA5CD,WAAiB,4BAA4B;IAC5B,kCAAK,GAAG,CAAC,MAAsB,EAAgC,EAAE;QAC1E,MAAM,CAAC,SAAS,EAAE,CAAC;QAEnB,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,aAAa,CAAC,IAAI,CAAC;gBACf,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;gBAC/B,UAAU,EAAE,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;aACrB,CAAC,CAAC;QACpC,CAAC;QAED,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAC9C,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,aAAa,CAAC,IAAI,CAAC;gBACf,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;gBAC/B,UAAU,EAAE,+BAAc,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;aACrB,CAAC,CAAC;QACpC,CAAC;QAED,OAAO;YACH,IAAI,EAAE,8BAA8B;YACpC,aAAa;YACb,aAAa;SAChB,CAAC;IACN,CAAC,CAAC;IAEW,sCAAS,GAAG,CAAC,MAAkB,EAAE,QAAsC,EAAE,EAAE;QACpF,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAErB,MAAM,CAAC,UAAU,CAAE,QAAyC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnF,KAAK,MAAM,MAAM,IAAK,QAAyC,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,CAAC,UAAU,CAAE,QAAyC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnF,KAAK,MAAM,MAAM,IAAK,QAAyC,CAAC,aAAa,EAAE,CAAC;YAC5E,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACtC,+BAAc,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC/D,CAAC;IACL,CAAC,CAAC;AACN,CAAC,EA5CgB,4BAA4B,4CAA5B,4BAA4B,QA4C5C","sourcesContent":["import { BinaryReadable } from '../../../../byte/binary-readable.interface';\nimport { ByteWriter } from '../../../../byte/byte-writer.class';\nimport { PropertiesMap } from '../generic/BasicProperty';\nimport { PropertiesList } from '../PropertiesList';\n\n\nexport type SpecialDroneAction = {\n actionName: string;\n properties: PropertiesMap;\n};\n\nexport const isSpecialDroneActionProperties = (obj: any): obj is SpecialDroneActionProperties => obj.type === 'SpecialDroneActionProperties';\n\nexport type SpecialDroneActionProperties = {\n type: 'SpecialDroneActionProperties';\n activeActions: SpecialDroneAction[];\n queuedActions: SpecialDroneAction[];\n};\n\nexport namespace SpecialDroneActionProperties {\n export const Parse = (reader: BinaryReadable): SpecialDroneActionProperties => {\n reader.readInt32(); //0\n\n const countActiveActions = reader.readInt32();\n const activeActions = [];\n for (let i = 0; i < countActiveActions; i++) {\n activeActions.push({\n actionName: reader.readString(),\n properties: PropertiesList.ParseList(reader, 0)\n } satisfies SpecialDroneAction);\n }\n\n const countQueuedActions = reader.readInt32();\n const queuedActions = [];\n for (let i = 0; i < countQueuedActions; i++) {\n queuedActions.push({\n actionName: reader.readString(),\n properties: PropertiesList.ParseList(reader, 0)\n } satisfies SpecialDroneAction);\n }\n\n return {\n type: 'SpecialDroneActionProperties',\n activeActions,\n queuedActions\n };\n };\n\n export const Serialize = (writer: ByteWriter, property: SpecialDroneActionProperties) => {\n writer.writeInt32(0);\n\n writer.writeInt32((property as SpecialDroneActionProperties).activeActions.length);\n for (const action of (property as SpecialDroneActionProperties).activeActions) {\n writer.writeString(action.actionName);\n PropertiesList.SerializeList(action.properties, writer, 0);\n }\n\n writer.writeInt32((property as SpecialDroneActionProperties).queuedActions.length);\n for (const action of (property as SpecialDroneActionProperties).queuedActions) {\n writer.writeString(action.actionName);\n PropertiesList.SerializeList(action.properties, writer, 0);\n }\n };\n}\n"]}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { BinaryReadable } from '../../../../byte/binary-readable.interface';
|
|
2
2
|
import { ByteWriter } from '../../../../byte/byte-writer.class';
|
|
3
|
-
import {
|
|
3
|
+
import { BuildableSubsystemSpecialProperties } from './BuildableSubsystemSpecialProperties';
|
|
4
|
+
import { CircuitSpecialProperties } from './CircuitSpecialProperties';
|
|
5
|
+
import { ConveyorChainActorSpecialProperties } from './ConveyorChainActorSpecialProperties';
|
|
6
|
+
import { ConveyorSpecialProperties } from './ConveyorSpecialProperties';
|
|
7
|
+
import { EmptySpecialProperties } from './EmptySpecialProperties';
|
|
8
|
+
import { ObjectsListSpecialProperties } from './ObjectsListSpecialProperties';
|
|
9
|
+
import { PlayerSpecialProperties } from './PlayerSpecialProperties';
|
|
10
|
+
import { PowerLineSpecialProperties } from './PowerLineSpecialProperties';
|
|
11
|
+
import { SpecialDroneActionProperties } from './SpecialDroneActionProperties';
|
|
12
|
+
import { VehicleSpecialProperties } from './VehicleSpecialProperties';
|
|
4
13
|
export declare namespace SpecialProperties {
|
|
5
|
-
|
|
6
|
-
const
|
|
14
|
+
type AvailableSpecialPropertiesTypes = ReturnType<typeof ParseClassSpecificSpecialProperties>;
|
|
15
|
+
const ParseClassSpecificSpecialProperties: (reader: BinaryReadable, typePath: string, remainingLen: number) => BuildableSubsystemSpecialProperties | CircuitSpecialProperties | ConveyorChainActorSpecialProperties | ConveyorSpecialProperties | EmptySpecialProperties | ObjectsListSpecialProperties | PlayerSpecialProperties | PowerLineSpecialProperties | SpecialDroneActionProperties | VehicleSpecialProperties;
|
|
16
|
+
const SerializeClassSpecificSpecialProperties: (writer: ByteWriter, typePath: string, property: AvailableSpecialPropertiesTypes) => void;
|
|
7
17
|
}
|
|
8
18
|
//# sourceMappingURL=SpecialProperties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"SpecialProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/satisfactory/types/property/special/SpecialProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAyC,MAAM,uCAAuC,CAAC;AACnI,OAAO,EAAE,wBAAwB,EAA8B,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAyC,MAAM,uCAAuC,CAAC;AACnI,OAAO,EAAE,yBAAyB,EAA+B,MAAM,6BAA6B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAA4B,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAkC,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAA6B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAgC,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAAO,EAAkC,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAA8B,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAIlG,yBAAiB,iBAAiB,CAAC;IAE/B,KAAY,+BAA+B,GAAG,UAAU,CAAC,OAAO,mCAAmC,CAAC,CAAC;IAE9F,MAAM,mCAAmC,WAAY,cAAc,YAAY,MAAM,gBAAgB,MAAM,8SAyEjH,CAAA;IAEM,MAAM,uCAAuC,WAAY,UAAU,YAAY,MAAM,YAAY,+BAA+B,KAAG,IA0BzI,CAAA;CACJ"}
|