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

Function sEnumCallback

Engine/source/console/simObject.cpp:2295–2302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2293
2294static const char* sEnumCallbackFunction;
2295static void sEnumCallback( EngineObject* object )
2296{
2297 SimObject* simObject = dynamic_cast< SimObject* >( object );
2298 if( !simObject )
2299 return;
2300
2301 Con::evaluatef( "%s( %i );", sEnumCallbackFunction, simObject->getId() );
2302}
2303
2304DefineEngineFunction( debugEnumInstances, void, ( const char* className, const char* functionName ),,
2305 "Call the given function for each instance of the given class.\n"

Callers

nothing calls this directly

Calls 2

evaluatefFunction · 0.85
getIdMethod · 0.45

Tested by

no test coverage detected