diff -r 771bb7db49de -r e8a3f2617a3e sample_mm/engine_wrappers.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample_mm/engine_wrappers.h Sun Oct 07 03:12:19 2007 +0000 @@ -0,0 +1,44 @@ +/** + * vim: set ts=4 : + * ====================================================== + * Metamod:Source Sample Plugin + * Written by AlliedModders LLC. + * ====================================================== + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * This sample plugin is public domain. + * + * Version: $Id$ + */ + +#ifndef _INCLUDE_SOURCE_ENGINE_WRAPPERS_ +#define _INCLUDE_SOURCE_ENGINE_WRAPPERS_ + +#include + +extern IVEngineServer *engine; + +#if !defined ORANGEBOX_BUILD +class CCommand +{ +public: + const char *ArgS() + { + return engine->Cmd_Args(); + } + int ArgC() + { + return engine->Cmd_Argc(); + } + + const char *Arg(int index) + { + return engine->Cmd_Argv(index); + } +}; +#endif + +#endif //_INCLUDE_SOURCE_ENGINE_WRAPPERS_