From 373dac3204519b964710fdc693dd16c400881e1a Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 11 Jun 2012 19:25:55 +0000 Subject: Added implementation of E_PLUGIN_CHUNK_GENERATING lua hook It crashes the server when a plugin actually overrides default behavior though... git-svn-id: http://mc-server.googlecode.com/svn/trunk@594 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/cPlugin.h') diff --git a/source/cPlugin.h b/source/cPlugin.h index 3b29b604f..737c0c382 100644 --- a/source/cPlugin.h +++ b/source/cPlugin.h @@ -14,6 +14,7 @@ class cItem; class cEntity; class cPawn; class cWorld; +class cLuaChunk; struct TakeDamageInfo; @@ -49,6 +50,7 @@ public: 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) {} + virtual bool OnChunkGenerating( int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk ) { return false; } // Accessors const char* GetName() const { return m_Name.c_str(); } -- cgit v1.2.3