OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadlock.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_LOCK_H
2 #define OPENMW_ESM_LOCK_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 struct Lockpick
13 {
14  static unsigned int sRecordId;
16  static std::string getRecordType() { return "Lockpick"; }
17 
18  struct Data
19  {
20  float mWeight;
21  int mValue;
22 
23  float mQuality;
24  int mUses;
25  }; // Size = 16
26 
28  std::string mId, mName, mModel, mIcon, mScript;
29 
30  void load(ESMReader &esm, bool &isDeleted);
31  void save(ESMWriter &esm, bool isDeleted = false) const;
32 
33  void blank();
35 };
36 
37 }
38 #endif
int mValue
Definition: loadlock.hpp:21
std::string mIcon
Definition: loadlock.hpp:28
Definition: esmreader.hpp:21
void blank()
Set record to default state (does not touch the ID).
Definition: loadlock.cpp:76
float mQuality
Definition: loadlock.hpp:23
std::string mScript
Definition: loadlock.hpp:28
std::string mModel
Definition: loadlock.hpp:28
Definition: esmwriter.hpp:17
void load(ESMReader &esm, bool &isDeleted)
Definition: loadlock.cpp:11
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadlock.cpp:58
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadlock.hpp:16
std::string mName
Definition: loadlock.hpp:28
int mUses
Definition: loadlock.hpp:24
static unsigned int sRecordId
Definition: loadlock.hpp:14
Definition: loadlock.hpp:12
Data mData
Definition: loadlock.hpp:27
float mWeight
Definition: loadlock.hpp:20
std::string mId
Definition: loadlock.hpp:28
Definition: loadlock.hpp:18