1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-01 13:24:25 +01:00
HLMetaModOfficial/sample_mm/engine_wrappers.h
David Anderson ffb560abea initial import of unfinished new sample plugin
this one is more based on valve's sample...

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40464
2007-10-07 03:12:19 +00:00

45 lines
918 B
C++

/**
* 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 <eiface.h>
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_