2015-06-26 13:01:25 +02:00
|
|
|
#ifndef CSM_WOLRD_METADATA_H
|
|
|
|
#define CSM_WOLRD_METADATA_H
|
|
|
|
|
2022-10-06 19:39:46 +02:00
|
|
|
#include <components/esm/refid.hpp>
|
2023-02-10 13:16:52 +01:00
|
|
|
#include <components/esm3/formatversion.hpp>
|
|
|
|
|
2022-10-18 09:26:55 +02:00
|
|
|
#include <string>
|
2015-06-26 13:01:25 +02:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
struct MetaData
|
|
|
|
{
|
2023-05-25 20:44:10 +02:00
|
|
|
static constexpr std::string_view getRecordType() { return "MetaData"; }
|
|
|
|
|
2022-10-06 19:39:46 +02:00
|
|
|
ESM::RefId mId;
|
2015-06-26 13:01:25 +02:00
|
|
|
|
2023-02-10 13:16:52 +01:00
|
|
|
ESM::FormatVersion mFormatVersion;
|
2015-06-26 13:01:25 +02:00
|
|
|
std::string mAuthor;
|
|
|
|
std::string mDescription;
|
|
|
|
|
|
|
|
void blank();
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
void save(ESM::ESMWriter& esm) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|