mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add EnumMetadata
This commit is contained in:
parent
d888ddec4c
commit
7749675a61
20 changed files with 156 additions and 206 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue