sourcemm/CSmmAPI.h
author David Anderson <dvander@alliedmods.net>
Sat Apr 16 23:35:37 2005 +0000 (2005-04-16)
changeset 11 c89148628c7b
child 26 084d848d60d6
permissions -rw-r--r--
Renamed file
     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 class CSmmAPI : public ISmmAPI
    22 {
    23 public:
    24 	ISmmPluginManager *PluginManager();
    25 	SourceHook::ISourceHook *SourceHook();
    26 	void LogMsg(ISmmPlugin *pl, const char *msg, ...);
    27 public:
    28 	CreateInterfaceFn engineFactory(bool syn=true);
    29 	CreateInterfaceFn physicsFactory(bool syn=true);
    30 	CreateInterfaceFn fileSystemFactory(bool syn=true);
    31 	CreateInterfaceFn serverFactory(bool syn=true);
    32 	CGlobalVars *pGlobals();
    33 	void SetLastMetaReturn(META_RES res);
    34 	META_RES GetLastMetaReturn();
    35 private:
    36 	META_RES m_Res;
    37 };
    38 
    39 extern CSmmAPI g_SmmAPI;
    40 
    41 #endif //_INCLUDE_CSMM_API_H