1 /* ======== SourceMM ========
2 * Copyright (C) 2004-2006 Metamod:Source Development Team
3 * No warranties of any kind
7 * Author(s): David "BAILOPAN" Anderson
8 * ============================
11 #ifndef _INCLUDE_CONCOMMANDS_H
12 #define _INCLUDE_CONCOMMANDS_H
15 * @brief Header for console commands
19 #include <interface.h>
25 class SMConVarAccessor : public IConCommandBaseAccessor
27 SourceHook::List<ConCommandBase*> m_RegisteredCommands;
29 virtual bool RegisterConCommandBase(ConCommandBase *pCommand);
30 bool Register(ConCommandBase *pCommand);
31 void MarkCommandsAsGameDLL();
32 void Unregister(ConCommandBase *pCommand);
33 void UnregisterGameDLLCommands();
36 class CAlwaysRegisterableCommand : public ConCommandBase
40 CAlwaysRegisterableCommand();
41 bool IsRegistered( void ) const;
42 // If already registered, removes us
43 // Then it registers us again
47 const char *GetPluginsFile();
49 extern SMConVarAccessor g_SMConVarAccessor;
51 #endif //_INCLUDE_CONCOMMANDS_H