sourcemm/ISmmPlugin.h
changeset 345 600e30820ea7
parent 336 3aa1a4217904
child 371 751179604513
     1.1 --- a/sourcemm/ISmmPlugin.h	Fri Jul 20 22:21:14 2007 +0000
     1.2 +++ b/sourcemm/ISmmPlugin.h	Mon Jul 23 18:19:02 2007 +0000
     1.3 @@ -20,7 +20,7 @@
     1.4  #include <sourcehook/sourcehook.h>
     1.5  #include "ISmmAPI.h"
     1.6  
     1.7 -#define PLAPI_VERSION	11
     1.8 +#define PLAPI_VERSION	12
     1.9  #define PLAPI_NAME		"ISmmPlugin"
    1.10  
    1.11  class ISmmAPI;
    1.12 @@ -313,9 +313,15 @@
    1.13  	 * @param iface			Interface pointer.  If NULL, then the VSP listening construct
    1.14  	 *						failed to initialize and is not available.
    1.15  	 */
    1.16 -	virtual void OnVSPListening(IServerPluginCallbacks *iface)
    1.17 -	{
    1.18 -	}
    1.19 +	virtual void OnVSPListening(IServerPluginCallbacks *iface) { }
    1.20 +
    1.21 +	/* @brief Called when Metamod:Source is about to remove a concommand or convar.
    1.22 +	 * This can also be called if ISmmAPI::UnregisterConCmdBase is used by a plugin.
    1.23 +	 *
    1.24 +	 * @param id			Id of the plugin that created the concommand or convar.
    1.25 +	 * @param pCommand		Pointer to concommand or convar that is being removed.
    1.26 +	 */
    1.27 +	virtual void OnUnlinkConCommandBase(PluginId id, ConCommandBase *pCommand) { }
    1.28  };
    1.29  
    1.30  #define PL_EXPOSURE		CreateInterface