|
virtual unsigned int | GetExtensionVersion () |
|
virtual bool | OnExtensionLoad (IExtension *me, IShareSys *sys, char *error, size_t maxlength, bool late)=0 |
| Called when the extension is loaded. More...
|
|
virtual void | OnExtensionUnload ()=0 |
| Called when the extension is about to be unloaded.
|
|
virtual void | OnExtensionsAllLoaded ()=0 |
| Called when all extensions are loaded (loading cycle is done). If loaded late, this will be called right after OnExtensionLoad().
|
|
virtual void | OnExtensionPauseChange (bool pause)=0 |
| Called when your pause state is about to change. More...
|
|
virtual bool | QueryInterfaceDrop (SMInterface *pInterface) |
| Asks the extension whether it's safe to remove an external interface it's using. If it's not safe, return false, and the extension will be unloaded afterwards. More...
|
|
virtual void | NotifyInterfaceDrop (SMInterface *pInterface) |
| Notifies the extension that an external interface it uses is being removed. More...
|
|
virtual bool | QueryRunning (char *error, size_t maxlength) |
| Return false to tell Core that your extension should be considered unusable. More...
|
|
virtual bool | IsMetamodExtension ()=0 |
| For extensions loaded through SourceMod, this should return true if the extension needs to attach to Metamod:Source. If the extension is loaded through Metamod:Source, and uses SourceMod optionally, it must return false. More...
|
|
virtual const char * | GetExtensionName ()=0 |
| Must return a string containing the extension's short name. More...
|
|
virtual const char * | GetExtensionURL ()=0 |
| Must return a string containing the extension's URL. More...
|
|
virtual const char * | GetExtensionTag ()=0 |
| Must return a string containing a short identifier tag. More...
|
|
virtual const char * | GetExtensionAuthor ()=0 |
| Must return a string containing a short author identifier. More...
|
|
virtual const char * | GetExtensionVerString ()=0 |
| Must return a string containing version information. More...
|
|
virtual const char * | GetExtensionDescription ()=0 |
| Must return a string containing description text. More...
|
|
virtual const char * | GetExtensionDateString ()=0 |
| Must return a string containing the compilation date. More...
|
|
virtual void | OnCoreMapStart (edict_t *pEdictList, int edictCount, int clientMax) |
| Called on server activation before plugins receive the OnServerLoad forward. More...
|
|
virtual void | OnDependenciesDropped () |
| Called once all dependencies have been unloaded. This is called AFTER OnExtensionUnload(), but before the extension library has been unloaded. It can be used as an alternate unload hook for cases where having no dependent plugins would make shutdown much simplier.
|
|
virtual void | OnCoreMapEnd () |
| Called on level shutdown.
|
|
The interface an extension must expose.
virtual const char* SourceMod::IExtensionInterface::GetExtensionDescription |
( |
| ) |
|
|
pure virtual |
Must return a string containing description text.
The description text may be longer than the other identifiers, as it is only displayed when viewing one extension at a time. However, it should not have newlines, or any other characters which would otherwise disrupt the display pattern.
- Returns
- String containing extension description.
Implemented in SDKExtension.
virtual const char* SourceMod::IExtensionInterface::GetExtensionVerString |
( |
| ) |
|
|
pure virtual |
Must return a string containing version information.
Any version string format can be used, however, SourceMod makes a special guarantee version numbers in the form of A.B.C.D will always be fully displayed, where:
A is a major version number of at most one digit. B is a minor version number of at most two digits. C is a minor version number of at most two digits. D is a build number of at most 5 digits.
Thus, thirteen characters of display is guaranteed.
- Returns
- String containing extension version.
Implemented in SDKExtension.