Added auto-restart functionality to the Updater extensions (bug 3530, r=pred).
This commit is contained in:
+15
-1
@@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#define SMINTERFACE_GAMEHELPERS_NAME "IGameHelpers"
|
||||
#define SMINTERFACE_GAMEHELPERS_VERSION 3
|
||||
#define SMINTERFACE_GAMEHELPERS_VERSION 4
|
||||
|
||||
class CBaseEntity;
|
||||
class CBaseHandle;
|
||||
@@ -179,6 +179,20 @@ namespace SourceMod
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void SetHandleEntity(CBaseHandle &hndl, edict_t *pEnt) =0;
|
||||
|
||||
/**
|
||||
* @brief Returns the current map name.
|
||||
*
|
||||
* @return Current map name.
|
||||
*/
|
||||
virtual const char *GetCurrentMap() =0;
|
||||
|
||||
/**
|
||||
* @brief Wraps IVEngineServer::ServerCommand.
|
||||
*
|
||||
* @param buffer Command buffer (does not auto \n terminate).
|
||||
*/
|
||||
virtual void ServerCommand(const char *buffer) =0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+8
-1
@@ -43,7 +43,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#define SMINTERFACE_SOURCEMOD_NAME "ISourceMod"
|
||||
#define SMINTERFACE_SOURCEMOD_VERSION 10
|
||||
#define SMINTERFACE_SOURCEMOD_VERSION 11
|
||||
|
||||
/**
|
||||
* @brief Forward declaration of the KeyValues class.
|
||||
@@ -296,6 +296,13 @@ namespace SourceMod
|
||||
* The string will be destroyed on core.cfg reparses.
|
||||
*/
|
||||
virtual const char *GetCoreConfigValue(const char *key) = 0;
|
||||
|
||||
/**
|
||||
* @brief Returns SourceMod's Metamod:Source plugin ID.
|
||||
*
|
||||
* @return Metamod:Source PluginId.
|
||||
*/
|
||||
virtual int GetPluginId() = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user