Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40436
This commit is contained in:
Borja Ferrer
2007-02-04 22:41:44 +00:00
parent 4f5edf7b1f
commit c21bfe57c1
7 changed files with 131 additions and 31 deletions
+3 -4
View File
@@ -31,7 +31,6 @@
* function name in all plugins.
*/
#include <IForwardSys.h>
#include <IPluginSys.h>
#include <sp_vm_api.h>
@@ -147,21 +146,21 @@ namespace SourceMod
*
* @return Forward name.
*/
virtual const char *GetForwardName() =0;
virtual const char *GetForwardName() const =0;
/**
* @brief Returns the number of functions in this forward.
*
* @return Number of functions in forward.
*/
virtual unsigned int GetFunctionCount() =0;
virtual unsigned int GetFunctionCount() const =0;
/**
* @brief Returns the method of multi-calling this forward has.
*
* @return ExecType of the forward.
*/
virtual ExecType GetExecType() =0;
virtual ExecType GetExecType() const =0;
/**
* @brief Executes the forward.
+7
View File
@@ -210,6 +210,13 @@ namespace SourceMod
{
}
/**
* @brief Called when a plugin is paused or unpaused.
*/
virtual void OnPluginPauseChange(IPlugin *plugin, bool paused)
{
}
/**
* @brief Called when a plugin is unloaded (only if fully loaded).
*/