Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.

Cleaned up the ConsoleMethods and converted them to DefineConsoleMethods.  Mainly the ConsoleMethods left are the ones that take a variable amount of parameters.  They will need to be cleaned up  in a later pass.
How exactly do you do that?

 

From: Daniel Buckmaster [mailto:notifications@github.com] 
Sent: Friday, November 28, 2014 8:24 PM
To: GarageGames/Torque3D
Cc: Vincent Gee
Subject: Re: [Torque3D] Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro. (#887)

 

In Engine/source/T3D/fx/explosion.cpp:

>  
> -DefineEngineFunction(calcExplosionCoverage, F32, (Point3F pos, S32 id, U32 covMask),(Point3F(0.0f,0.0f,0.0f), NULL, NULL),
> +//I could possible see a use with passing in a null covMask, but even that
> +//sounds flaky because it will be 100 percent if your saying not to take
> +//any thing in consideration for coverage.  So I'm removing these defaults they are just bad.

Please remove comment and add it to the GitHub issue (either in the description or as a comment). It will be recoverable using git blame if someone notices that the defaults have changed, and if nobody notices then they don't need to know that there used to be defaults.

—
Reply to this email directly or view it on GitHub <https://github.com/GarageGames/Torque3D/pull/887/files#r21047434> .  <https://github.com/notifications/beacon/ACUNZEXGFbf1rFbRN3MkEylldRqMbUtNks5nSRe4gaJpZM4C2mMQ.gif>