sourcemm/ISmmAPI.h
author David Anderson <dvander@alliedmods.net>
Thu Apr 28 17:24:39 2005 +0000 (2005-04-28)
changeset 40 dc68364fda90
parent 9 01b8b7435e67
child 64 ad98b9f2d80c
permissions -rw-r--r--
Reorganized makefiles a tad
     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_ISMM_API_H
    12 #define _INCLUDE_ISMM_API_H
    13 
    14 /**
    15  * @brief External API interface
    16  * @file ISmmAPI.h
    17  */
    18 
    19 #include <interface.h>
    20 #include <eiface.h>
    21 #include <sourcehook/sourcehook.h>
    22 #include "IPluginManager.h"
    23 
    24 class ISmmPluginManager;
    25 class ISmmPlugin;
    26 
    27 class ISmmAPI
    28 {
    29 public:
    30 	virtual ISmmPluginManager *PluginManager() =0;
    31 	virtual SourceHook::ISourceHook *SourceHook() =0;
    32 	virtual void LogMsg(ISmmPlugin *pl, const char *msg, ...) =0;
    33 public:
    34 	virtual CreateInterfaceFn engineFactory(bool syn=true) =0;
    35 	virtual CreateInterfaceFn physicsFactory(bool syn=true) =0;
    36 	virtual CreateInterfaceFn fileSystemFactory(bool syn=true) =0;
    37 	virtual CreateInterfaceFn serverFactory(bool syn=true) =0;
    38 	virtual CGlobalVars *pGlobals() =0;
    39 	virtual void SetLastMetaReturn(META_RES res) =0;
    40 	virtual META_RES GetLastMetaReturn() =0;
    41 };
    42 
    43 #endif //_INCLUDE_ISMM_API_H