@butr/vortexextensionnative 1.0.138 → 2.0.158
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 +25 -25
- package/dist/main/lib/BannerlordModuleManager.js +99 -99
- package/dist/main/lib/BannerlordModuleManager.js.map +1 -1
- package/dist/main/lib/Common.d.ts +3 -1
- package/dist/main/lib/Common.js +28 -18
- package/dist/main/lib/Common.js.map +1 -1
- package/dist/main/lib/FetchBannerlordVersion.d.ts +8 -8
- package/dist/main/lib/FetchBannerlordVersion.js +35 -35
- package/dist/main/lib/FetchBannerlordVersion.js.map +1 -1
- package/dist/main/lib/LauncherManager.d.ts +37 -37
- package/dist/main/lib/LauncherManager.js +107 -107
- package/dist/main/lib/LauncherManager.js.map +1 -1
- package/dist/main/lib/Utils.d.ts +14 -14
- package/dist/main/lib/Utils.js +47 -47
- package/dist/main/lib/Utils.js.map +1 -1
- package/dist/main/lib/index.d.ts +7 -7
- package/dist/main/lib/index.js +56 -46
- package/dist/main/lib/index.js.map +1 -1
- package/dist/main/lib/types/BannerlordModuleManager.d.ts +118 -118
- package/dist/main/lib/types/BannerlordModuleManager.js +42 -42
- package/dist/main/lib/types/BannerlordModuleManager.js.map +1 -1
- package/dist/main/lib/types/FetchBannerlordVersion.d.ts +5 -5
- package/dist/main/lib/types/FetchBannerlordVersion.js +12 -12
- package/dist/main/lib/types/LauncherManager.d.ts +91 -91
- package/dist/main/lib/types/LauncherManager.js +12 -12
- package/dist/main/lib/types/Utils.d.ts +11 -11
- package/dist/main/lib/types/Utils.js +12 -12
- package/dist/main/lib/types/index.d.ts +13 -11
- package/dist/main/lib/types/index.js +30 -30
- package/dist/module/lib/BannerlordModuleManager.d.ts +25 -25
- package/dist/module/lib/BannerlordModuleManager.js +85 -85
- package/dist/module/lib/BannerlordModuleManager.js.map +1 -1
- package/dist/module/lib/Common.d.ts +3 -1
- package/dist/module/lib/Common.js +12 -4
- package/dist/module/lib/Common.js.map +1 -1
- package/dist/module/lib/FetchBannerlordVersion.d.ts +8 -8
- package/dist/module/lib/FetchBannerlordVersion.js +21 -21
- package/dist/module/lib/FetchBannerlordVersion.js.map +1 -1
- package/dist/module/lib/LauncherManager.d.ts +37 -37
- package/dist/module/lib/LauncherManager.js +93 -93
- package/dist/module/lib/LauncherManager.js.map +1 -1
- package/dist/module/lib/Utils.d.ts +14 -14
- package/dist/module/lib/Utils.js +33 -33
- package/dist/module/lib/Utils.js.map +1 -1
- package/dist/module/lib/index.d.ts +7 -7
- package/dist/module/lib/index.js +7 -7
- package/dist/module/lib/types/BannerlordModuleManager.d.ts +118 -118
- package/dist/module/lib/types/BannerlordModuleManager.js +29 -29
- package/dist/module/lib/types/FetchBannerlordVersion.d.ts +5 -5
- package/dist/module/lib/types/FetchBannerlordVersion.js +1 -1
- package/dist/module/lib/types/LauncherManager.d.ts +91 -91
- package/dist/module/lib/types/LauncherManager.js +1 -1
- package/dist/module/lib/types/Utils.d.ts +11 -11
- package/dist/module/lib/types/Utils.js +1 -1
- package/dist/module/lib/types/index.d.ts +13 -11
- package/dist/module/lib/types/index.js +4 -4
- package/package.json +5 -11
|
@@ -1,108 +1,108 @@
|
|
|
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.
|
|
16
|
-
return this.manager.
|
|
17
|
-
};
|
|
18
|
-
this.
|
|
19
|
-
return this.manager.
|
|
20
|
-
};
|
|
21
|
-
this.
|
|
22
|
-
return this.manager.
|
|
23
|
-
};
|
|
24
|
-
this.
|
|
25
|
-
return this.manager.
|
|
26
|
-
};
|
|
27
|
-
this.
|
|
28
|
-
return this.manager.
|
|
29
|
-
};
|
|
30
|
-
this.
|
|
31
|
-
return this.manager.
|
|
32
|
-
};
|
|
33
|
-
this.
|
|
34
|
-
return this.manager.
|
|
35
|
-
};
|
|
36
|
-
this.
|
|
37
|
-
return this.manager.
|
|
38
|
-
};
|
|
39
|
-
this.installModule = (files, moduleInfos) => {
|
|
40
|
-
return this.manager.installModule(files, moduleInfos);
|
|
41
|
-
};
|
|
42
|
-
this.isSorting = () => {
|
|
43
|
-
return this.manager.isSorting();
|
|
44
|
-
};
|
|
45
|
-
this.
|
|
46
|
-
return this.manager.
|
|
47
|
-
};
|
|
48
|
-
this.
|
|
49
|
-
return this.manager.
|
|
50
|
-
};
|
|
51
|
-
this.
|
|
52
|
-
return this.manager.
|
|
53
|
-
};
|
|
54
|
-
this.
|
|
55
|
-
return this.manager.
|
|
56
|
-
};
|
|
57
|
-
this.
|
|
58
|
-
return this.manager.
|
|
59
|
-
};
|
|
60
|
-
this.
|
|
61
|
-
return this.manager.
|
|
62
|
-
};
|
|
63
|
-
this.
|
|
64
|
-
return this.manager.
|
|
65
|
-
};
|
|
66
|
-
this.
|
|
67
|
-
return this.manager.
|
|
68
|
-
};
|
|
69
|
-
this.
|
|
70
|
-
return this.manager.
|
|
71
|
-
};
|
|
72
|
-
this.
|
|
73
|
-
return this.manager.
|
|
74
|
-
};
|
|
75
|
-
this.
|
|
76
|
-
return this.manager.
|
|
77
|
-
};
|
|
78
|
-
this.testModule = (files) => {
|
|
79
|
-
return this.manager.testModule(files);
|
|
80
|
-
};
|
|
81
|
-
this.
|
|
82
|
-
return this.manager.
|
|
83
|
-
};
|
|
84
|
-
this.
|
|
85
|
-
return this.manager.
|
|
86
|
-
};
|
|
87
|
-
this.
|
|
88
|
-
return this.manager.
|
|
89
|
-
};
|
|
90
|
-
const addon = require('./../../launchermanager.node');
|
|
91
|
-
this.manager = new addon.LauncherManager(
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return this.manager.
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return this.manager.
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return this.manager.
|
|
101
|
-
}
|
|
102
|
-
setGameStore(gameStore) {
|
|
103
|
-
return this.manager.setGameStore(gameStore);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
exports.NativeLauncherManager = NativeLauncherManager;
|
|
107
|
-
});
|
|
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(setGameParametersAsync, sendNotificationAsync, sendDialogAsync, getInstallPathAsync, readFileContentAsync, writeFileContentAsync, readDirectoryFileListAsync, readDirectoryListAsync, getAllModuleViewModelsAsync, getModuleViewModelsAsync, setModuleViewModelsAsync, getOptionsAsync, getStateAsync) {
|
|
15
|
+
this.checkForRootHarmonyAsync = () => {
|
|
16
|
+
return this.manager.checkForRootHarmonyAsync();
|
|
17
|
+
};
|
|
18
|
+
this.getGamePlatformAsync = () => {
|
|
19
|
+
return this.manager.getGamePlatformAsync();
|
|
20
|
+
};
|
|
21
|
+
this.getGameVersionAsync = () => {
|
|
22
|
+
return this.manager.getGameVersionAsync();
|
|
23
|
+
};
|
|
24
|
+
this.getModulesAsync = () => {
|
|
25
|
+
return this.manager.getModulesAsync();
|
|
26
|
+
};
|
|
27
|
+
this.getAllModulesAsync = () => {
|
|
28
|
+
return this.manager.getAllModulesAsync();
|
|
29
|
+
};
|
|
30
|
+
this.getSaveFilePathAsync = (saveFile) => {
|
|
31
|
+
return this.manager.getSaveFilePathAsync(saveFile);
|
|
32
|
+
};
|
|
33
|
+
this.getSaveFilesAsync = () => {
|
|
34
|
+
return this.manager.getSaveFilesAsync();
|
|
35
|
+
};
|
|
36
|
+
this.getSaveMetadataAsync = (saveFile, data) => {
|
|
37
|
+
return this.manager.getSaveMetadataAsync(saveFile, data);
|
|
38
|
+
};
|
|
39
|
+
this.installModule = (files, moduleInfos) => {
|
|
40
|
+
return this.manager.installModule(files, moduleInfos);
|
|
41
|
+
};
|
|
42
|
+
this.isSorting = () => {
|
|
43
|
+
return this.manager.isSorting();
|
|
44
|
+
};
|
|
45
|
+
this.moduleListHandlerExportAsync = () => {
|
|
46
|
+
return this.manager.moduleListHandlerExportAsync();
|
|
47
|
+
};
|
|
48
|
+
this.moduleListHandlerExportSaveFileAsync = (saveFile) => {
|
|
49
|
+
return this.manager.moduleListHandlerExportSaveFileAsync(saveFile);
|
|
50
|
+
};
|
|
51
|
+
this.moduleListHandlerImportAsync = () => {
|
|
52
|
+
return this.manager.moduleListHandlerImportAsync();
|
|
53
|
+
};
|
|
54
|
+
this.moduleListHandlerImportSaveFileAsync = (saveFile) => {
|
|
55
|
+
return this.manager.moduleListHandlerImportSaveFileAsync(saveFile);
|
|
56
|
+
};
|
|
57
|
+
this.orderByLoadOrderAsync = (loadOrder) => {
|
|
58
|
+
return this.manager.orderByLoadOrderAsync(loadOrder);
|
|
59
|
+
};
|
|
60
|
+
this.refreshModulesAsync = () => {
|
|
61
|
+
return this.manager.refreshModulesAsync();
|
|
62
|
+
};
|
|
63
|
+
this.refreshGameParametersAsync = () => {
|
|
64
|
+
return this.manager.refreshGameParametersAsync();
|
|
65
|
+
};
|
|
66
|
+
this.sortAsync = () => {
|
|
67
|
+
return this.manager.sortAsync();
|
|
68
|
+
};
|
|
69
|
+
this.sortHelperChangeModulePositionAsync = (moduleViewModel, insertIndex) => {
|
|
70
|
+
return this.manager.sortHelperChangeModulePositionAsync(moduleViewModel, insertIndex);
|
|
71
|
+
};
|
|
72
|
+
this.sortHelperToggleModuleSelectionAsync = (moduleViewModel) => {
|
|
73
|
+
return this.manager.sortHelperToggleModuleSelectionAsync(moduleViewModel);
|
|
74
|
+
};
|
|
75
|
+
this.sortHelperValidateModuleAsync = (moduleViewModel) => {
|
|
76
|
+
return this.manager.sortHelperValidateModuleAsync(moduleViewModel);
|
|
77
|
+
};
|
|
78
|
+
this.testModule = (files) => {
|
|
79
|
+
return this.manager.testModule(files);
|
|
80
|
+
};
|
|
81
|
+
this.dialogTestWarningAsync = () => {
|
|
82
|
+
return this.manager.dialogTestWarningAsync();
|
|
83
|
+
};
|
|
84
|
+
this.dialogTestFileOpenAsync = () => {
|
|
85
|
+
return this.manager.dialogTestFileOpenAsync();
|
|
86
|
+
};
|
|
87
|
+
this.setGameParameterLoadOrderAsync = (loadOrder) => {
|
|
88
|
+
return this.manager.setGameParameterLoadOrderAsync(loadOrder);
|
|
89
|
+
};
|
|
90
|
+
const addon = require('./../../launchermanager.node');
|
|
91
|
+
this.manager = new addon.LauncherManager(setGameParametersAsync, sendNotificationAsync, sendDialogAsync, getInstallPathAsync, readFileContentAsync, writeFileContentAsync, readDirectoryFileListAsync, readDirectoryListAsync, getAllModuleViewModelsAsync, getModuleViewModelsAsync, setModuleViewModelsAsync, getOptionsAsync, getStateAsync);
|
|
92
|
+
}
|
|
93
|
+
setGameParameterExecutableAsync(executable) {
|
|
94
|
+
return this.manager.setGameParameterExecutableAsync(executable);
|
|
95
|
+
}
|
|
96
|
+
setGameParameterSaveFileAsync(saveName) {
|
|
97
|
+
return this.manager.setGameParameterSaveFileAsync(saveName);
|
|
98
|
+
}
|
|
99
|
+
setGameParameterContinueLastSaveFileAsync(value) {
|
|
100
|
+
return this.manager.setGameParameterContinueLastSaveFileAsync(value);
|
|
101
|
+
}
|
|
102
|
+
setGameStore(gameStore) {
|
|
103
|
+
return this.manager.setGameStore(gameStore);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.NativeLauncherManager = NativeLauncherManager;
|
|
107
|
+
});
|
|
108
108
|
//# sourceMappingURL=LauncherManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAIA,MAAa,qBAAqB;QAGhC,YACE,
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAIA,MAAa,qBAAqB;QAGhC,YACE,sBAAuF,EACvF,qBAAoH,EACpH,eAAyH,EACzH,mBAA0C,EAC1C,oBAAsG,EACtG,qBAA4E,EAC5E,0BAA+E,EAC/E,sBAA2E,EAC3E,2BAA0E,EAC1E,wBAAuE,EACvE,wBAAsF,EACtF,eAAqD,EACrD,aAAiD;YAmB5C,6BAAwB,GAAG,GAAkB,EAAE;gBACpD,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,CAAC;YACjD,CAAC,CAAA;YACM,yBAAoB,GAAG,GAAgC,EAAE;gBAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;YAC7C,CAAC,CAAA;YACM,wBAAmB,GAAG,GAAoB,EAAE;gBACjD,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC;YAC5C,CAAC,CAAA;YACM,oBAAe,GAAG,GAAoD,EAAE;gBAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YACxC,CAAC,CAAA;YACM,uBAAkB,GAAG,GAAoD,EAAE;gBAChF,OAAO,IAAI,CAAC,OAAO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AAiB,EAAE;gBACpF,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;YAChE,CAAC,CAAA;YAvGC,MAAM,KAAK,GAA2B,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC9E,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,eAAe,CACtC,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,aAAa,CACd,CAAC;QACJ,CAAC;QAoDM,+BAA+B,CAAC,UAAkB;YACvD,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAClE,CAAC;QACM,6BAA6B,CAAC,QAAgB;YACnD,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QAC9D,CAAC;QACM,yCAAyC,CAAC,KAAc;YAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,yCAAyC,CAAC,KAAK,CAAC,CAAC;QACvE,CAAC;QACM,YAAY,CAAC,SAA0B;YAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;KAyBF;IA1HD,sDA0HC"}
|
package/dist/main/lib/Utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as types from './types';
|
|
2
|
-
export declare class Utils {
|
|
3
|
-
private static addon;
|
|
4
|
-
private constructor();
|
|
5
|
-
private static initialize;
|
|
6
|
-
static isLoadOrderCorrect(modules: Array<types.ModuleInfoExtended>): Array<string>;
|
|
7
|
-
static getDependencyHint(module: types.ModuleInfoExtended): string;
|
|
8
|
-
static renderModuleIssue(moduleIssue: types.ModuleIssue): string;
|
|
9
|
-
static loadLocalization: (xml: string) => void;
|
|
10
|
-
static setLanguage: (language: string) => void;
|
|
11
|
-
static localizeString: (template: string, values: {
|
|
12
|
-
[value: string]: string;
|
|
13
|
-
}) => string;
|
|
14
|
-
}
|
|
1
|
+
import * as types from './types';
|
|
2
|
+
export declare class Utils {
|
|
3
|
+
private static addon;
|
|
4
|
+
private constructor();
|
|
5
|
+
private static initialize;
|
|
6
|
+
static isLoadOrderCorrect(modules: Array<types.ModuleInfoExtended>): Array<string>;
|
|
7
|
+
static getDependencyHint(module: types.ModuleInfoExtended): string;
|
|
8
|
+
static renderModuleIssue(moduleIssue: types.ModuleIssue): string;
|
|
9
|
+
static loadLocalization: (xml: string) => void;
|
|
10
|
+
static setLanguage: (language: string) => void;
|
|
11
|
+
static localizeString: (template: string, values: {
|
|
12
|
+
[value: string]: string;
|
|
13
|
+
}) => string;
|
|
14
|
+
}
|
package/dist/main/lib/Utils.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
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.Utils = void 0;
|
|
13
|
-
class Utils {
|
|
14
|
-
/* istanbul ignore next */
|
|
15
|
-
constructor() { }
|
|
16
|
-
static initialize() {
|
|
17
|
-
if (Utils.addon === undefined) {
|
|
18
|
-
Utils.addon = require('./../../launchermanager.node');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
static isLoadOrderCorrect(modules) {
|
|
22
|
-
Utils.initialize();
|
|
23
|
-
return Utils.addon.isLoadOrderCorrect(modules);
|
|
24
|
-
}
|
|
25
|
-
static getDependencyHint(module) {
|
|
26
|
-
Utils.initialize();
|
|
27
|
-
return Utils.addon.getDependencyHint(module);
|
|
28
|
-
}
|
|
29
|
-
static renderModuleIssue(moduleIssue) {
|
|
30
|
-
Utils.initialize();
|
|
31
|
-
return Utils.addon.renderModuleIssue(moduleIssue);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.Utils = Utils;
|
|
35
|
-
Utils.loadLocalization = (xml) => {
|
|
36
|
-
Utils.initialize();
|
|
37
|
-
return Utils.addon.loadLocalization(xml);
|
|
38
|
-
};
|
|
39
|
-
Utils.setLanguage = (language) => {
|
|
40
|
-
Utils.initialize();
|
|
41
|
-
return Utils.addon.setLanguage(language);
|
|
42
|
-
};
|
|
43
|
-
Utils.localizeString = (template, values) => {
|
|
44
|
-
Utils.initialize();
|
|
45
|
-
return Utils.addon.localizeString(template, values);
|
|
46
|
-
};
|
|
47
|
-
});
|
|
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.Utils = void 0;
|
|
13
|
+
class Utils {
|
|
14
|
+
/* istanbul ignore next */
|
|
15
|
+
constructor() { }
|
|
16
|
+
static initialize() {
|
|
17
|
+
if (Utils.addon === undefined) {
|
|
18
|
+
Utils.addon = require('./../../launchermanager.node');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static isLoadOrderCorrect(modules) {
|
|
22
|
+
Utils.initialize();
|
|
23
|
+
return Utils.addon.isLoadOrderCorrect(modules);
|
|
24
|
+
}
|
|
25
|
+
static getDependencyHint(module) {
|
|
26
|
+
Utils.initialize();
|
|
27
|
+
return Utils.addon.getDependencyHint(module);
|
|
28
|
+
}
|
|
29
|
+
static renderModuleIssue(moduleIssue) {
|
|
30
|
+
Utils.initialize();
|
|
31
|
+
return Utils.addon.renderModuleIssue(moduleIssue);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Utils = Utils;
|
|
35
|
+
Utils.loadLocalization = (xml) => {
|
|
36
|
+
Utils.initialize();
|
|
37
|
+
return Utils.addon.loadLocalization(xml);
|
|
38
|
+
};
|
|
39
|
+
Utils.setLanguage = (language) => {
|
|
40
|
+
Utils.initialize();
|
|
41
|
+
return Utils.addon.setLanguage(language);
|
|
42
|
+
};
|
|
43
|
+
Utils.localizeString = (template, values) => {
|
|
44
|
+
Utils.initialize();
|
|
45
|
+
return Utils.addon.localizeString(template, values);
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
48
|
//# sourceMappingURL=Utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/lib/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,KAAK;QAGhB,0BAA0B;QAC1B,gBAAwB,CAAC;QAEjB,MAAM,CAAC,UAAU;YACvB,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/lib/Utils.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,KAAK;QAGhB,0BAA0B;QAC1B,gBAAwB,CAAC;QAEjB,MAAM,CAAC,UAAU;YACvB,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC9B,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;QAEM,MAAM,CAAC,kBAAkB,CAAC,OAAwC;YACvE,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;QAEM,MAAM,CAAC,iBAAiB,CAAC,MAAgC;YAC9D,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAEM,MAAM,CAAC,iBAAiB,CAAC,WAA8B;YAC5D,KAAK,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QACpD,CAAC;;IAzBH,sBAuCC;IAZe,sBAAgB,GAAG,CAAC,GAAW,EAAQ,EAAE;QACrD,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAA;IACa,iBAAW,GAAG,CAAC,QAAgB,EAAQ,EAAE;QACrD,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAA;IACa,oBAAc,GAAG,CAAC,QAAgB,EAAE,MAAmC,EAAU,EAAE;QAC/F,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC,CAAA"}
|
package/dist/main/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as types from './types';
|
|
2
|
-
export * from './Common';
|
|
3
|
-
export * from './BannerlordModuleManager';
|
|
4
|
-
export * from './FetchBannerlordVersion';
|
|
5
|
-
export * from './LauncherManager';
|
|
6
|
-
export * from './Utils';
|
|
7
|
-
export { types };
|
|
1
|
+
import * as types from './types';
|
|
2
|
+
export * from './Common';
|
|
3
|
+
export * from './BannerlordModuleManager';
|
|
4
|
+
export * from './FetchBannerlordVersion';
|
|
5
|
+
export * from './LauncherManager';
|
|
6
|
+
export * from './Utils';
|
|
7
|
+
export { types };
|
package/dist/main/lib/index.js
CHANGED
|
@@ -1,47 +1,57 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
exports
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
+
}) : function(o, v) {
|
|
15
|
+
o["default"] = v;
|
|
16
|
+
});
|
|
17
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
18
|
+
var ownKeys = function(o) {
|
|
19
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
20
|
+
var ar = [];
|
|
21
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
22
|
+
return ar;
|
|
23
|
+
};
|
|
24
|
+
return ownKeys(o);
|
|
25
|
+
};
|
|
26
|
+
return function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
34
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
35
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
36
|
+
};
|
|
37
|
+
(function (factory) {
|
|
38
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
39
|
+
var v = factory(require, exports);
|
|
40
|
+
if (v !== undefined) module.exports = v;
|
|
41
|
+
}
|
|
42
|
+
else if (typeof define === "function" && define.amd) {
|
|
43
|
+
define(["require", "exports", "./types", "./Common", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager", "./Utils"], factory);
|
|
44
|
+
}
|
|
45
|
+
})(function (require, exports) {
|
|
46
|
+
"use strict";
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.types = void 0;
|
|
49
|
+
const types = __importStar(require("./types"));
|
|
50
|
+
exports.types = types;
|
|
51
|
+
__exportStar(require("./Common"), exports);
|
|
52
|
+
__exportStar(require("./BannerlordModuleManager"), exports);
|
|
53
|
+
__exportStar(require("./FetchBannerlordVersion"), exports);
|
|
54
|
+
__exportStar(require("./LauncherManager"), exports);
|
|
55
|
+
__exportStar(require("./Utils"), exports);
|
|
56
|
+
});
|
|
47
57
|
//# 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;IAS7B,sBAAK;IAPT,2CAAyB;IACzB,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC;IAClC,0CAAwB"}
|