OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadbsgn.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_BSGN_H
2 #define OPENMW_ESM_BSGN_H
3 
4 #include <string>
5 
6 #include "spelllist.hpp"
7 
8 namespace ESM
9 {
10 
11 class ESMReader;
12 class ESMWriter;
13 
14 struct BirthSign
15 {
16  static unsigned int sRecordId;
18  static std::string getRecordType() { return "BirthSign"; }
19 
20  std::string mId, mName, mDescription, mTexture;
21 
22  // List of powers and abilities that come with this birth sign.
24 
25  void load(ESMReader &esm, bool &isDeleted);
26  void save(ESMWriter &esm, bool isDeleted = false) const;
27 
28  void blank();
30 };
31 }
32 #endif
void blank()
Set record to default state (does not touch the ID/index).
Definition: loadbsgn.cpp:69
void load(ESMReader &esm, bool &isDeleted)
Definition: loadbsgn.cpp:11
std::string mTexture
Definition: loadbsgn.hpp:20
Definition: esmreader.hpp:21
static unsigned int sRecordId
Definition: loadbsgn.hpp:16
SpellList mPowers
Definition: loadbsgn.hpp:23
std::string mId
Definition: loadbsgn.hpp:20
Definition: esmwriter.hpp:17
std::string mName
Definition: loadbsgn.hpp:20
Definition: spelllist.hpp:16
Definition: loadbsgn.hpp:14
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadbsgn.cpp:53
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadbsgn.hpp:18
std::string mDescription
Definition: loadbsgn.hpp:20