style: format

This commit is contained in:
KobeBryant114514
2024-09-21 21:37:00 +08:00
Unverified
parent 7ba3d9ca2b
commit 9ecb13e7a4
3 changed files with 6 additions and 27 deletions
+1 -1
View File
@@ -25,4 +25,4 @@ class Event {
}
}
module.exports = {Event};
module.exports = { Event };
+2 -10
View File
@@ -115,13 +115,7 @@ void Export_Legacy_GMLib_ModAPI() {
if (!level) {
return;
}
JsonRecipe::registerSmithingTransformRecipe(
recipe_id,
smithing_template,
base,
addition,
result
);
JsonRecipe::registerSmithingTransformRecipe(recipe_id, smithing_template, base, addition, result);
}
);
RemoteCall::exportAs(
@@ -192,7 +186,5 @@ void Export_Legacy_GMLib_ModAPI() {
}
return false;
});
RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void {
VanillaFix::setFixI18nEnabled();
});
RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void { VanillaFix::setFixI18nEnabled(); });
}
+3 -16
View File
@@ -36,11 +36,7 @@ bool registerPlayerPlaceholder(
);
} else {
auto Call = RemoteCall::importAs<std::string(Player * pl)>(PluginName, FuncName);
PlaceholderAPI::registerPlayerPlaceholder(
PAPIName,
[Call](Player* sp) { return Call(sp); },
PluginName
);
PlaceholderAPI::registerPlayerPlaceholder(PAPIName, [Call](Player* sp) { return Call(sp); }, PluginName);
}
return true;
}
@@ -82,18 +78,9 @@ bool registerStaticPlaceholder(
if (isParameters(PAPIName)) {
auto Call = RemoteCall::importAs<std::string()>(PluginName, FuncName);
if (num == -1) {
PlaceholderAPI::registerStaticPlaceholder(
PAPIName,
[Call] { return Call(); },
PluginName
);
PlaceholderAPI::registerStaticPlaceholder(PAPIName, [Call] { return Call(); }, PluginName);
} else {
PlaceholderAPI::registerStaticPlaceholder(
PAPIName,
num,
[Call] { return Call(); },
PluginName
);
PlaceholderAPI::registerStaticPlaceholder(PAPIName, num, [Call] { return Call(); }, PluginName);
}
}
return true;