mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -21,6 +21,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "tResponseCurve.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
IMPLEMENT_CONOBJECT( SimResponseCurve );
|
||||
|
||||
|
|
@ -63,17 +64,17 @@ void SimResponseCurve::clear()
|
|||
mCurve.clear();
|
||||
}
|
||||
|
||||
ConsoleMethod( SimResponseCurve, addPoint, void, 4, 4, "addPoint( F32 value, F32 time )" )
|
||||
DefineConsoleMethod( SimResponseCurve, addPoint, void, ( F32 value, F32 time ), , "addPoint( F32 value, F32 time )" )
|
||||
{
|
||||
object->addPoint( dAtof(argv[2]), dAtof(argv[3]) );
|
||||
object->addPoint( value, time );
|
||||
}
|
||||
|
||||
ConsoleMethod( SimResponseCurve, getValue, F32, 3, 3, "getValue( F32 time )" )
|
||||
DefineConsoleMethod( SimResponseCurve, getValue, F32, ( F32 time ), , "getValue( F32 time )" )
|
||||
{
|
||||
return object->getValue( dAtof(argv[2]) );
|
||||
return object->getValue( time );
|
||||
}
|
||||
|
||||
ConsoleMethod( SimResponseCurve, clear, void, 2, 2, "clear()" )
|
||||
DefineConsoleMethod( SimResponseCurve, clear, void, (), , "clear()" )
|
||||
{
|
||||
object->clear();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue