Comitting incase I break something

This commit is contained in:
2023-05-17 12:48:42 -07:00
parent 35b85529e9
commit 3b0ef97f89
7 changed files with 46 additions and 1 deletions

View File

@@ -12,7 +12,9 @@ std::vector<std::string> SceneParser::getRequiredAttributes() {
}
std::map<std::string, std::string> SceneParser::getOptionalAttributes() {
return {};
return {
{ "extend", "" }
};
}
int32_t SceneParser::onParse(
@@ -25,6 +27,7 @@ int32_t SceneParser::onParse(
//Create the scene item
out->name = values["name"];
out->extend = values["extend"];
//Parse the children
auto itChildren = node->children.begin();

View File

@@ -9,6 +9,7 @@
namespace Dawn {
struct Scene {
std::string name;
std::string extend;
std::vector<struct SceneItem> items;
struct SceneItemComponentRegistry *registry;
};