Removed HOOK_MAX and HOOK_NUM_HOOKS from Lua API.
This commit is contained in:
parent
ec741261f9
commit
29af16143e
@ -2031,8 +2031,6 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
|
|||||||
HOOK_HOPPER_PUSHING_ITEM = { Notes = "Called when a hopper is pushing an item into the container it is aimed at." },
|
HOOK_HOPPER_PUSHING_ITEM = { Notes = "Called when a hopper is pushing an item into the container it is aimed at." },
|
||||||
HOOK_KILLING = { Notes = "Called when an entity has just been killed. A plugin may resurrect the entity by setting its health to above zero." },
|
HOOK_KILLING = { Notes = "Called when an entity has just been killed. A plugin may resurrect the entity by setting its health to above zero." },
|
||||||
HOOK_LOGIN = { Notes = "Called when a Login packet is sent to the client, before the client is queued for authentication." },
|
HOOK_LOGIN = { Notes = "Called when a Login packet is sent to the client, before the client is queued for authentication." },
|
||||||
HOOK_MAX = { Notes = "The maximum TypeID of a hook. Used internally by MCS to check hook type for validity." },
|
|
||||||
HOOK_NUM_HOOKS = { Notes = "Total number of hook types MCS supports. Used internally by MCS to check hook type for validity." },
|
|
||||||
HOOK_PLAYER_ANIMATION = { Notes = "Called when a client send the Animation packet." },
|
HOOK_PLAYER_ANIMATION = { Notes = "Called when a client send the Animation packet." },
|
||||||
HOOK_PLAYER_BREAKING_BLOCK = { Notes = "Called when a player is about to break a block. A plugin may cancel the event." },
|
HOOK_PLAYER_BREAKING_BLOCK = { Notes = "Called when a player is about to break a block. A plugin may cancel the event." },
|
||||||
HOOK_PLAYER_BROKEN_BLOCK = { Notes = "Called after a player has broken a block." },
|
HOOK_PLAYER_BROKEN_BLOCK = { Notes = "Called after a player has broken a block." },
|
||||||
|
@ -134,6 +134,8 @@ public:
|
|||||||
HOOK_WEATHER_CHANGING,
|
HOOK_WEATHER_CHANGING,
|
||||||
HOOK_WORLD_STARTED,
|
HOOK_WORLD_STARTED,
|
||||||
HOOK_WORLD_TICK,
|
HOOK_WORLD_TICK,
|
||||||
|
|
||||||
|
// tolua_end
|
||||||
|
|
||||||
// Note that if a hook type is added, it may need processing in cPlugin::CanAddHook() descendants,
|
// Note that if a hook type is added, it may need processing in cPlugin::CanAddHook() descendants,
|
||||||
// and it definitely needs adding in cPluginLua::GetHookFnName() !
|
// and it definitely needs adding in cPluginLua::GetHookFnName() !
|
||||||
@ -141,8 +143,7 @@ public:
|
|||||||
// Keep these two as the last items, they are used for validity checking and get their values automagically
|
// Keep these two as the last items, they are used for validity checking and get their values automagically
|
||||||
HOOK_NUM_HOOKS,
|
HOOK_NUM_HOOKS,
|
||||||
HOOK_MAX = HOOK_NUM_HOOKS - 1,
|
HOOK_MAX = HOOK_NUM_HOOKS - 1,
|
||||||
} ;
|
} ; // tolua_export
|
||||||
// tolua_end
|
|
||||||
|
|
||||||
/** Used as a callback for enumerating bound commands */
|
/** Used as a callback for enumerating bound commands */
|
||||||
class cCommandEnumCallback
|
class cCommandEnumCallback
|
||||||
|
Loading…
Reference in New Issue
Block a user