mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-27 08:09:31 +00:00
Eliminate DefineConsoleMethod
This commit is contained in:
parent
5bde18143f
commit
3c99ef73a9
77 changed files with 483 additions and 483 deletions
|
|
@ -187,7 +187,7 @@ bool ForestBrush::containsItemData( const ForestItemData *inData )
|
|||
return false;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestBrush, containsItemData, bool, ( const char * obj ), , "( ForestItemData obj )" )
|
||||
DefineEngineMethod( ForestBrush, containsItemData, bool, ( const char * obj ), , "( ForestItemData obj )" )
|
||||
{
|
||||
ForestItemData *data = NULL;
|
||||
if ( !Sim::findObject( obj, data ) )
|
||||
|
|
|
|||
|
|
@ -682,7 +682,7 @@ bool ForestBrushTool::getGroundAt( const Point3F &worldPt, F32 *zValueOut, Vecto
|
|||
return true;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestBrushTool, collectElements, void, (), , "" )
|
||||
DefineEngineMethod( ForestBrushTool, collectElements, void, (), , "" )
|
||||
{
|
||||
object->collectElements();
|
||||
}
|
||||
|
|
@ -370,24 +370,24 @@ bool ForestEditorCtrl::isDirty()
|
|||
return foundDirty;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestEditorCtrl, updateActiveForest, void, (), , "()" )
|
||||
DefineEngineMethod( ForestEditorCtrl, updateActiveForest, void, (), , "()" )
|
||||
{
|
||||
object->updateActiveForest( true );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestEditorCtrl, setActiveTool, void, ( const char * toolName ), , "( ForestTool tool )" )
|
||||
DefineEngineMethod( ForestEditorCtrl, setActiveTool, void, ( const char * toolName ), , "( ForestTool tool )" )
|
||||
{
|
||||
ForestTool *tool = dynamic_cast<ForestTool*>( Sim::findObject( toolName ) );
|
||||
object->setActiveTool( tool );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestEditorCtrl, getActiveTool, S32, (), , "()" )
|
||||
DefineEngineMethod( ForestEditorCtrl, getActiveTool, S32, (), , "()" )
|
||||
{
|
||||
ForestTool *tool = object->getActiveTool();
|
||||
return tool ? tool->getId() : 0;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestEditorCtrl, deleteMeshSafe, void, ( const char * obj ), , "( ForestItemData obj )" )
|
||||
DefineEngineMethod( ForestEditorCtrl, deleteMeshSafe, void, ( const char * obj ), , "( ForestItemData obj )" )
|
||||
{
|
||||
ForestItemData *db;
|
||||
if ( !Sim::findObject( obj, db ) )
|
||||
|
|
@ -396,12 +396,12 @@ DefineConsoleMethod( ForestEditorCtrl, deleteMeshSafe, void, ( const char * obj
|
|||
object->deleteMeshSafe( db );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestEditorCtrl, isDirty, bool, (), , "" )
|
||||
DefineEngineMethod( ForestEditorCtrl, isDirty, bool, (), , "" )
|
||||
{
|
||||
return object->isDirty();
|
||||
}
|
||||
|
||||
DefineConsoleMethod(ForestEditorCtrl, setActiveForest, void, (const char * obj), , "( Forest obj )")
|
||||
DefineEngineMethod(ForestEditorCtrl, setActiveForest, void, (const char * obj), , "( Forest obj )")
|
||||
{
|
||||
Forest *forestObject;
|
||||
if (!Sim::findObject(obj, forestObject))
|
||||
|
|
|
|||
|
|
@ -563,32 +563,32 @@ void ForestSelectionTool::onUndoAction()
|
|||
mBounds.intersect( mSelection[i].getWorldBox() );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, getSelectionCount, S32, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, getSelectionCount, S32, (), , "" )
|
||||
{
|
||||
return object->getSelectionCount();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, deleteSelection, void, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, deleteSelection, void, (), , "" )
|
||||
{
|
||||
object->deleteSelection();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, clearSelection, void, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, clearSelection, void, (), , "" )
|
||||
{
|
||||
object->clearSelection();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, cutSelection, void, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, cutSelection, void, (), , "" )
|
||||
{
|
||||
object->cutSelection();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, copySelection, void, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, copySelection, void, (), , "" )
|
||||
{
|
||||
object->copySelection();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( ForestSelectionTool, pasteSelection, void, (), , "" )
|
||||
DefineEngineMethod( ForestSelectionTool, pasteSelection, void, (), , "" )
|
||||
{
|
||||
object->pasteSelection();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,22 +361,22 @@ void Forest::saveDataFile( const char *path )
|
|||
mData->write( mDataFileName );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( Forest, saveDataFile, void, (const char * path), (""), "saveDataFile( [path] )" )
|
||||
DefineEngineMethod( Forest, saveDataFile, void, (const char * path), (""), "saveDataFile( [path] )" )
|
||||
{
|
||||
object->saveDataFile( path );
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Forest, isDirty, bool, (), , "()")
|
||||
DefineEngineMethod(Forest, isDirty, bool, (), , "()")
|
||||
{
|
||||
return object->getData() && object->getData()->isDirty();
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Forest, regenCells, void, (), , "()")
|
||||
DefineEngineMethod(Forest, regenCells, void, (), , "()")
|
||||
{
|
||||
object->getData()->regenCells();
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Forest, clear, void, (), , "()" )
|
||||
DefineEngineMethod(Forest, clear, void, (), , "()" )
|
||||
{
|
||||
object->clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue