mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Improvements based on experience from implementing Python runtime
This commit is contained in:
parent
e28e24a802
commit
83ea6cd0df
6 changed files with 67 additions and 188 deletions
|
|
@ -112,10 +112,10 @@ static void dumpVariable( Stream& stream,
|
|||
const char* inClass = NULL )
|
||||
{
|
||||
// Skip variables defined in script.
|
||||
|
||||
if( entry->type <= Dictionary::Entry::TypeInternalString )
|
||||
|
||||
if( entry->value.getType() <= ConsoleValueType::cvString )
|
||||
return;
|
||||
|
||||
|
||||
// Skip internals... don't export them.
|
||||
if ( entry->mUsage &&
|
||||
( dStrstr( entry->mUsage, "@hide" ) || dStrstr( entry->mUsage, "@internal" ) ) )
|
||||
|
|
@ -145,10 +145,10 @@ static void dumpVariable( Stream& stream,
|
|||
if( nameComponents.size() > 1 && Con::lookupNamespace( nameComponents.first().c_str() + 1 )->mClassRep )
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Skip variables for which we can't decipher their type.
|
||||
|
||||
ConsoleBaseType* type = ConsoleBaseType::getType( entry->type );
|
||||
ConsoleBaseType* type = ConsoleBaseType::getType( entry->value.getConsoleType()->consoleType );
|
||||
if( !type )
|
||||
{
|
||||
Con::errorf( "Can't find type for variable '%s'", entry->name );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue