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

Function DefineEngineFunction

Engine/source/console/sim.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100DefineEngineFunction( isObject, bool, (const char * objectName), ,"isObject(object)")
101{
102 if (!String::compare(objectName, "0") || !String::compare(objectName, ""))
103 return false;
104 else
105 return (Sim::findObject(objectName) != NULL);
106}
107
108ConsoleDocFragment _spawnObject1(
109 "@brief Global function used for spawning any type of object.\n\n"

Callers 2

sim.cppFile · 0.70

Calls 4

compareFunction · 0.85
cancelEventFunction · 0.85
isEventPendingFunction · 0.85
findObjectFunction · 0.70

Tested by

no test coverage detected