sourcemm/episode1/console.h
changeset 371 751179604513
child 523 6f1630519b81
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcemm/episode1/console.h	Thu Oct 04 20:15:25 2007 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +/**
     1.5 + * vim: set ts=4 :
     1.6 + * ======================================================
     1.7 + * Metamod:Source
     1.8 + * Copyright (C) 2004-2007 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 +#include <interface.h>
    1.35 +#include <eiface.h>
    1.36 +#include "convar_smm.h"
    1.37 +#include <sh_list.h>
    1.38 +
    1.39 +class SMConVarAccessor : public IConCommandBaseAccessor
    1.40 +{
    1.41 +public:
    1.42 +	bool RegisterConCommandBase(ConCommandBase *pCommand);
    1.43 +	bool Register(ConCommandBase *pCommand);
    1.44 +	void MarkCommandsAsGameDLL();
    1.45 +	void Unregister(ConCommandBase *pCommand);
    1.46 +	void UnregisterGameDLLCommands();
    1.47 +private:
    1.48 +	SourceHook::List<ConCommandBase*> m_RegisteredCommands;
    1.49 +};
    1.50 +
    1.51 +extern SMConVarAccessor g_SMConVarAccessor;
    1.52 +
    1.53 +#endif //_INCLUDE_CONSOLE_MMS_H_
    1.54 +