openmw/components/esm3/filter.hpp

33 lines
615 B
C++
Raw Normal View History

#ifndef COMPONENTS_ESM_FILTER_H
#define COMPONENTS_ESM_FILTER_H
#include <string>
2022-06-04 16:07:59 +02:00
#include "components/esm/defs.hpp"
namespace ESM
{
class ESMReader;
class ESMWriter;
struct Filter
{
2022-06-04 16:07:59 +02:00
constexpr static unsigned int sRecordId = REC_FILT;
2013-09-27 13:56:40 +02:00
unsigned int mRecordFlags;
std::string mId;
std::string mDescription;
std::string mFilter;
void load (ESMReader& esm, bool &isDeleted);
void save (ESMWriter& esm, bool isDeleted = false) const;
void blank();
///< Set record to default state (does not touch the ID).
};
}
#endif