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

@ -34,6 +34,7 @@
#include "materials/materialManager.h"
#include "math/util/sphereMesh.h"
#include "console/consoleTypes.h"
#include "console/engineAPI.h"
#include "scene/sceneRenderState.h"
@ -640,7 +641,7 @@ LightShadowMap* AdvancedLightManager::findShadowMapForObject( SimObject *object
return sceneLight->getLight()->getExtended<ShadowMapParams>()->getShadowMap();
}
ConsoleFunction( setShadowVizLight, const char*, 2, 2, "" )
DefineConsoleFunction( setShadowVizLight, const char*, (const char* name), (""), "")
{
static const String DebugTargetName( "AL_ShadowVizTexture" );
@ -653,7 +654,7 @@ ConsoleFunction( setShadowVizLight, const char*, 2, 2, "" )
return 0;
SimObject *object;
Sim::findObject( argv[1], object );
Sim::findObject( name, object );
LightShadowMap *lightShadowMap = lm->findShadowMapForObject( object );
if ( !lightShadowMap || !lightShadowMap->getTexture() )
return 0;