From deeb3a15dc8914a3514685e8f79f543b00b2b908 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 11 Aug 2013 12:12:20 +0200 Subject: Added OnPlayerAnimation() hook. Initial patch by @STR_Warrior, updated to account for different animation packets. --- source/Plugin.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/Plugin.h') diff --git a/source/Plugin.h b/source/Plugin.h index ce443835b..de8835838 100644 --- a/source/Plugin.h +++ b/source/Plugin.h @@ -63,6 +63,7 @@ public: virtual bool OnHandshake (cClientHandle * a_Client, const AString & a_Username) = 0; virtual bool OnKilling (cEntity & a_Victim, cEntity * a_Killer) = 0; virtual bool OnLogin (cClientHandle * a_Client, int a_ProtocolVersion, const AString & a_Username) = 0; + virtual bool OnPlayerAnimation (cPlayer & a_Player, int a_Animation) = 0; virtual bool OnPlayerBreakingBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0; virtual bool OnPlayerBrokenBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0; virtual bool OnPlayerEating (cPlayer & a_Player) = 0; -- cgit v1.2.3