@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
|
Binary file
|
|
Binary file
|
|
@@ -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,92 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BannerlordModuleManager = void 0;
|
|
13
|
+
class BannerlordModuleManager {
|
|
14
|
+
/* istanbul ignore next */
|
|
15
|
+
constructor() { }
|
|
16
|
+
static initialize() {
|
|
17
|
+
if (BannerlordModuleManager.addon === undefined) {
|
|
18
|
+
BannerlordModuleManager.addon = require('./../../launchermanager.node');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static sort(unsorted) {
|
|
22
|
+
BannerlordModuleManager.initialize();
|
|
23
|
+
return BannerlordModuleManager.addon.sort(unsorted);
|
|
24
|
+
}
|
|
25
|
+
static sortWithOptions(unsorted, options) {
|
|
26
|
+
BannerlordModuleManager.initialize();
|
|
27
|
+
return BannerlordModuleManager.addon.sortWithOptions(unsorted, options);
|
|
28
|
+
}
|
|
29
|
+
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
30
|
+
BannerlordModuleManager.initialize();
|
|
31
|
+
return BannerlordModuleManager.addon.areAllDependenciesOfModulePresent(unsorted, module);
|
|
32
|
+
}
|
|
33
|
+
static getDependentModulesOf(source, module) {
|
|
34
|
+
BannerlordModuleManager.initialize();
|
|
35
|
+
return BannerlordModuleManager.addon.getDependentModulesOf(source, module);
|
|
36
|
+
}
|
|
37
|
+
static getDependentModulesOfWithOptions(source, module, options) {
|
|
38
|
+
BannerlordModuleManager.initialize();
|
|
39
|
+
return BannerlordModuleManager.addon.getDependentModulesOfWithOptions(source, module, options);
|
|
40
|
+
}
|
|
41
|
+
static validateLoadOrder(source, targetModule) {
|
|
42
|
+
BannerlordModuleManager.initialize();
|
|
43
|
+
return BannerlordModuleManager.addon.validateLoadOrder(source, targetModule);
|
|
44
|
+
}
|
|
45
|
+
static validateModule(modules, targetModule, manager) {
|
|
46
|
+
BannerlordModuleManager.initialize();
|
|
47
|
+
return BannerlordModuleManager.addon.validateModule(modules, targetModule, manager);
|
|
48
|
+
}
|
|
49
|
+
static enableModule(modules, targetModule, manager) {
|
|
50
|
+
BannerlordModuleManager.initialize();
|
|
51
|
+
return BannerlordModuleManager.addon.enableModule(modules, targetModule, manager);
|
|
52
|
+
}
|
|
53
|
+
static disableModule(modules, targetModule, manager) {
|
|
54
|
+
BannerlordModuleManager.initialize();
|
|
55
|
+
return BannerlordModuleManager.addon.disableModule(modules, targetModule, manager);
|
|
56
|
+
}
|
|
57
|
+
static getModuleInfo(xml) {
|
|
58
|
+
BannerlordModuleManager.initialize();
|
|
59
|
+
return BannerlordModuleManager.addon.getModuleInfo(xml);
|
|
60
|
+
}
|
|
61
|
+
static getModuleInfoWithPath(xml, path) {
|
|
62
|
+
BannerlordModuleManager.initialize();
|
|
63
|
+
return BannerlordModuleManager.addon.getModuleInfoWithPath(xml, path);
|
|
64
|
+
}
|
|
65
|
+
static getSubModuleInfo(xml) {
|
|
66
|
+
BannerlordModuleManager.initialize();
|
|
67
|
+
return BannerlordModuleManager.addon.getSubModuleInfo(xml);
|
|
68
|
+
}
|
|
69
|
+
static compareVersions(x, y) {
|
|
70
|
+
BannerlordModuleManager.initialize();
|
|
71
|
+
return BannerlordModuleManager.addon.compareVersions(x, y);
|
|
72
|
+
}
|
|
73
|
+
static getDependenciesAll(module) {
|
|
74
|
+
BannerlordModuleManager.initialize();
|
|
75
|
+
return BannerlordModuleManager.addon.getDependenciesAll(module);
|
|
76
|
+
}
|
|
77
|
+
static getDependenciesToLoadBeforeThis(module) {
|
|
78
|
+
BannerlordModuleManager.initialize();
|
|
79
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadBeforeThis(module);
|
|
80
|
+
}
|
|
81
|
+
static getDependenciesToLoadAfterThis(module) {
|
|
82
|
+
BannerlordModuleManager.initialize();
|
|
83
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadAfterThis(module);
|
|
84
|
+
}
|
|
85
|
+
static getDependenciesIncompatibles(module) {
|
|
86
|
+
BannerlordModuleManager.initialize();
|
|
87
|
+
return BannerlordModuleManager.addon.getDependenciesIncompatibles(module);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.BannerlordModuleManager = BannerlordModuleManager;
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=BannerlordModuleManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerlordModuleManager.js","sourceRoot":"","sources":["../../../src/lib/BannerlordModuleManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,uBAAuB;QAGhC,0BAA0B;QAC1B,gBAAwB,CAAC;QAEjB,MAAM,CAAC,UAAU;YACrB,IAAI,uBAAuB,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC7C,uBAAuB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CA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BAAkB,CAAC,MAAgC;YAC7D,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACpE,CAAC;QACM,MAAM,CAAC,+BAA+B,CAAC,MAAgC;YAC1E,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,+BAA+B,CAAC,MAAM,CAAC,CAAC;QACjF,CAAC;QACM,MAAM,CAAC,8BAA8B,CAAC,MAAgC;YACzE,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;QAChF,CAAC;QACM,MAAM,CAAC,4BAA4B,CAAC,MAAgC;YACvE,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;QAC9E,CAAC;KACJ;IA5FD,0DA4FC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const allocAliveCount: () => number;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.allocAliveCount = void 0;
|
|
13
|
+
const allocAliveCount = () => {
|
|
14
|
+
const addon = require('./../../launchermanager.node');
|
|
15
|
+
return addon.allocAliveCount();
|
|
16
|
+
};
|
|
17
|
+
exports.allocAliveCount = allocAliveCount;
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=Common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../src/lib/Common.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEO,MAAM,eAAe,GAAG,GAAW,EAAE;QAC1C,MAAM,KAAK,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;QACxE,OAAO,KAAK,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAA;IAHY,QAAA,eAAe,mBAG3B"}
|
|
@@ -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,36 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FetchBannerlordVersion = void 0;
|
|
13
|
+
class FetchBannerlordVersion {
|
|
14
|
+
/* istanbul ignore next */
|
|
15
|
+
constructor() { }
|
|
16
|
+
static initialize() {
|
|
17
|
+
if (FetchBannerlordVersion.addon === undefined) {
|
|
18
|
+
FetchBannerlordVersion.addon = require('./../../launchermanager.node');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static getChangeSet(gameFolderPath, libAssembly) {
|
|
22
|
+
FetchBannerlordVersion.initialize();
|
|
23
|
+
return FetchBannerlordVersion.addon.getChangeSet(gameFolderPath, libAssembly);
|
|
24
|
+
}
|
|
25
|
+
static getVersion(gameFolderPath, libAssembly) {
|
|
26
|
+
FetchBannerlordVersion.initialize();
|
|
27
|
+
return FetchBannerlordVersion.addon.getVersion(gameFolderPath, libAssembly);
|
|
28
|
+
}
|
|
29
|
+
static getVersionType(gameFolderPath, libAssembly) {
|
|
30
|
+
FetchBannerlordVersion.initialize();
|
|
31
|
+
return FetchBannerlordVersion.addon.getVersionType(gameFolderPath, libAssembly);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.FetchBannerlordVersion = FetchBannerlordVersion;
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=FetchBannerlordVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchBannerlordVersion.js","sourceRoot":"","sources":["../../../src/lib/FetchBannerlordVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,sBAAsB;QAGjC,0BAA0B;QAC1B,gBAAwB,CAAC;QAEjB,MAAM,CAAC,UAAU;YACvB,IAAI,sBAAsB,CAAC,KAAK,KAAK,SAAS,EAAE;gBAC9C,sBAAsB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;aACxE;QACH,CAAC;QAEM,MAAM,CAAC,YAAY,CAAC,cAAsB,EAAE,WAAmB;YACpE,sBAAsB,CAAC,UAAU,EAAE,CAAC;YACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAChF,CAAC;QAEM,MAAM,CAAC,UAAU,CAAC,cAAsB,EAAE,WAAmB;YAClE,sBAAsB,CAAC,UAAU,EAAE,CAAC;YACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC9E,CAAC;QAEM,MAAM,CAAC,cAAc,CAAC,cAAsB,EAAE,WAAmB;YACtE,sBAAsB,CAAC,UAAU,EAAE,CAAC;YACpC,OAAO,sBAAsB,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAClF,CAAC;KACF;IA1BD,wDA0BC"}
|
|
@@ -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,93 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NativeLauncherManager = void 0;
|
|
13
|
+
class NativeLauncherManager {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.checkForRootHarmony = () => {
|
|
16
|
+
return this.manager.checkForRootHarmony();
|
|
17
|
+
};
|
|
18
|
+
this.getGameVersion = () => {
|
|
19
|
+
return this.manager.getGameVersion();
|
|
20
|
+
};
|
|
21
|
+
this.getModules = () => {
|
|
22
|
+
return this.manager.getModules();
|
|
23
|
+
};
|
|
24
|
+
this.getSaveFilePath = (saveFile) => {
|
|
25
|
+
return this.manager.getSaveFilePath(saveFile);
|
|
26
|
+
};
|
|
27
|
+
this.getSaveFiles = () => {
|
|
28
|
+
return this.manager.getSaveFiles();
|
|
29
|
+
};
|
|
30
|
+
this.getSaveMetadata = (saveFile, data) => {
|
|
31
|
+
return this.manager.getSaveMetadata(saveFile, data);
|
|
32
|
+
};
|
|
33
|
+
this.installModule = (files, destinationPath) => {
|
|
34
|
+
return this.manager.installModule(files, destinationPath);
|
|
35
|
+
};
|
|
36
|
+
this.isSorting = () => {
|
|
37
|
+
return this.manager.isSorting();
|
|
38
|
+
};
|
|
39
|
+
this.loadLocalization = (xml) => {
|
|
40
|
+
return this.manager.loadLocalization(xml);
|
|
41
|
+
};
|
|
42
|
+
this.moduleListHandlerExport = () => {
|
|
43
|
+
return this.manager.moduleListHandlerExport();
|
|
44
|
+
};
|
|
45
|
+
this.moduleListHandlerExportSaveFile = (saveFile) => {
|
|
46
|
+
return this.manager.moduleListHandlerExportSaveFile(saveFile);
|
|
47
|
+
};
|
|
48
|
+
this.moduleListHandlerImport = () => {
|
|
49
|
+
return this.manager.moduleListHandlerImport();
|
|
50
|
+
};
|
|
51
|
+
this.moduleListHandlerImportSaveFile = (saveFile) => {
|
|
52
|
+
return this.manager.moduleListHandlerImportSaveFile(saveFile);
|
|
53
|
+
};
|
|
54
|
+
this.orderByLoadOrder = (loadOrder) => {
|
|
55
|
+
return this.manager.orderByLoadOrder(loadOrder);
|
|
56
|
+
};
|
|
57
|
+
this.refreshModules = () => {
|
|
58
|
+
return this.manager.refreshModules();
|
|
59
|
+
};
|
|
60
|
+
this.refreshGameParameters = () => {
|
|
61
|
+
return this.manager.refreshGameParameters();
|
|
62
|
+
};
|
|
63
|
+
this.registerCallbacks = (setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getModuleViewModels, setModuleViewModels, getOptions, getState) => {
|
|
64
|
+
return this.manager.registerCallbacks(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
65
|
+
};
|
|
66
|
+
this.sort = () => {
|
|
67
|
+
return this.manager.sort();
|
|
68
|
+
};
|
|
69
|
+
this.sortHelperChangeModulePosition = (moduleViewModel, insertIndex) => {
|
|
70
|
+
return this.manager.sortHelperChangeModulePosition(moduleViewModel, insertIndex);
|
|
71
|
+
};
|
|
72
|
+
this.sortHelperToggleModuleSelection = (moduleViewModel) => {
|
|
73
|
+
return this.manager.sortHelperToggleModuleSelection(moduleViewModel);
|
|
74
|
+
};
|
|
75
|
+
this.sortHelperValidateModule = (moduleViewModel) => {
|
|
76
|
+
return this.manager.sortHelperValidateModule(moduleViewModel);
|
|
77
|
+
};
|
|
78
|
+
this.testModule = (files) => {
|
|
79
|
+
return this.manager.testModule(files);
|
|
80
|
+
};
|
|
81
|
+
this.dialogTestWarning = () => {
|
|
82
|
+
return this.manager.dialogTestWarning();
|
|
83
|
+
};
|
|
84
|
+
this.dialogTestFileOpen = () => {
|
|
85
|
+
return this.manager.dialogTestFileOpen();
|
|
86
|
+
};
|
|
87
|
+
const addon = require('./../../launchermanager.node');
|
|
88
|
+
this.manager = new addon.LauncherManager();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.NativeLauncherManager = NativeLauncherManager;
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=LauncherManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAIA,MAAa,qBAAqB;QAGhC;YAIO,wBAAmB,GAAG,GAAS,EAAE;gBACtC,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,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eAAsC,EAAE,WAAmB,EAAW,EAAE;gBAC/G,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;YACnF,CAAC,CAAA;YACM,oCAA+B,GAAG,CAAC,eAAsC,EAAyB,EAAE;gBACzG,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,CAAC,eAAe,CAAC,CAAC;YACvE,CAAC,CAAA;YACM,6BAAwB,GAAG,CAAC,eAAsC,EAAY,EAAE;gBACrF,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC;YAChE,CAAC,CAAA;YACM,eAAU,GAAG,CAAC,KAAe,EAAyB,EAAE;gBAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACxC,CAAC,CAAA;YACM,sBAAiB,GAAG,GAAoB,EAAE;gBAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAC1C,CAAC,CAAA;YACM,uBAAkB,GAAG,GAAoB,EAAE;gBAChD,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;YAC3C,CAAC,CAAA;YAzFC,MAAM,KAAK,GAA2B,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC9E,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;QAC7C,CAAC;KAwFF;IA9FD,sDA8FC"}
|
package/dist/main/lib/index.d.ts
CHANGED
|
@@ -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/main/lib/index.js
CHANGED
|
@@ -21,95 +21,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
__setModuleDefault(result, mod);
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
24
27
|
(function (factory) {
|
|
25
28
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
26
29
|
var v = factory(require, exports);
|
|
27
30
|
if (v !== undefined) module.exports = v;
|
|
28
31
|
}
|
|
29
32
|
else if (typeof define === "function" && define.amd) {
|
|
30
|
-
define(["require", "exports", "./types"], factory);
|
|
33
|
+
define(["require", "exports", "./types", "./Common", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager"], factory);
|
|
31
34
|
}
|
|
32
35
|
})(function (require, exports) {
|
|
33
36
|
"use strict";
|
|
34
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.types =
|
|
38
|
+
exports.types = void 0;
|
|
36
39
|
const types = __importStar(require("./types"));
|
|
37
40
|
exports.types = types;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports.createLauncherManager = createLauncherManager;
|
|
43
|
-
const allocAliveCount = () => {
|
|
44
|
-
return launchermanager.allocAliveCount();
|
|
45
|
-
};
|
|
46
|
-
exports.allocAliveCount = allocAliveCount;
|
|
47
|
-
class BannerlordModuleManager {
|
|
48
|
-
/* istanbul ignore next */
|
|
49
|
-
constructor() { }
|
|
50
|
-
static sort(unsorted) {
|
|
51
|
-
return launchermanager.sort(unsorted);
|
|
52
|
-
}
|
|
53
|
-
static sortWithOptions(unsorted, options) {
|
|
54
|
-
return launchermanager.sortWithOptions(unsorted, options);
|
|
55
|
-
}
|
|
56
|
-
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
57
|
-
return launchermanager.areAllDependenciesOfModulePresent(unsorted, module);
|
|
58
|
-
}
|
|
59
|
-
static getDependentModulesOf(source, module) {
|
|
60
|
-
return launchermanager.getDependentModulesOf(source, module);
|
|
61
|
-
}
|
|
62
|
-
static getDependentModulesOfWithOptions(source, module, options) {
|
|
63
|
-
return launchermanager.getDependentModulesOfWithOptions(source, module, options);
|
|
64
|
-
}
|
|
65
|
-
static validateLoadOrder(source, targetModule) {
|
|
66
|
-
return launchermanager.validateLoadOrder(source, targetModule);
|
|
67
|
-
}
|
|
68
|
-
static validateModule(modules, targetModule, manager) {
|
|
69
|
-
return launchermanager.validateModule(modules, targetModule, manager);
|
|
70
|
-
}
|
|
71
|
-
static enableModule(modules, targetModule, manager) {
|
|
72
|
-
return launchermanager.enableModule(modules, targetModule, manager);
|
|
73
|
-
}
|
|
74
|
-
static disableModule(modules, targetModule, manager) {
|
|
75
|
-
return launchermanager.disableModule(modules, targetModule, manager);
|
|
76
|
-
}
|
|
77
|
-
static getModuleInfo(xml) {
|
|
78
|
-
return launchermanager.getModuleInfo(xml);
|
|
79
|
-
}
|
|
80
|
-
static getSubModuleInfo(xml) {
|
|
81
|
-
return launchermanager.getSubModuleInfo(xml);
|
|
82
|
-
}
|
|
83
|
-
static compareVersions(x, y) {
|
|
84
|
-
return launchermanager.compareVersions(x, y);
|
|
85
|
-
}
|
|
86
|
-
static getDependenciesAll(module) {
|
|
87
|
-
return launchermanager.getDependenciesAll(module);
|
|
88
|
-
}
|
|
89
|
-
static getDependenciesToLoadBeforeThis(module) {
|
|
90
|
-
return launchermanager.getDependenciesToLoadBeforeThis(module);
|
|
91
|
-
}
|
|
92
|
-
static getDependenciesToLoadAfterThis(module) {
|
|
93
|
-
return launchermanager.getDependenciesToLoadAfterThis(module);
|
|
94
|
-
}
|
|
95
|
-
static getDependenciesIncompatibles(module) {
|
|
96
|
-
return launchermanager.getDependenciesIncompatibles(module);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
exports.BannerlordModuleManager = BannerlordModuleManager;
|
|
100
|
-
class FetchBannerlordVersion {
|
|
101
|
-
/* istanbul ignore next */
|
|
102
|
-
constructor() { }
|
|
103
|
-
static getChangeSet(gameFolderPath, libAssembly) {
|
|
104
|
-
return launchermanager.getChangeSet(gameFolderPath, libAssembly);
|
|
105
|
-
}
|
|
106
|
-
static getVersion(gameFolderPath, libAssembly) {
|
|
107
|
-
return launchermanager.getVersion(gameFolderPath, libAssembly);
|
|
108
|
-
}
|
|
109
|
-
static getVersionType(gameFolderPath, libAssembly) {
|
|
110
|
-
return launchermanager.getVersionType(gameFolderPath, libAssembly);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.FetchBannerlordVersion = FetchBannerlordVersion;
|
|
41
|
+
__exportStar(require("./Common"), exports);
|
|
42
|
+
__exportStar(require("./BannerlordModuleManager"), exports);
|
|
43
|
+
__exportStar(require("./FetchBannerlordVersion"), exports);
|
|
44
|
+
__exportStar(require("./LauncherManager"), exports);
|
|
114
45
|
});
|
|
115
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,+CAAiC;IAQ7B,sBAAK;IANT,2CAAyB;IACzB,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC"}
|
|
@@ -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[];
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
exports.ModuleIssueType = exports.LoadType = exports.ApplicationVersionType = void 0;
|
|
13
13
|
var ApplicationVersionType;
|
|
14
14
|
(function (ApplicationVersionType) {
|
|
15
|
-
ApplicationVersionType[
|
|
16
|
-
ApplicationVersionType[
|
|
17
|
-
ApplicationVersionType[
|
|
18
|
-
ApplicationVersionType[
|
|
19
|
-
ApplicationVersionType[
|
|
20
|
-
ApplicationVersionType[
|
|
15
|
+
ApplicationVersionType["Alpha"] = "Alpha";
|
|
16
|
+
ApplicationVersionType["Beta"] = "Beta";
|
|
17
|
+
ApplicationVersionType["EarlyAccess"] = "EarlyAccess";
|
|
18
|
+
ApplicationVersionType["Release"] = "Release";
|
|
19
|
+
ApplicationVersionType["Development"] = "Development";
|
|
20
|
+
ApplicationVersionType["Invalid"] = "Invalid";
|
|
21
21
|
})(ApplicationVersionType = exports.ApplicationVersionType || (exports.ApplicationVersionType = {}));
|
|
22
22
|
var LoadType;
|
|
23
23
|
(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":";;;;;;;;;;;;IAwBA,IAAY,sBAOX;IAPD,WAAY,sBAAsB;QAC9B,yCAAe,CAAA;QACf,uCAAa,CAAA;QACb,qDAA2B,CAAA;QAC3B,6CAAmB,CAAA;QACnB,qDAA2B,CAAA;QAC3B,6CAAmB,CAAA;IACvB,CAAC,EAPW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAOjC;IAqBD,IAAY,QAIX;IAJD,WAAY,QAAQ;QAChB,uCAAI,CAAA;QACJ,yDAAa,CAAA;QACb,2DAAc,CAAA;IAClB,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;IAgBD,IAAY,eAOX;IAPD,WAAY,eAAe;QACvB,mFAAmB,CAAA;QACnB,uGAA6B,CAAA;QAC7B,+FAAyB,CAAA;QACzB,2EAAe,CAAA;QACf,qEAAY,CAAA;QACZ,iFAAkB,CAAA;IACtB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B"}
|