MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / addCommand

Function addCommand

Engine/source/console/console.cpp:1064–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062//---------------------------------------------------------------------------
1063
1064void addCommand( const char *nsName, const char *name,StringCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1065{
1066 Namespace *ns = lookupNamespace(nsName);
1067 ns->addCommand( StringTable->insert(name), cb, usage, minArgs, maxArgs, isToolOnly, header );
1068}
1069
1070void addCommand( const char *nsName, const char *name,VoidCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1071{

Callers 8

setupMethod · 0.85
Con_AddCommand_StringFunction · 0.85

Calls 3

lookupNamespaceFunction · 0.85
addCommandMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected