mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Eliminate ConsoleFunction and ConsoleMethod, replace with DefineEngineStringlyVariadic
This commit is contained in:
parent
323206a796
commit
bc435a3b33
18 changed files with 112 additions and 84 deletions
|
|
@ -895,15 +895,7 @@ DefineEngineMethod( SimSet, listObjects, void, (),,
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
DEFINE_CALLIN( fnSimSet_add, add, SimSet, void, ( SimSet* set, SimObject* object ),,,
|
||||
"Add the given object to the set.\n"
|
||||
"@param object An object." )
|
||||
{
|
||||
if( object )
|
||||
set->addObject( object );
|
||||
}
|
||||
|
||||
ConsoleMethod( SimSet, add, void, 3, 0,
|
||||
DefineEngineStringlyVariadicMethod( SimSet, add, void, 3, 0,
|
||||
"( SimObject objects... ) Add the given objects to the set.\n"
|
||||
"@param objects The objects to add to the set." )
|
||||
{
|
||||
|
|
@ -919,15 +911,7 @@ ConsoleMethod( SimSet, add, void, 3, 0,
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
DEFINE_CALLIN( fnSimSet_remove, remove, SimSet, void, ( SimSet* set, SimObject* object ),,,
|
||||
"Remove the given object from the set.\n"
|
||||
"@param object An object." )
|
||||
{
|
||||
if( object )
|
||||
set->removeObject( object );
|
||||
}
|
||||
|
||||
ConsoleMethod( SimSet, remove, void, 3, 0,
|
||||
DefineEngineStringlyVariadicMethod( SimSet, remove, void, 3, 0,
|
||||
"( SimObject objects... ) Remove the given objects from the set.\n"
|
||||
"@param objects The objects to remove from the set." )
|
||||
{
|
||||
|
|
@ -970,7 +954,7 @@ DefineEngineMethod( SimSet, getRandom, SimObject*, (),,
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ConsoleMethod( SimSet, callOnChildren, void, 3, 0,
|
||||
DefineEngineStringlyVariadicMethod( SimSet, callOnChildren, void, 3, 0,
|
||||
"( string method, string args... ) Call a method on all objects contained in the set.\n\n"
|
||||
"@param method The name of the method to call.\n"
|
||||
"@param args The arguments to the method.\n\n"
|
||||
|
|
@ -982,7 +966,7 @@ ConsoleMethod( SimSet, callOnChildren, void, 3, 0,
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ConsoleMethod( SimSet, callOnChildrenNoRecurse, void, 3, 0,
|
||||
DefineEngineStringlyVariadicMethod( SimSet, callOnChildrenNoRecurse, void, 3, 0,
|
||||
"( string method, string args... ) Call a method on all objects contained in the set.\n\n"
|
||||
"@param method The name of the method to call.\n"
|
||||
"@param args The arguments to the method.\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue