mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Console Refactor
This commit is contained in:
parent
626de074cc
commit
89b0c7f73b
89 changed files with 1883 additions and 1553 deletions
|
|
@ -25,9 +25,6 @@
|
|||
#include "platform/threads/semaphore.h"
|
||||
#include "console/simEvents.h"
|
||||
|
||||
// Stupid globals not declared in a header
|
||||
extern ExprEvalState gEvalState;
|
||||
|
||||
SimConsoleEvent::SimConsoleEvent(S32 argc, ConsoleValue *argv, bool onObject)
|
||||
{
|
||||
mOnObject = onObject;
|
||||
|
|
@ -79,7 +76,7 @@ void SimConsoleEvent::process(SimObject* object)
|
|||
Namespace::Entry* nse = ns->lookup( StringTable->insert( func ) );
|
||||
if( nse )
|
||||
// Execute.
|
||||
nse->execute( mArgc, mArgv, &gEvalState );
|
||||
nse->execute( mArgc, mArgv, object );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue