Added auto-restart functionality to the Updater extensions (bug 3530, r=pred).

This commit is contained in:
David Anderson
2009-02-28 23:14:16 -05:00
parent 09b24e45f9
commit c4cba5254c
9 changed files with 72 additions and 6 deletions
+15 -1
View File
@@ -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
View File
@@ -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;
};
}