Moved _ID to after ASSET_OBJECT

This commit is contained in:
David
2024-04-18 21:01:56 -04:00
parent 193063ae6d
commit 6a7501696d
2 changed files with 312 additions and 305 deletions
+304 -304
View File
File diff suppressed because it is too large Load Diff
@@ -111,7 +111,14 @@ void AssetEnums::_write_single_asset_section_enums(const std::string &sectionId,
continue;
}
std::string objectId = assetJson->get_string(ptr);
sectionEnum.add_symbol(objectId + "_ID");
if(StringHelper::starts_with(objectId, "ASSET_OBJECT_")) {
objectId.insert(13, "ID_");
} else {
objectId += "_ID";
}
sectionEnum.add_symbol(objectId);
}
}