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.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/script/scripting_mainmenu.h b/src/script/scripting_mainmenu.h
index f4d78f664..6a95d3fc9 100644
--- a/src/script/scripting_mainmenu.h
+++ b/src/script/scripting_mainmenu.h
@@ -22,7 +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"
+#include "cpp_api/s_async.h"
/*****************************************************************************/
/* Scripting <-> Main Menu Interface */
@@ -35,14 +35,11 @@ class MainMenuScripting
public:
MainMenuScripting(GUIEngine* guiengine);
- // use ScriptApiBase::loadMod() or ScriptApiBase::loadScript()
- // to load scripts
-
- /* global step handler to pass back async events */
+ // 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,
+ // Pass async events from engine to async threads
+ unsigned int DoAsync(std::string serialized_func,
std::string serialized_params);
private:
void InitializeModApi(lua_State *L, int top);