2013-07-22 20:50:04 +02:00
|
|
|
#ifndef COMPONENTS_ESM_FILTER_H
|
|
|
|
#define COMPONENTS_ESM_FILTER_H
|
|
|
|
|
2022-06-04 16:07:59 +02:00
|
|
|
#include "components/esm/defs.hpp"
|
2013-07-22 20:50:04 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct Filter
|
|
|
|
{
|
2022-06-04 16:34:23 +02:00
|
|
|
constexpr static RecNameInts sRecordId = REC_FILT;
|
2022-06-04 16:07:59 +02:00
|
|
|
|
2021-07-25 19:53:41 +10:00
|
|
|
unsigned int mRecordFlags;
|
2013-07-22 20:50:04 +02:00
|
|
|
std::string mId;
|
|
|
|
|
2013-08-09 13:45:50 +02:00
|
|
|
std::string mDescription;
|
|
|
|
|
2013-07-22 20:50:04 +02:00
|
|
|
std::string mFilter;
|
|
|
|
|
2015-07-20 17:23:14 +03:00
|
|
|
void load(ESMReader& esm, bool& isDeleted);
|
|
|
|
void save(ESMWriter& esm, bool isDeleted = false) const;
|
2013-07-22 20:50:04 +02:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID).
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|