summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cPlugin_NewLua.h')
-rw-r--r--source/cPlugin_NewLua.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h
index 096d5667f..6ecdada11 100644
--- a/source/cPlugin_NewLua.h
+++ b/source/cPlugin_NewLua.h
@@ -40,6 +40,10 @@ public: //tolua_export
virtual void OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ) override;
virtual bool OnChunkGenerating( int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk ) override;
+ virtual bool OnPreCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) override;
+ virtual bool OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) override;
+ virtual bool OnPostCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) override;
+
lua_State* GetLuaState() { return m_LuaState; }
cWebPlugin_Lua* CreateWebPlugin(lua_State* a_LuaState); //tolua_export