Remove EngineXMLExport filtering

This commit is contained in:
Lukas Aldershaab 2023-10-08 19:37:46 +02:00 committed by Brian Roberts
parent 25c1ebcf13
commit 2c9f6a5350

View file

@ -63,25 +63,6 @@ inline T getArgValue(const EngineFunctionDefaultArguments* defaultArgs, U32 idx)
return *(const T*)(defaultArgs->mFirst + defaultArgs->mOffsets[idx]); return *(const T*)(defaultArgs->mFirst + defaultArgs->mOffsets[idx]);
} }
// List of exports that we want filtered out. This will only be needed as long
// as the console system is still around.
static const char* sExportFilterList[] =
{
"Console", // Console namespace
};
static bool isExportFiltered(const EngineExport* exportInfo)
{
String qualifiedName = exportInfo->getFullyQualifiedExportName();
for (U32 i = 0; i < (sizeof(sExportFilterList) / sizeof(sExportFilterList[0])); ++i)
if (qualifiedName.compare(sExportFilterList[i]) == 0)
return true;
return false;
}
//============================================================================= //=============================================================================
// Functions. // Functions.
//============================================================================= //=============================================================================
@ -303,9 +284,6 @@ static String getDefaultArgumentValue(const EngineFunctionInfo* function, const
static void exportFunction(const EngineFunctionInfo* function, SimXMLDocument* xml) static void exportFunction(const EngineFunctionInfo* function, SimXMLDocument* xml)
{ {
if (isExportFiltered(function))
return;
xml->pushNewElement("EngineFunction"); xml->pushNewElement("EngineFunction");
xml->setAttribute("name", function->getExportName()); xml->setAttribute("name", function->getExportName());
@ -371,9 +349,6 @@ static void exportType(const EngineTypeInfo* type, SimXMLDocument* xml)
if (!type->getTypeName()[0]) if (!type->getTypeName()[0])
return; return;
if (isExportFiltered(type))
return;
const char* nodeName = NULL; const char* nodeName = NULL;
switch (type->getTypeKind()) switch (type->getTypeKind())
{ {
@ -551,9 +526,6 @@ static void exportScope(const EngineExportScope* scope, SimXMLDocument* xml, boo
{ {
if (addNode) if (addNode)
{ {
if (isExportFiltered(scope))
return;
xml->pushNewElement("EngineExportScope"); xml->pushNewElement("EngineExportScope");
xml->setAttribute("name", scope->getExportName()); xml->setAttribute("name", scope->getExportName());