@etothepii/satisfactory-file-parser 0.4.7 → 0.4.8

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/README.md CHANGED
@@ -18,7 +18,7 @@ Game Version Files of U5 and below are NOT supported.
18
18
  | <= U5 | ❌ |
19
19
  | U6 + U7 | ✅ 0.0.1 - 0.0.34 |
20
20
  | U8 | ✅ 0.1.20 - 0.3.7 |
21
- | U1.0 | ✅ >= 0.4.7 |
21
+ | U1.0 | ✅ >= 0.4.8 |
22
22
 
23
23
 
24
24
  ## Installation via npm
@@ -161,7 +161,10 @@ class DataFields {
161
161
  const transform = util_types_1.Transform.Parse(reader);
162
162
  reader.readInt32();
163
163
  const swatchSlotTypePath = reader.readString();
164
- const zeroes = util_types_1.vec4.Parse(reader);
164
+ reader.readInt32();
165
+ reader.readInt64();
166
+ const patternPath = reader.readString();
167
+ const zeroes = util_types_1.vec2.Parse(reader);
165
168
  const oneZeroOne = util_types_1.vec3.Parse(reader);
166
169
  const unknownUseNumbers = [zeroes, oneZeroOne];
167
170
  reader.readInt32();
@@ -176,6 +179,7 @@ class DataFields {
176
179
  swatchSlotTypePath,
177
180
  paintFinishPath,
178
181
  recipeTypePath,
182
+ patternPath,
179
183
  });
180
184
  }
181
185
  property.buildables.push({
@@ -369,7 +373,10 @@ class DataFields {
369
373
  util_types_1.Transform.Serialize(writer, instance.transform);
370
374
  writer.writeInt32(0);
371
375
  writer.writeString(instance.swatchSlotTypePath);
372
- util_types_1.vec4.Serialize(writer, instance.unknownUseNumbers[0]);
376
+ writer.writeInt32(0);
377
+ writer.writeInt64(0n);
378
+ writer.writeString(instance.patternPath);
379
+ util_types_1.vec2.Serialize(writer, instance.unknownUseNumbers[0]);
373
380
  util_types_1.vec3.Serialize(writer, instance.unknownUseNumbers[1]);
374
381
  writer.writeInt32(0);
375
382
  writer.writeString(instance.paintFinishPath);
@@ -1,4 +1,4 @@
1
- import { Transform, vec3, vec4 } from '../../../structs/util.types';
1
+ import { Transform, vec2, vec3 } from '../../../structs/util.types';
2
2
  import { ObjectReference } from '../../values/ObjectReference';
3
3
  export type SpecialAnyProperty = {} | PowerLineSpecialProperty | PlayerSpecialProperty | ConveyorChainActorSpecialProperty | BuildableSubsystemSpecialProperty;
4
4
  export type PowerLineSpecialProperty = {
@@ -35,15 +35,17 @@ export type ConveyorChainActorSpecialProperty = {
35
35
  lastChainItemIndex: number;
36
36
  items: ConveyorItemSpecialProperty[];
37
37
  };
38
+ export type BuildableTypeInstance = {
39
+ transform: Transform;
40
+ unknownUseNumbers: [vec2, vec3];
41
+ swatchSlotTypePath: string;
42
+ paintFinishPath: string;
43
+ recipeTypePath: string;
44
+ patternPath: string;
45
+ };
38
46
  export type BuildableSubsystemSpecialProperty = {
39
47
  buildables: {
40
48
  typePath: string;
41
- instances: {
42
- transform: Transform;
43
- unknownUseNumbers: [vec4, vec3];
44
- swatchSlotTypePath: string;
45
- paintFinishPath: string;
46
- recipeTypePath: string;
47
- }[];
49
+ instances: BuildableTypeInstance[];
48
50
  }[];
49
51
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@etothepii/satisfactory-file-parser",
3
3
  "author": "etothepii",
4
- "version": "0.4.7",
4
+ "version": "0.4.8",
5
5
  "description": "A file parser for satisfactory files. Includes save files and blueprint files.",
6
6
  "types": "./build/index.d.ts",
7
7
  "main": "./build/index.js",