add EnumMetadata

This commit is contained in:
MihailRis
2025-04-13 13:53:59 +03:00
parent d888ddec4c
commit 7749675a61
20 changed files with 156 additions and 206 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
#define VC_ENABLE_REFLECTION
#include "EngineController.hpp"
#include <algorithm>
@@ -164,7 +165,7 @@ static dv::value create_missing_content_report(
auto root = dv::object();
auto& contentEntries = root.list("content");
for (auto& entry : report->getMissingContent()) {
std::string contentName = ContentType_name(entry.type);
std::string contentName = ContentTypeMeta.getNameString(entry.type);
auto& contentEntry = contentEntries.object();
contentEntry["type"] = contentName;
contentEntry["name"] = entry.name;