openmw-tes3coop/apps/opencs/model/world/resources.hpp

31 lines
583 B
C++
Raw Normal View History

2014-07-04 10:46:57 +00: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);
int getSize() const;
std::string getId (int index) const;
int getIndex (const std::string& id) const;
int searchId (const std::string& id) const;
};
}
#endif