From Valve Developer Community
Revision as of 04:47, 9 July 2012 by Durub
CCommand is a tokenizer used mainly in ConCommands.
It tokenizes a string like "say Valve Developer Community" to a series of arguments (args), in this case being:
Argument 0: say
Argument 1: Valve
Argument 2: Developer
Argument 3: Community
- Returns number of arguments.
const char *CCommand::Arg( int nIndex )
- Returns the argument
nIndexof this CCommand.
const char *CCommand::ArgS()
- Returns all args that occur after the 0th arg, in string form
const char *CCommand::GetCommandString()
- Returns the original command (the entire command in string form, including the 0th arg)