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(",") + "]" return "globalThis.modapi_specialevents = [" + PatchesRegistry.patchedEventNames.flatMap(x=>`\`${x}\``).join(",") + "]"
} }
static addPatch(fn) { static addPatch(fn) {
patchFns.push(fn); PatchesRegistry.patchFns.push(fn);
} }
static addSpecialEvent(x) { static regSpecialEvent(x) {
PatchesRegistry.patchedEventNames.push(x); PatchesRegistry.patchedEventNames.push(x);
} }
} }
function addPatch() { // PatchesRegistry.regSpecialEvent("test");
// PatchesRegistry.addPatch(function (input) {
} // var output = input;
function addSpecialEvent(eventName) { // return output;
// })
}