public/IGameHelpers.h
changeset 3638 13ea64fe5237
parent 3460 ccd11f0c5372
child 3789 42e367aa4a00
     1.1 --- a/public/IGameHelpers.h	Mon Aug 27 19:31:38 2012 -0400
     1.2 +++ b/public/IGameHelpers.h	Tue Aug 28 16:20:15 2012 -0400
     1.3 @@ -40,7 +40,7 @@
     1.4   */
     1.5  
     1.6  #define SMINTERFACE_GAMEHELPERS_NAME		"IGameHelpers"
     1.7 -#define SMINTERFACE_GAMEHELPERS_VERSION		8
     1.8 +#define SMINTERFACE_GAMEHELPERS_VERSION		9
     1.9  
    1.10  class CBaseEntity;
    1.11  class CBaseHandle;
    1.12 @@ -292,6 +292,22 @@
    1.13  		 * @return				ICommandLine ptr or NULL if not found.
    1.14  		 */
    1.15  		virtual ICommandLine *GetValveCommandLine() =0;
    1.16 +
    1.17 +		/**
    1.18 +		 * @brief Gets a Classname from an edict_t pointer.
    1.19 +		 *
    1.20 +		 * @param pEdict		edict_t pointer.
    1.21 +		 * @return				Pointer to the string, or NULL if bad pointer.
    1.22 +		 */
    1.23 +		virtual const char *GetEntityClassname(edict_t *pEdict) =0;
    1.24 +
    1.25 +		/**
    1.26 +		 * @brief Gets a Classname from an CBaseEntity pointer.
    1.27 +		 *
    1.28 +		 * @param pEntity		CBaseEntity pointer.
    1.29 +		 * @return				Pointer to the string, or NULL if bad pointer.
    1.30 +		 */
    1.31 +		virtual const char *GetEntityClassname(CBaseEntity *pEntity) =0;
    1.32  	};
    1.33  }
    1.34