@rhyster/wow-casc-dbc 2.5.0 → 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 +777 -729
- package/dist/index.d.cts +66 -67
- package/dist/index.d.mts +66 -67
- package/dist/index.d.ts +66 -67
- package/dist/index.mjs +804 -756
- 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,39 +46,26 @@ 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';
|
|
70
67
|
buffer: Buffer;
|
|
68
|
+
blocks: undefined;
|
|
71
69
|
}
|
|
72
70
|
interface FileFetchResultPartial {
|
|
73
71
|
type: 'partial';
|
|
@@ -90,35 +88,35 @@ declare class CASCClient {
|
|
|
90
88
|
preload?: ClientPreloadData;
|
|
91
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
92
90
|
static LocaleFlags: {
|
|
93
|
-
enUS:
|
|
94
|
-
koKR:
|
|
95
|
-
frFR:
|
|
96
|
-
deDE:
|
|
97
|
-
zhCN:
|
|
98
|
-
esES:
|
|
99
|
-
zhTW:
|
|
100
|
-
enGB:
|
|
101
|
-
esMX:
|
|
102
|
-
ruRU:
|
|
103
|
-
ptBR:
|
|
104
|
-
itIT:
|
|
105
|
-
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;
|
|
106
104
|
};
|
|
107
105
|
static ContentFlags: {
|
|
108
|
-
Install:
|
|
109
|
-
LoadOnWindows:
|
|
110
|
-
LoadOnMacOS:
|
|
111
|
-
x86_32:
|
|
112
|
-
x86_64:
|
|
113
|
-
LowViolence:
|
|
114
|
-
DoNotLoad:
|
|
115
|
-
UpdatePlugin:
|
|
116
|
-
ARM64:
|
|
117
|
-
Encrypted:
|
|
118
|
-
NoNameHash:
|
|
119
|
-
UncommonResolution:
|
|
120
|
-
Bundle:
|
|
121
|
-
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;
|
|
122
120
|
};
|
|
123
121
|
static LogLevel: typeof LogLevel;
|
|
124
122
|
logLevel: LogLevel;
|
|
@@ -246,7 +244,8 @@ interface Column {
|
|
|
246
244
|
size?: number;
|
|
247
245
|
arraySize?: number;
|
|
248
246
|
}
|
|
249
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
250
249
|
declare class DBDParser {
|
|
251
250
|
readonly wdc: WDCReader;
|
|
252
251
|
readonly definitions: Map<string, string>;
|
|
@@ -256,7 +255,7 @@ declare class DBDParser {
|
|
|
256
255
|
private init;
|
|
257
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
258
257
|
getAllIDs(): number[];
|
|
259
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
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,39 +46,26 @@ 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';
|
|
70
67
|
buffer: Buffer;
|
|
68
|
+
blocks: undefined;
|
|
71
69
|
}
|
|
72
70
|
interface FileFetchResultPartial {
|
|
73
71
|
type: 'partial';
|
|
@@ -90,35 +88,35 @@ declare class CASCClient {
|
|
|
90
88
|
preload?: ClientPreloadData;
|
|
91
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
92
90
|
static LocaleFlags: {
|
|
93
|
-
enUS:
|
|
94
|
-
koKR:
|
|
95
|
-
frFR:
|
|
96
|
-
deDE:
|
|
97
|
-
zhCN:
|
|
98
|
-
esES:
|
|
99
|
-
zhTW:
|
|
100
|
-
enGB:
|
|
101
|
-
esMX:
|
|
102
|
-
ruRU:
|
|
103
|
-
ptBR:
|
|
104
|
-
itIT:
|
|
105
|
-
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;
|
|
106
104
|
};
|
|
107
105
|
static ContentFlags: {
|
|
108
|
-
Install:
|
|
109
|
-
LoadOnWindows:
|
|
110
|
-
LoadOnMacOS:
|
|
111
|
-
x86_32:
|
|
112
|
-
x86_64:
|
|
113
|
-
LowViolence:
|
|
114
|
-
DoNotLoad:
|
|
115
|
-
UpdatePlugin:
|
|
116
|
-
ARM64:
|
|
117
|
-
Encrypted:
|
|
118
|
-
NoNameHash:
|
|
119
|
-
UncommonResolution:
|
|
120
|
-
Bundle:
|
|
121
|
-
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;
|
|
122
120
|
};
|
|
123
121
|
static LogLevel: typeof LogLevel;
|
|
124
122
|
logLevel: LogLevel;
|
|
@@ -246,7 +244,8 @@ interface Column {
|
|
|
246
244
|
size?: number;
|
|
247
245
|
arraySize?: number;
|
|
248
246
|
}
|
|
249
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
250
249
|
declare class DBDParser {
|
|
251
250
|
readonly wdc: WDCReader;
|
|
252
251
|
readonly definitions: Map<string, string>;
|
|
@@ -256,7 +255,7 @@ declare class DBDParser {
|
|
|
256
255
|
private init;
|
|
257
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
258
257
|
getAllIDs(): number[];
|
|
259
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
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,39 +46,26 @@ 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';
|
|
70
67
|
buffer: Buffer;
|
|
68
|
+
blocks: undefined;
|
|
71
69
|
}
|
|
72
70
|
interface FileFetchResultPartial {
|
|
73
71
|
type: 'partial';
|
|
@@ -90,35 +88,35 @@ declare class CASCClient {
|
|
|
90
88
|
preload?: ClientPreloadData;
|
|
91
89
|
static getProductVersion(region: string, product: string): Promise<Version | undefined>;
|
|
92
90
|
static LocaleFlags: {
|
|
93
|
-
enUS:
|
|
94
|
-
koKR:
|
|
95
|
-
frFR:
|
|
96
|
-
deDE:
|
|
97
|
-
zhCN:
|
|
98
|
-
esES:
|
|
99
|
-
zhTW:
|
|
100
|
-
enGB:
|
|
101
|
-
esMX:
|
|
102
|
-
ruRU:
|
|
103
|
-
ptBR:
|
|
104
|
-
itIT:
|
|
105
|
-
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;
|
|
106
104
|
};
|
|
107
105
|
static ContentFlags: {
|
|
108
|
-
Install:
|
|
109
|
-
LoadOnWindows:
|
|
110
|
-
LoadOnMacOS:
|
|
111
|
-
x86_32:
|
|
112
|
-
x86_64:
|
|
113
|
-
LowViolence:
|
|
114
|
-
DoNotLoad:
|
|
115
|
-
UpdatePlugin:
|
|
116
|
-
ARM64:
|
|
117
|
-
Encrypted:
|
|
118
|
-
NoNameHash:
|
|
119
|
-
UncommonResolution:
|
|
120
|
-
Bundle:
|
|
121
|
-
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;
|
|
122
120
|
};
|
|
123
121
|
static LogLevel: typeof LogLevel;
|
|
124
122
|
logLevel: LogLevel;
|
|
@@ -246,7 +244,8 @@ interface Column {
|
|
|
246
244
|
size?: number;
|
|
247
245
|
arraySize?: number;
|
|
248
246
|
}
|
|
249
|
-
type
|
|
247
|
+
type BasicColumnData = number | bigint | string | undefined;
|
|
248
|
+
type ColumnData = BasicColumnData | BasicColumnData[];
|
|
250
249
|
declare class DBDParser {
|
|
251
250
|
readonly wdc: WDCReader;
|
|
252
251
|
readonly definitions: Map<string, string>;
|
|
@@ -256,7 +255,7 @@ declare class DBDParser {
|
|
|
256
255
|
private init;
|
|
257
256
|
static parse(wdc: WDCReader): Promise<DBDParser>;
|
|
258
257
|
getAllIDs(): number[];
|
|
259
|
-
getRowData(id: number): Record<string, ColumnData
|
|
258
|
+
getRowData(id: number): Record<string, ColumnData> | undefined;
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
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 };
|