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

Method SimConsoleEvent

Engine/source/console/simEvents.cpp:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29extern ExprEvalState gEvalState;
30
31SimConsoleEvent::SimConsoleEvent(S32 argc, ConsoleValueRef *argv, bool onObject)
32{
33 mOnObject = onObject;
34 mArgc = argc;
35
36 mArgv = new ConsoleValueRef[argc];
37 for (int i=0; i<argc; i++)
38 {
39 mArgv[i].value = new ConsoleValue();
40 mArgv[i].value->type = ConsoleValue::TypeInternalString;
41 mArgv[i].value->init();
42 if (argv)
43 {
44 mArgv[i].value->setStringValue((const char*)argv[i]);
45 }
46 }
47}
48
49SimConsoleEvent::~SimConsoleEvent()
50{

Callers

nothing calls this directly

Calls 2

initMethod · 0.45
setStringValueMethod · 0.45

Tested by

no test coverage detected