2013-06-08 12:45:13 +02:00
|
|
|
#ifndef CSM_WOLRD_REF_H
|
|
|
|
#define CSM_WOLRD_REF_H
|
|
|
|
|
2015-01-09 12:05:16 +01:00
|
|
|
#include <utility>
|
|
|
|
|
2013-06-08 12:45:13 +02: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 11:41:48 +01:00
|
|
|
std::string mCell;
|
2015-01-05 15:20:47 +01:00
|
|
|
std::string mOriginalCell;
|
2014-05-27 12:39:26 +02:00
|
|
|
|
|
|
|
CellRef();
|
2015-01-09 12:05:16 +01:00
|
|
|
|
|
|
|
/// Calculate cell index based on coordinates (x and y)
|
|
|
|
std::pair<int, int> getCellIndex() const;
|
2013-06-08 12:45:13 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|