1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/core/provider/console.h Fri Nov 14 04:04:02 2008 -0600
1.3 @@ -0,0 +1,55 @@
1.4 +/**
1.5 + * vim: set ts=4 :
1.6 + * ======================================================
1.7 + * Metamod:Source
1.8 + * Copyright (C) 2004-2008 AlliedModders LLC and authors.
1.9 + * All rights reserved.
1.10 + * ======================================================
1.11 + *
1.12 + * This software is provided 'as-is', without any express or implied warranty.
1.13 + * In no event will the authors be held liable for any damages arising from
1.14 + * the use of this software.
1.15 + *
1.16 + * Permission is granted to anyone to use this software for any purpose,
1.17 + * including commercial applications, and to alter it and redistribute it
1.18 + * freely, subject to the following restrictions:
1.19 + *
1.20 + * 1. The origin of this software must not be misrepresented; you must not
1.21 + * claim that you wrote the original software. If you use this software in a
1.22 + * product, an acknowledgment in the product documentation would be
1.23 + * appreciated but is not required.
1.24 + * 2. Altered source versions must be plainly marked as such, and must not be
1.25 + * misrepresented as being the original software.
1.26 + * 3. This notice may not be removed or altered from any source distribution.
1.27 + *
1.28 + * Version: $Id$
1.29 + */
1.30 +
1.31 +#ifndef _INCLUDE_CONSOLE_MMS_H_
1.32 +#define _INCLUDE_CONSOLE_MMS_H_
1.33 +
1.34 +#if defined _DEBUG
1.35 +#define DEBUG2
1.36 +#undef _DEBUG
1.37 +#endif
1.38 +#include <interface.h>
1.39 +#include <eiface.h>
1.40 +#include "convar.h"
1.41 +#include <sh_list.h>
1.42 +#if defined DEBUG2
1.43 +#undef DEBUG2
1.44 +#define _DEBUG
1.45 +#endif
1.46 +
1.47 +class SMConVarAccessor : public IConCommandBaseAccessor
1.48 +{
1.49 +public:
1.50 + bool RegisterConCommandBase(ConCommandBase *pCommand);
1.51 + bool Register(ConCommandBase *pCommand);
1.52 + void Unregister(ConCommandBase *pCommand);
1.53 +};
1.54 +
1.55 +extern SMConVarAccessor g_SMConVarAccessor;
1.56 +
1.57 +#endif //_INCLUDE_CONSOLE_MMS_H_
1.58 +