OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ref.hpp
Go to the documentation of this file.
1 #ifndef CSM_WOLRD_REF_H
2 #define CSM_WOLRD_REF_H
3 
4 #include <utility>
5 
7 
8 namespace CSMWorld
9 {
11  struct CellRef : public ESM::CellRef
12  {
13  std::string mId;
14  std::string mCell;
15  std::string mOriginalCell;
16  bool mNew; // new reference, not counted yet, ref num not assigned yet
17 
18  CellRef();
19 
21  std::pair<int, int> getCellIndex() const;
22  };
23 }
24 
25 #endif
bool mNew
Definition: ref.hpp:16
std::string mOriginalCell
Definition: ref.hpp:15
CellRef()
Definition: ref.cpp:9
std::pair< int, int > getCellIndex() const
Calculate cell index based on coordinates (x and y)
Definition: ref.cpp:15
std::string mId
Definition: ref.hpp:13
std::string mCell
Definition: ref.hpp:14
Wrapper for CellRef sub record.
Definition: ref.hpp:11
Definition: cellref.hpp:34