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:
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user