1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-07 22:46:19 +01:00
HLMetaModOfficial/sourcemm/episode1/console.h
David Anderson 6cfff6ed91 combining everything into one binary again now that api is separated
--HG--
branch : sourcemm-1.6.0
rename : sourcemm/oslink.cpp => sourcemm/metamod_oslink.cpp
rename : sourcemm/oslink.h => sourcemm/metamod_oslink.h
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.6.0%40434
2007-09-28 21:31:02 +00:00

25 lines
577 B
C++

#ifndef _INCLUDE_CONSOLE_MMS_H_
#define _INCLUDE_CONSOLE_MMS_H_
#include <interface.h>
#include <eiface.h>
#include "convar_smm.h"
#include <sh_list.h>
class SMConVarAccessor : public IConCommandBaseAccessor
{
public:
bool RegisterConCommandBase(ConCommandBase *pCommand);
bool Register(ConCommandBase *pCommand);
void MarkCommandsAsGameDLL();
void Unregister(ConCommandBase *pCommand);
void UnregisterGameDLLCommands();
private:
SourceHook::List<ConCommandBase*> m_RegisteredCommands;
};
extern SMConVarAccessor g_SMConVarAccessor;
#endif //_INCLUDE_CONSOLE_MMS_H_