2014-07-04 10:46:57 +00:00
|
|
|
#ifndef CSM_WOLRD_RESOURCESMANAGER_H
|
|
|
|
#define CSM_WOLRD_RESOURCESMANAGER_H
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "universalid.hpp"
|
|
|
|
#include "resources.hpp"
|
|
|
|
|
2015-03-19 16:49:41 +00:00
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Manager;
|
|
|
|
}
|
|
|
|
|
2014-07-04 10:46:57 +00:00
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class ResourcesManager
|
|
|
|
{
|
|
|
|
std::map<UniversalId::Type, Resources> mResources;
|
2017-08-20 23:07:23 +00:00
|
|
|
const VFS::Manager* mVFS;
|
2014-07-04 10:46:57 +00:00
|
|
|
|
2014-07-07 13:20:05 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
void addResources (const Resources& resources);
|
|
|
|
|
2017-08-20 23:07:23 +00:00
|
|
|
const char * const * getMeshExtensions();
|
|
|
|
|
2014-07-04 10:46:57 +00:00
|
|
|
public:
|
|
|
|
|
2015-03-25 22:35:10 +00:00
|
|
|
ResourcesManager();
|
|
|
|
|
2017-08-20 23:07:23 +00:00
|
|
|
const VFS::Manager* getVFS() const;
|
2015-03-25 22:35:10 +00:00
|
|
|
|
2017-08-20 23:07:23 +00:00
|
|
|
void setVFS(const VFS::Manager* vfs);
|
2017-08-19 07:43:31 +00:00
|
|
|
|
|
|
|
void recreateResources();
|
2014-07-04 10:46:57 +00:00
|
|
|
|
|
|
|
const Resources& get (UniversalId::Type type) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-03-19 16:49:41 +00:00
|
|
|
#endif
|