1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Async-related script cleanups

This commit is contained in:
sfan5 2021-08-28 12:15:12 +02:00 committed by GitHub
parent 0f8a6d78a7
commit 6a1424f2b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 135 additions and 156 deletions

View file

@ -38,8 +38,9 @@ public:
void step();
// Pass async events from engine to async threads
unsigned int queueAsync(const std::string &serialized_func,
const std::string &serialized_params);
u32 queueAsync(std::string &&serialized_func,
std::string &&serialized_param);
private:
void initializeModApi(lua_State *L, int top);
static void registerLuaClasses(lua_State *L, int top);