Added macro so that ConCommands created with the SDK's CON_COMMAND and CON_COMMAND_F macros can be properly registered and unregisterd
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 void MarkCommandsAsGameDLL();
31 void Unregister(ConCommandBase *pCvar);
34 extern SMConVarAccessor g_SMConVarAccessor;
36 #endif //_INCLUDE_CONCOMMANDS_H