This allows a console client to call most of the functions in RakPeer.
#include <RakNetCommandParser.h>
List of all members.
Detailed Description
Definition at line 22 of file RakNetCommandParser.h.
Constructor & Destructor Documentation
| RakNet::RakNetCommandParser::RakNetCommandParser |
( |
| ) |
|
| RakNet::RakNetCommandParser::~RakNetCommandParser |
( |
| ) |
|
Member Function Documentation
| const char* RakNet::RakNetCommandParser::GetName |
( |
void |
| ) |
const [virtual] |
You are responsible for overriding this function and returning a static string, which will identifier your parser. This should return a static string
- Returns:
- The name that you return.
Implements RakNet::CommandParserInterface.
| bool RakNet::RakNetCommandParser::OnCommand |
( |
const char * |
command, |
|
|
unsigned |
numParameters, |
|
|
char ** |
parameterList, |
|
|
TransportInterface * |
transport, |
|
|
const SystemAddress & |
systemAddress, |
|
|
const char * |
originalString |
|
) |
| [virtual] |
Given command with parameters parameterList , do whatever processing you wish.
- Parameters:
-
| [in] | command | The command to process |
| [in] | numParameters | How many parameters were passed along with the command |
| [in] | parameterList | The list of parameters. parameterList[0] is the first parameter and so on. |
| [in] | transport | The transport interface we can use to write to |
| [in] | systemAddress | The player that sent this command. |
| [in] | originalString | The string that was actually sent over the network, in case you want to do your own parsing |
Implements RakNet::CommandParserInterface.
A callback for when you are expected to send a brief description of your parser to systemAddress
- Parameters:
-
| [in] | transport | The transport interface we can use to write to |
| [in] | systemAddress | The player that requested help. |
Implements RakNet::CommandParserInterface.
Records the instance of RakPeer to perform the desired commands on
- Parameters:
-
Member Data Documentation
The documentation for this class was generated from the following file: