#include <public/IPluginSys.h>
Public Member Functions | |
| virtual | ~IPlugin () |
| virtual PluginType | GetType ()=0 |
| Returns the lifetime of a plugin. | |
| virtual SourcePawn::IPluginContext * | GetBaseContext ()=0 |
| Returns the IPluginRuntime::GetDefaultContext() value. | |
| virtual sp_context_t * | GetContext ()=0 |
| Deprecated, returns NULL. | |
| virtual void * | GetPluginStructure ()=0 |
| Deprecated, returns NULL. | |
| virtual const sm_plugininfo_t * | GetPublicInfo ()=0 |
| Returns information about the plugin by reference. | |
| virtual const char * | GetFilename ()=0 |
| Returns the plugin filename (relative to plugins dir). | |
| virtual bool | IsDebugging ()=0 |
| Returns true if a plugin is in debug mode, false otherwise. | |
| virtual PluginStatus | GetStatus ()=0 |
| Returns the plugin status. | |
| virtual bool | SetPauseState (bool paused)=0 |
| Sets whether the plugin is paused or not. | |
| virtual unsigned int | GetSerial ()=0 |
| Returns the unique serial number of a plugin. | |
| virtual IdentityToken_t * | GetIdentity ()=0 |
| Returns a plugin's identity token. | |
| virtual bool | SetProperty (const char *prop, void *ptr)=0 |
| Sets a property on this plugin. This is used for per-plugin data from extensions or other parts of core. The property's value must be manually destructed when the plugin is destroyed. | |
| virtual bool | GetProperty (const char *prop, void **ptr, bool remove=false)=0 |
| Gets a property from a plugin. | |
| virtual SourcePawn::IPluginRuntime * | GetRuntime ()=0 |
| Returns the runtime representing this plugin. | |
Definition at line 98 of file IPluginSys.h.
| virtual SourceMod::IPlugin::~IPlugin | ( | ) | [inline, virtual] |
Virtual destructor
Definition at line 102 of file IPluginSys.h.
| virtual SourcePawn::IPluginContext* SourceMod::IPlugin::GetBaseContext | ( | ) | [pure virtual] |
Returns the IPluginRuntime::GetDefaultContext() value.
| virtual sp_context_t* SourceMod::IPlugin::GetContext | ( | ) | [pure virtual] |
Deprecated, returns NULL.
| virtual void* SourceMod::IPlugin::GetPluginStructure | ( | ) | [pure virtual] |
Deprecated, returns NULL.
| virtual const sm_plugininfo_t* SourceMod::IPlugin::GetPublicInfo | ( | ) | [pure virtual] |
Returns information about the plugin by reference.
| virtual bool SourceMod::IPlugin::SetPauseState | ( | bool | paused | ) | [pure virtual] |
Sets whether the plugin is paused or not.
| virtual bool SourceMod::IPlugin::SetProperty | ( | const char * | prop, | |
| void * | ptr | |||
| ) | [pure virtual] |
Sets a property on this plugin. This is used for per-plugin data from extensions or other parts of core. The property's value must be manually destructed when the plugin is destroyed.
| prop | String containing name of the property. | |
| ptr | Generic pointer to set. |
| virtual bool SourceMod::IPlugin::GetProperty | ( | const char * | prop, | |
| void ** | ptr, | |||
| bool | remove = false | |||
| ) | [pure virtual] |
Gets a property from a plugin.
| prop | String containing the property's name. | |
| ptr | Optional pointer to the generic pointer. | |
| remove | Optional boolean value; if true, property is removed (so it can be set again). |
| virtual SourcePawn::IPluginRuntime* SourceMod::IPlugin::GetRuntime | ( | ) | [pure virtual] |
Returns the runtime representing this plugin.
1.5.1