1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 10:53:54 +00:00
openmw/apps/opencs/model/world/resourcesmanager.hpp

42 lines
747 B
C++
Raw Normal View History

2014-07-04 10:46:57 +00:00
#ifndef CSM_WOLRD_RESOURCESMANAGER_H
#define CSM_WOLRD_RESOURCESMANAGER_H
#include <map>
2022-10-19 17:02:00 +00:00
#include <apps/opencs/model/world/resources.hpp>
2014-07-04 10:46:57 +00:00
#include "universalid.hpp"
namespace VFS
{
class Manager;
}
2014-07-04 10:46:57 +00:00
namespace CSMWorld
{
class ResourcesManager
{
2022-09-22 18:26:05 +00:00
std::map<UniversalId::Type, Resources> mResources;
const VFS::Manager* mVFS;
2014-07-04 10:46:57 +00:00
2022-09-22 18:26:05 +00:00
private:
void addResources(const Resources& resources);
2014-07-07 13:20:05 +00:00
2022-09-22 18:26:05 +00:00
const char* const* getMeshExtensions();
2014-07-07 13:20:05 +00:00
2022-09-22 18:26:05 +00:00
public:
ResourcesManager();
~ResourcesManager();
2017-08-20 23:07:23 +00:00
2022-09-22 18:26:05 +00:00
const VFS::Manager* getVFS() const;
2014-07-04 10:46:57 +00:00
2022-09-22 18:26:05 +00:00
void setVFS(const VFS::Manager* vfs);
2022-09-22 18:26:05 +00:00
void recreateResources();
2022-09-22 18:26:05 +00:00
const Resources& get(UniversalId::Type type) const;
2014-07-04 10:46:57 +00:00
};
}
#endif