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>
|
|
|
|
|
|
|
|
#include "formid.hpp"
|
|
|
|
|
|
|
|
namespace ESM4
|
|
|
|
{
|
|
|
|
class Reader;
|
|
|
|
|
|
|
|
struct GameSetting
|
|
|
|
{
|
2023-07-17 17:49:02 +00:00
|
|
|
using Data = std::variant<std::monostate, bool, float, std::int32_t, std::string>;
|
2023-04-04 07:58:49 +00:00
|
|
|
|
|
|
|
FormId mFormId; // from the header
|
|
|
|
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
|
|
|
|
std::string mEditorId;
|
|
|
|
Data mData;
|
|
|
|
|
|
|
|
void load(Reader& reader);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OPENMW_COMPONENTS_ESM4_LOADGMST_H
|