2013-07-22 20:50:04 +02:00
|
|
|
#ifndef COMPONENTS_ESM_FILTER_H
|
|
|
|
#define COMPONENTS_ESM_FILTER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct Filter
|
|
|
|
{
|
2013-09-27 13:56:40 +02:00
|
|
|
static unsigned int sRecordId;
|
|
|
|
|
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-16 22:17:49 +03:00
|
|
|
bool mIsDeleted;
|
|
|
|
|
|
|
|
Filter();
|
|
|
|
|
2013-07-22 20:50:04 +02:00
|
|
|
void load (ESMReader& esm);
|
2013-09-16 12:32:35 +02:00
|
|
|
void save (ESMWriter& esm) const;
|
2013-07-22 20:50:04 +02:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID).
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|