mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
44 lines
862 B
C++
44 lines
862 B
C++
#ifndef ESMLOADER_HPP
|
|
#define ESMLOADER_HPP
|
|
|
|
#include <vector>
|
|
|
|
#include "contentloader.hpp"
|
|
|
|
namespace ToUTF8
|
|
{
|
|
class Utf8Encoder;
|
|
}
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
struct CreatureStats;
|
|
struct InventoryState;
|
|
struct NpcStats;
|
|
}
|
|
|
|
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) override;
|
|
|
|
private:
|
|
std::vector<ESM::ESMReader>& mEsm;
|
|
MWWorld::ESMStore& mStore;
|
|
ToUTF8::Utf8Encoder* mEncoder;
|
|
};
|
|
|
|
void convertMagicEffects(ESM::CreatureStats& creatureStats, ESM::InventoryState& inventory, ESM::NpcStats* npcStats = nullptr);
|
|
|
|
} /* namespace MWWorld */
|
|
|
|
#endif // ESMLOADER_HPP
|