mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-02 02:55:13 +00:00
Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.
This commit is contained in:
parent
378a933894
commit
acb192e2a5
133 changed files with 1716 additions and 2087 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue