This commit is contained in:
2023-04-02 13:22:29 -07:00
parent 55dc3dc943
commit bf813ecea7
6 changed files with 100 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ int32_t PrefabChildParser::onParse(
auto ret = (PrefabChildParser()).parse(c, &child, error);
if(ret != 0) return ret;
out->children.push_back(child);
} else if(c->node == "asset") {
struct PrefabAsset asset;
auto ret = (PrefabAssetParser()).parse(c, &asset, error);
if(ret != 0) return ret;
out->assets.push_back(asset);
} else {
struct PrefabComponent component;
component.registry = out->registry;