From fbeabce6bf9f5b6c3a278641eaa322b7549165b1 Mon Sep 17 00:00:00 2001 From: David Anderson <dvander@alliedmods.net> Date: Tue, 13 Feb 2007 06:26:01 +0000 Subject: [PATCH] added event result types --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40489 --- plugins/include/core.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/include/core.inc b/plugins/include/core.inc index 0e345757..36670c72 100644 --- a/plugins/include/core.inc +++ b/plugins/include/core.inc @@ -24,6 +24,16 @@ struct PlVers version, }; +/** + * Specifies what to do after a hook completes. + */ +enum Result +{ + Plugin_Continue = 0, /**< Continue with the original action */ + Plugin_Handled = 3, /**< Handle the action at the end (don't call it) */ + Plugin_Stop = 4, /**< Immediately stop the hook chain and handle the original */ +} + public PlVers:__version = { version = SOURCEMOD_PLUGINAPI_VERSION,