2021-10-16 17:07:55 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_ESMLOADER_LOAD_H
|
|
|
|
#define OPENMW_COMPONENTS_ESMLOADER_LOAD_H
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2021-10-16 17:07:55 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace ToUTF8
|
|
|
|
{
|
|
|
|
class Utf8Encoder;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Files
|
|
|
|
{
|
|
|
|
class Collections;
|
|
|
|
}
|
|
|
|
|
2022-06-03 16:59:08 +00:00
|
|
|
namespace Loading
|
|
|
|
{
|
|
|
|
class Listener;
|
|
|
|
}
|
|
|
|
|
2021-10-16 17:07:55 +00:00
|
|
|
namespace EsmLoader
|
|
|
|
{
|
|
|
|
struct EsmData;
|
|
|
|
|
2022-06-03 16:59:08 +00:00
|
|
|
inline constexpr std::size_t fileProgress = 1000;
|
|
|
|
|
2021-10-16 17:07:55 +00:00
|
|
|
struct Query
|
|
|
|
{
|
|
|
|
bool mLoadActivators = false;
|
|
|
|
bool mLoadCells = false;
|
|
|
|
bool mLoadContainers = false;
|
|
|
|
bool mLoadDoors = false;
|
|
|
|
bool mLoadGameSettings = false;
|
|
|
|
bool mLoadLands = false;
|
|
|
|
bool mLoadStatics = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
EsmData loadEsmData(const Query& query, const std::vector<std::string>& contentFiles,
|
2022-06-01 20:53:18 +00:00
|
|
|
const Files::Collections& fileCollections, ESM::ReadersCache& readers, ToUTF8::Utf8Encoder* encoder,
|
2022-06-03 16:59:08 +00:00
|
|
|
Loading::Listener* listener = nullptr);
|
2021-10-16 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|