// 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 { enum SceneCodeType { SCENE_CODE_TYPE_PROPERTIES, SCENE_CODE_TYPE_INIT, SCENE_CODE_TYPE_INCLUDE }; struct SceneCode { enum SceneCodeType codeType; std::string code; }; class SceneCodeParser : public XmlParser { public: virtual std::vector getRequiredAttributes(); virtual std::map getOptionalAttributes(); virtual int32_t onParse( Xml *node, std::map values, struct SceneCode *out, std::string *error ); }; }