@rhyster/wow-casc-dbc 2.5.1 → 2.6.0
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 +1 -1
- package/dist/index.cjs +809 -768
- package/dist/index.d.cts +65 -67
- package/dist/index.d.mts +65 -67
- package/dist/index.d.ts +65 -67
- package/dist/index.mjs +807 -766
- package/package.json +12 -18
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
+
interface HotfixEntry {
|
|
2
|
+
regionID: number;
|
|
3
|
+
pushID: number;
|
|
4
|
+
uniqueID: number;
|
|
5
|
+
tableHash: number;
|
|
6
|
+
recordID: number;
|
|
7
|
+
dataSize: number;
|
|
8
|
+
recordState: number;
|
|
9
|
+
data: Buffer;
|
|
10
|
+
}
|
|
11
|
+
declare class ADBReader {
|
|
12
|
+
build: number;
|
|
13
|
+
entries: HotfixEntry[];
|
|
14
|
+
tableEntries: Map<number, HotfixEntry[]>;
|
|
15
|
+
constructor(buffer: Buffer);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface MissingKeyBlock {
|
|
19
|
+
offset: number;
|
|
20
|
+
size: number;
|
|
21
|
+
blockIndex: number;
|
|
22
|
+
keyName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
interface ArchiveIndex {
|
|
2
26
|
key: string;
|
|
3
27
|
size: number;
|
|
4
28
|
offset: number;
|
|
5
29
|
}
|
|
6
|
-
declare const parseArchiveIndex: (buffer: Buffer, cKey: string) => Map<string, ArchiveIndex>;
|
|
7
30
|
|
|
8
31
|
interface EncodingData {
|
|
9
32
|
eSpec: string[];
|
|
@@ -12,18 +35,6 @@ interface EncodingData {
|
|
|
12
35
|
eKey2ESpecIndex: Map<string, number>;
|
|
13
36
|
eKey2FileSize: Map<string, number>;
|
|
14
37
|
}
|
|
15
|
-
declare const parseEncodingFile: (inputBuffer: Buffer, eKey: string, cKey: string) => EncodingData;
|
|
16
|
-
|
|
17
|
-
interface FileInfo {
|
|
18
|
-
cKey: string;
|
|
19
|
-
contentFlags: number;
|
|
20
|
-
localeFlags: number;
|
|
21
|
-
}
|
|
22
|
-
interface RootData {
|
|
23
|
-
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
24
|
-
nameHash2FileDataID: Map<string, number>;
|
|
25
|
-
}
|
|
26
|
-
declare const parseRootFile: (inputBuffer: Buffer, eKey: string, cKey: string) => RootData;
|
|
27
38
|
|
|
28
39
|
interface Version {
|
|
29
40
|
Region: string;
|
|
@@ -35,35 +46,21 @@ interface Version {
|
|
|
35
46
|
ProductConfig: string;
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
keyName: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface HotfixEntry {
|
|
46
|
-
regionID: number;
|
|
47
|
-
pushID: number;
|
|
48
|
-
uniqueID: number;
|
|
49
|
-
tableHash: number;
|
|
50
|
-
recordID: number;
|
|
51
|
-
dataSize: number;
|
|
52
|
-
recordState: number;
|
|
53
|
-
data: Buffer;
|
|
49
|
+
interface FileInfo {
|
|
50
|
+
cKey: string;
|
|
51
|
+
contentFlags: number;
|
|
52
|
+
localeFlags: number;
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tableEntries: Map<number, HotfixEntry[]>;
|
|
59
|
-
constructor(buffer: Buffer);
|
|
54
|
+
interface RootData {
|
|
55
|
+
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
56
|
+
nameHash2FileDataID: Map<string, number>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
interface ClientPreloadData {
|
|
63
60
|
prefixes: string[];
|
|
64
|
-
archives:
|
|
65
|
-
encoding:
|
|
66
|
-
rootFile:
|
|
61
|
+
archives: Map<string, ArchiveIndex>;
|
|
62
|
+
encoding: EncodingData;
|
|
63
|
+
rootFile: RootData;
|
|
67
64
|
}
|
|
68
65
|
interface FileFetchResultFull {
|
|
69
66
|
type: 'full';
|
|
@@ -91,35 +88,35 @@ declare class CASCClient {
|
|
|
91
88
|
preload?: ClientPreloadData;
|
|
92
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
93
90
|
static LocaleFlags: {
|
|
94
|
-
enUS:
|
|
95
|
-
koKR:
|
|
96
|
-
frFR:
|
|
97
|
-
deDE:
|
|
98
|
-
zhCN:
|
|
99
|
-
esES:
|
|
100
|
-
zhTW:
|
|
101
|
-
enGB:
|
|
102
|
-
esMX:
|
|
103
|
-
ruRU:
|
|
104
|
-
ptBR:
|
|
105
|
-
itIT:
|
|
106
|
-
ptPT:
|
|
91
|
+
readonly enUS: 2;
|
|
92
|
+
readonly koKR: 4;
|
|
93
|
+
readonly frFR: 16;
|
|
94
|
+
readonly deDE: 32;
|
|
95
|
+
readonly zhCN: 64;
|
|
96
|
+
readonly esES: 128;
|
|
97
|
+
readonly zhTW: 256;
|
|
98
|
+
readonly enGB: 512;
|
|
99
|
+
readonly esMX: 4096;
|
|
100
|
+
readonly ruRU: 8192;
|
|
101
|
+
readonly ptBR: 16384;
|
|
102
|
+
readonly itIT: 32768;
|
|
103
|
+
readonly ptPT: 65536;
|
|
107
104
|
};
|
|
108
105
|
static ContentFlags: {
|
|
109
|
-
Install:
|
|
110
|
-
LoadOnWindows:
|
|
111
|
-
LoadOnMacOS:
|
|
112
|
-
x86_32:
|
|
113
|
-
x86_64:
|
|
114
|
-
LowViolence:
|
|
115
|
-
DoNotLoad:
|
|
116
|
-
UpdatePlugin:
|
|
117
|
-
ARM64:
|
|
118
|
-
Encrypted:
|
|
119
|
-
NoNameHash:
|
|
120
|
-
UncommonResolution:
|
|
121
|
-
Bundle:
|
|
122
|
-
NoCompression:
|
|
106
|
+
readonly Install: 4;
|
|
107
|
+
readonly LoadOnWindows: 8;
|
|
108
|
+
readonly LoadOnMacOS: 16;
|
|
109
|
+
readonly x86_32: 32;
|
|
110
|
+
readonly x86_64: 64;
|
|
111
|
+
readonly LowViolence: 128;
|
|
112
|
+
readonly DoNotLoad: 256;
|
|
113
|
+
readonly UpdatePlugin: 2048;
|
|
114
|
+
readonly ARM64: 32768;
|
|
115
|
+
readonly Encrypted: 134217728;
|
|
116
|
+
readonly NoNameHash: 268435456;
|
|
117
|
+
readonly UncommonResolution: 536870912;
|
|
118
|
+
readonly Bundle: 1073741824;
|
|
119
|
+
readonly NoCompression: 2147483648;
|
|
123
120
|
};
|
|
124
121
|
static LogLevel: typeof LogLevel;
|
|
125
122
|
logLevel: LogLevel;
|
|
@@ -247,7 +244,8 @@ interface Column {
|
|
|
247
244
|
size?: number;
|
|
248
245
|
arraySize?: number;
|
|
249
246
|
}
|
|
250
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
251
249
|
declare class DBDParser {
|
|
252
250
|
readonly wdc: WDCReader;
|
|
253
251
|
readonly definitions: Map<string, string>;
|
|
@@ -257,7 +255,7 @@ declare class DBDParser {
|
|
|
257
255
|
private init;
|
|
258
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
259
257
|
getAllIDs(): number[];
|
|
260
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
261
259
|
}
|
|
262
260
|
|
|
263
|
-
export { ADBReader, CASCClient, DBDParser, WDCReader };
|
|
261
|
+
export { ADBReader, type ArchiveIndex, type BasicColumnData, CASCClient, type ClientPreloadData, type Column, type ColumnData, DBDParser, type EncodingData, type FieldStorageInfo, type FieldStorageInfoCompressionBitpacked, type FieldStorageInfoCompressionBitpackedIndexed, type FieldStorageInfoCompressionBitpackedIndexedArray, type FieldStorageInfoCompressionBitpackedSigned, type FieldStorageInfoCompressionCommonData, type FieldStorageInfoCompressionNone, type FieldStructure, type FileFetchResult, type FileFetchResultFull, type FileFetchResultPartial, type FileInfo, type Hotfix, type HotfixDelete, type HotfixEntry, type HotfixModify, type MissingKeyBlock, type ParsedField, type ParsedFieldBitpacked, type ParsedFieldBitpackedArray, type ParsedFieldCommonData, type ParsedFieldNone, type RootData, type SparseRow, type Version, WDCReader };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
+
interface HotfixEntry {
|
|
2
|
+
regionID: number;
|
|
3
|
+
pushID: number;
|
|
4
|
+
uniqueID: number;
|
|
5
|
+
tableHash: number;
|
|
6
|
+
recordID: number;
|
|
7
|
+
dataSize: number;
|
|
8
|
+
recordState: number;
|
|
9
|
+
data: Buffer;
|
|
10
|
+
}
|
|
11
|
+
declare class ADBReader {
|
|
12
|
+
build: number;
|
|
13
|
+
entries: HotfixEntry[];
|
|
14
|
+
tableEntries: Map<number, HotfixEntry[]>;
|
|
15
|
+
constructor(buffer: Buffer);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface MissingKeyBlock {
|
|
19
|
+
offset: number;
|
|
20
|
+
size: number;
|
|
21
|
+
blockIndex: number;
|
|
22
|
+
keyName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
interface ArchiveIndex {
|
|
2
26
|
key: string;
|
|
3
27
|
size: number;
|
|
4
28
|
offset: number;
|
|
5
29
|
}
|
|
6
|
-
declare const parseArchiveIndex: (buffer: Buffer, cKey: string) => Map<string, ArchiveIndex>;
|
|
7
30
|
|
|
8
31
|
interface EncodingData {
|
|
9
32
|
eSpec: string[];
|
|
@@ -12,18 +35,6 @@ interface EncodingData {
|
|
|
12
35
|
eKey2ESpecIndex: Map<string, number>;
|
|
13
36
|
eKey2FileSize: Map<string, number>;
|
|
14
37
|
}
|
|
15
|
-
declare const parseEncodingFile: (inputBuffer: Buffer, eKey: string, cKey: string) => EncodingData;
|
|
16
|
-
|
|
17
|
-
interface FileInfo {
|
|
18
|
-
cKey: string;
|
|
19
|
-
contentFlags: number;
|
|
20
|
-
localeFlags: number;
|
|
21
|
-
}
|
|
22
|
-
interface RootData {
|
|
23
|
-
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
24
|
-
nameHash2FileDataID: Map<string, number>;
|
|
25
|
-
}
|
|
26
|
-
declare const parseRootFile: (inputBuffer: Buffer, eKey: string, cKey: string) => RootData;
|
|
27
38
|
|
|
28
39
|
interface Version {
|
|
29
40
|
Region: string;
|
|
@@ -35,35 +46,21 @@ interface Version {
|
|
|
35
46
|
ProductConfig: string;
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
keyName: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface HotfixEntry {
|
|
46
|
-
regionID: number;
|
|
47
|
-
pushID: number;
|
|
48
|
-
uniqueID: number;
|
|
49
|
-
tableHash: number;
|
|
50
|
-
recordID: number;
|
|
51
|
-
dataSize: number;
|
|
52
|
-
recordState: number;
|
|
53
|
-
data: Buffer;
|
|
49
|
+
interface FileInfo {
|
|
50
|
+
cKey: string;
|
|
51
|
+
contentFlags: number;
|
|
52
|
+
localeFlags: number;
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tableEntries: Map<number, HotfixEntry[]>;
|
|
59
|
-
constructor(buffer: Buffer);
|
|
54
|
+
interface RootData {
|
|
55
|
+
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
56
|
+
nameHash2FileDataID: Map<string, number>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
interface ClientPreloadData {
|
|
63
60
|
prefixes: string[];
|
|
64
|
-
archives:
|
|
65
|
-
encoding:
|
|
66
|
-
rootFile:
|
|
61
|
+
archives: Map<string, ArchiveIndex>;
|
|
62
|
+
encoding: EncodingData;
|
|
63
|
+
rootFile: RootData;
|
|
67
64
|
}
|
|
68
65
|
interface FileFetchResultFull {
|
|
69
66
|
type: 'full';
|
|
@@ -91,35 +88,35 @@ declare class CASCClient {
|
|
|
91
88
|
preload?: ClientPreloadData;
|
|
92
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
93
90
|
static LocaleFlags: {
|
|
94
|
-
enUS:
|
|
95
|
-
koKR:
|
|
96
|
-
frFR:
|
|
97
|
-
deDE:
|
|
98
|
-
zhCN:
|
|
99
|
-
esES:
|
|
100
|
-
zhTW:
|
|
101
|
-
enGB:
|
|
102
|
-
esMX:
|
|
103
|
-
ruRU:
|
|
104
|
-
ptBR:
|
|
105
|
-
itIT:
|
|
106
|
-
ptPT:
|
|
91
|
+
readonly enUS: 2;
|
|
92
|
+
readonly koKR: 4;
|
|
93
|
+
readonly frFR: 16;
|
|
94
|
+
readonly deDE: 32;
|
|
95
|
+
readonly zhCN: 64;
|
|
96
|
+
readonly esES: 128;
|
|
97
|
+
readonly zhTW: 256;
|
|
98
|
+
readonly enGB: 512;
|
|
99
|
+
readonly esMX: 4096;
|
|
100
|
+
readonly ruRU: 8192;
|
|
101
|
+
readonly ptBR: 16384;
|
|
102
|
+
readonly itIT: 32768;
|
|
103
|
+
readonly ptPT: 65536;
|
|
107
104
|
};
|
|
108
105
|
static ContentFlags: {
|
|
109
|
-
Install:
|
|
110
|
-
LoadOnWindows:
|
|
111
|
-
LoadOnMacOS:
|
|
112
|
-
x86_32:
|
|
113
|
-
x86_64:
|
|
114
|
-
LowViolence:
|
|
115
|
-
DoNotLoad:
|
|
116
|
-
UpdatePlugin:
|
|
117
|
-
ARM64:
|
|
118
|
-
Encrypted:
|
|
119
|
-
NoNameHash:
|
|
120
|
-
UncommonResolution:
|
|
121
|
-
Bundle:
|
|
122
|
-
NoCompression:
|
|
106
|
+
readonly Install: 4;
|
|
107
|
+
readonly LoadOnWindows: 8;
|
|
108
|
+
readonly LoadOnMacOS: 16;
|
|
109
|
+
readonly x86_32: 32;
|
|
110
|
+
readonly x86_64: 64;
|
|
111
|
+
readonly LowViolence: 128;
|
|
112
|
+
readonly DoNotLoad: 256;
|
|
113
|
+
readonly UpdatePlugin: 2048;
|
|
114
|
+
readonly ARM64: 32768;
|
|
115
|
+
readonly Encrypted: 134217728;
|
|
116
|
+
readonly NoNameHash: 268435456;
|
|
117
|
+
readonly UncommonResolution: 536870912;
|
|
118
|
+
readonly Bundle: 1073741824;
|
|
119
|
+
readonly NoCompression: 2147483648;
|
|
123
120
|
};
|
|
124
121
|
static LogLevel: typeof LogLevel;
|
|
125
122
|
logLevel: LogLevel;
|
|
@@ -247,7 +244,8 @@ interface Column {
|
|
|
247
244
|
size?: number;
|
|
248
245
|
arraySize?: number;
|
|
249
246
|
}
|
|
250
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
251
249
|
declare class DBDParser {
|
|
252
250
|
readonly wdc: WDCReader;
|
|
253
251
|
readonly definitions: Map<string, string>;
|
|
@@ -257,7 +255,7 @@ declare class DBDParser {
|
|
|
257
255
|
private init;
|
|
258
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
259
257
|
getAllIDs(): number[];
|
|
260
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
261
259
|
}
|
|
262
260
|
|
|
263
|
-
export { ADBReader, CASCClient, DBDParser, WDCReader };
|
|
261
|
+
export { ADBReader, type ArchiveIndex, type BasicColumnData, CASCClient, type ClientPreloadData, type Column, type ColumnData, DBDParser, type EncodingData, type FieldStorageInfo, type FieldStorageInfoCompressionBitpacked, type FieldStorageInfoCompressionBitpackedIndexed, type FieldStorageInfoCompressionBitpackedIndexedArray, type FieldStorageInfoCompressionBitpackedSigned, type FieldStorageInfoCompressionCommonData, type FieldStorageInfoCompressionNone, type FieldStructure, type FileFetchResult, type FileFetchResultFull, type FileFetchResultPartial, type FileInfo, type Hotfix, type HotfixDelete, type HotfixEntry, type HotfixModify, type MissingKeyBlock, type ParsedField, type ParsedFieldBitpacked, type ParsedFieldBitpackedArray, type ParsedFieldCommonData, type ParsedFieldNone, type RootData, type SparseRow, type Version, WDCReader };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
+
interface HotfixEntry {
|
|
2
|
+
regionID: number;
|
|
3
|
+
pushID: number;
|
|
4
|
+
uniqueID: number;
|
|
5
|
+
tableHash: number;
|
|
6
|
+
recordID: number;
|
|
7
|
+
dataSize: number;
|
|
8
|
+
recordState: number;
|
|
9
|
+
data: Buffer;
|
|
10
|
+
}
|
|
11
|
+
declare class ADBReader {
|
|
12
|
+
build: number;
|
|
13
|
+
entries: HotfixEntry[];
|
|
14
|
+
tableEntries: Map<number, HotfixEntry[]>;
|
|
15
|
+
constructor(buffer: Buffer);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface MissingKeyBlock {
|
|
19
|
+
offset: number;
|
|
20
|
+
size: number;
|
|
21
|
+
blockIndex: number;
|
|
22
|
+
keyName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
interface ArchiveIndex {
|
|
2
26
|
key: string;
|
|
3
27
|
size: number;
|
|
4
28
|
offset: number;
|
|
5
29
|
}
|
|
6
|
-
declare const parseArchiveIndex: (buffer: Buffer, cKey: string) => Map<string, ArchiveIndex>;
|
|
7
30
|
|
|
8
31
|
interface EncodingData {
|
|
9
32
|
eSpec: string[];
|
|
@@ -12,18 +35,6 @@ interface EncodingData {
|
|
|
12
35
|
eKey2ESpecIndex: Map<string, number>;
|
|
13
36
|
eKey2FileSize: Map<string, number>;
|
|
14
37
|
}
|
|
15
|
-
declare const parseEncodingFile: (inputBuffer: Buffer, eKey: string, cKey: string) => EncodingData;
|
|
16
|
-
|
|
17
|
-
interface FileInfo {
|
|
18
|
-
cKey: string;
|
|
19
|
-
contentFlags: number;
|
|
20
|
-
localeFlags: number;
|
|
21
|
-
}
|
|
22
|
-
interface RootData {
|
|
23
|
-
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
24
|
-
nameHash2FileDataID: Map<string, number>;
|
|
25
|
-
}
|
|
26
|
-
declare const parseRootFile: (inputBuffer: Buffer, eKey: string, cKey: string) => RootData;
|
|
27
38
|
|
|
28
39
|
interface Version {
|
|
29
40
|
Region: string;
|
|
@@ -35,35 +46,21 @@ interface Version {
|
|
|
35
46
|
ProductConfig: string;
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
interface
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
keyName: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface HotfixEntry {
|
|
46
|
-
regionID: number;
|
|
47
|
-
pushID: number;
|
|
48
|
-
uniqueID: number;
|
|
49
|
-
tableHash: number;
|
|
50
|
-
recordID: number;
|
|
51
|
-
dataSize: number;
|
|
52
|
-
recordState: number;
|
|
53
|
-
data: Buffer;
|
|
49
|
+
interface FileInfo {
|
|
50
|
+
cKey: string;
|
|
51
|
+
contentFlags: number;
|
|
52
|
+
localeFlags: number;
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
tableEntries: Map<number, HotfixEntry[]>;
|
|
59
|
-
constructor(buffer: Buffer);
|
|
54
|
+
interface RootData {
|
|
55
|
+
fileDataID2CKey: Map<number, FileInfo[]>;
|
|
56
|
+
nameHash2FileDataID: Map<string, number>;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
interface ClientPreloadData {
|
|
63
60
|
prefixes: string[];
|
|
64
|
-
archives:
|
|
65
|
-
encoding:
|
|
66
|
-
rootFile:
|
|
61
|
+
archives: Map<string, ArchiveIndex>;
|
|
62
|
+
encoding: EncodingData;
|
|
63
|
+
rootFile: RootData;
|
|
67
64
|
}
|
|
68
65
|
interface FileFetchResultFull {
|
|
69
66
|
type: 'full';
|
|
@@ -91,35 +88,35 @@ declare class CASCClient {
|
|
|
91
88
|
preload?: ClientPreloadData;
|
|
92
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
93
90
|
static LocaleFlags: {
|
|
94
|
-
enUS:
|
|
95
|
-
koKR:
|
|
96
|
-
frFR:
|
|
97
|
-
deDE:
|
|
98
|
-
zhCN:
|
|
99
|
-
esES:
|
|
100
|
-
zhTW:
|
|
101
|
-
enGB:
|
|
102
|
-
esMX:
|
|
103
|
-
ruRU:
|
|
104
|
-
ptBR:
|
|
105
|
-
itIT:
|
|
106
|
-
ptPT:
|
|
91
|
+
readonly enUS: 2;
|
|
92
|
+
readonly koKR: 4;
|
|
93
|
+
readonly frFR: 16;
|
|
94
|
+
readonly deDE: 32;
|
|
95
|
+
readonly zhCN: 64;
|
|
96
|
+
readonly esES: 128;
|
|
97
|
+
readonly zhTW: 256;
|
|
98
|
+
readonly enGB: 512;
|
|
99
|
+
readonly esMX: 4096;
|
|
100
|
+
readonly ruRU: 8192;
|
|
101
|
+
readonly ptBR: 16384;
|
|
102
|
+
readonly itIT: 32768;
|
|
103
|
+
readonly ptPT: 65536;
|
|
107
104
|
};
|
|
108
105
|
static ContentFlags: {
|
|
109
|
-
Install:
|
|
110
|
-
LoadOnWindows:
|
|
111
|
-
LoadOnMacOS:
|
|
112
|
-
x86_32:
|
|
113
|
-
x86_64:
|
|
114
|
-
LowViolence:
|
|
115
|
-
DoNotLoad:
|
|
116
|
-
UpdatePlugin:
|
|
117
|
-
ARM64:
|
|
118
|
-
Encrypted:
|
|
119
|
-
NoNameHash:
|
|
120
|
-
UncommonResolution:
|
|
121
|
-
Bundle:
|
|
122
|
-
NoCompression:
|
|
106
|
+
readonly Install: 4;
|
|
107
|
+
readonly LoadOnWindows: 8;
|
|
108
|
+
readonly LoadOnMacOS: 16;
|
|
109
|
+
readonly x86_32: 32;
|
|
110
|
+
readonly x86_64: 64;
|
|
111
|
+
readonly LowViolence: 128;
|
|
112
|
+
readonly DoNotLoad: 256;
|
|
113
|
+
readonly UpdatePlugin: 2048;
|
|
114
|
+
readonly ARM64: 32768;
|
|
115
|
+
readonly Encrypted: 134217728;
|
|
116
|
+
readonly NoNameHash: 268435456;
|
|
117
|
+
readonly UncommonResolution: 536870912;
|
|
118
|
+
readonly Bundle: 1073741824;
|
|
119
|
+
readonly NoCompression: 2147483648;
|
|
123
120
|
};
|
|
124
121
|
static LogLevel: typeof LogLevel;
|
|
125
122
|
logLevel: LogLevel;
|
|
@@ -247,7 +244,8 @@ interface Column {
|
|
|
247
244
|
size?: number;
|
|
248
245
|
arraySize?: number;
|
|
249
246
|
}
|
|
250
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
251
249
|
declare class DBDParser {
|
|
252
250
|
readonly wdc: WDCReader;
|
|
253
251
|
readonly definitions: Map<string, string>;
|
|
@@ -257,7 +255,7 @@ declare class DBDParser {
|
|
|
257
255
|
private init;
|
|
258
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
259
257
|
getAllIDs(): number[];
|
|
260
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
261
259
|
}
|
|
262
260
|
|
|
263
|
-
export { ADBReader, CASCClient, DBDParser, WDCReader };
|
|
261
|
+
export { ADBReader, type ArchiveIndex, type BasicColumnData, CASCClient, type ClientPreloadData, type Column, type ColumnData, DBDParser, type EncodingData, type FieldStorageInfo, type FieldStorageInfoCompressionBitpacked, type FieldStorageInfoCompressionBitpackedIndexed, type FieldStorageInfoCompressionBitpackedIndexedArray, type FieldStorageInfoCompressionBitpackedSigned, type FieldStorageInfoCompressionCommonData, type FieldStorageInfoCompressionNone, type FieldStructure, type FileFetchResult, type FileFetchResultFull, type FileFetchResultPartial, type FileInfo, type Hotfix, type HotfixDelete, type HotfixEntry, type HotfixModify, type MissingKeyBlock, type ParsedField, type ParsedFieldBitpacked, type ParsedFieldBitpackedArray, type ParsedFieldCommonData, type ParsedFieldNone, type RootData, type SparseRow, type Version, WDCReader };
|