C4 Engine
C4 Engine API Documentation

Engine::AddCommand

Defined in:  C4Engine.h
Registers a system command.
Prototype

bool AddCommand(Command *command);

Parameters
command A pointer to the command to register.
Description
The AddCommand function registers the system command specified by the command parameter with the engine. If the command is successfully registered, then the return value is true. If another command with the same name has already been registered, then the return value is false, and the new command is not registered.
See Also

Engine::GetCommand

Engine::GetFirstCommand

Command