mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Eliminate DefineConsoleMethod
This commit is contained in:
parent
5bde18143f
commit
3c99ef73a9
77 changed files with 483 additions and 483 deletions
|
|
@ -1185,67 +1185,67 @@ void GuiMeshRoadEditorCtrl::matchTerrainToRoad()
|
|||
// with the terrain underneath it.
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
{
|
||||
object->deleteSelectedNode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getMode, const char*, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getMode, const char*, (), , "" )
|
||||
{
|
||||
return object->getMode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setMode, void, (const char * mode), , "setMode( String mode )" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setMode, void, (const char * mode), , "setMode( String mode )" )
|
||||
{
|
||||
String newMode = ( mode );
|
||||
object->setMode( newMode );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
{
|
||||
return object->getNodeWidth();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
{
|
||||
object->setNodeWidth( width );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getNodeDepth, F32, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getNodeDepth, F32, (), , "" )
|
||||
{
|
||||
return object->getNodeDepth();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setNodeDepth, void, ( F32 depth ), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setNodeDepth, void, ( F32 depth ), , "" )
|
||||
{
|
||||
object->setNodeDepth( depth );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
{
|
||||
|
||||
return object->getNodePosition();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setNodePosition, void, (Point3F pos), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setNodePosition, void, (Point3F pos), , "" )
|
||||
{
|
||||
|
||||
object->setNodePosition( pos );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getNodeNormal, Point3F, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getNodeNormal, Point3F, (), , "" )
|
||||
{
|
||||
|
||||
return object->getNodeNormal();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setNodeNormal, void, (Point3F normal), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setNodeNormal, void, (Point3F normal), , "" )
|
||||
{
|
||||
|
||||
object->setNodeNormal( normal );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, setSelectedRoad, void, (const char * objName), (""), "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, setSelectedRoad, void, (const char * objName), (""), "" )
|
||||
{
|
||||
if ( String::isEmpty(objName) )
|
||||
object->setSelectedRoad(NULL);
|
||||
|
|
@ -1257,7 +1257,7 @@ DefineConsoleMethod( GuiMeshRoadEditorCtrl, setSelectedRoad, void, (const char *
|
|||
}
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
||||
{
|
||||
MeshRoad *road = object->getSelectedRoad();
|
||||
if ( !road )
|
||||
|
|
@ -1266,14 +1266,14 @@ DefineConsoleMethod( GuiMeshRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
|||
return road->getId();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, regenerate, void, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, regenerate, void, (), , "" )
|
||||
{
|
||||
MeshRoad *road = object->getSelectedRoad();
|
||||
if ( road )
|
||||
road->regenerate();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiMeshRoadEditorCtrl, matchTerrainToRoad, void, (), , "" )
|
||||
DefineEngineMethod( GuiMeshRoadEditorCtrl, matchTerrainToRoad, void, (), , "" )
|
||||
{
|
||||
object->matchTerrainToRoad();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1393,66 +1393,66 @@ void GuiRiverEditorCtrl::_renderSelectedRiver( ObjectRenderInst *ri, SceneRender
|
|||
}
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
{
|
||||
object->deleteSelectedNode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getMode, const char*, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getMode, const char*, (), , "" )
|
||||
{
|
||||
return object->getMode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setMode, void, ( const char * mode ), , "setMode( String mode )" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setMode, void, ( const char * mode ), , "setMode( String mode )" )
|
||||
{
|
||||
String newMode = ( mode );
|
||||
object->setMode( newMode );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
{
|
||||
return object->getNodeWidth();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
{
|
||||
object->setNodeWidth( width );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getNodeDepth, F32, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getNodeDepth, F32, (), , "" )
|
||||
{
|
||||
return object->getNodeDepth();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setNodeDepth, void, ( F32 depth ), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setNodeDepth, void, ( F32 depth ), , "" )
|
||||
{
|
||||
object->setNodeDepth( depth );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
{
|
||||
|
||||
return object->getNodePosition();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setNodePosition, void, (Point3F pos), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setNodePosition, void, (Point3F pos), , "" )
|
||||
{
|
||||
object->setNodePosition( pos );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getNodeNormal, Point3F, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getNodeNormal, Point3F, (), , "" )
|
||||
{
|
||||
|
||||
return object->getNodeNormal();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setNodeNormal, void, (Point3F normal), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setNodeNormal, void, (Point3F normal), , "" )
|
||||
{
|
||||
|
||||
object->setNodeNormal( normal );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, setSelectedRiver, void, (const char * objName), (""), "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, setSelectedRiver, void, (const char * objName), (""), "" )
|
||||
{
|
||||
if (dStrcmp( objName,"" )==0)
|
||||
object->setSelectedRiver(NULL);
|
||||
|
|
@ -1464,7 +1464,7 @@ DefineConsoleMethod( GuiRiverEditorCtrl, setSelectedRiver, void, (const char * o
|
|||
}
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, getSelectedRiver, S32, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, getSelectedRiver, S32, (), , "" )
|
||||
{
|
||||
River *river = object->getSelectedRiver();
|
||||
if ( !river )
|
||||
|
|
@ -1473,7 +1473,7 @@ DefineConsoleMethod( GuiRiverEditorCtrl, getSelectedRiver, S32, (), , "" )
|
|||
return river->getId();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRiverEditorCtrl, regenerate, void, (), , "" )
|
||||
DefineEngineMethod( GuiRiverEditorCtrl, regenerate, void, (), , "" )
|
||||
{
|
||||
River *river = object->getSelectedRiver();
|
||||
if ( river )
|
||||
|
|
|
|||
|
|
@ -1037,45 +1037,45 @@ void GuiRoadEditorCtrl::submitUndo( const UTF8 *name )
|
|||
undoMan->addAction( action );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, deleteNode, void, (), , "deleteNode()" )
|
||||
{
|
||||
object->deleteSelectedNode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, getMode, const char*, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, getMode, const char*, (), , "" )
|
||||
{
|
||||
return object->getMode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, setMode, void, ( const char * mode ), , "setMode( String mode )" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, setMode, void, ( const char * mode ), , "setMode( String mode )" )
|
||||
{
|
||||
String newMode = ( mode );
|
||||
object->setMode( newMode );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, getNodeWidth, F32, (), , "" )
|
||||
{
|
||||
return object->getNodeWidth();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, setNodeWidth, void, ( F32 width ), , "" )
|
||||
{
|
||||
object->setNodeWidth( width );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, getNodePosition, Point3F, (), , "" )
|
||||
{
|
||||
|
||||
return object->getNodePosition();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, setNodePosition, void, ( Point3F pos ), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, setNodePosition, void, ( Point3F pos ), , "" )
|
||||
{
|
||||
|
||||
object->setNodePosition( pos );
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, setSelectedRoad, void, ( const char * pathRoad ), (""), "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, setSelectedRoad, void, ( const char * pathRoad ), (""), "" )
|
||||
{
|
||||
if (dStrcmp( pathRoad,"")==0 )
|
||||
object->setSelectedRoad(NULL);
|
||||
|
|
@ -1087,7 +1087,7 @@ DefineConsoleMethod( GuiRoadEditorCtrl, setSelectedRoad, void, ( const char * pa
|
|||
}
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
||||
{
|
||||
DecalRoad *road = object->getSelectedRoad();
|
||||
if ( road )
|
||||
|
|
@ -1096,12 +1096,12 @@ DefineConsoleMethod( GuiRoadEditorCtrl, getSelectedRoad, S32, (), , "" )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, getSelectedNode, S32, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, getSelectedNode, S32, (), , "" )
|
||||
{
|
||||
return object->getSelectedNode();
|
||||
}
|
||||
|
||||
DefineConsoleMethod( GuiRoadEditorCtrl, deleteRoad, void, (), , "" )
|
||||
DefineEngineMethod( GuiRoadEditorCtrl, deleteRoad, void, (), , "" )
|
||||
{
|
||||
object->deleteSelectedRoad();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -640,7 +640,7 @@ BaseMatInstance* SkyBox::_getMaterialInstance()
|
|||
return mMatInstance;
|
||||
}
|
||||
|
||||
DefineConsoleMethod( SkyBox, postApply, void, (), , "")
|
||||
DefineEngineMethod( SkyBox, postApply, void, (), , "")
|
||||
{
|
||||
object->inspectPostApply();
|
||||
}
|
||||
|
|
@ -558,12 +558,12 @@ void Sun::_onUnselected()
|
|||
Parent::_onUnselected();
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Sun, apply, void, (), , "")
|
||||
DefineEngineMethod(Sun, apply, void, (), , "")
|
||||
{
|
||||
object->inspectPostApply();
|
||||
}
|
||||
|
||||
DefineConsoleMethod(Sun, animate, void, ( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation ), , "animate( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation )")
|
||||
DefineEngineMethod(Sun, animate, void, ( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation ), , "animate( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation )")
|
||||
{
|
||||
|
||||
object->animate(duration, startAzimuth, endAzimuth, startElevation, endElevation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue