mirror of https://github.com/axmolengine/axmol.git
cmd to request
This commit is contained in:
parent
d74fd796eb
commit
a6cd18d05d
|
@ -593,7 +593,7 @@ public:
|
||||||
{
|
{
|
||||||
cocos2d::Console *_console = Director::getInstance()->getConsole();
|
cocos2d::Console *_console = Director::getInstance()->getConsole();
|
||||||
static struct Console::Command commands[] = {
|
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++) {
|
for (int i=0;i< sizeof(commands)/sizeof(Console::Command);i++) {
|
||||||
_console->addCommand(commands[i]);
|
_console->addCommand(commands[i]);
|
||||||
|
|
Loading…
Reference in New Issue