cmd to request

This commit is contained in:
chuanweizhang2013 2014-04-02 13:47:09 +08:00
parent d74fd796eb
commit a6cd18d05d
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public:
{
cocos2d::Console *_console = Director::getInstance()->getConsole();
static struct Console::Command commands[] = {
{"sendcmd","send command to runtime.Args[json format]",std::bind(&ConsoleCustomCommand::onSendCommand, this, std::placeholders::_1, std::placeholders::_2)},
{"sendrequest","send command to runtime.Args[json format]",std::bind(&ConsoleCustomCommand::onSendCommand, this, std::placeholders::_1, std::placeholders::_2)},
};
for (int i=0;i< sizeof(commands)/sizeof(Console::Command);i++) {
_console->addCommand(commands[i]);