#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 */
public:
MainMenuScripting(GUIEngine* guiengine);
- // use ScriptApiBase::loadMod() or ScriptApiBase::loadScript()
- // to load scripts
+ // Global step handler to pass back async events
+ void step();
- /* 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 queueAsync(std::string serialized_func,
std::string serialized_params);
private:
- void InitializeModApi(lua_State *L, int top);
+ void initializeModApi(lua_State *L, int top);
- AsyncEngine m_AsyncEngine;
+ AsyncEngine asyncEngine;
};