sourcemm/episode1/console.h
branchsourcemm-1.6.0
changeset 359 9b3c625f3a83
child 367 fc76472b980f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcemm/episode1/console.h	Fri Sep 28 21:31:02 2007 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef _INCLUDE_CONSOLE_MMS_H_
     1.5 +#define _INCLUDE_CONSOLE_MMS_H_
     1.6 +
     1.7 +#include <interface.h>
     1.8 +#include <eiface.h>
     1.9 +#include "convar_smm.h"
    1.10 +#include <sh_list.h>
    1.11 +
    1.12 +class SMConVarAccessor : public IConCommandBaseAccessor
    1.13 +{
    1.14 +public:
    1.15 +	bool RegisterConCommandBase(ConCommandBase *pCommand);
    1.16 +	bool Register(ConCommandBase *pCommand);
    1.17 +	void MarkCommandsAsGameDLL();
    1.18 +	void Unregister(ConCommandBase *pCommand);
    1.19 +	void UnregisterGameDLLCommands();
    1.20 +private:
    1.21 +	SourceHook::List<ConCommandBase*> m_RegisteredCommands;
    1.22 +};
    1.23 +
    1.24 +extern SMConVarAccessor g_SMConVarAccessor;
    1.25 +
    1.26 +#endif //_INCLUDE_CONSOLE_MMS_H_
    1.27 +