core/interfaces/ISourceMod.h
changeset 324 e23aca731e37
parent 323 e12c1cd285e2
child 325 66fa86233688
     1.1 --- a/core/interfaces/ISourceMod.h	Fri Jan 19 05:25:43 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,74 +0,0 @@
     1.4 -#ifndef _INCLUDE_SOURCEMOD_MAIN_HELPER_INTERFACE_H_
     1.5 -#define _INCLUDE_SOURCEMOD_MAIN_HELPER_INTERFACE_H_
     1.6 -
     1.7 -#include <IShareSys.h>
     1.8 -
     1.9 -#define SMINTERFACE_SOURCEMOD_NAME		"ISourceMod"
    1.10 -#define SMINTERFACE_SOURCEMOD_VERSION	1
    1.11 -
    1.12 -namespace SourceMod
    1.13 -{
    1.14 -	enum PathType
    1.15 -	{
    1.16 -		Path_None = 0,
    1.17 -		Path_Game,
    1.18 -		Path_SM,
    1.19 -	};
    1.20 -
    1.21 -	class ISourceMod : public SMInterface
    1.22 -	{
    1.23 -	public:
    1.24 -		virtual const char *GetInterfaceName()
    1.25 -		{
    1.26 -			return SMINTERFACE_SOURCEMOD_NAME;
    1.27 -		}
    1.28 -		virtual unsigned int GetInterfaceVersion()
    1.29 -		{
    1.30 -			return SMINTERFACE_SOURCEMOD_VERSION;
    1.31 -		}
    1.32 -	public:
    1.33 -		/**
    1.34 -		 * @brief Returns the full path to the mod directory.
    1.35 -		 *
    1.36 -		 * @return			A string containing the full mod path.
    1.37 -		 */
    1.38 -		virtual const char *GetModPath() =0;
    1.39 -
    1.40 -		/**
    1.41 -		 * @brief Returns the full path to the SourceMod directory.
    1.42 -		 *
    1.43 -		 * @return			A string containing the full SourceMod path.
    1.44 -		 */
    1.45 -		virtual const char *GetSourceModPath() =0;
    1.46 -
    1.47 -		/**
    1.48 -		 * @brief Builds a platform path for a specific target base path.
    1.49 -		 *
    1.50 -		 * @param type		Type of path to use as a base.
    1.51 -		 * @param buffer	Buffer to write to.
    1.52 -		 * @param maxlength	Size of buffer.
    1.53 -		 * @param format	Format string.
    1.54 -		 * @param ...		Format arguments.
    1.55 -		 * @return			Number of bytes written.
    1.56 -		 */
    1.57 -		virtual size_t BuildPath(PathType type, char *buffer, size_t maxlength, char *format, ...) =0;
    1.58 -
    1.59 -		/**
    1.60 -		 * @brief Logs a message to the SourceMod logs.
    1.61 -		 *
    1.62 -		 * @param format	Message format.
    1.63 -		 * @param ...		Message format parameters.
    1.64 -		 */
    1.65 -		virtual void LogMessage(IExtension *pExt, const char *format, ...) =0;
    1.66 -
    1.67 -		/**
    1.68 -		 * @brief Logs a message to the SourceMod error logs.
    1.69 -		 *
    1.70 -		 * @param format	Message format.
    1.71 -		 * @param ...		Message format parameters.
    1.72 -		 */
    1.73 -		virtual void LogError(IExtension *pExt, const char *format, ...) =0;
    1.74 -	};
    1.75 -};
    1.76 -
    1.77 -#endif //_INCLUDE_SOURCEMOD_MAIN_HELPER_INTERFACE_H_