summaryrefslogtreecommitdiffstats
path: root/source/cPlugin.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cPlugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/cPlugin.h b/source/cPlugin.h
index 737c0c382..ec7baaab3 100644
--- a/source/cPlugin.h
+++ b/source/cPlugin.h
@@ -1,3 +1,4 @@
+
#pragma once
class cPacket_BlockPlace;
@@ -17,6 +18,13 @@ class cWorld;
class cLuaChunk;
struct TakeDamageInfo;
+// fwd: cPlayer.h
+class cPlayer;
+
+// fwd: CraftingRecipes.h
+class cCraftingGrid;
+class cCraftingRecipe;
+
@@ -51,6 +59,9 @@ public:
virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer ) { (void)a_Killed; (void)a_Killer; return false; }
virtual void OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ) {}
virtual bool OnChunkGenerating( int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk ) { return false; }
+ virtual bool OnPreCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) {return false; }
+ virtual bool OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) {return false; }
+ virtual bool OnPostCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) {return false; }
// Accessors
const char* GetName() const { return m_Name.c_str(); }