diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-12 23:30:32 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-12 23:30:32 +0200 |
commit | 223967b80d783df1be2df5f74ddf198f373fbc57 (patch) | |
tree | 6bf155fc8cfbdf635b6ef40d4e7ab200029de6d9 /source/cPlugin_NewLua.h | |
parent | Updated the crafting recipes architecture to better support crafting hooks. Removed the old recipe file and implementation altogether. (diff) | |
download | cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar.gz cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar.bz2 cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar.lz cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar.xz cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.tar.zst cuberite-223967b80d783df1be2df5f74ddf198f373fbc57.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPlugin_NewLua.h | 4 |
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
|