@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
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as types from './types';
|
|
2
|
+
export declare class BannerlordModuleManager {
|
|
3
|
+
private static addon;
|
|
4
|
+
private constructor();
|
|
5
|
+
private static initialize;
|
|
6
|
+
static sort(unsorted: types.ModuleInfoExtended[]): types.ModuleInfoExtended[];
|
|
7
|
+
static sortWithOptions(unsorted: types.ModuleInfoExtended[], options: types.ModuleSorterOptions): types.ModuleInfoExtended[];
|
|
8
|
+
static areAllDependenciesOfModulePresent(unsorted: types.ModuleInfoExtended[], module: types.ModuleInfoExtended): boolean;
|
|
9
|
+
static getDependentModulesOf(source: types.ModuleInfoExtended[], module: types.ModuleInfoExtended): types.ModuleInfoExtended[];
|
|
10
|
+
static getDependentModulesOfWithOptions(source: types.ModuleInfoExtended[], module: types.ModuleInfoExtended, options: types.ModuleSorterOptions): types.ModuleInfoExtended[];
|
|
11
|
+
static validateLoadOrder(source: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended): types.ModuleIssue[];
|
|
12
|
+
static validateModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IValidationManager): types.ModuleIssue[];
|
|
13
|
+
static enableModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IEnableDisableManager): types.ModuleIssue[];
|
|
14
|
+
static disableModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IEnableDisableManager): types.ModuleIssue[];
|
|
15
|
+
static getModuleInfo(xml: string): types.ModuleInfoExtended | undefined;
|
|
16
|
+
static getModuleInfoWithPath(xml: string, path: string): types.ModuleInfoExtendedWithPath | undefined;
|
|
17
|
+
static getSubModuleInfo(xml: string): types.SubModuleInfoExtended | undefined;
|
|
18
|
+
static compareVersions(x: types.ApplicationVersion, y: types.ApplicationVersion): number;
|
|
19
|
+
static getDependenciesAll(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
20
|
+
static getDependenciesToLoadBeforeThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
21
|
+
static getDependenciesToLoadAfterThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
22
|
+
static getDependenciesIncompatibles(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export class BannerlordModuleManager {
|
|
2
|
+
/* istanbul ignore next */
|
|
3
|
+
constructor() { }
|
|
4
|
+
static initialize() {
|
|
5
|
+
if (BannerlordModuleManager.addon === undefined) {
|
|
6
|
+
BannerlordModuleManager.addon = require('./../../launchermanager.node');
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
static sort(unsorted) {
|
|
10
|
+
BannerlordModuleManager.initialize();
|
|
11
|
+
return BannerlordModuleManager.addon.sort(unsorted);
|
|
12
|
+
}
|
|
13
|
+
static sortWithOptions(unsorted, options) {
|
|
14
|
+
BannerlordModuleManager.initialize();
|
|
15
|
+
return BannerlordModuleManager.addon.sortWithOptions(unsorted, options);
|
|
16
|
+
}
|
|
17
|
+
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
18
|
+
BannerlordModuleManager.initialize();
|
|
19
|
+
return BannerlordModuleManager.addon.areAllDependenciesOfModulePresent(unsorted, module);
|
|
20
|
+
}
|
|
21
|
+
static getDependentModulesOf(source, module) {
|
|
22
|
+
BannerlordModuleManager.initialize();
|
|
23
|
+
return BannerlordModuleManager.addon.getDependentModulesOf(source, module);
|
|
24
|
+
}
|
|
25
|
+
static getDependentModulesOfWithOptions(source, module, options) {
|
|
26
|
+
BannerlordModuleManager.initialize();
|
|
27
|
+
return BannerlordModuleManager.addon.getDependentModulesOfWithOptions(source, module, options);
|
|
28
|
+
}
|
|
29
|
+
static validateLoadOrder(source, targetModule) {
|
|
30
|
+
BannerlordModuleManager.initialize();
|
|
31
|
+
return BannerlordModuleManager.addon.validateLoadOrder(source, targetModule);
|
|
32
|
+
}
|
|
33
|
+
static validateModule(modules, targetModule, manager) {
|
|
34
|
+
BannerlordModuleManager.initialize();
|
|
35
|
+
return BannerlordModuleManager.addon.validateModule(modules, targetModule, manager);
|
|
36
|
+
}
|
|
37
|
+
static enableModule(modules, targetModule, manager) {
|
|
38
|
+
BannerlordModuleManager.initialize();
|
|
39
|
+
return BannerlordModuleManager.addon.enableModule(modules, targetModule, manager);
|
|
40
|
+
}
|
|
41
|
+
static disableModule(modules, targetModule, manager) {
|
|
42
|
+
BannerlordModuleManager.initialize();
|
|
43
|
+
return BannerlordModuleManager.addon.disableModule(modules, targetModule, manager);
|
|
44
|
+
}
|
|
45
|
+
static getModuleInfo(xml) {
|
|
46
|
+
BannerlordModuleManager.initialize();
|
|
47
|
+
return BannerlordModuleManager.addon.getModuleInfo(xml);
|
|
48
|
+
}
|
|
49
|
+
static getModuleInfoWithPath(xml, path) {
|
|
50
|
+
BannerlordModuleManager.initialize();
|
|
51
|
+
return BannerlordModuleManager.addon.getModuleInfoWithPath(xml, path);
|
|
52
|
+
}
|
|
53
|
+
static getSubModuleInfo(xml) {
|
|
54
|
+
BannerlordModuleManager.initialize();
|
|
55
|
+
return BannerlordModuleManager.addon.getSubModuleInfo(xml);
|
|
56
|
+
}
|
|
57
|
+
static compareVersions(x, y) {
|
|
58
|
+
BannerlordModuleManager.initialize();
|
|
59
|
+
return BannerlordModuleManager.addon.compareVersions(x, y);
|
|
60
|
+
}
|
|
61
|
+
static getDependenciesAll(module) {
|
|
62
|
+
BannerlordModuleManager.initialize();
|
|
63
|
+
return BannerlordModuleManager.addon.getDependenciesAll(module);
|
|
64
|
+
}
|
|
65
|
+
static getDependenciesToLoadBeforeThis(module) {
|
|
66
|
+
BannerlordModuleManager.initialize();
|
|
67
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadBeforeThis(module);
|
|
68
|
+
}
|
|
69
|
+
static getDependenciesToLoadAfterThis(module) {
|
|
70
|
+
BannerlordModuleManager.initialize();
|
|
71
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadAfterThis(module);
|
|
72
|
+
}
|
|
73
|
+
static getDependenciesIncompatibles(module) {
|
|
74
|
+
BannerlordModuleManager.initialize();
|
|
75
|
+
return BannerlordModuleManager.addon.getDependenciesIncompatibles(module);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=BannerlordModuleManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerlordModuleManager.js","sourceRoot":"","sources":["../../../src/lib/BannerlordModuleManager.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,uBAAuB;IAGhC,0BAA0B;IAC1B,gBAAwB,CAAC;IAEjB,MAAM,CAAC,UAAU;QACrB,IAAI,uBAAuB,CAAC,KAAK,KAAK,SAAS,EAAE;YAC7C,uBAAuB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;SAC3E;IACL,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,QAAoC;QACnD,uBAAuB,CAAC,UAAU,EAAE,CAAC;QACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,QAAoC,EAAE,OAAkC;QAClG,uBAAuB,CAAC,UAAU,EAAE,CAAC;QACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEM,MAAM,CAAC,iCAAiC,CAAC,QAAoC,EAAE,MAAgC;QAClH,uBAAuB,CAAC,UAAU,EAAE,CAAC;QACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC7F,CAAC;IAEM,MAAM,CAAC,qBAAqB,CAAC,MAAkC,EAAE,MAAgC;QACpG,uBAAuB,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CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const allocAliveCount: () => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../src/lib/Common.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,GAAW,EAAE;IAC1C,MAAM,KAAK,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACxE,OAAO,KAAK,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class FetchBannerlordVersion {
|
|
2
|
+
private static addon;
|
|
3
|
+
private constructor();
|
|
4
|
+
private static initialize;
|
|
5
|
+
static getChangeSet(gameFolderPath: string, libAssembly: string): number;
|
|
6
|
+
static getVersion(gameFolderPath: string, libAssembly: string): string;
|
|
7
|
+
static getVersionType(gameFolderPath: string, libAssembly: string): number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class FetchBannerlordVersion {
|
|
2
|
+
/* istanbul ignore next */
|
|
3
|
+
constructor() { }
|
|
4
|
+
static initialize() {
|
|
5
|
+
if (FetchBannerlordVersion.addon === undefined) {
|
|
6
|
+
FetchBannerlordVersion.addon = require('./../../launchermanager.node');
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
static getChangeSet(gameFolderPath, libAssembly) {
|
|
10
|
+
FetchBannerlordVersion.initialize();
|
|
11
|
+
return FetchBannerlordVersion.addon.getChangeSet(gameFolderPath, libAssembly);
|
|
12
|
+
}
|
|
13
|
+
static getVersion(gameFolderPath, libAssembly) {
|
|
14
|
+
FetchBannerlordVersion.initialize();
|
|
15
|
+
return FetchBannerlordVersion.addon.getVersion(gameFolderPath, libAssembly);
|
|
16
|
+
}
|
|
17
|
+
static getVersionType(gameFolderPath, libAssembly) {
|
|
18
|
+
FetchBannerlordVersion.initialize();
|
|
19
|
+
return FetchBannerlordVersion.addon.getVersionType(gameFolderPath, libAssembly);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=FetchBannerlordVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchBannerlordVersion.js","sourceRoot":"","sources":["../../../src/lib/FetchBannerlordVersion.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,sBAAsB;IAGjC,0BAA0B;IAC1B,gBAAwB,CAAC;IAEjB,MAAM,CAAC,UAAU;QACvB,IAAI,sBAAsB,CAAC,KAAK,KAAK,SAAS,EAAE;YAC9C,sBAAsB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;SACxE;IACH,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,cAAsB,EAAE,WAAmB;QACpE,sBAAsB,CAAC,UAAU,EAAE,CAAC;QACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAChF,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,cAAsB,EAAE,WAAmB;QAClE,sBAAsB,CAAC,UAAU,EAAE,CAAC;QACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAC9E,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,cAAsB,EAAE,WAAmB;QACtE,sBAAsB,CAAC,UAAU,EAAE,CAAC;QACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as types from './types';
|
|
2
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
3
|
+
type LauncherManagerWithoutConstructor = Omit<types.LauncherManager, "constructor">;
|
|
4
|
+
export declare class NativeLauncherManager implements LauncherManagerWithoutConstructor {
|
|
5
|
+
private manager;
|
|
6
|
+
constructor();
|
|
7
|
+
checkForRootHarmony: () => void;
|
|
8
|
+
getGameVersion: () => string;
|
|
9
|
+
getModules: () => types.ModuleInfoExtendedWithPath[];
|
|
10
|
+
getSaveFilePath: (saveFile: string) => string;
|
|
11
|
+
getSaveFiles: () => types.SaveMetadata[];
|
|
12
|
+
getSaveMetadata: (saveFile: string, data: ArrayBuffer) => types.SaveMetadata;
|
|
13
|
+
installModule: (files: string[], destinationPath: string) => types.InstallResult;
|
|
14
|
+
isSorting: () => boolean;
|
|
15
|
+
loadLocalization: (xml: string) => void;
|
|
16
|
+
moduleListHandlerExport: () => void;
|
|
17
|
+
moduleListHandlerExportSaveFile: (saveFile: string) => void;
|
|
18
|
+
moduleListHandlerImport: () => Promise<boolean>;
|
|
19
|
+
moduleListHandlerImportSaveFile: (saveFile: string) => Promise<boolean>;
|
|
20
|
+
orderByLoadOrder: (loadOrder: types.LoadOrder) => types.OrderByLoadOrderResult;
|
|
21
|
+
refreshModules: () => void;
|
|
22
|
+
refreshGameParameters: () => void;
|
|
23
|
+
registerCallbacks: (setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => types.LoadOrder, setLoadOrder: (loadOrder: types.LoadOrder) => void, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, sendDialog: (type: types.DialogType, title: string, message: string, filters: types.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: () => types.ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: types.ModuleViewModel[]) => void, getOptions: () => types.LauncherOptions, getState: () => types.LauncherState) => void;
|
|
24
|
+
sort: () => void;
|
|
25
|
+
sortHelperChangeModulePosition: (moduleViewModel: types.ModuleViewModel, insertIndex: number) => boolean;
|
|
26
|
+
sortHelperToggleModuleSelection: (moduleViewModel: types.ModuleViewModel) => types.ModuleViewModel;
|
|
27
|
+
sortHelperValidateModule: (moduleViewModel: types.ModuleViewModel) => string[];
|
|
28
|
+
testModule: (files: string[]) => types.SupportedResult;
|
|
29
|
+
dialogTestWarning: () => Promise<string>;
|
|
30
|
+
dialogTestFileOpen: () => Promise<string>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export class NativeLauncherManager {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.checkForRootHarmony = () => {
|
|
4
|
+
return this.manager.checkForRootHarmony();
|
|
5
|
+
};
|
|
6
|
+
this.getGameVersion = () => {
|
|
7
|
+
return this.manager.getGameVersion();
|
|
8
|
+
};
|
|
9
|
+
this.getModules = () => {
|
|
10
|
+
return this.manager.getModules();
|
|
11
|
+
};
|
|
12
|
+
this.getSaveFilePath = (saveFile) => {
|
|
13
|
+
return this.manager.getSaveFilePath(saveFile);
|
|
14
|
+
};
|
|
15
|
+
this.getSaveFiles = () => {
|
|
16
|
+
return this.manager.getSaveFiles();
|
|
17
|
+
};
|
|
18
|
+
this.getSaveMetadata = (saveFile, data) => {
|
|
19
|
+
return this.manager.getSaveMetadata(saveFile, data);
|
|
20
|
+
};
|
|
21
|
+
this.installModule = (files, destinationPath) => {
|
|
22
|
+
return this.manager.installModule(files, destinationPath);
|
|
23
|
+
};
|
|
24
|
+
this.isSorting = () => {
|
|
25
|
+
return this.manager.isSorting();
|
|
26
|
+
};
|
|
27
|
+
this.loadLocalization = (xml) => {
|
|
28
|
+
return this.manager.loadLocalization(xml);
|
|
29
|
+
};
|
|
30
|
+
this.moduleListHandlerExport = () => {
|
|
31
|
+
return this.manager.moduleListHandlerExport();
|
|
32
|
+
};
|
|
33
|
+
this.moduleListHandlerExportSaveFile = (saveFile) => {
|
|
34
|
+
return this.manager.moduleListHandlerExportSaveFile(saveFile);
|
|
35
|
+
};
|
|
36
|
+
this.moduleListHandlerImport = () => {
|
|
37
|
+
return this.manager.moduleListHandlerImport();
|
|
38
|
+
};
|
|
39
|
+
this.moduleListHandlerImportSaveFile = (saveFile) => {
|
|
40
|
+
return this.manager.moduleListHandlerImportSaveFile(saveFile);
|
|
41
|
+
};
|
|
42
|
+
this.orderByLoadOrder = (loadOrder) => {
|
|
43
|
+
return this.manager.orderByLoadOrder(loadOrder);
|
|
44
|
+
};
|
|
45
|
+
this.refreshModules = () => {
|
|
46
|
+
return this.manager.refreshModules();
|
|
47
|
+
};
|
|
48
|
+
this.refreshGameParameters = () => {
|
|
49
|
+
return this.manager.refreshGameParameters();
|
|
50
|
+
};
|
|
51
|
+
this.registerCallbacks = (setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getModuleViewModels, setModuleViewModels, getOptions, getState) => {
|
|
52
|
+
return this.manager.registerCallbacks(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
53
|
+
};
|
|
54
|
+
this.sort = () => {
|
|
55
|
+
return this.manager.sort();
|
|
56
|
+
};
|
|
57
|
+
this.sortHelperChangeModulePosition = (moduleViewModel, insertIndex) => {
|
|
58
|
+
return this.manager.sortHelperChangeModulePosition(moduleViewModel, insertIndex);
|
|
59
|
+
};
|
|
60
|
+
this.sortHelperToggleModuleSelection = (moduleViewModel) => {
|
|
61
|
+
return this.manager.sortHelperToggleModuleSelection(moduleViewModel);
|
|
62
|
+
};
|
|
63
|
+
this.sortHelperValidateModule = (moduleViewModel) => {
|
|
64
|
+
return this.manager.sortHelperValidateModule(moduleViewModel);
|
|
65
|
+
};
|
|
66
|
+
this.testModule = (files) => {
|
|
67
|
+
return this.manager.testModule(files);
|
|
68
|
+
};
|
|
69
|
+
this.dialogTestWarning = () => {
|
|
70
|
+
return this.manager.dialogTestWarning();
|
|
71
|
+
};
|
|
72
|
+
this.dialogTestFileOpen = () => {
|
|
73
|
+
return this.manager.dialogTestFileOpen();
|
|
74
|
+
};
|
|
75
|
+
const addon = require('./../../launchermanager.node');
|
|
76
|
+
this.manager = new addon.LauncherManager();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=LauncherManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,qBAAqB;IAGhC;QAIO,wBAAmB,GAAG,GAAS,EAAE;YACtC,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;QAC5C,CAAC,CAAA;QACM,mBAAc,GAAG,GAAW,EAAE;YACnC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QACvC,CAAC,CAAA;QACM,eAAU,GAAG,GAAuC,EAAE;YAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC,CAAA;QACM,oBAAe,GAAG,CAAC,QAAgB,EAAU,EAAE;YACpD,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC,CAAA;QACM,iBAAY,GAAG,GAAyB,EAAE;YAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QACrC,CAAC,CAAA;QACM,oBAAe,GAAG,CAAC,QAAgB,EAAE,IAAiB,EAAsB,EAAE;YACnF,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAA;QACM,kBAAa,GAAG,CAAC,KAAe,EAAE,eAAuB,EAAuB,EAAE;YACvF,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;QAC5D,CAAC,CAAA;QACM,cAAS,GAAG,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I,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;IAC7C,CAAC;CAwFF"}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
1
|
import * as types from './types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
static sort(unsorted: types.ModuleInfoExtended[]): types.ModuleInfoExtended[];
|
|
7
|
-
static sortWithOptions(unsorted: types.ModuleInfoExtended[], options: types.ModuleSorterOptions): types.ModuleInfoExtended[];
|
|
8
|
-
static areAllDependenciesOfModulePresent(unsorted: types.ModuleInfoExtended[], module: types.ModuleInfoExtended): boolean;
|
|
9
|
-
static getDependentModulesOf(source: types.ModuleInfoExtended[], module: types.ModuleInfoExtended): types.ModuleInfoExtended[];
|
|
10
|
-
static getDependentModulesOfWithOptions(source: types.ModuleInfoExtended[], module: types.ModuleInfoExtended, options: types.ModuleSorterOptions): types.ModuleInfoExtended[];
|
|
11
|
-
static validateLoadOrder(source: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended): types.ModuleIssue[];
|
|
12
|
-
static validateModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IValidationManager): types.ModuleIssue[];
|
|
13
|
-
static enableModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IEnableDisableManager): types.ModuleIssue[];
|
|
14
|
-
static disableModule(modules: types.ModuleInfoExtended[], targetModule: types.ModuleInfoExtended, manager: types.IEnableDisableManager): types.ModuleIssue[];
|
|
15
|
-
static getModuleInfo(xml: string): types.ModuleInfoExtended | undefined;
|
|
16
|
-
static getSubModuleInfo(xml: string): types.SubModuleInfoExtended | undefined;
|
|
17
|
-
static compareVersions(x: types.ApplicationVersion, y: types.ApplicationVersion): number;
|
|
18
|
-
static getDependenciesAll(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
19
|
-
static getDependenciesToLoadBeforeThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
20
|
-
static getDependenciesToLoadAfterThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
21
|
-
static getDependenciesIncompatibles(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
22
|
-
}
|
|
23
|
-
export declare class FetchBannerlordVersion {
|
|
24
|
-
private constructor();
|
|
25
|
-
static getChangeSet(gameFolderPath: string, libAssembly: string): number;
|
|
26
|
-
static getVersion(gameFolderPath: string, libAssembly: string): string;
|
|
27
|
-
static getVersionType(gameFolderPath: string, libAssembly: string): number;
|
|
28
|
-
}
|
|
2
|
+
export * from './Common';
|
|
3
|
+
export * from './BannerlordModuleManager';
|
|
4
|
+
export * from './FetchBannerlordVersion';
|
|
5
|
+
export * from './LauncherManager';
|
|
29
6
|
export { types };
|
package/dist/module/lib/index.js
CHANGED
|
@@ -1,75 +1,7 @@
|
|
|
1
1
|
import * as types from './types';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const allocAliveCount = () => {
|
|
7
|
-
return launchermanager.allocAliveCount();
|
|
8
|
-
};
|
|
9
|
-
export class BannerlordModuleManager {
|
|
10
|
-
/* istanbul ignore next */
|
|
11
|
-
constructor() { }
|
|
12
|
-
static sort(unsorted) {
|
|
13
|
-
return launchermanager.sort(unsorted);
|
|
14
|
-
}
|
|
15
|
-
static sortWithOptions(unsorted, options) {
|
|
16
|
-
return launchermanager.sortWithOptions(unsorted, options);
|
|
17
|
-
}
|
|
18
|
-
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
19
|
-
return launchermanager.areAllDependenciesOfModulePresent(unsorted, module);
|
|
20
|
-
}
|
|
21
|
-
static getDependentModulesOf(source, module) {
|
|
22
|
-
return launchermanager.getDependentModulesOf(source, module);
|
|
23
|
-
}
|
|
24
|
-
static getDependentModulesOfWithOptions(source, module, options) {
|
|
25
|
-
return launchermanager.getDependentModulesOfWithOptions(source, module, options);
|
|
26
|
-
}
|
|
27
|
-
static validateLoadOrder(source, targetModule) {
|
|
28
|
-
return launchermanager.validateLoadOrder(source, targetModule);
|
|
29
|
-
}
|
|
30
|
-
static validateModule(modules, targetModule, manager) {
|
|
31
|
-
return launchermanager.validateModule(modules, targetModule, manager);
|
|
32
|
-
}
|
|
33
|
-
static enableModule(modules, targetModule, manager) {
|
|
34
|
-
return launchermanager.enableModule(modules, targetModule, manager);
|
|
35
|
-
}
|
|
36
|
-
static disableModule(modules, targetModule, manager) {
|
|
37
|
-
return launchermanager.disableModule(modules, targetModule, manager);
|
|
38
|
-
}
|
|
39
|
-
static getModuleInfo(xml) {
|
|
40
|
-
return launchermanager.getModuleInfo(xml);
|
|
41
|
-
}
|
|
42
|
-
static getSubModuleInfo(xml) {
|
|
43
|
-
return launchermanager.getSubModuleInfo(xml);
|
|
44
|
-
}
|
|
45
|
-
static compareVersions(x, y) {
|
|
46
|
-
return launchermanager.compareVersions(x, y);
|
|
47
|
-
}
|
|
48
|
-
static getDependenciesAll(module) {
|
|
49
|
-
return launchermanager.getDependenciesAll(module);
|
|
50
|
-
}
|
|
51
|
-
static getDependenciesToLoadBeforeThis(module) {
|
|
52
|
-
return launchermanager.getDependenciesToLoadBeforeThis(module);
|
|
53
|
-
}
|
|
54
|
-
static getDependenciesToLoadAfterThis(module) {
|
|
55
|
-
return launchermanager.getDependenciesToLoadAfterThis(module);
|
|
56
|
-
}
|
|
57
|
-
static getDependenciesIncompatibles(module) {
|
|
58
|
-
return launchermanager.getDependenciesIncompatibles(module);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
export class FetchBannerlordVersion {
|
|
62
|
-
/* istanbul ignore next */
|
|
63
|
-
constructor() { }
|
|
64
|
-
static getChangeSet(gameFolderPath, libAssembly) {
|
|
65
|
-
return launchermanager.getChangeSet(gameFolderPath, libAssembly);
|
|
66
|
-
}
|
|
67
|
-
static getVersion(gameFolderPath, libAssembly) {
|
|
68
|
-
return launchermanager.getVersion(gameFolderPath, libAssembly);
|
|
69
|
-
}
|
|
70
|
-
static getVersionType(gameFolderPath, libAssembly) {
|
|
71
|
-
return launchermanager.getVersionType(gameFolderPath, libAssembly);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
2
|
+
export * from './Common';
|
|
3
|
+
export * from './BannerlordModuleManager';
|
|
4
|
+
export * from './FetchBannerlordVersion';
|
|
5
|
+
export * from './LauncherManager';
|
|
74
6
|
export { types };
|
|
75
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACH,KAAK,EACR,CAAA"}
|
|
@@ -12,6 +12,9 @@ export interface ModuleInfoExtended {
|
|
|
12
12
|
url: string;
|
|
13
13
|
dependentModuleMetadatas: Array<DependentModuleMetadata>;
|
|
14
14
|
}
|
|
15
|
+
export interface ModuleInfoExtendedWithPath extends ModuleInfoExtended {
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
15
18
|
export interface ApplicationVersion {
|
|
16
19
|
applicationVersionType: ApplicationVersionType;
|
|
17
20
|
major: number;
|
|
@@ -20,12 +23,12 @@ export interface ApplicationVersion {
|
|
|
20
23
|
changeSet: number;
|
|
21
24
|
}
|
|
22
25
|
export declare enum ApplicationVersionType {
|
|
23
|
-
Alpha =
|
|
24
|
-
Beta =
|
|
25
|
-
EarlyAccess =
|
|
26
|
-
Release =
|
|
27
|
-
Development =
|
|
28
|
-
Invalid =
|
|
26
|
+
Alpha = "Alpha",
|
|
27
|
+
Beta = "Beta",
|
|
28
|
+
EarlyAccess = "EarlyAccess",
|
|
29
|
+
Release = "Release",
|
|
30
|
+
Development = "Development",
|
|
31
|
+
Invalid = "Invalid"
|
|
29
32
|
}
|
|
30
33
|
export interface SubModuleInfoExtended {
|
|
31
34
|
name: string;
|
|
@@ -95,6 +98,7 @@ export interface IBannerlordModuleManager {
|
|
|
95
98
|
enableModule(modules: Array<ModuleInfoExtended>, targetModule: ModuleInfoExtended, manager: IEnableDisableManager): Array<ModuleIssue>;
|
|
96
99
|
disableModule(modules: Array<ModuleInfoExtended>, targetModule: ModuleInfoExtended, manager: IEnableDisableManager): Array<ModuleIssue>;
|
|
97
100
|
getModuleInfo(xml: string): ModuleInfoExtended | undefined;
|
|
101
|
+
getModuleInfoWithPath(xml: string, path: string): ModuleInfoExtendedWithPath | undefined;
|
|
98
102
|
getSubModuleInfo(xml: string): SubModuleInfoExtended | undefined;
|
|
99
103
|
compareVersions(x: ApplicationVersion, y: ApplicationVersion): number;
|
|
100
104
|
getDependenciesAll(module: ModuleInfoExtended): DependentModuleMetadata[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export var ApplicationVersionType;
|
|
2
2
|
(function (ApplicationVersionType) {
|
|
3
|
-
ApplicationVersionType[
|
|
4
|
-
ApplicationVersionType[
|
|
5
|
-
ApplicationVersionType[
|
|
6
|
-
ApplicationVersionType[
|
|
7
|
-
ApplicationVersionType[
|
|
8
|
-
ApplicationVersionType[
|
|
3
|
+
ApplicationVersionType["Alpha"] = "Alpha";
|
|
4
|
+
ApplicationVersionType["Beta"] = "Beta";
|
|
5
|
+
ApplicationVersionType["EarlyAccess"] = "EarlyAccess";
|
|
6
|
+
ApplicationVersionType["Release"] = "Release";
|
|
7
|
+
ApplicationVersionType["Development"] = "Development";
|
|
8
|
+
ApplicationVersionType["Invalid"] = "Invalid";
|
|
9
9
|
})(ApplicationVersionType || (ApplicationVersionType = {}));
|
|
10
10
|
export var LoadType;
|
|
11
11
|
(function (LoadType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerlordModuleManager.js","sourceRoot":"","sources":["../../../../src/lib/types/BannerlordModuleManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BannerlordModuleManager.js","sourceRoot":"","sources":["../../../../src/lib/types/BannerlordModuleManager.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAN,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAC9B,yCAAe,CAAA;IACf,uCAAa,CAAA;IACb,qDAA2B,CAAA;IAC3B,6CAAmB,CAAA;IACnB,qDAA2B,CAAA;IAC3B,6CAAmB,CAAA;AACvB,CAAC,EAPW,sBAAsB,KAAtB,sBAAsB,QAOjC;AAqBD,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAChB,uCAAI,CAAA;IACJ,yDAAa,CAAA;IACb,2DAAc,CAAA;AAClB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAgBD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,mFAAmB,CAAA;IACnB,uGAA6B,CAAA;IAC7B,+FAAyB,CAAA;IACzB,2EAAe,CAAA;IACf,qEAAY,CAAA;IACZ,iFAAkB,CAAA;AACtB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B"}
|