mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
38 lines
833 B
C++
38 lines
833 B
C++
#ifndef CSM_WOLRD_RESOURCES_H
|
|
#define CSM_WOLRD_RESOURCES_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
#include "universalid.hpp"
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class Resources
|
|
{
|
|
std::map<std::string, int> mIndex;
|
|
std::vector<std::string> mFiles;
|
|
std::string mBaseDirectory;
|
|
UniversalId::Type mType;
|
|
|
|
public:
|
|
|
|
/// \param type Type of resources in this table.
|
|
Resources (const std::string& baseDirectory, UniversalId::Type type,
|
|
const char * const *extensions = 0);
|
|
|
|
int getSize() const;
|
|
|
|
std::string getId (int index) const;
|
|
|
|
int getIndex (const std::string& id) const;
|
|
|
|
int searchId (const std::string& id) const;
|
|
|
|
UniversalId::Type getType() const;
|
|
};
|
|
}
|
|
|
|
#endif
|