mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
-Removed unused update tool -Bumped version for tagging --HG-- branch : sourcemm-1.4.4 extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.4%40705
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
/* ======== SourceMM ========
|
|
* Copyright (C) 2004-2008 Metamod:Source Development Team
|
|
* No warranties of any kind
|
|
*
|
|
* License: zlib/libpng
|
|
*
|
|
* Author(s): David "BAILOPAN" Anderson
|
|
* ============================
|
|
*/
|
|
|
|
#ifndef _INCLUDE_CONCOMMANDS_H
|
|
#define _INCLUDE_CONCOMMANDS_H
|
|
|
|
/**
|
|
* @brief Header for console commands
|
|
* @file concommands.h
|
|
*/
|
|
|
|
#include "convar_smm.h"
|
|
#include "sourcemm.h"
|
|
#include "sh_list.h"
|
|
|
|
class SMConVarAccessor : public IConCommandBaseAccessor
|
|
{
|
|
SourceHook::List<ConCommandBase*> m_RegisteredCommands;
|
|
ConCommandBase **m_TopConCommandBase;
|
|
public:
|
|
SMConVarAccessor();
|
|
virtual bool RegisterConCommandBase(ConCommandBase *pCommand);
|
|
bool Register(ConCommandBase *pCommand);
|
|
void MarkCommandsAsGameDLL();
|
|
bool InitConCommandBaseList();
|
|
void Unregister(ConCommandBase *pCommand);
|
|
void UnloadMetamodCommands();
|
|
};
|
|
|
|
void ClientCommand_handler(edict_t *client);
|
|
|
|
const char *GetPluginsFile();
|
|
const char *GetMetamodBaseDir();
|
|
|
|
extern SMConVarAccessor g_SMConVarAccessor;
|
|
|
|
#endif //_INCLUDE_CONCOMMANDS_H
|