SourceMod SDK  1.7
SourceMod::SMInterface Class Referenceabstract

Defines the base functionality required by a shared interface. More...

#include <public/IShareSys.h>

Inheritance diagram for SourceMod::SMInterface:
SourceMod::IAdminSystem SourceMod::IADTFactory SourceMod::IDBManager SourceMod::IExtensionManager SourceMod::IForwardManager SourceMod::IGameConfigManager SourceMod::IGameHelpers SourceMod::IHandleSys SourceMod::ILibrarySys SourceMod::IMemoryUtils SourceMod::IMenuManager SourceMod::INativeInterface SourceMod::IPlayerManager SourceMod::IPluginManager SourceMod::IRootConsole SourceMod::ISourceMod SourceMod::ITextParsers SourceMod::IThreader SourceMod::ITimerSystem SourceMod::ITranslator SourceMod::IUserMessages

Public Member Functions

virtual unsigned int GetInterfaceVersion ()=0
 Must return an integer defining the interface's version.
 
virtual const char * GetInterfaceName ()=0
 Must return a string defining the interface's unique name.
 
virtual bool IsVersionCompatible (unsigned int version)
 Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. More...
 

Detailed Description

Defines the base functionality required by a shared interface.

Member Function Documentation

virtual bool SourceMod::SMInterface::IsVersionCompatible ( unsigned int  version)
inlinevirtual

Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning.

Parameters
versionVersion number to compare against.
Returns
True if compatible, false otherwise.

Reimplemented in SourceMod::IMenuManager, SourceMod::IThreader, SourceMod::IExtensionManager, SourceMod::ITextParsers, and SourceMod::IForwardManager.


The documentation for this class was generated from the following file: