OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellid.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_CELLID_H
2 #define OPENMW_ESM_CELLID_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
11  struct CellId
12  {
13  struct CellIndex
14  {
15  int mX;
16  int mY;
17  };
18 
19  std::string mWorldspace;
21  bool mPaged;
22 
23  static const std::string sDefaultWorldspace;
24 
25  void load (ESMReader &esm);
26  void save (ESMWriter &esm) const;
27  };
28 
29  bool operator== (const CellId& left, const CellId& right);
30  bool operator!= (const CellId& left, const CellId& right);
31  bool operator< (const CellId& left, const CellId& right);
32 }
33 
34 #endif
bool mPaged
Definition: cellid.hpp:21
Definition: cellid.hpp:13
static const std::string sDefaultWorldspace
Definition: cellid.hpp:23
bool operator==(const CellId &left, const CellId &right)
Definition: cellid.cpp:29
Definition: esmreader.hpp:21
bool operator<(const CellId &left, const CellId &right)
Definition: cellid.cpp:40
void save(ESMWriter &esm) const
Definition: cellid.cpp:21
void load(ESMReader &esm)
Definition: cellid.cpp:8
int mX
Definition: cellid.hpp:15
Definition: esmwriter.hpp:17
int mY
Definition: cellid.hpp:16
std::string mWorldspace
Definition: cellid.hpp:19
CellIndex mIndex
Definition: cellid.hpp:20
Definition: cellid.hpp:11
bool operator!=(const CellId &left, const CellId &right)
Definition: cellid.cpp:35