1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/components/esm4/loadgmst.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
742 B
C++
Raw Normal View History

2023-04-04 07:58:49 +00:00
#ifndef OPENMW_COMPONENTS_ESM4_LOADGMST_H
#define OPENMW_COMPONENTS_ESM4_LOADGMST_H
#include <cstdint>
#include <string>
#include <variant>
2023-07-30 19:55:36 +00:00
#include <components/esm/defs.hpp>
#include <components/esm/formid.hpp>
2023-04-04 07:58:49 +00:00
namespace ESM4
{
class Reader;
struct GameSetting
{
2023-08-15 02:09:59 +00:00
using Data = std::variant<std::monostate, bool, float, std::int32_t, std::string, std::uint32_t>;
2023-04-04 07:58:49 +00:00
2023-07-30 19:55:36 +00:00
ESM::FormId mId; // from the header
2023-04-04 07:58:49 +00:00
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
std::string mEditorId;
Data mData;
void load(Reader& reader);
2023-07-30 19:55:36 +00:00
static constexpr ESM::RecNameInts sRecordId = ESM::RecNameInts::REC_GMST4;
2023-04-04 07:58:49 +00:00
};
}
#endif // OPENMW_COMPONENTS_ESM4_LOADGMST_H