mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
32 lines
614 B
C++
32 lines
614 B
C++
#ifndef COMPONENTS_ESM_FILTER_H
|
|
#define COMPONENTS_ESM_FILTER_H
|
|
|
|
#include <string>
|
|
#include "components/esm/defs.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
struct Filter
|
|
{
|
|
constexpr static RecNameInts sRecordId = REC_FILT;
|
|
|
|
|
|
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
|