// Copyright (c) 2023 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "util/XmlParser.hpp" namespace Dawn { struct SceneInformation { std::string type; std::string name; }; class SceneParser : public XmlParser { protected: std::vector getRequiredAttributes() { return std::vector{ "name", }; } std::map getOptionalAttributes() { return std::map{ { "type", "SimpleVNScene" } }; } int32_t onParse( Xml *node, std::map values, struct SceneInformation *out, std::string *error ) { out->name = values["name"]; out->type = values["type"]; return 0; } }; }