Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
1.3 kB · 55 lines
C++
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#ifndef OPENMW_COMPONENTS_ESMLOADER_ESMDATA_H#define OPENMW_COMPONENTS_ESMLOADER_ESMDATA_H
#include <components/esm/defs.hpp>#include <components/esm/refid.hpp>#include <components/vfs/pathutil.hpp>
#include <string_view>#include <vector>
namespace ESM{ struct Activator; struct Cell; struct Container; struct Door; struct GameSetting; struct Land; struct Static; class Variant; class RefId;}
namespace EsmLoader{ struct RefIdWithType { ESM::RefId mId; ESM::RecNameInts mType; };
struct EsmData { std::vector<ESM::Activator> mActivators; std::vector<ESM::Cell> mCells; std::vector<ESM::Container> mContainers; std::vector<ESM::Door> mDoors; std::vector<ESM::GameSetting> mGameSettings; std::vector<ESM::Land> mLands; std::vector<ESM::Static> mStatics; std::vector<RefIdWithType> mRefIdTypes;
EsmData() = default; EsmData(const EsmData&) = delete; EsmData(EsmData&&) = default;
~EsmData(); };
VFS::Path::NormalizedView getModel(const EsmData& content, const ESM::RefId& refId, ESM::RecNameInts type);
ESM::Variant getGameSetting(const std::vector<ESM::GameSetting>& records, std::string_view id);}
#endif