mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "platform/platformTimer.h"
|
||||
#include "core/util/journal/process.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
void TimeManager::_updateTime()
|
||||
{
|
||||
|
|
@ -168,12 +169,12 @@ S32 ScriptTimerMan::stopTimer( S32 id )
|
|||
|
||||
ScriptTimerMan gScriptTimerMan;
|
||||
|
||||
ConsoleFunction( startPrecisionTimer, S32, 1, 1, "startPrecisionTimer() - Create and start a high resolution platform timer. Returns the timer id." )
|
||||
DefineConsoleFunction( startPrecisionTimer, S32, (), , "startPrecisionTimer() - Create and start a high resolution platform timer. Returns the timer id." )
|
||||
{
|
||||
return gScriptTimerMan.startTimer();
|
||||
}
|
||||
|
||||
ConsoleFunction( stopPrecisionTimer, S32, 2, 2, "stopPrecisionTimer( S32 id ) - Stop and destroy timer with the passed id. Returns the elapsed milliseconds." )
|
||||
DefineConsoleFunction( stopPrecisionTimer, S32, ( S32 id), , "stopPrecisionTimer( S32 id ) - Stop and destroy timer with the passed id. Returns the elapsed milliseconds." )
|
||||
{
|
||||
return gScriptTimerMan.stopTimer( dAtoi( argv[1] ) );
|
||||
return gScriptTimerMan.stopTimer( id );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue