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