style: format
This commit is contained in:
+1
-1
@@ -25,4 +25,4 @@ class Event {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {Event};
|
module.exports = { Event };
|
||||||
+2
-10
@@ -115,13 +115,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
|||||||
if (!level) {
|
if (!level) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
JsonRecipe::registerSmithingTransformRecipe(
|
JsonRecipe::registerSmithingTransformRecipe(recipe_id, smithing_template, base, addition, result);
|
||||||
recipe_id,
|
|
||||||
smithing_template,
|
|
||||||
base,
|
|
||||||
addition,
|
|
||||||
result
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
RemoteCall::exportAs(
|
RemoteCall::exportAs(
|
||||||
@@ -192,7 +186,5 @@ void Export_Legacy_GMLib_ModAPI() {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void {
|
RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void { VanillaFix::setFixI18nEnabled(); });
|
||||||
VanillaFix::setFixI18nEnabled();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
+3
-16
@@ -36,11 +36,7 @@ bool registerPlayerPlaceholder(
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
auto Call = RemoteCall::importAs<std::string(Player * pl)>(PluginName, FuncName);
|
auto Call = RemoteCall::importAs<std::string(Player * pl)>(PluginName, FuncName);
|
||||||
PlaceholderAPI::registerPlayerPlaceholder(
|
PlaceholderAPI::registerPlayerPlaceholder(PAPIName, [Call](Player* sp) { return Call(sp); }, PluginName);
|
||||||
PAPIName,
|
|
||||||
[Call](Player* sp) { return Call(sp); },
|
|
||||||
PluginName
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -82,18 +78,9 @@ bool registerStaticPlaceholder(
|
|||||||
if (isParameters(PAPIName)) {
|
if (isParameters(PAPIName)) {
|
||||||
auto Call = RemoteCall::importAs<std::string()>(PluginName, FuncName);
|
auto Call = RemoteCall::importAs<std::string()>(PluginName, FuncName);
|
||||||
if (num == -1) {
|
if (num == -1) {
|
||||||
PlaceholderAPI::registerStaticPlaceholder(
|
PlaceholderAPI::registerStaticPlaceholder(PAPIName, [Call] { return Call(); }, PluginName);
|
||||||
PAPIName,
|
|
||||||
[Call] { return Call(); },
|
|
||||||
PluginName
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
PlaceholderAPI::registerStaticPlaceholder(
|
PlaceholderAPI::registerStaticPlaceholder(PAPIName, num, [Call] { return Call(); }, PluginName);
|
||||||
PAPIName,
|
|
||||||
num,
|
|
||||||
[Call] { return Call(); },
|
|
||||||
PluginName
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user