summaryrefslogtreecommitdiff
path: root/src/script/scripting_mainmenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/scripting_mainmenu.h')
-rw-r--r--src/script/scripting_mainmenu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/scripting_mainmenu.h b/src/script/scripting_mainmenu.h
index 7592c8e23..f4d78f664 100644
--- a/src/script/scripting_mainmenu.h
+++ b/src/script/scripting_mainmenu.h
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "cpp_api/s_mainmenu.h"
+#include "lua_api/l_async_events.h"
/*****************************************************************************/
/* Scripting <-> Main Menu Interface */
@@ -37,8 +38,16 @@ public:
// use ScriptApiBase::loadMod() or ScriptApiBase::loadScript()
// to load scripts
+ /* global step handler to pass back async events */
+ void Step();
+
+ /* pass async events from engine to async threads */
+ unsigned int DoAsync(std::string serialized_fct,
+ std::string serialized_params);
private:
void InitializeModApi(lua_State *L, int top);
+
+ AsyncEngine m_AsyncEngine;
};