1 | // Aseprite |
2 | // Copyright (C) 2001-2017 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifndef APP_RES_RESOURCES_LOADER_DELEGATE_H_INCLUDED |
8 | #define APP_RES_RESOURCES_LOADER_DELEGATE_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include <map> |
12 | #include <string> |
13 | |
14 | namespace app { |
15 | |
16 | class Resource; |
17 | |
18 | class ResourcesLoaderDelegate { |
19 | public: |
20 | virtual ~ResourcesLoaderDelegate() { } |
21 | virtual void getResourcesPaths(std::map<std::string, std::string>& idAndPath) const = 0; |
22 | virtual Resource* loadResource(const std::string& id, |
23 | const std::string& path) = 0; |
24 | }; |
25 | |
26 | } // namespace app |
27 | |
28 | #endif |
29 | |