added reply-to stuff for the C++ API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401525
This commit is contained in:
David Anderson
2007-10-02 01:50:36 +00:00
parent 5600942b3c
commit c420f453de
6 changed files with 34 additions and 5 deletions
+19 -1
View File
@@ -41,11 +41,14 @@
#include <IAdminSystem.h>
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION 5
#define SMINTERFACE_PLAYERMANAGER_VERSION 6
struct edict_t;
class IPlayerInfo;
#define SM_REPLY_CONSOLE 0 /**< Reply to console. */
#define SM_REPLY_CHAT 1 /**< Reply to chat. */
namespace SourceMod
{
/**
@@ -305,6 +308,21 @@ namespace SourceMod
* at least once, false otherwise.
*/
virtual bool IsServerActivated() =0;
/**
* @brief Gets SourceMod's reply source.
*
* @return ReplyTo source.
*/
virtual unsigned int GetReplyTo() =0;
/**
* @brief Sets SourceMod's reply source.
*
* @param reply Reply source.
* @return Old reply source.
*/
virtual unsigned int SetReplyTo(unsigned int reply) =0;
};
}