core/ConVarManager.h
changeset 1541 e46ad208b9b4
parent 1330 ab94316bb52b
child 1547 78abc407c8a3
     1.1 --- a/core/ConVarManager.h	Sat Oct 13 22:13:43 2007 +0000
     1.2 +++ b/core/ConVarManager.h	Sun Oct 14 00:04:21 2007 +0000
     1.3 @@ -51,7 +51,7 @@
     1.4  	Handle_t handle;					/**< Handle to convar */
     1.5  	bool sourceMod;						/**< Determines whether or not convar was created by a SourceMod plugin */
     1.6  	IChangeableForward *pChangeForward;	/**< Forward associated with convar */
     1.7 -	FnChangeCallback origCallback;		/**< The original callback function */
     1.8 +	FnChangeCallback_t origCallback;		/**< The original callback function */
     1.9  #if PLAPI_VERSION < 12
    1.10  	const char *name;					/**< Name of convar */
    1.11  #endif
    1.12 @@ -85,7 +85,7 @@
    1.13  public: // IPluginsListener
    1.14  	void OnPluginUnloaded(IPlugin *plugin);
    1.15  public: //IRootConsoleCommand
    1.16 -	void OnRootConsoleCommand(const char *command, unsigned int argcount);
    1.17 +	void OnRootConsoleCommand(const char *cmdname, const CCommand &command);
    1.18  public:
    1.19  	/**
    1.20  	 * Get the 'ConVar' handle type ID.
    1.21 @@ -150,7 +150,11 @@
    1.22  	/**
    1.23  	 * Static callback that Valve's ConVar object executes when the convar's value changes.
    1.24  	 */
    1.25 +#if defined ORANGEBOX_BUILD
    1.26 +	static void OnConVarChanged(IConVar *pConVar, const char *oldValue, float flOldValue);
    1.27 +#else
    1.28  	static void OnConVarChanged(ConVar *pConVar, const char *oldValue);
    1.29 +#endif
    1.30  
    1.31  	/**
    1.32  	 * Callback for when StartQueryCvarValue() has finished.