]> git.tdb.fi Git - libs/game.git/blob - source/game/resources.h
Load the various setups through 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 #include "mspgame_api.h"
9
10 namespace Msp::Game {
11
12 class MSPGAME_API Resources: virtual public DataFile::Collection
13 {
14 public:
15         Resources();
16 };
17
18 class MSPGAME_API ApplicationResources: public Resources
19 {
20 private:
21         DataFile::DirectorySource dir_src;
22         DataFile::PackSource pack_src;
23
24 public:
25         ApplicationResources();
26
27 private:
28         void add_dir(const FS::Path &);
29 };
30
31 } // namespace Msp::Game
32
33 #endif