added command line, added basic character

This commit is contained in:
2025-06-12 00:17:59 +03:00
parent 64c0f41884
commit af4f0c3cad
65 changed files with 262985 additions and 304 deletions

View File

@@ -3,6 +3,7 @@
#include "engine.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"
class ConVar;
class ConCommand;
@@ -16,13 +17,15 @@ public:
static void UnRegisterVar( ConVar *cvar );
static ConVar *FindVar( const char *pName );
static void RegisterCommand( ConVar *cvar );
static void UnRegisterCommand( ConVar *cvar );
static void RegisterCommand( ConCommand *cvar );
static void UnRegisterCommand( ConCommand *cvar );
static ConCommand *FindCommand( const char *pName );
static void Execute( void );
static void AddCommand( const char *psz );
static void InsertCommand( const char *psz );
private:
static void Execute2( CUtlVector<CUtlString> &args );
};
@@ -83,9 +86,13 @@ class ConCommand
public:
ConCommand(const char *pName, ConCommandFn callback,
const char *pHelpString=0, int flags=0);
const char *GetName( void );
const char *GetHelpText( void );
ConCommandFn GetCallback( void );
private:
char *m_szName;
char *m_szHelpString = NULL;
CUtlString m_szName;
CUtlString m_szHelpString = NULL;
ConCommandFn m_callback;
int m_flags;