1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
OpenMW/apps/opencs/model/world/resources.hpp

31 lines
619 B
C++
Raw Normal View History

2014-07-04 12:46:57 +02:00
#ifndef CSM_WOLRD_RESOURCES_H
#define CSM_WOLRD_RESOURCES_H
#include <string>
#include <map>
#include <vector>
namespace CSMWorld
{
class Resources
{
std::map<std::string, int> mIndex;
std::vector<std::string> mFiles;
std::string mBaseDirectory;
public:
Resources (const std::string& baseDirectory, const char * const *extensions = 0);
2014-07-04 12:46:57 +02:00
int getSize() const;
std::string getId (int index) const;
int getIndex (const std::string& id) const;
int searchId (const std::string& id) const;
};
}
#endif