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

Function addCommand

Engine/source/console/console.cpp:1116–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114//---------------------------------------------------------------------------
1115
1116void addCommand( const char *nsName, const char *name,StringCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1117{
1118 Namespace *ns = lookupNamespace(nsName);
1119 ns->addCommand( StringTable->insert(name), cb, usage, minArgs, maxArgs, isToolOnly, header );
1120}
1121
1122void addCommand( const char *nsName, const char *name,VoidCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1123{

Callers 1

setupMethod · 0.85

Calls 4

lookupNamespaceFunction · 0.85
addCommandMethod · 0.80
globalClass · 0.50
insertMethod · 0.45

Tested by

no test coverage detected