]> git.tdb.fi Git - libs/game.git/blob - source/game/resources.h
Recursively add subdirectories of the data directory to resources
[libs/game.git] / source / game / resources.h
1 #ifndef MSP_GAME_RESOURCES_H_
2 #define MSP_GAME_RESOURCES_H_
3
4 #include <msp/datafile/collection.h>
5 #include <msp/datafile/directorysource.h>
6 #include <msp/datafile/packsource.h>
7 #include <msp/fs/path.h>
8
9 namespace Msp::Game {
10
11 class Resources: virtual public DataFile::Collection
12 {
13 public:
14 };
15
16 class ApplicationResources: public Resources
17 {
18 private:
19         DataFile::DirectorySource dir_src;
20         DataFile::PackSource pack_src;
21
22 public:
23         ApplicationResources();
24
25 private:
26         void add_dir(const FS::Path &);
27 };
28
29 } // namespace Msp::Game
30
31 #endif