]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_craft.h
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
[dragonfireclient.git] / src / script / lua_api / l_craft.h
index d8319199decb98d8a9b7fc09221bb0ebd427677b..548608776ef6aebd253ea7ab70ef5adc486256f2 100644 (file)
@@ -20,19 +20,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef L_CRAFT_H_
 #define L_CRAFT_H_
 
+#include <string>
 #include <vector>
 
-extern "C" {
-#include <lua.h>
-}
-
 #include "lua_api/l_base.h"
-#include "craftdef.h"
+
+struct CraftReplacements;
 
 class ModApiCraft : public ModApiBase {
-public:
-       ModApiCraft();
-       bool Initialize(lua_State* L, int top);
 private:
        static int l_register_craft(lua_State *L);
        static int l_get_craft_recipe(lua_State *L);
@@ -47,6 +42,9 @@ class ModApiCraft : public ModApiBase {
                        int &width, std::vector<std::string> &recipe);
 
        static struct EnumString es_CraftMethod[];
+
+public:
+       static void Initialize(lua_State *L, int top);
 };
 
 #endif /* L_CRAFT_H_ */