Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.

This commit is contained in:
Vincent Gee 2014-11-03 22:42:51 -05:00
parent 378a933894
commit acb192e2a5
133 changed files with 1716 additions and 2087 deletions

View file

@ -26,6 +26,7 @@
#include "core/stream/bitStream.h"
#include "math/mRandom.h"
#include "core/util/journal/journal.h"
#include "console/engineAPI.h"
#ifdef GGC_PLUGIN
#include "GGCNatTunnel.h"
@ -640,15 +641,14 @@ void NetInterface::computeNetMD5(const NetAddress *address, U32 connectSequence,
ConsoleFunctionGroupBegin(NetInterface, "Global control functions for the netInterfaces.");
ConsoleFunction(allowConnections,void,2,2,"allowConnections(bool allow);"
DefineConsoleFunction( allowConnections, void, ( bool allow ), , "allowConnections(bool allow)"
"@brief Sets whether or not the global NetInterface allows connections from remote hosts.\n\n"
"@param allow Set to true to allow remote connections.\n"
"@ingroup Networking\n")
{
TORQUE_UNUSED(argc);
GNet->setAllowsConnections(dAtob(argv[1]));
GNet->setAllowsConnections(allow);
}
ConsoleFunctionGroupEnd(NetInterface);