added ITopMenu::GetObjectName()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401708
This commit is contained in:
David Anderson 2007-11-20 03:50:55 +00:00
parent fa3f1991ff
commit d09ea8fda2

View File

@ -43,7 +43,7 @@
*/ */
#define SMINTERFACE_TOPMENUS_NAME "ITopMenus" #define SMINTERFACE_TOPMENUS_NAME "ITopMenus"
#define SMINTERFACE_TOPMENUS_VERSION 3 #define SMINTERFACE_TOPMENUS_VERSION 4
namespace SourceMod namespace SourceMod
{ {
@ -268,6 +268,14 @@ namespace SourceMod
* @return Object's info string, or NULL if none. * @return Object's info string, or NULL if none.
*/ */
virtual const char *GetObjectInfoString(unsigned int object_id) =0; virtual const char *GetObjectInfoString(unsigned int object_id) =0;
/**
* @brief Returns an object's name string.
*
* @param object_id Object ID.
* @return Object's name string, or NULL if none.
*/
virtual const char *GetObjectName(unsigned int object_id) =0;
}; };
/** /**