// 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 SceneAssetType { SCENE_ASSET_TYPE_TEXTURE, SCENE_ASSET_TYPE_TRUETYPE_FONT }; struct SceneAsset { SceneAssetType type; std::string fileName; std::string usageName; std::string ref; }; class SceneAssetParser : public XmlParser { public: virtual std::vector getRequiredAttributes(); virtual std::map getOptionalAttributes(); virtual int32_t onParse( Xml *node, std::map values, struct SceneAsset *out, std::string *error ); }; }