diff options
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.h')
-rw-r--r-- | NorthstarDedicatedTest/gameutils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/gameutils.h b/NorthstarDedicatedTest/gameutils.h index b637dfa7..8db63fd7 100644 --- a/NorthstarDedicatedTest/gameutils.h +++ b/NorthstarDedicatedTest/gameutils.h @@ -55,6 +55,33 @@ extern Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer; typedef void(*Cbuf_AddTextType)(ECommandTarget_t eTarget, const char* text, cmd_source_t source); extern Cbuf_AddTextType Cbuf_AddText; +typedef void(*Cbuf_ExecuteType)(); +extern Cbuf_ExecuteType Cbuf_Execute; + +// commandline stuff +class CCommandLine +{ +public: + virtual void CreateCmdLine(const char* commandline) {} + virtual void CreateCmdLine(int argc, char** argv) {} + virtual const char* GetCmdLine(void) const {} + virtual const char* CheckParm(const char* psz, const char** ppszValue = 0) const {} + virtual bool HasParm(const char* psz) const {} + + virtual void RemoveParm() const {} + virtual void AppendParm(const char* pszParm, const char* pszValues) {} + + virtual int ParmCount() const {} + virtual int FindParm(const char* psz) const {} + virtual const char* GetParm(int nIndex) const {} + + virtual const char* ParmValue(const char* psz, const char* pDefaultVal = 0) const {} + virtual int ParmValue(const char* psz, int nDefaultVal) const {} + virtual float ParmValue(const char* psz, float flDefaultVal) const {} + virtual void SetParm(int nIndex, char const* pParm) {} + + virtual const char** GetParms() const {} +}; // hoststate stuff |