This commit is contained in:
ZXMushroom63 2024-10-02 14:51:44 +08:00
parent 9fcac52d28
commit 0321c07978

View File

@ -5,15 +5,14 @@ class PatchesRegistry {
return "globalThis.modapi_specialevents = [" + PatchesRegistry.patchedEventNames.flatMap(x=>`\`${x}\``).join(",") + "]"
}
static addPatch(fn) {
patchFns.push(fn);
PatchesRegistry.patchFns.push(fn);
}
static addSpecialEvent(x) {
static regSpecialEvent(x) {
PatchesRegistry.patchedEventNames.push(x);
}
}
function addPatch() {
}
function addSpecialEvent(eventName) {
}
// PatchesRegistry.regSpecialEvent("test");
// PatchesRegistry.addPatch(function (input) {
// var output = input;
// return output;
// })