openmw/components/esm3/filter.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
611 B
C++
Raw Normal View History

#ifndef COMPONENTS_ESM_FILTER_H
#define COMPONENTS_ESM_FILTER_H
2022-06-04 16:07:59 +02:00
#include "components/esm/defs.hpp"
#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
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