mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
046b5f83ee
A component to load ESM content files with limited support for record types and selection which of them to load. Supported record types are: ACTI, CELL, CONT, DOOR, GMST, LAND, STAT.
40 lines
806 B
C++
40 lines
806 B
C++
#ifndef OPENMW_COMPONENTS_ESMLOADER_LOAD_H
|
|
#define OPENMW_COMPONENTS_ESMLOADER_LOAD_H
|
|
|
|
#include <components/esm/esmreader.hpp>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace ToUTF8
|
|
{
|
|
class Utf8Encoder;
|
|
}
|
|
|
|
namespace Files
|
|
{
|
|
class Collections;
|
|
}
|
|
|
|
namespace EsmLoader
|
|
{
|
|
struct EsmData;
|
|
|
|
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,
|
|
const Files::Collections& fileCollections, std::vector<ESM::ESMReader>& readers,
|
|
ToUTF8::Utf8Encoder* encoder);
|
|
}
|
|
|
|
#endif
|