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
|
|
@ -27,6 +27,7 @@
|
|||
#include "math/mathIO.h"
|
||||
#include "core/stream/bitStream.h"
|
||||
#include "console/consoleTypes.h"
|
||||
#include "console/engineAPI.h"
|
||||
#include "scene/sceneManager.h"
|
||||
#include "math/mathUtils.h"
|
||||
#include "lighting/lightInfo.h"
|
||||
|
|
@ -546,18 +547,13 @@ void Sun::_onUnselected()
|
|||
Parent::_onUnselected();
|
||||
}
|
||||
|
||||
ConsoleMethod(Sun, apply, void, 2, 2, "")
|
||||
DefineConsoleMethod(Sun, apply, void, (), , "")
|
||||
{
|
||||
object->inspectPostApply();
|
||||
}
|
||||
|
||||
ConsoleMethod(Sun, animate, void, 7, 7, "animate( F32 duration, F32 startAzimuth, F32 endAzimuth, F32 startElevation, F32 endElevation )")
|
||||
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 )")
|
||||
{
|
||||
F32 duration = dAtof(argv[2]);
|
||||
F32 startAzimuth = dAtof(argv[3]);
|
||||
F32 endAzimuth = dAtof(argv[4]);
|
||||
F32 startElevation = dAtof(argv[5]);
|
||||
F32 endElevation = dAtof(argv[6]);
|
||||
|
||||
object->animate(duration, startAzimuth, endAzimuth, startElevation, endElevation);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue