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

@ -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();
}