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 CSMWorld
|
|
|
|
{
|
|
|
|
class ResourcesManager
|
|
|
|
{
|
|
|
|
std::map<UniversalId::Type, Resources> mResources;
|
|
|
|
|
2014-07-07 15:20:05 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
void addResources (const Resources& resources);
|
|
|
|
|
2014-07-04 12:46:57 +02:00
|
|
|
public:
|
|
|
|
|
|
|
|
/// Ask OGRE for a list of available resources.
|
|
|
|
void listResources();
|
|
|
|
|
|
|
|
const Resources& get (UniversalId::Type type) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-03-11 10:54:45 -04:00
|
|
|
#endif
|