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/cPluginManager.h | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'source/cPluginManager.h') diff --git a/source/cPluginManager.h b/source/cPluginManager.h index d2099ebd7..b6983a5e3 100644 --- a/source/cPluginManager.h +++ b/source/cPluginManager.h @@ -12,22 +12,24 @@ public: //tolua_export // Called each tick virtual void Tick(float a_Dt); - enum PluginHook //tolua_export - { //tolua_export - E_PLUGIN_TICK, //tolua_export - E_PLUGIN_CHAT, //tolua_export - E_PLUGIN_COLLECT_ITEM, //tolua_export - E_PLUGIN_BLOCK_DIG, //tolua_export - E_PLUGIN_BLOCK_PLACE, //tolua_export - E_PLUGIN_DISCONNECT, //tolua_export - E_PLUGIN_HANDSHAKE, //tolua_export - E_PLUGIN_LOGIN, //tolua_export - E_PLUGIN_PLAYER_SPAWN, //tolua_export - E_PLUGIN_PLAYER_JOIN, //tolua_export - E_PLUGIN_PLAYER_MOVE, //tolua_export - E_PLUGIN_TAKE_DAMAGE, //tolua_export - E_PLUGIN_KILLED, //tolua_export - }; //tolua_export + enum PluginHook // tolua_export + { // tolua_export + E_PLUGIN_TICK, // tolua_export + E_PLUGIN_CHAT, // tolua_export + E_PLUGIN_COLLECT_ITEM, // tolua_export + E_PLUGIN_BLOCK_DIG, // tolua_export + E_PLUGIN_BLOCK_PLACE, // tolua_export + E_PLUGIN_DISCONNECT, // tolua_export + E_PLUGIN_HANDSHAKE, // tolua_export + E_PLUGIN_LOGIN, // tolua_export + E_PLUGIN_PLAYER_SPAWN, // tolua_export + E_PLUGIN_PLAYER_JOIN, // tolua_export + E_PLUGIN_PLAYER_MOVE, // tolua_export + E_PLUGIN_TAKE_DAMAGE, // tolua_export + E_PLUGIN_KILLED, // tolua_export + E_PLUGIN_CHUNK_GENERATED, // tolua_export + E_PLUGIN_CHUNK_GENERATING, // tolua_export + }; // tolua_export static cPluginManager * GetPluginManager(); //tolua_export -- cgit v1.2.3