]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/scripting_mainmenu.h
Sound API: Add fading sounds
[dragonfireclient.git] / src / script / scripting_mainmenu.h
index 6a95d3fc966c51e15083fa2474ec9476aab89d34..9aacd55d64659496e1a688d5b78456d7b33c80e1 100644 (file)
@@ -23,6 +23,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 "cpp_api/s_async.h"
+#include "util/basic_macros.h"
 
 /*****************************************************************************/
 /* Scripting <-> Main Menu Interface                                         */
@@ -36,15 +37,16 @@ class MainMenuScripting
        MainMenuScripting(GUIEngine* guiengine);
 
        // Global step handler to pass back async events
-       void Step();
+       void step();
 
        // Pass async events from engine to async threads
-       unsigned int DoAsync(std::string serialized_func,
-                       std::string serialized_params);
+       unsigned int queueAsync(const std::string &serialized_func,
+                       const std::string &serialized_params);
 private:
-       void InitializeModApi(lua_State *L, int top);
+       void initializeModApi(lua_State *L, int top);
 
-       AsyncEngine m_AsyncEngine;
+       AsyncEngine asyncEngine;
+       DISABLE_CLASS_COPY(MainMenuScripting);
 };