7#include <Common/ResourcePipeline/AssetType.hpp>
9namespace Grindstone::Editor {
10 class AssetTemplateRegistry {
12 void RegisterTemplate(
14 std::string_view name,
15 std::string_view extension,
16 const void*
const sourcePtr,
size_t sourceSize
18 void RemoveTemplate(AssetType assetType);
21 AssetType assetType = AssetType::Undefined;
23 std::string extension;
24 std::vector<char> content;
28 std::string_view name,
29 std::string_view extension,
30 const void*
const sourcePtr,
35 using TemplateList = std::vector<AssetTemplate>;
37 virtual TemplateList::iterator begin();
38 virtual TemplateList::const_iterator begin()
const;
39 virtual TemplateList::iterator end();
40 virtual TemplateList::const_iterator end()
const;
43 TemplateList assetTemplates;
Definition AssetTemplateRegistry.hpp:20