mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-27 16:19:34 +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
|
|
@ -23,6 +23,7 @@
|
|||
#include "platform/platform.h"
|
||||
#include "core/dnet.h"
|
||||
#include "console/simBase.h"
|
||||
#include "console/engineAPI.h"
|
||||
#include "sim/netConnection.h"
|
||||
#include "core/stream/bitStream.h"
|
||||
#include "core/stream/fileStream.h"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -267,6 +267,11 @@ void NetStringTable::dumpToConsole()
|
|||
0x11 );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
DefineEngineFunction( dumpNetStringTable, void, (),,
|
||||
"@brief Dump the current contents of the networked string table to the console.\n\n"
|
||||
"The results are returned in three columns. The first column is the network string ID. "
|
||||
|
|
@ -275,7 +280,8 @@ DefineEngineFunction( dumpNetStringTable, void, (),,
|
|||
"@note This function is available only in debug builds.\n\n"
|
||||
"@ingroup Networking" )
|
||||
{
|
||||
#ifdef TORQUE_DEBUG
|
||||
gNetStringTable->dumpToConsole();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue