Half done with Scene Component Parsing

This commit is contained in:
2023-03-23 21:43:02 -07:00
parent b4a5913587
commit 0c8f825b1a
21 changed files with 316 additions and 411 deletions

View File

@ -5,17 +5,27 @@
#pragma once
#include "util/DawnTool.hpp"
#include "util/File.hpp"
#include "util/Directory.hpp"
#include "util/XmlParser.hpp"
#include "util/CodeGen.hpp"
#include <regex>
namespace Dawn {
struct PrefabComponentParserRuleset {
std::string name;
std::string include;
std::map<std::string, std::function<std::string(std::string)>> optional;
};
struct PrefabRegistry {
std::string sources;
struct PrefabComponentParserRuleset getRuleset(std::string type);
};
struct PrefabComponent {
struct PrefabRegistry *registry;
std::string include;
std::string type;
std::map<std::string, std::string> values;
@ -23,6 +33,8 @@ namespace Dawn {
};
struct Prefab {
struct PrefabRegistry *registry;
std::string name;
std::string type;
std::vector<struct PrefabComponent> components;