Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.

This commit is contained in:
Vincent Gee 2014-11-03 22:42:51 -05:00
parent 378a933894
commit acb192e2a5
133 changed files with 1716 additions and 2087 deletions

View file

@ -484,19 +484,17 @@ static ConsoleDocFragment _FileObjectwriteObject2(
"FileObject",
"void writeObject( SimObject* object, string prepend);");
ConsoleMethod( FileObject, writeObject, void, 3, 4, "FileObject.writeObject(SimObject, object prepend)"
DefineConsoleMethod( FileObject, writeObject, void, (const char * simName, const char * objName), (""), "FileObject.writeObject(SimObject, object prepend)"
"@hide")
{
SimObject* obj = Sim::findObject( argv[2] );
SimObject* obj = Sim::findObject( simName );
if( !obj )
{
Con::printf("FileObject::writeObject - Invalid Object!");
return;
}
const char *objName = NULL;
if( argc == 4 )
objName = (const char*)argv[3];
if (!dStrcmp(objName,""))
objName = NULL;
object->writeObject( obj, (const U8*)objName );
}