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

Method addCommand

Engine/source/console/consoleInternal.cpp:1261–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259}
1260
1261void Namespace::addCommand( StringTableEntry name, StringCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1262{
1263 Entry *ent = createLocalEntry(name);
1264 trashCache();
1265
1266 ent->mUsage = usage;
1267 ent->mHeader = header;
1268 ent->mMinArgs = minArgs;
1269 ent->mMaxArgs = maxArgs;
1270 ent->mToolOnly = isToolOnly;
1271
1272 ent->mType = Entry::StringCallbackType;
1273 ent->cb.mStringCallbackFunc = cb;
1274}
1275
1276void Namespace::addCommand( StringTableEntry name, IntCallback cb, const char *usage, S32 minArgs, S32 maxArgs, bool isToolOnly, ConsoleFunctionHeader* header )
1277{

Callers 1

addCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected