mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Async environment for mods to do concurrent tasks (#11131)
This commit is contained in:
parent
663c936428
commit
e7659883cc
38 changed files with 1646 additions and 48 deletions
|
@ -525,3 +525,11 @@ void ModApiCraft::Initialize(lua_State *L, int top)
|
|||
API_FCT(register_craft);
|
||||
API_FCT(clear_craft);
|
||||
}
|
||||
|
||||
void ModApiCraft::InitializeAsync(lua_State *L, int top)
|
||||
{
|
||||
// all read-only functions
|
||||
API_FCT(get_all_craft_recipes);
|
||||
API_FCT(get_craft_recipe);
|
||||
API_FCT(get_craft_result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue