1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/opencs/model/world/resourcesmanager.hpp

40 lines
670 B
C++
Raw Normal View History

2014-07-04 12:46:57 +02:00
#ifndef CSM_WOLRD_RESOURCESMANAGER_H
#define CSM_WOLRD_RESOURCESMANAGER_H
#include <map>
#include "universalid.hpp"
#include "resources.hpp"
namespace VFS
{
class Manager;
}
2014-07-04 12:46:57 +02:00
namespace CSMWorld
{
class ResourcesManager
{
std::map<UniversalId::Type, Resources> mResources;
2017-08-19 03:43:31 -04:00
VFS::Manager* mVFS;
2014-07-04 12:46:57 +02:00
2014-07-07 15:20:05 +02:00
private:
void addResources (const Resources& resources);
2014-07-04 12:46:57 +02:00
public:
ResourcesManager();
2017-08-19 03:43:31 -04:00
VFS::Manager* getVFS() const;
2017-08-19 03:43:31 -04:00
void setVFS(VFS::Manager* vfs);
void recreateResources();
2014-07-04 12:46:57 +02:00
const Resources& get (UniversalId::Type type) const;
};
}
#endif