// Copyright (c) 2023 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "PrefabRegistry.hpp" namespace Dawn { struct PrefabComponent { struct PrefabRegistry *registry; std::string include; std::string type; std::map values; std::string ref; }; class PrefabComponentParser : public XmlParser { protected: std::vector getRequiredAttributes() override; std::map getOptionalAttributes() override; int32_t onParse( Xml *node, std::map values, struct PrefabComponent *out, std::string *error ) override; }; }