![]() |
• System Utilities | ||||||||||
|
API Links
Developer Links
|
class CommandDefined in:
The C4Commands.hCommand class stores a system command.
Definition
Member Functions
Constructor
Parameters
Description
The Command class encapsulates the name and function pointer for a system command. The name of a system command is a text string containing up to kMaxCommandNameLength characters. The observer parameter specifies an observer that is invoked when the command with that name is executed. The const char * event parameter passed to an observer points to the string following the command name and any whitespace on the command line when the command is executed. This string can be parsed by the observer and interpreted as command parameters.Once a command has been created, it can be registered with the engine by calling the Engine::AddCommand function. A command is unregistered by simply destroying it.
Base Classes
See Also
|