From d832996e198605c20760c72433e35beca3192a5a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 5 Jun 2012 15:20:48 +0000 Subject: New hook, E_PLUGIN_CHUNK_GENERATED, called after each chunk is generated (the chunk is already present in cWorld) git-svn-id: http://mc-server.googlecode.com/svn/trunk@558 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/cPlugin.h') diff --git a/source/cPlugin.h b/source/cPlugin.h index 5e9ee1601..3b29b604f 100644 --- a/source/cPlugin.h +++ b/source/cPlugin.h @@ -13,8 +13,13 @@ class cPickup; class cItem; class cEntity; class cPawn; +class cWorld; struct TakeDamageInfo; + + + + // tolua_begin class cPlugin { @@ -43,6 +48,7 @@ public: virtual void OnPlayerMove( cPlayer* a_Player ) { (void)a_Player; } virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo ) { (void)a_Pawn; (void)a_TakeDamageInfo; } 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) {} // Accessors const char* GetName() const { return m_Name.c_str(); } @@ -85,3 +91,7 @@ private: std::string m_Name; int m_Version; }; //tolua_export + + + + -- cgit v1.2.3