1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/opencs/model/world/resourcesmanager.hpp
2022-10-31 21:04:01 +01:00

42 lines
747 B
C++

#ifndef CSM_WOLRD_RESOURCESMANAGER_H
#define CSM_WOLRD_RESOURCESMANAGER_H
#include <map>
#include <apps/opencs/model/world/resources.hpp>
#include "universalid.hpp"
namespace VFS
{
class Manager;
}
namespace CSMWorld
{
class ResourcesManager
{
std::map<UniversalId::Type, Resources> mResources;
const VFS::Manager* mVFS;
private:
void addResources(const Resources& resources);
const char* const* getMeshExtensions();
public:
ResourcesManager();
~ResourcesManager();
const VFS::Manager* getVFS() const;
void setVFS(const VFS::Manager* vfs);
void recreateResources();
const Resources& get(UniversalId::Type type) const;
};
}
#endif