@etothepii/satisfactory-file-parser 0.4.12 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +43 -22
- package/build/parser/byte/binary-readable.interface.d.ts +0 -3
- package/build/parser/byte/binary-writable.interface.d.ts +20 -0
- package/build/parser/byte/binary-writable.interface.js +2 -0
- package/build/parser/byte/byte-reader.class.d.ts +0 -3
- package/build/parser/byte/byte-reader.class.js +0 -8
- package/build/parser/byte/byte-writer.class.d.ts +6 -3
- package/build/parser/byte/byte-writer.class.js +3 -1
- package/build/parser/satisfactory/blueprint/blueprint-reader.js +10 -10
- package/build/parser/satisfactory/edit/edit-constants.d.ts +157 -3
- package/build/parser/satisfactory/edit/edit-constants.js +237 -161
- package/build/parser/satisfactory/objects/DataFields.js +9 -9
- package/build/parser/satisfactory/objects/SaveObject.d.ts +1 -1
- package/build/parser/satisfactory/objects/SaveObject.js +1 -1
- package/build/parser/satisfactory/objects/property/generic/FloatProperty.js +1 -1
- package/build/parser/satisfactory/objects/property/generic/SetProperty.js +5 -2
- package/build/parser/satisfactory/objects/property/generic/StructProperty.js +13 -5
- package/build/parser/satisfactory/save/level.class.d.ts +1 -2
- package/build/parser/satisfactory/save/level.class.js +10 -15
- package/build/parser/satisfactory/save/save-reader.js +8 -4
- package/build/parser/satisfactory/save/save.types.d.ts +0 -25
- package/build/parser/satisfactory/structs/util.types.js +8 -8
- package/build/parser/stream/reworked/readable-stream-parser.d.ts +1 -0
- package/build/parser/stream/reworked/readable-stream-parser.js +28 -3
- package/package.json +1 -1
- package/build/parser/satisfactory/objects/ObjectReference.d.ts +0 -10
- package/build/parser/satisfactory/objects/ObjectReference.js +0 -17
- package/build/parser/satisfactory/objects/Property.d.ts +0 -272
- package/build/parser/satisfactory/objects/Property.js +0 -1177
- package/build/parser/satisfactory/objects/ue/FMD5Hash.d.ts +0 -7
- package/build/parser/satisfactory/objects/ue/FMD5Hash.js +0 -19
- package/build/parser/satisfactory/objects/ue/GUID.d.ts +0 -6
- package/build/parser/satisfactory/objects/ue/GUID.js +0 -21
- package/build/parser/satisfactory/save/asynchronous-level.class.d.ts +0 -9
- package/build/parser/satisfactory/save/asynchronous-level.class.js +0 -66
- package/build/parser/stream/byte-stream-reader.class.d.ts +0 -57
- package/build/parser/stream/byte-stream-reader.class.js +0 -241
- package/build/parser/stream/json-stream-state-writer.d.ts +0 -12
- package/build/parser/stream/json-stream-state-writer.js +0 -18
- package/build/parser/stream/json-stream-writable.d.ts +0 -20
- package/build/parser/stream/json-stream-writable.js +0 -83
- package/build/parser/stream/json-stream-writer.d.ts +0 -22
- package/build/parser/stream/json-stream-writer.js +0 -127
- package/build/parser/stream/reworked/stream-parser.d.ts +0 -6
- package/build/parser/stream/reworked/stream-parser.js +0 -31
- package/build/parser/stream/save-stream-json-stringifier.d.ts +0 -6
- package/build/parser/stream/save-stream-json-stringifier.js +0 -35
- package/build/parser/stream/save-stream-reader.class.d.ts +0 -15
- package/build/parser/stream/save-stream-reader.class.js +0 -121
- package/build/parser/stream/save-stream-writer.class.d.ts +0 -25
- package/build/parser/stream/save-stream-writer.class.js +0 -119
- package/build/parser/stream/stream-level.class.d.ts +0 -12
- package/build/parser/stream/stream-level.class.js +0 -103
- package/build/parser/stream/stream-parser.d.ts +0 -40
- package/build/parser/stream/stream-parser.js +0 -225
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { BinaryReadable } from "../../byte/binary-readable.interface";
|
|
2
|
-
import { ByteWriter } from '../../byte/byte-writer.class';
|
|
3
|
-
import { col4, vec3, vec4 } from "../structs/util.types";
|
|
4
|
-
import { GUIDInfo } from './GUIDInfo';
|
|
5
|
-
import { ObjectReference } from "./values/ObjectReference";
|
|
6
|
-
export type PropertiesMap = {
|
|
7
|
-
[name: string]: AbstractBaseProperty | AbstractBaseProperty[];
|
|
8
|
-
};
|
|
9
|
-
export declare abstract class AbstractProperty {
|
|
10
|
-
type: string;
|
|
11
|
-
index?: number | undefined;
|
|
12
|
-
constructor(type: string, index?: number | undefined);
|
|
13
|
-
}
|
|
14
|
-
export declare abstract class AbstractBaseProperty extends AbstractProperty {
|
|
15
|
-
ueType: string;
|
|
16
|
-
name: string;
|
|
17
|
-
constructor(type: string, ueType: string, index: number);
|
|
18
|
-
}
|
|
19
|
-
export declare abstract class BasicProperty extends AbstractBaseProperty {
|
|
20
|
-
guidInfo: GUIDInfo;
|
|
21
|
-
constructor(type: string, ueType: string, guidInfo: GUIDInfo, index?: number);
|
|
22
|
-
}
|
|
23
|
-
export declare class BoolProperty extends BasicProperty {
|
|
24
|
-
value: boolean;
|
|
25
|
-
constructor(value: boolean, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
26
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): BoolProperty;
|
|
27
|
-
static ReadValue(reader: BinaryReadable): boolean;
|
|
28
|
-
static CalcOverhead(property: BoolProperty): number;
|
|
29
|
-
static Serialize(writer: ByteWriter, property: BoolProperty): void;
|
|
30
|
-
static SerializeValue(writer: ByteWriter, value: boolean): void;
|
|
31
|
-
}
|
|
32
|
-
export type BytePropertyValue = {
|
|
33
|
-
type: string;
|
|
34
|
-
value: string | number;
|
|
35
|
-
};
|
|
36
|
-
export declare class ByteProperty extends BasicProperty {
|
|
37
|
-
value: BytePropertyValue;
|
|
38
|
-
constructor(value: BytePropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
39
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): ByteProperty;
|
|
40
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
41
|
-
static CalcOverhead(property: ByteProperty): number;
|
|
42
|
-
static Serialize(writer: ByteWriter, property: ByteProperty): void;
|
|
43
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
44
|
-
}
|
|
45
|
-
export declare class Int8Property extends BasicProperty {
|
|
46
|
-
value: number;
|
|
47
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
48
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): Int8Property;
|
|
49
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
50
|
-
static CalcOverhead(property: Int8Property): number;
|
|
51
|
-
static Serialize(writer: ByteWriter, property: Int8Property): void;
|
|
52
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
53
|
-
}
|
|
54
|
-
export declare class Uint8Property extends BasicProperty {
|
|
55
|
-
value: number;
|
|
56
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
57
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): Uint8Property;
|
|
58
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
59
|
-
static CalcOverhead(property: Uint8Property): number;
|
|
60
|
-
static Serialize(writer: ByteWriter, property: Uint8Property): void;
|
|
61
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
62
|
-
}
|
|
63
|
-
export declare class Int32Property extends BasicProperty {
|
|
64
|
-
value: number;
|
|
65
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
66
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): Int32Property;
|
|
67
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
68
|
-
static CalcOverhead(property: Int32Property): number;
|
|
69
|
-
static Serialize(writer: ByteWriter, property: Int32Property): void;
|
|
70
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
71
|
-
}
|
|
72
|
-
export declare class Uint32Property extends BasicProperty {
|
|
73
|
-
value: number;
|
|
74
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
75
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): Uint32Property;
|
|
76
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
77
|
-
static CalcOverhead(property: Uint32Property): number;
|
|
78
|
-
static Serialize(writer: ByteWriter, property: Uint32Property): void;
|
|
79
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
80
|
-
}
|
|
81
|
-
export declare class Int64Property extends BasicProperty {
|
|
82
|
-
value: string;
|
|
83
|
-
constructor(value: string, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
84
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): Int64Property;
|
|
85
|
-
static ReadValue(reader: BinaryReadable): string;
|
|
86
|
-
static CalcOverhead(property: Int64Property): number;
|
|
87
|
-
static Serialize(writer: ByteWriter, property: Int64Property): void;
|
|
88
|
-
static SerializeValue(writer: ByteWriter, value: string): void;
|
|
89
|
-
}
|
|
90
|
-
export declare class FloatProperty extends BasicProperty {
|
|
91
|
-
value: number;
|
|
92
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
93
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): FloatProperty;
|
|
94
|
-
static CalcOverhead(property: FloatProperty): number;
|
|
95
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
96
|
-
static Serialize(writer: ByteWriter, property: FloatProperty): void;
|
|
97
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
98
|
-
}
|
|
99
|
-
export declare class DoubleProperty extends BasicProperty {
|
|
100
|
-
value: number;
|
|
101
|
-
constructor(value: number, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
102
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): DoubleProperty;
|
|
103
|
-
static ReadValue(reader: BinaryReadable): number;
|
|
104
|
-
static CalcOverhead(property: DoubleProperty): number;
|
|
105
|
-
static Serialize(writer: ByteWriter, property: DoubleProperty): void;
|
|
106
|
-
static SerializeValue(writer: ByteWriter, value: number): void;
|
|
107
|
-
}
|
|
108
|
-
export declare class StrProperty extends BasicProperty {
|
|
109
|
-
value: string;
|
|
110
|
-
constructor(value: string, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
111
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): StrProperty;
|
|
112
|
-
static ReadValue(reader: BinaryReadable): string;
|
|
113
|
-
static CalcOverhead(property: StrProperty): number;
|
|
114
|
-
static Serialize(writer: ByteWriter, property: StrProperty): void;
|
|
115
|
-
static SerializeValue(writer: ByteWriter, value: string): void;
|
|
116
|
-
}
|
|
117
|
-
export declare class ObjectProperty extends BasicProperty {
|
|
118
|
-
value: ObjectReference;
|
|
119
|
-
constructor(value: ObjectReference, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
120
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): ObjectProperty;
|
|
121
|
-
static ReadValue(reader: BinaryReadable): ObjectReference;
|
|
122
|
-
static CalcOverhead(property: ObjectProperty): number;
|
|
123
|
-
static Serialize(writer: ByteWriter, property: ObjectProperty): void;
|
|
124
|
-
static SerializeValue(writer: ByteWriter, value: ObjectReference): void;
|
|
125
|
-
}
|
|
126
|
-
export declare class EnumProperty extends BasicProperty {
|
|
127
|
-
value: {
|
|
128
|
-
name: string;
|
|
129
|
-
value: string;
|
|
130
|
-
};
|
|
131
|
-
constructor(value: {
|
|
132
|
-
name: string;
|
|
133
|
-
value: string;
|
|
134
|
-
}, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
135
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): EnumProperty;
|
|
136
|
-
static ReadValue(reader: BinaryReadable): string;
|
|
137
|
-
static CalcOverhead(property: EnumProperty): number;
|
|
138
|
-
static Serialize(writer: ByteWriter, property: EnumProperty): void;
|
|
139
|
-
static SerializeValue(writer: ByteWriter, value: string): void;
|
|
140
|
-
}
|
|
141
|
-
export type TextPropertyValue = {
|
|
142
|
-
flags: number;
|
|
143
|
-
historyType: number;
|
|
144
|
-
namespace?: string;
|
|
145
|
-
key?: string;
|
|
146
|
-
value?: string;
|
|
147
|
-
sourceFmt?: TextPropertyValue;
|
|
148
|
-
arguments?: {
|
|
149
|
-
name: string;
|
|
150
|
-
valueType: number;
|
|
151
|
-
argumentValue: TextPropertyValue;
|
|
152
|
-
}[];
|
|
153
|
-
sourceText?: TextPropertyValue;
|
|
154
|
-
transformType?: number;
|
|
155
|
-
hasCultureInvariantString?: boolean;
|
|
156
|
-
};
|
|
157
|
-
export declare class TextProperty extends BasicProperty {
|
|
158
|
-
value: TextPropertyValue;
|
|
159
|
-
constructor(value: TextPropertyValue, ueType?: string, guidInfo?: GUIDInfo, index?: number);
|
|
160
|
-
static Parse(reader: BinaryReadable, ueType: string, index?: number): TextProperty;
|
|
161
|
-
static ParseValue(reader: BinaryReadable): TextPropertyValue;
|
|
162
|
-
static CalcOverhead(property: TextProperty): number;
|
|
163
|
-
static Serialize(writer: ByteWriter, property: TextProperty): void;
|
|
164
|
-
static SerializeValue(writer: ByteWriter, value: TextPropertyValue): void;
|
|
165
|
-
}
|
|
166
|
-
export type BasicMultipleStructPropertyValue = {
|
|
167
|
-
values: any;
|
|
168
|
-
};
|
|
169
|
-
export type BasicStructPropertyValue = {
|
|
170
|
-
value: any;
|
|
171
|
-
};
|
|
172
|
-
export type BoxStructPropertyValue = {
|
|
173
|
-
min: vec3;
|
|
174
|
-
max: vec3;
|
|
175
|
-
isValid: boolean;
|
|
176
|
-
};
|
|
177
|
-
export type RailroadTrackPositionStructPropertyValue = {
|
|
178
|
-
root: string;
|
|
179
|
-
instanceName: string;
|
|
180
|
-
offset: number;
|
|
181
|
-
forward: number;
|
|
182
|
-
};
|
|
183
|
-
export type InventoryItemStructPropertyValue = {
|
|
184
|
-
unk1: number;
|
|
185
|
-
itemName: string;
|
|
186
|
-
hasItemState: number;
|
|
187
|
-
itemState?: {
|
|
188
|
-
unk: number;
|
|
189
|
-
pathName: string;
|
|
190
|
-
binarySize: number;
|
|
191
|
-
itemStateRaw: number[];
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
export type FICFrameRangeStructPropertyValue = {
|
|
195
|
-
begin: string;
|
|
196
|
-
end: string;
|
|
197
|
-
};
|
|
198
|
-
export type DynamicStructPropertyValue = {
|
|
199
|
-
type: string;
|
|
200
|
-
properties: PropertiesMap;
|
|
201
|
-
};
|
|
202
|
-
export type ClientIdentityInfo = {
|
|
203
|
-
id: string;
|
|
204
|
-
clientUnk1: number;
|
|
205
|
-
clientUnk2: number;
|
|
206
|
-
clientHashSize: number;
|
|
207
|
-
someClientHash: number[];
|
|
208
|
-
};
|
|
209
|
-
export type GENERIC_STRUCT_PROPERTY_VALUE = BasicMultipleStructPropertyValue | BasicStructPropertyValue | BoxStructPropertyValue | RailroadTrackPositionStructPropertyValue | InventoryItemStructPropertyValue | FICFrameRangeStructPropertyValue | ClientIdentityInfo | DynamicStructPropertyValue | col4 | vec3 | vec4 | string;
|
|
210
|
-
export declare class StructProperty extends AbstractBaseProperty {
|
|
211
|
-
subtype: string;
|
|
212
|
-
guid: number;
|
|
213
|
-
value: GENERIC_STRUCT_PROPERTY_VALUE;
|
|
214
|
-
unk1?: number;
|
|
215
|
-
unk2?: number;
|
|
216
|
-
unk3?: number;
|
|
217
|
-
unk4?: number;
|
|
218
|
-
constructor(subtype: string, ueType?: string, index?: number, guid?: number);
|
|
219
|
-
static Parse(reader: BinaryReadable, ueType: string, index: number, size: number): StructProperty;
|
|
220
|
-
static ParseValue(reader: BinaryReadable, subtype: string, size: number): GENERIC_STRUCT_PROPERTY_VALUE;
|
|
221
|
-
static CalcOverhead(property: StructProperty): number;
|
|
222
|
-
static Serialize(writer: ByteWriter, property: StructProperty): void;
|
|
223
|
-
static SerializeValue(writer: ByteWriter, subtype: string, value: GENERIC_STRUCT_PROPERTY_VALUE): void;
|
|
224
|
-
}
|
|
225
|
-
export type ArrayPropertyStructValueFields = {
|
|
226
|
-
allStructType: string;
|
|
227
|
-
allIndex: number;
|
|
228
|
-
allGuid: number;
|
|
229
|
-
allUnk1?: number;
|
|
230
|
-
allUnk2?: number;
|
|
231
|
-
allUnk3?: number;
|
|
232
|
-
allUnk4?: number;
|
|
233
|
-
};
|
|
234
|
-
export declare class ArrayProperty<T> extends BasicProperty {
|
|
235
|
-
subtype: string;
|
|
236
|
-
values: T[];
|
|
237
|
-
structValueFields?: ArrayPropertyStructValueFields | undefined;
|
|
238
|
-
constructor(subtype: string, values: T[], ueType?: string, index?: number, structValueFields?: ArrayPropertyStructValueFields | undefined);
|
|
239
|
-
static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): ArrayProperty<any>;
|
|
240
|
-
static CalcOverhead(property: ArrayProperty<any>): number;
|
|
241
|
-
static Serialize(writer: ByteWriter, property: ArrayProperty<any>, propertyName: string): void;
|
|
242
|
-
}
|
|
243
|
-
export declare class SetProperty<T> extends BasicProperty {
|
|
244
|
-
subtype: string;
|
|
245
|
-
values: T[];
|
|
246
|
-
constructor(subtype: string, values: T[], ueType: string, index: number);
|
|
247
|
-
static Parse(reader: BinaryReadable, ueType: string, index: number, propertyName: string): SetProperty<any>;
|
|
248
|
-
static CalcOverhead(property: SetProperty<any>): number;
|
|
249
|
-
static Serialize(writer: ByteWriter, property: SetProperty<any>): void;
|
|
250
|
-
}
|
|
251
|
-
export type MAP_STRUCT_KEY_PROXY = [number, number, number, number, number, number, number, number, number, number, number, number];
|
|
252
|
-
export type GENERIC_MAP_KEY_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE | MAP_STRUCT_KEY_PROXY;
|
|
253
|
-
export type GENERIC_MAP_VALUE_TYPE = number | ObjectReference | boolean | GENERIC_STRUCT_PROPERTY_VALUE;
|
|
254
|
-
export declare class MapProperty extends BasicProperty {
|
|
255
|
-
keyType: string;
|
|
256
|
-
valueType: string;
|
|
257
|
-
modeType: number;
|
|
258
|
-
modeUnk1: string | undefined;
|
|
259
|
-
modeUnk2: string;
|
|
260
|
-
modeUnk3: string;
|
|
261
|
-
values: [key: GENERIC_MAP_KEY_TYPE, value: GENERIC_MAP_VALUE_TYPE][];
|
|
262
|
-
constructor(keyType: string, valueType: string, ueType: string, index: number);
|
|
263
|
-
static Parse(reader: BinaryReadable, propertyName: string, buildVersion: number, size: number, ueType?: string, index?: number): MapProperty;
|
|
264
|
-
static CalcOverhead(property: MapProperty): number;
|
|
265
|
-
static Serialize(writer: ByteWriter, property: MapProperty): void;
|
|
266
|
-
}
|
|
267
|
-
export declare const ParseDynamicStructData: (reader: BinaryReadable, buildVersion: number, type: string) => DynamicStructPropertyValue;
|
|
268
|
-
export declare const SerializeDynamicStructData: (writer: ByteWriter, buildVersion: number, data: DynamicStructPropertyValue) => void;
|
|
269
|
-
export declare const ReadFINNetworkTrace: (reader: BinaryReadable) => any;
|
|
270
|
-
export declare const SerializeFINNetworkTrace: (writer: ByteWriter, obj: any) => void;
|
|
271
|
-
export declare const ReadFINLuaProcessorStateStorage: (reader: BinaryReadable, size: number) => any;
|
|
272
|
-
export declare const SerializeFINLuaProcessorStateStorage: (writer: ByteWriter, stateStorage: any) => void;
|