refactor: optimize FloatingText
This commit is contained in:
+10
-10
@@ -33,7 +33,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
}
|
||||
auto res = RecipeIngredient(result, 0, count);
|
||||
auto unl = makeRecipeUnlockingKey(unlock);
|
||||
GMLIB::Mod::JsonRecipe::registerShapelessCraftingTableRecipe(recipe_id, types, res, unl);
|
||||
JsonRecipe::registerShapelessCraftingTableRecipe(recipe_id, types, res, unl);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -56,7 +56,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
}
|
||||
auto res = RecipeIngredient(result, 0, count);
|
||||
auto unl = makeRecipeUnlockingKey(unlock);
|
||||
GMLIB::Mod::JsonRecipe::registerShapedCraftingTableRecipe(recipe_id, shape, types, res, unl);
|
||||
JsonRecipe::registerShapedCraftingTableRecipe(recipe_id, shape, types, res, unl);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -72,7 +72,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
}
|
||||
auto inp = RecipeIngredient(input, 0, 1);
|
||||
auto outp = RecipeIngredient(output, 0, 1);
|
||||
GMLIB::Mod::JsonRecipe::registerFurnaceRecipe(recipe_id, inp, outp, tags);
|
||||
JsonRecipe::registerFurnaceRecipe(recipe_id, inp, outp, tags);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -85,7 +85,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
return;
|
||||
}
|
||||
auto rea = RecipeIngredient(reagent, 0, 1);
|
||||
GMLIB::Mod::JsonRecipe::registerBrewingMixRecipe(recipe_id, input, output, rea);
|
||||
JsonRecipe::registerBrewingMixRecipe(recipe_id, input, output, rea);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -100,7 +100,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
auto inp = RecipeIngredient(input, 0, 1);
|
||||
auto outp = RecipeIngredient(output, 0, 1);
|
||||
auto rea = RecipeIngredient(reagent, 0, 1);
|
||||
GMLIB::Mod::JsonRecipe::registerBrewingContainerRecipe(recipe_id, inp, outp, rea);
|
||||
JsonRecipe::registerBrewingContainerRecipe(recipe_id, inp, outp, rea);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -115,7 +115,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
if (!level) {
|
||||
return;
|
||||
}
|
||||
GMLIB::Mod::JsonRecipe::registerSmithingTransformRecipe(
|
||||
JsonRecipe::registerSmithingTransformRecipe(
|
||||
recipe_id,
|
||||
smithing_template,
|
||||
base,
|
||||
@@ -135,7 +135,7 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
if (!level) {
|
||||
return;
|
||||
}
|
||||
GMLIB::Mod::JsonRecipe::registerSmithingTrimRecipe(recipe_id, smithing_template, base, addition);
|
||||
JsonRecipe::registerSmithingTrimRecipe(recipe_id, smithing_template, base, addition);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
@@ -153,12 +153,12 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
}
|
||||
auto inp = RecipeIngredient(input, 0, 1);
|
||||
auto outp = RecipeIngredient(output, 0, 1);
|
||||
GMLIB::Mod::JsonRecipe::registerStoneCutterRecipe(recipe_id, inp, outp);
|
||||
JsonRecipe::registerStoneCutterRecipe(recipe_id, inp, outp);
|
||||
}
|
||||
);
|
||||
// 错误方块清理
|
||||
RemoteCall::exportAs("GMLib_ModAPI", "setUnknownBlockCleaner", []() -> void {
|
||||
GMLIB::Mod::VanillaFix::setAutoCleanUnknownBlockEnabled();
|
||||
VanillaFix::setAutoCleanUnknownBlockEnabled();
|
||||
});
|
||||
// 实验性
|
||||
RemoteCall::exportAs("GMLib_ModAPI", "registerExperimentsRequire", [](int experiment_id) -> void {
|
||||
@@ -193,6 +193,6 @@ void Export_Legacy_GMLib_ModAPI() {
|
||||
return false;
|
||||
});
|
||||
RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void {
|
||||
GMLIB::Mod::VanillaFix::setFixI18nEnabled();
|
||||
VanillaFix::setFixI18nEnabled();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user