sourcemm/CSmmAPI.h
author David Anderson <dvander@alliedmods.net>
Fri May 27 10:18:54 2005 +0000 (2005-05-27)
changeset 74 a88d5ff76c28
parent 67 1753f7a9b2f2
child 76 39266faeec97
permissions -rw-r--r--
Updated makefile
     1 /* ======== SourceMM ========
     2 * Copyright (C) 2004-2005 Metamod:Source Development Team
     3 * No warranties of any kind
     4 *
     5 * License: zlib/libpng
     6 *
     7 * Author(s): David "BAILOPAN" Anderson
     8 * ============================
     9 */
    10 
    11 #ifndef _INCLUDE_CSMM_API_H
    12 #define _INCLUDE_CSMM_API_H
    13 
    14 /**
    15  * @brief Header for CSmmAPI implementation
    16  * @file CSmmAPI.h
    17  */
    18 
    19 #include "ISmmAPI.h"
    20 
    21 namespace SourceMM
    22 {
    23 	class CSmmAPI : public ISmmAPI
    24 	{
    25 	public:
    26 		ISmmPluginManager *PluginManager();
    27 		SourceHook::ISourceHook *SourceHook();
    28 		void LogMsg(ISmmPlugin *pl, const char *msg, ...);
    29 	public:
    30 		CreateInterfaceFn engineFactory(bool syn=true);
    31 		CreateInterfaceFn physicsFactory(bool syn=true);
    32 		CreateInterfaceFn fileSystemFactory(bool syn=true);
    33 		CreateInterfaceFn serverFactory(bool syn=true);
    34 		CGlobalVars *pGlobals();
    35 		void SetLastMetaReturn(META_RES res);
    36 		META_RES GetLastMetaReturn();
    37 		IConCommandBaseAccessor *GetCvarBaseAccessor();
    38 		bool RegisterConCmdBase(ISmmPlugin *plugin, ConCommandBase *pCommand);
    39 		void UnregisterConCmdBase(ISmmPlugin *plugin, ConCommandBase *pCommand);
    40 	private:
    41 		META_RES m_Res;
    42 	};
    43 };
    44 
    45 extern SourceMM::CSmmAPI g_SmmAPI;
    46 
    47 #endif //_INCLUDE_CSMM_API_H