OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loaddoor.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_DOOR_H
2 #define OPENMW_ESM_DOOR_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 struct Door
13 {
14  static unsigned int sRecordId;
16  static std::string getRecordType() { return "Door"; }
17 
19 
20  void load(ESMReader &esm, bool &isDeleted);
21  void save(ESMWriter &esm, bool isDeleted = false) const;
22 
23  void blank();
25 };
26 }
27 #endif
std::string mId
Definition: loaddoor.hpp:18
std::string mName
Definition: loaddoor.hpp:18
Definition: esmreader.hpp:21
std::string mScript
Definition: loaddoor.hpp:18
std::string mOpenSound
Definition: loaddoor.hpp:18
Definition: esmwriter.hpp:17
Definition: loaddoor.hpp:12
std::string mCloseSound
Definition: loaddoor.hpp:18
static unsigned int sRecordId
Definition: loaddoor.hpp:14
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loaddoor.cpp:54
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loaddoor.hpp:16
void load(ESMReader &esm, bool &isDeleted)
Definition: loaddoor.cpp:11
void blank()
Set record to default state (does not touch the ID).
Definition: loaddoor.cpp:71
std::string mModel
Definition: loaddoor.hpp:18