2013-07-22 18:50:04 +00:00
|
|
|
#ifndef COMPONENTS_ESM_FILTER_H
|
|
|
|
#define COMPONENTS_ESM_FILTER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
struct Filter
|
|
|
|
{
|
2013-09-27 11:56:40 +00:00
|
|
|
static unsigned int sRecordId;
|
|
|
|
|
2013-07-22 18:50:04 +00:00
|
|
|
std::string mId;
|
|
|
|
|
2013-08-09 11:45:50 +00:00
|
|
|
std::string mDescription;
|
|
|
|
|
2013-07-22 18:50:04 +00:00
|
|
|
std::string mFilter;
|
|
|
|
|
2015-07-20 14:23:14 +00:00
|
|
|
void load (ESMReader& esm, bool &isDeleted);
|
|
|
|
void save (ESMWriter& esm, bool isDeleted = false) const;
|
2013-07-22 18:50:04 +00:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID).
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|