@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
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +1,25 @@
|
|
|
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 getModuleInfoWithMetadata(xml: string, type: types.ModuleProviderType, path: string): types.ModuleInfoExtendedWithMetadata | undefined;
|
|
18
|
-
static getSubModuleInfo(xml: string): types.SubModuleInfoExtended | undefined;
|
|
19
|
-
static parseApplicationVersion(content: string): types.ApplicationVersion;
|
|
20
|
-
static compareVersions(x: types.ApplicationVersion, y: types.ApplicationVersion): number;
|
|
21
|
-
static getDependenciesAll(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
22
|
-
static getDependenciesToLoadBeforeThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
23
|
-
static getDependenciesToLoadAfterThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
24
|
-
static getDependenciesIncompatibles(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
25
|
-
}
|
|
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 getModuleInfoWithMetadata(xml: string, type: types.ModuleProviderType, path: string): types.ModuleInfoExtendedWithMetadata | undefined;
|
|
18
|
+
static getSubModuleInfo(xml: string): types.SubModuleInfoExtended | undefined;
|
|
19
|
+
static parseApplicationVersion(content: string): types.ApplicationVersion;
|
|
20
|
+
static compareVersions(x: types.ApplicationVersion, y: types.ApplicationVersion): number;
|
|
21
|
+
static getDependenciesAll(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
22
|
+
static getDependenciesToLoadBeforeThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
23
|
+
static getDependenciesToLoadAfterThis(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
24
|
+
static getDependenciesIncompatibles(module: types.ModuleInfoExtended): types.DependentModuleMetadata[];
|
|
25
|
+
}
|
|
@@ -1,100 +1,100 @@
|
|
|
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 getModuleInfoWithMetadata(xml, type, path) {
|
|
66
|
-
BannerlordModuleManager.initialize();
|
|
67
|
-
return BannerlordModuleManager.addon.getModuleInfoWithMetadata(xml, type, path);
|
|
68
|
-
}
|
|
69
|
-
static getSubModuleInfo(xml) {
|
|
70
|
-
BannerlordModuleManager.initialize();
|
|
71
|
-
return BannerlordModuleManager.addon.getSubModuleInfo(xml);
|
|
72
|
-
}
|
|
73
|
-
static parseApplicationVersion(content) {
|
|
74
|
-
BannerlordModuleManager.initialize();
|
|
75
|
-
return BannerlordModuleManager.addon.parseApplicationVersion(content);
|
|
76
|
-
}
|
|
77
|
-
static compareVersions(x, y) {
|
|
78
|
-
BannerlordModuleManager.initialize();
|
|
79
|
-
return BannerlordModuleManager.addon.compareVersions(x, y);
|
|
80
|
-
}
|
|
81
|
-
static getDependenciesAll(module) {
|
|
82
|
-
BannerlordModuleManager.initialize();
|
|
83
|
-
return BannerlordModuleManager.addon.getDependenciesAll(module);
|
|
84
|
-
}
|
|
85
|
-
static getDependenciesToLoadBeforeThis(module) {
|
|
86
|
-
BannerlordModuleManager.initialize();
|
|
87
|
-
return BannerlordModuleManager.addon.getDependenciesToLoadBeforeThis(module);
|
|
88
|
-
}
|
|
89
|
-
static getDependenciesToLoadAfterThis(module) {
|
|
90
|
-
BannerlordModuleManager.initialize();
|
|
91
|
-
return BannerlordModuleManager.addon.getDependenciesToLoadAfterThis(module);
|
|
92
|
-
}
|
|
93
|
-
static getDependenciesIncompatibles(module) {
|
|
94
|
-
BannerlordModuleManager.initialize();
|
|
95
|
-
return BannerlordModuleManager.addon.getDependenciesIncompatibles(module);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.BannerlordModuleManager = BannerlordModuleManager;
|
|
99
|
-
});
|
|
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 getModuleInfoWithMetadata(xml, type, path) {
|
|
66
|
+
BannerlordModuleManager.initialize();
|
|
67
|
+
return BannerlordModuleManager.addon.getModuleInfoWithMetadata(xml, type, path);
|
|
68
|
+
}
|
|
69
|
+
static getSubModuleInfo(xml) {
|
|
70
|
+
BannerlordModuleManager.initialize();
|
|
71
|
+
return BannerlordModuleManager.addon.getSubModuleInfo(xml);
|
|
72
|
+
}
|
|
73
|
+
static parseApplicationVersion(content) {
|
|
74
|
+
BannerlordModuleManager.initialize();
|
|
75
|
+
return BannerlordModuleManager.addon.parseApplicationVersion(content);
|
|
76
|
+
}
|
|
77
|
+
static compareVersions(x, y) {
|
|
78
|
+
BannerlordModuleManager.initialize();
|
|
79
|
+
return BannerlordModuleManager.addon.compareVersions(x, y);
|
|
80
|
+
}
|
|
81
|
+
static getDependenciesAll(module) {
|
|
82
|
+
BannerlordModuleManager.initialize();
|
|
83
|
+
return BannerlordModuleManager.addon.getDependenciesAll(module);
|
|
84
|
+
}
|
|
85
|
+
static getDependenciesToLoadBeforeThis(module) {
|
|
86
|
+
BannerlordModuleManager.initialize();
|
|
87
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadBeforeThis(module);
|
|
88
|
+
}
|
|
89
|
+
static getDependenciesToLoadAfterThis(module) {
|
|
90
|
+
BannerlordModuleManager.initialize();
|
|
91
|
+
return BannerlordModuleManager.addon.getDependenciesToLoadAfterThis(module);
|
|
92
|
+
}
|
|
93
|
+
static getDependenciesIncompatibles(module) {
|
|
94
|
+
BannerlordModuleManager.initialize();
|
|
95
|
+
return BannerlordModuleManager.addon.getDependenciesIncompatibles(module);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.BannerlordModuleManager = BannerlordModuleManager;
|
|
99
|
+
});
|
|
100
100
|
//# sourceMappingURL=BannerlordModuleManager.js.map
|
|
@@ -1 +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;
|
|
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,CAAC;gBAC9C,uBAAuB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;YAC5E,CAAC;QACL,CAAC;QAEM,MAAM,CAAC,IAAI,CAAC,QAAoC;YACnD,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxD,CAAC;QAEM,MAAM,CAAC,eAAe,CAAC,QAAoC,EAAE,OAAkC;YAClG,uBAAuB,CAAC,UAAU,EAAE,CAAC;YACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC5E,CAAC;QAEM,MAAM,CAAC,iCAAiC,CAAC,QAAoC,EAAE,MAAgC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U,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;IApGD,0DAoGC"}
|
package/dist/main/lib/Common.js
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
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
|
|
14
|
-
const addon = require('./../../launchermanager.node');
|
|
15
|
-
return addon.
|
|
16
|
-
};
|
|
17
|
-
exports.
|
|
18
|
-
|
|
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 = exports.allocWithoutOwnership = exports.allocWithOwnership = void 0;
|
|
13
|
+
const allocWithOwnership = (length) => {
|
|
14
|
+
const addon = require('./../../launchermanager.node');
|
|
15
|
+
return addon.allocWithOwnership(length);
|
|
16
|
+
};
|
|
17
|
+
exports.allocWithOwnership = allocWithOwnership;
|
|
18
|
+
const allocWithoutOwnership = (length) => {
|
|
19
|
+
const addon = require('./../../launchermanager.node');
|
|
20
|
+
return addon.allocWithoutOwnership(length);
|
|
21
|
+
};
|
|
22
|
+
exports.allocWithoutOwnership = allocWithoutOwnership;
|
|
23
|
+
const allocAliveCount = () => {
|
|
24
|
+
const addon = require('./../../launchermanager.node');
|
|
25
|
+
return addon.allocAliveCount();
|
|
26
|
+
};
|
|
27
|
+
exports.allocAliveCount = allocAliveCount;
|
|
28
|
+
});
|
|
19
29
|
//# sourceMappingURL=Common.js.map
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../src/lib/Common.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEO,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAqB,EAAE;QACtE,MAAM,KAAK,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;QACxE,OAAO,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC,CAAA;IAHY,QAAA,kBAAkB,sBAG9B;IACM,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAqB,EAAE;QACzE,MAAM,KAAK,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;QACxE,OAAO,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC,CAAA;IAHY,QAAA,qBAAqB,yBAGjC;IACM,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"}
|
|
@@ -1,8 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,36 +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
|
-
});
|
|
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
36
|
//# sourceMappingURL=FetchBannerlordVersion.js.map
|
|
@@ -1 +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;
|
|
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,CAAC;gBAC/C,sBAAsB,CAAC,KAAK,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;YACzE,CAAC;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"}
|
|
@@ -1,37 +1,37 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
installModule: (files: string[], moduleInfos: types.ModuleInfoExtendedWithMetadata[]) => types.InstallResult;
|
|
16
|
-
isSorting: () => boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
setGameStore(gameStore: types.GameStore): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
testModule: (files: string[]) => types.SupportedResult;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
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(setGameParametersAsync: (executable: string, gameParameters: string[]) => Promise<void>, sendNotificationAsync: (id: string, type: types.NotificationType, message: string, delayMS: number) => Promise<void>, sendDialogAsync: (type: types.DialogType, title: string, message: string, filters: types.FileFilter[]) => Promise<string>, getInstallPathAsync: () => Promise<string>, readFileContentAsync: (filePath: string, offset: number, length: number) => Promise<Uint8Array | null>, writeFileContentAsync: (filePath: string, data: Uint8Array) => Promise<void>, readDirectoryFileListAsync: (directoryPath: string) => Promise<string[] | null>, readDirectoryListAsync: (directoryPath: string) => Promise<string[] | null>, getAllModuleViewModelsAsync: () => Promise<types.ModuleViewModel[] | null>, getModuleViewModelsAsync: () => Promise<types.ModuleViewModel[] | null>, setModuleViewModelsAsync: (moduleViewModels: types.ModuleViewModel[]) => Promise<void>, getOptionsAsync: () => Promise<types.LauncherOptions>, getStateAsync: () => Promise<types.LauncherState>);
|
|
7
|
+
checkForRootHarmonyAsync: () => Promise<void>;
|
|
8
|
+
getGamePlatformAsync: () => Promise<types.GamePlatform>;
|
|
9
|
+
getGameVersionAsync: () => Promise<string>;
|
|
10
|
+
getModulesAsync: () => Promise<types.ModuleInfoExtendedWithMetadata[]>;
|
|
11
|
+
getAllModulesAsync: () => Promise<types.ModuleInfoExtendedWithMetadata[]>;
|
|
12
|
+
getSaveFilePathAsync: (saveFile: string) => Promise<string>;
|
|
13
|
+
getSaveFilesAsync: () => Promise<types.SaveMetadata[]>;
|
|
14
|
+
getSaveMetadataAsync: (saveFile: string, data: Uint8Array) => Promise<types.SaveMetadata>;
|
|
15
|
+
installModule: (files: string[], moduleInfos: types.ModuleInfoExtendedWithMetadata[]) => types.InstallResult;
|
|
16
|
+
isSorting: () => boolean;
|
|
17
|
+
moduleListHandlerExportAsync: () => Promise<void>;
|
|
18
|
+
moduleListHandlerExportSaveFileAsync: (saveFile: string) => Promise<void>;
|
|
19
|
+
moduleListHandlerImportAsync: () => Promise<boolean>;
|
|
20
|
+
moduleListHandlerImportSaveFileAsync: (saveFile: string) => Promise<boolean>;
|
|
21
|
+
orderByLoadOrderAsync: (loadOrder: types.LoadOrder) => Promise<types.OrderByLoadOrderResult>;
|
|
22
|
+
refreshModulesAsync: () => Promise<void>;
|
|
23
|
+
refreshGameParametersAsync: () => Promise<void>;
|
|
24
|
+
setGameParameterExecutableAsync(executable: string): Promise<void>;
|
|
25
|
+
setGameParameterSaveFileAsync(saveName: string): Promise<void>;
|
|
26
|
+
setGameParameterContinueLastSaveFileAsync(value: boolean): Promise<void>;
|
|
27
|
+
setGameStore(gameStore: types.GameStore): void;
|
|
28
|
+
sortAsync: () => Promise<void>;
|
|
29
|
+
sortHelperChangeModulePositionAsync: (moduleViewModel: types.ModuleViewModel, insertIndex: number) => Promise<boolean>;
|
|
30
|
+
sortHelperToggleModuleSelectionAsync: (moduleViewModel: types.ModuleViewModel) => Promise<types.ModuleViewModel>;
|
|
31
|
+
sortHelperValidateModuleAsync: (moduleViewModel: types.ModuleViewModel) => Promise<string[]>;
|
|
32
|
+
testModule: (files: string[]) => types.SupportedResult;
|
|
33
|
+
dialogTestWarningAsync: () => Promise<string>;
|
|
34
|
+
dialogTestFileOpenAsync: () => Promise<string>;
|
|
35
|
+
setGameParameterLoadOrderAsync: (loadOrder: types.LoadOrder) => Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|