@butr/vortexextensionnative 1.0.27 → 1.0.34
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/dist/Bannerlord.LauncherManager.Native.dll +0 -0
- package/dist/launchermanager.node +0 -0
- package/dist/main/lib/BannerlordModuleManager.d.ts +23 -0
- package/dist/main/lib/BannerlordModuleManager.js +92 -0
- package/dist/main/lib/BannerlordModuleManager.js.map +1 -0
- package/dist/main/lib/Common.d.ts +1 -0
- package/dist/main/lib/Common.js +19 -0
- package/dist/main/lib/Common.js.map +1 -0
- package/dist/main/lib/FetchBannerlordVersion.d.ts +8 -0
- package/dist/main/lib/FetchBannerlordVersion.js +36 -0
- package/dist/main/lib/FetchBannerlordVersion.js.map +1 -0
- package/dist/main/lib/LauncherManager.d.ts +32 -0
- package/dist/main/lib/LauncherManager.js +93 -0
- package/dist/main/lib/LauncherManager.js.map +1 -0
- package/dist/main/lib/index.d.ts +4 -27
- package/dist/main/lib/index.js +9 -78
- package/dist/main/lib/index.js.map +1 -1
- package/dist/main/lib/types/BannerlordModuleManager.d.ts +10 -6
- package/dist/main/lib/types/BannerlordModuleManager.js +6 -6
- package/dist/main/lib/types/BannerlordModuleManager.js.map +1 -1
- package/dist/main/lib/types/LauncherManager.d.ts +77 -20
- package/dist/main/lib/types/index.d.ts +2 -2
- package/dist/module/lib/BannerlordModuleManager.d.ts +23 -0
- package/dist/module/lib/BannerlordModuleManager.js +78 -0
- package/dist/module/lib/BannerlordModuleManager.js.map +1 -0
- package/dist/module/lib/Common.d.ts +1 -0
- package/dist/module/lib/Common.js +5 -0
- package/dist/module/lib/Common.js.map +1 -0
- package/dist/module/lib/FetchBannerlordVersion.d.ts +8 -0
- package/dist/module/lib/FetchBannerlordVersion.js +22 -0
- package/dist/module/lib/FetchBannerlordVersion.js.map +1 -0
- package/dist/module/lib/LauncherManager.d.ts +32 -0
- package/dist/module/lib/LauncherManager.js +79 -0
- package/dist/module/lib/LauncherManager.js.map +1 -0
- package/dist/module/lib/index.d.ts +4 -27
- package/dist/module/lib/index.js +4 -72
- package/dist/module/lib/index.js.map +1 -1
- package/dist/module/lib/types/BannerlordModuleManager.d.ts +10 -6
- package/dist/module/lib/types/BannerlordModuleManager.js +6 -6
- package/dist/module/lib/types/BannerlordModuleManager.js.map +1 -1
- package/dist/module/lib/types/LauncherManager.d.ts +77 -20
- package/dist/module/lib/types/index.d.ts +2 -2
- package/package.json +3 -5
|
@@ -1,29 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface IVortexExtension {
|
|
1
|
+
import { ModuleInfoExtendedWithPath } from "./BannerlordModuleManager";
|
|
2
|
+
export interface INativeExtension {
|
|
4
3
|
LauncherManager: new () => LauncherManager;
|
|
5
4
|
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
locked?: boolean;
|
|
12
|
-
external?: boolean;
|
|
5
|
+
export interface LoadOrderEntry {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
index: number;
|
|
13
10
|
}
|
|
14
|
-
export interface
|
|
15
|
-
[
|
|
11
|
+
export interface LoadOrder {
|
|
12
|
+
[id: string]: LoadOrderEntry;
|
|
13
|
+
}
|
|
14
|
+
export interface ModuleViewModel {
|
|
15
|
+
moduleInfoExtended: ModuleInfoExtendedWithPath;
|
|
16
|
+
isValid: boolean;
|
|
17
|
+
isSelected: boolean;
|
|
18
|
+
isDisabled: boolean;
|
|
19
|
+
index: number;
|
|
20
|
+
}
|
|
21
|
+
export interface LauncherOptions {
|
|
22
|
+
language: string;
|
|
23
|
+
unblockFiles: boolean;
|
|
24
|
+
fixCommonIssues: boolean;
|
|
25
|
+
betaSorting: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface LauncherState {
|
|
28
|
+
isSingleplayer: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface SaveMetadata {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
Name: string;
|
|
33
|
+
}
|
|
34
|
+
export type NotificationType = 'hint' | 'info';
|
|
35
|
+
export type DialogType = 'warning' | 'fileOpen' | 'fileSave';
|
|
36
|
+
export type InstructionType = 'Copy' | 'Attribute';
|
|
37
|
+
export interface InstallInstruction {
|
|
38
|
+
type: InstructionType;
|
|
39
|
+
source?: string;
|
|
40
|
+
destination?: string;
|
|
41
|
+
key?: string;
|
|
42
|
+
value?: any;
|
|
43
|
+
}
|
|
44
|
+
export interface InstallResult {
|
|
45
|
+
instructions: InstallInstruction[];
|
|
46
|
+
}
|
|
47
|
+
export interface SupportedResult {
|
|
48
|
+
supported: boolean;
|
|
49
|
+
requiredFiles: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface OrderByLoadOrderResult {
|
|
52
|
+
result: boolean;
|
|
53
|
+
issues?: string[];
|
|
54
|
+
orderedModuleViewModels?: ModuleViewModel[];
|
|
55
|
+
}
|
|
56
|
+
export interface FileFilter {
|
|
57
|
+
name: string;
|
|
58
|
+
extensions: string[];
|
|
16
59
|
}
|
|
17
60
|
export type LauncherManager = {
|
|
18
61
|
constructor(): LauncherManager;
|
|
19
|
-
|
|
62
|
+
checkForRootHarmony(): void;
|
|
20
63
|
getGameVersion(): string;
|
|
21
|
-
|
|
22
|
-
|
|
64
|
+
getModules(): ModuleInfoExtendedWithPath[];
|
|
65
|
+
getSaveFilePath(saveFile: string): string;
|
|
66
|
+
getSaveFiles(): SaveMetadata[];
|
|
67
|
+
getSaveMetadata(saveFile: string, data: ArrayBuffer): SaveMetadata;
|
|
68
|
+
installModule(files: string[], destinationPath: string): InstallResult;
|
|
23
69
|
isSorting(): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
70
|
+
loadLocalization(xml: string): void;
|
|
71
|
+
moduleListHandlerExport(): void;
|
|
72
|
+
moduleListHandlerExportSaveFile(saveFile: string): void;
|
|
73
|
+
moduleListHandlerImport(): Promise<boolean>;
|
|
74
|
+
moduleListHandlerImportSaveFile(saveFile: string): Promise<boolean>;
|
|
75
|
+
orderByLoadOrder(loadOrder: LoadOrder): OrderByLoadOrderResult;
|
|
76
|
+
refreshModules(): void;
|
|
77
|
+
refreshGameParameters(): void;
|
|
78
|
+
registerCallbacks(setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => LoadOrder, setLoadOrder: (loadOrder: LoadOrder) => void, sendNotification: (id: string, type: NotificationType, message: string, delayMS: number) => void, sendDialog: (type: DialogType, title: string, message: string, filters: FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getModuleViewModels: () => ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: ModuleViewModel[]) => void, getOptions: () => LauncherOptions, getState: () => LauncherState): void;
|
|
79
|
+
sort(): void;
|
|
80
|
+
sortHelperChangeModulePosition(moduleViewModel: ModuleViewModel, insertIndex: number): boolean;
|
|
81
|
+
sortHelperToggleModuleSelection(moduleViewModel: ModuleViewModel): ModuleViewModel;
|
|
82
|
+
sortHelperValidateModule(moduleViewModel: ModuleViewModel): string[];
|
|
83
|
+
testModule(files: string[]): SupportedResult;
|
|
84
|
+
dialogTestWarning(): Promise<string>;
|
|
85
|
+
dialogTestFileOpen(): Promise<string>;
|
|
29
86
|
};
|
|
@@ -3,7 +3,7 @@ export * from './FetchBannerlordVersion';
|
|
|
3
3
|
export * from './LauncherManager';
|
|
4
4
|
import { IBannerlordModuleManager } from './BannerlordModuleManager';
|
|
5
5
|
import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
|
|
6
|
-
import {
|
|
7
|
-
export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion,
|
|
6
|
+
import { INativeExtension } from './LauncherManager';
|
|
7
|
+
export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, INativeExtension {
|
|
8
8
|
allocAliveCount(): number;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@butr/vortexextensionnative",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "Package of native bindings bundled with TS declarations",
|
|
5
5
|
"main": "dist/main/lib/index.js",
|
|
6
6
|
"typings": "dist/main/lib/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test-no-build": "pwsh ./commands.ps1 test-no-build",
|
|
35
35
|
"watch:build": "tsc -p tsconfig.json -w",
|
|
36
36
|
"watch:test": "nyc --silent ava --watch",
|
|
37
|
-
"cov": "run-s build test
|
|
37
|
+
"cov": "run-s build test-no-build cov:html cov:lcov && open-cli coverage/index.html",
|
|
38
38
|
"cov:html": "nyc report --reporter=html",
|
|
39
39
|
"cov:lcov": "nyc report --reporter=lcov",
|
|
40
40
|
"cov:send": "run-s cov:lcov && codecov",
|
|
@@ -72,9 +72,7 @@
|
|
|
72
72
|
"dist/module/index.*",
|
|
73
73
|
"dist/module/lib",
|
|
74
74
|
"dist/Bannerlord.LauncherManager.Native.dll",
|
|
75
|
-
"dist/
|
|
76
|
-
"dist/steam_api64.dll",
|
|
77
|
-
"dist/steam_appid.txt",
|
|
75
|
+
"dist/launchermanager.node",
|
|
78
76
|
"CHANGELOG.md",
|
|
79
77
|
"LICENSE",
|
|
80
78
|
"README.md"
|