-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodloader-stdlib.d.ts
138 lines (123 loc) · 5.36 KB
/
modloader-stdlib.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import * as semverM from './semver-ext';
import * as patchStepsLibM from './patch-steps-lib';
import * as utilsM from './modloader-stdlib/utils';
import * as pathsM from './modloader-stdlib/paths';
import * as impactInitHooksM from './modloader-stdlib/impact-init-hooks';
import * as impactModuleHooksM from './modloader-stdlib/impact-module-hooks';
import * as patchListM from './modloader-stdlib/patch-list';
import * as resourcesM from './modloader-stdlib/resources';
import * as resourcesPlainM from './modloader-stdlib/resources/plain';
export {};
declare global {
namespace ccmod {
const implementor: string;
const implementation: string;
const require: NodeRequire | null | undefined;
export import semver = semverM;
export import patchStepsLib = patchStepsLibM;
}
namespace ccmod.utils {
export import MaybePromise = utilsM.MaybePromise;
export import PlatformType = utilsM.PlatformType;
export import PLATFORM_TYPE = utilsM.PLATFORM_TYPE;
export import showDevTools = utilsM.showDevTools;
export import showBackgroundPageDevTools = utilsM.showBackgroundPageDevTools;
export import wait = utilsM.wait;
export import compare = utilsM.compare;
export import PromiseResult = utilsM.PromiseResult;
export import wrapPromiseResult = utilsM.wrapPromiseResult;
export import hasKey = utilsM.hasKey;
export import mapGetOrInsert = utilsM.mapGetOrInsert;
}
namespace ccmod.paths {
export import resolve = pathsM.resolve;
export import normalize = pathsM.normalize;
export import jailRelative = pathsM.jailRelative;
export import isAbsolute = pathsM.isAbsolute;
export import stripRoot = pathsM.stripRoot;
export import join = pathsM.join;
export import relative = pathsM.relative;
export import dirname = pathsM.dirname;
export import basename = pathsM.basename;
export import extname = pathsM.extname;
}
namespace ccmod.patchList {
export import PatchList = patchListM.PatchList;
export import ResourceGenerator = patchListM.ResourceGenerator;
export import ResourcePatcherSimple = patchListM.ResourcePatcherSimple;
export import ResourcePatcherWithDeps = patchListM.ResourcePatcherWithDeps;
export import ResourcePatchList = patchListM.ResourcePatchList;
}
namespace ccmod.impactInitHooks {
export import ImpactInitHook = impactInitHooksM.ImpactInitHook;
export import callbacks = impactInitHooksM.callbacks;
export import add = impactInitHooksM.add;
}
namespace ccmod.impactModuleHooks {
export import ImpactModuleHook = impactModuleHooksM.ImpactModuleHook;
export import patchList = impactModuleHooksM.patchList;
export import add = impactModuleHooksM.add;
}
namespace ccmod.resources {
export import assetOverridesTable = resourcesM.assetOverridesTable;
export import CommonPatcherContext = resourcesM.CommonPatcherContext;
export import textGenerators = resourcesM.textGenerators;
export import TextGeneratorContext = resourcesM.TextGeneratorContext;
export import jsonPatches = resourcesM.jsonPatches;
export import JSONPatcherContext = resourcesM.JSONPatcherContext;
export import jsonGenerators = resourcesM.jsonGenerators;
export import JSONGeneratorContext = resourcesM.JSONGeneratorContext;
export import imagePatches = resourcesM.imagePatches;
export import ImagePatcherContext = resourcesM.ImagePatcherContext;
export import imageGenerators = resourcesM.imageGenerators;
export import ImageGeneratorContext = resourcesM.ImageGeneratorContext;
export import CommonLoadOptions = resourcesM.CommonLoadOptions;
export import loadText = resourcesM.loadText;
export import LoadTextOptions = resourcesM.LoadTextOptions;
export import loadJSON = resourcesM.loadJSON;
export import LoadJSONOptions = resourcesM.LoadJSONOptions;
export import loadImage = resourcesM.loadImage;
export import LoadImageOptions = resourcesM.LoadImageOptions;
export import resolvePath = resourcesM.resolvePath;
export import resolvePathToURL = resourcesM.resolvePathToURL;
export import resolvePathAdvanced = resourcesM.resolvePathAdvanced;
export import ResolvePathOptions = resourcesM.ResolvePathOptions;
export import ResolvePathAdvancedResult = resourcesM.ResolvePathAdvancedResult;
export import wrapPathIntoURL = resourcesM.wrapPathIntoURL;
export import getGameAssetsURL = resourcesM.getGameAssetsURL;
export import getCacheSuffix = resourcesM.getCacheSuffix;
}
namespace ccmod.resources.plain {
export import loadText = resourcesPlainM.loadText;
export import loadJSON = resourcesPlainM.loadJSON;
export import loadImage = resourcesPlainM.loadImage;
export import loadStylesheet = resourcesPlainM.loadStylesheet;
export import loadScript = resourcesPlainM.loadScript;
}
namespace ig {
namespace MultiFont {
interface MappingSimple {
[iconName: string]: number;
}
}
interface MultiFont {
pushIconSet(this: this, font: ig.Font, mapping?: MultiFont.MappingSimple | null): void;
setIconSet(
this: this,
iconSet: ig.Font,
index: number,
mapping?: MultiFont.MappingSimple | null,
): void;
}
}
namespace sc {
namespace OptionDefinition {
interface CHECKBOX {
checkboxRightAlign?: boolean;
}
interface INFO {
marginBottom?: number;
}
}
}
}