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_NewLua.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source/cPlugin_NewLua.h') diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h index 971f79b80..8fb2e9dc0 100644 --- a/source/cPlugin_NewLua.h +++ b/source/cPlugin_NewLua.h @@ -25,19 +25,19 @@ public: //tolua_export virtual void Tick(float a_Dt); //tolua_export - //tolua_begin - virtual bool OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player ); - virtual bool OnDisconnect( std::string a_Reason, cPlayer* a_Player ); - virtual bool OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player ); - virtual bool OnBlockDig( cPacket_BlockDig* a_PacketData, cPlayer* a_Player, cItem* a_PickupItem ); - virtual bool OnChat( const char* a_Chat, cPlayer* a_Player ); - virtual bool OnLogin( cPacket_Login* a_PacketData ); - virtual void OnPlayerSpawn( cPlayer* a_Player ); - virtual bool OnPlayerJoin( cPlayer* a_Player ); - virtual void OnPlayerMove( cPlayer* a_Player ); - virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo ); - virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer ); - //tolua_end + virtual bool OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player ) override; + virtual bool OnDisconnect( std::string a_Reason, cPlayer* a_Player ) override; + virtual bool OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player ) override; + virtual bool OnBlockDig( cPacket_BlockDig* a_PacketData, cPlayer* a_Player, cItem* a_PickupItem ) override; + virtual bool OnChat( const char* a_Chat, cPlayer* a_Player ) override; + virtual bool OnLogin( cPacket_Login* a_PacketData ) override; + virtual void OnPlayerSpawn( cPlayer* a_Player ) override; + virtual bool OnPlayerJoin( cPlayer* a_Player ) override; + virtual void OnPlayerMove( cPlayer* a_Player ) override; + virtual void OnTakeDamage( cPawn* a_Pawn, TakeDamageInfo* a_TakeDamageInfo ) override; + virtual bool OnKilled( cPawn* a_Killed, cEntity* a_Killer ) override; + + virtual void OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_ChunkZ) override; lua_State* GetLuaState() { return m_LuaState; } -- cgit v1.2.3