From d09ea8fda2387a1489315834b9c8269b258bbd17 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Nov 2007 03:50:55 +0000 Subject: [PATCH] added ITopMenu::GetObjectName() --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401708 --- public/extensions/ITopMenus.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/extensions/ITopMenus.h b/public/extensions/ITopMenus.h index 97cba05f..ef063e2d 100644 --- a/public/extensions/ITopMenus.h +++ b/public/extensions/ITopMenus.h @@ -43,7 +43,7 @@ */ #define SMINTERFACE_TOPMENUS_NAME "ITopMenus" -#define SMINTERFACE_TOPMENUS_VERSION 3 +#define SMINTERFACE_TOPMENUS_VERSION 4 namespace SourceMod { @@ -268,6 +268,14 @@ namespace SourceMod * @return Object's info string, or NULL if none. */ 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; }; /**