OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
custommarkerstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_CUSTOMMARKERSTATE_H
2 #define OPENMW_ESM_CUSTOMMARKERSTATE_H
3 
4 #include "cellid.hpp"
5 
6 namespace ESM
7 {
8 
9 // format 0, saved games only
11 {
12  float mWorldX;
13  float mWorldY;
14 
16 
17  std::string mNote;
18 
19  bool operator == (const CustomMarker& other)
20  {
21  return mNote == other.mNote && mCell == other.mCell && mWorldX == other.mWorldX && mWorldY == other.mWorldY;
22  }
23 
24  void load (ESM::ESMReader& reader);
25  void save (ESM::ESMWriter& writer) const;
26 };
27 
28 }
29 
30 #endif
ESM::CellId mCell
Definition: custommarkerstate.hpp:15
Definition: esmreader.hpp:21
bool operator==(const CustomMarker &other)
Definition: custommarkerstate.hpp:19
float mWorldX
Definition: custommarkerstate.hpp:12
Definition: esmwriter.hpp:17
std::string mNote
Definition: custommarkerstate.hpp:17
float mWorldY
Definition: custommarkerstate.hpp:13
void load(ESM::ESMReader &reader)
Definition: custommarkerstate.cpp:18
void save(ESM::ESMWriter &writer) const
Definition: custommarkerstate.cpp:9
Definition: custommarkerstate.hpp:10
Definition: cellid.hpp:11