1 /* ======== SourceMM ========
2 * Copyright (C) 2004-2005 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 std::list<ConCommandBase*> m_RegisteredCommands;
29 virtual bool RegisterConCommandBase(ConCommandBase *pCommand);
30 bool Register(ConCommandBase *pCommand);
31 void MarkCommandsAsGameDLL();
32 void Unregister(ConCommandBase *pCommand);
35 class CAlwaysRegisterableCommand : public ConCommandBase
39 CAlwaysRegisterableCommand();
40 bool IsRegistered( void ) const;
41 // If already registered, removes us
42 // Then it registers us again
46 extern SMConVarAccessor g_SMConVarAccessor;
48 #endif //_INCLUDE_CONCOMMANDS_H