1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00
David Anderson 118d4a85ff Initial import
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%408
2005-04-16 19:59:26 +00:00

27 lines
639 B
C++

#ifndef _INCLUDE_CSMM_API_H
#define _INCLUDE_CSMM_API_H
#include "ISmmAPI.h"
class CSmmAPI : public ISmmAPI
{
public:
ISmmPluginManager *PluginManager();
SourceHook::ISourceHook *SourceHook();
void LogMsg(ISmmPlugin *pl, const char *msg, ...);
public:
CreateInterfaceFn engineFactory(bool syn=true);
CreateInterfaceFn physicsFactory(bool syn=true);
CreateInterfaceFn fileSystemFactory(bool syn=true);
CreateInterfaceFn serverFactory(bool syn=true);
CGlobalVars *pGlobals();
void SetLastMetaReturn(META_RES res);
META_RES GetLastMetaReturn();
private:
META_RES m_Res;
};
extern CSmmAPI g_SmmAPI;
#endif //_INCLUDE_CSMM_API_H