mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.
This commit is contained in:
parent
378a933894
commit
acb192e2a5
133 changed files with 1716 additions and 2087 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue