1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-28 14:53:58 +00:00
OpenMW/components/esm3/loadlock.hpp

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

43 lines
928 B
C++
Raw Normal View History

2013-03-22 05:50:54 +01:00
#ifndef OPENMW_ESM_LOCK_H
#define OPENMW_ESM_LOCK_H
#include <string>
2022-06-04 16:07:59 +02:00
#include "components/esm/defs.hpp"
2013-03-22 05:50:54 +01:00
namespace ESM
{
class ESMReader;
class ESMWriter;
struct Lockpick
{
2022-06-04 16:34:23 +02:00
constexpr static RecNameInts sRecordId = REC_LOCK;
2022-06-04 16:07:59 +02:00
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string_view getRecordType() { return "Lockpick"; }
2013-03-22 05:50:54 +01:00
struct Data
{
float mWeight;
int mValue;
float mQuality;
int mUses;
}; // Size = 16
Data mData;
unsigned int mRecordFlags;
2013-03-22 05:50:54 +01:00
std::string mId, mName, mModel, mIcon, mScript;
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).
2013-03-22 05:50:54 +01:00
};
}
#endif