mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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
|
|
@ -2077,7 +2077,7 @@ static ConsoleDocFragment _ActionMapbind2(
|
|||
"ActionMap",
|
||||
"bool bind( string device, string action, string flag, string deadZone, string scale, string command );");
|
||||
|
||||
ConsoleMethod( ActionMap, bind, bool, 5, 10, "actionMap.bind( device, action, [modifier, spec, mod...], command )"
|
||||
DefineEngineStringlyVariadicMethod( ActionMap, bind, bool, 5, 10, "actionMap.bind( device, action, [modifier, spec, mod...], command )"
|
||||
"@hide")
|
||||
{
|
||||
StringStackWrapper args(argc - 2, argv + 2);
|
||||
|
|
@ -2126,7 +2126,7 @@ static ConsoleDocFragment _ActionMapbindObj2(
|
|||
"ActionMap",
|
||||
"bool bindObj( string device, string action, string flag, string deadZone, string scale, string command, SimObjectID object );");
|
||||
|
||||
ConsoleMethod( ActionMap, bindObj, bool, 6, 11, "(device, action, [modifier, spec, mod...], command, object)"
|
||||
DefineEngineStringlyVariadicMethod( ActionMap, bindObj, bool, 6, 11, "(device, action, [modifier, spec, mod...], command, object)"
|
||||
"@hide")
|
||||
{
|
||||
SimObject* simObject = Sim::findObject(argv[argc - 1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue