You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
650 B
C++
35 lines
650 B
C++
11 years ago
|
#ifndef ESMLOADER_HPP
|
||
|
#define ESMLOADER_HPP
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "contentloader.hpp"
|
||
|
#include "components/esm/esmreader.hpp"
|
||
|
|
||
|
namespace ToUTF8
|
||
|
{
|
||
|
class Utf8Encoder;
|
||
|
}
|
||
|
|
||
|
namespace MWWorld
|
||
|
{
|
||
|
|
||
|
class ESMStore;
|
||
|
|
||
|
struct EsmLoader : public ContentLoader
|
||
|
{
|
||
|
EsmLoader(MWWorld::ESMStore& store, std::vector<ESM::ESMReader>& readers,
|
||
|
ToUTF8::Utf8Encoder* encoder, Loading::Listener& listener);
|
||
|
|
||
|
void load(const boost::filesystem::path& filepath, int& index);
|
||
|
|
||
|
private:
|
||
|
std::vector<ESM::ESMReader>& mEsm;
|
||
|
MWWorld::ESMStore& mStore;
|
||
|
ToUTF8::Utf8Encoder* mEncoder;
|
||
|
};
|
||
|
|
||
|
} /* namespace MWWorld */
|
||
|
|
||
|
#endif // ESMLOADER_HPP
|