1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwworld/esmloader.hpp

43 lines
840 B
C++
Raw Normal View History

#ifndef ESMLOADER_HPP
#define ESMLOADER_HPP
#include <optional>
#include "contentloader.hpp"
namespace ToUTF8
{
class Utf8Encoder;
}
2015-01-10 01:00:52 +01:00
namespace ESM
{
class ReadersCache;
2022-04-16 16:28:39 +02:00
struct Dialogue;
2015-01-10 01:00:52 +01:00
}
namespace MWWorld
{
class ESMStore;
struct EsmLoader : public ContentLoader
{
explicit EsmLoader(MWWorld::ESMStore& store, ESM::ReadersCache& readers, ToUTF8::Utf8Encoder* encoder);
std::optional<int> getMasterFileFormat() const { return mMasterFileFormat; }
void load(const boost::filesystem::path& filepath, int& index, Loading::Listener* listener) override;
private:
ESM::ReadersCache& mReaders;
MWWorld::ESMStore& mStore;
ToUTF8::Utf8Encoder* mEncoder;
2022-04-16 16:28:39 +02:00
ESM::Dialogue* mDialogue;
std::optional<int> mMasterFileFormat;
};
} /* namespace MWWorld */
#endif // ESMLOADER_HPP