Cleaned prefab parser a lot
This commit is contained in:
@@ -4,7 +4,27 @@
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "PrefabParser.hpp"
|
||||
#include "PrefabComponentParser.hpp"
|
||||
|
||||
namespace Dawn {
|
||||
}
|
||||
struct PrefabChild {
|
||||
struct PrefabRegistry *registry;
|
||||
std::string ref;
|
||||
std::string position;
|
||||
std::string scale;
|
||||
std::vector<struct PrefabComponent> components;
|
||||
std::vector<struct PrefabChild> children;
|
||||
};
|
||||
|
||||
class PrefabChildParser : public XmlParser<struct PrefabChild> {
|
||||
protected:
|
||||
std::vector<std::string> getRequiredAttributes() override;
|
||||
std::map<std::string, std::string> getOptionalAttributes() override;
|
||||
int32_t onParse(
|
||||
Xml *node,
|
||||
std::map<std::string, std::string> values,
|
||||
struct PrefabChild *out,
|
||||
std::string *error
|
||||
) override;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user