1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 22:53:53 +00:00
openmw/components/esm3/loadlock.hpp

43 lines
840 B
C++
Raw Normal View History

2013-03-22 04:50:54 +00:00
#ifndef OPENMW_ESM_LOCK_H
#define OPENMW_ESM_LOCK_H
#include <string>
2022-06-04 14:07:59 +00:00
#include "components/esm/defs.hpp"
2013-03-22 04:50:54 +00:00
namespace ESM
{
class ESMReader;
class ESMWriter;
struct Lockpick
{
2022-06-04 14:34:23 +00:00
constexpr static RecNameInts sRecordId = REC_LOCK;
2022-06-04 14:07:59 +00: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 04:50:54 +00:00
struct Data
{
float mWeight;
int mValue;
float mQuality;
int mUses;
}; // Size = 16
Data mData;
unsigned int mRecordFlags;
2013-03-22 04:50:54 +00: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 04:50:54 +00:00
};
}
#endif