2013-06-08 10:45:13 +00:00
|
|
|
#ifndef CSM_WOLRD_REF_H
|
|
|
|
#define CSM_WOLRD_REF_H
|
|
|
|
|
2015-01-09 11:05:16 +00:00
|
|
|
#include <utility>
|
|
|
|
|
2013-06-08 10:45:13 +00:00
|
|
|
#include <components/esm/cellref.hpp>
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
/// \brief Wrapper for CellRef sub record
|
|
|
|
struct CellRef : public ESM::CellRef
|
|
|
|
{
|
|
|
|
std::string mId;
|
2013-11-05 10:41:48 +00:00
|
|
|
std::string mCell;
|
2015-01-05 14:20:47 +00:00
|
|
|
std::string mOriginalCell;
|
2014-05-27 10:39:26 +00:00
|
|
|
|
|
|
|
CellRef();
|
2015-01-09 11:05:16 +00:00
|
|
|
|
|
|
|
/// Calculate cell index based on coordinates (x and y)
|
|
|
|
std::pair<int, int> getCellIndex() const;
|
2013-06-08 10:45:13 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|