Half done with Scene Component Parsing
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user