2013-06-08 12:45:13 +02:00
|
|
|
#ifndef CSM_WOLRD_REF_H
|
|
|
|
#define CSM_WOLRD_REF_H
|
|
|
|
|
2022-10-19 19:02:00 +02:00
|
|
|
#include <string>
|
2015-01-09 12:05:16 +01:00
|
|
|
#include <utility>
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/cellref.hpp>
|
2013-06-08 12:45:13 +02:00
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
/// \brief Wrapper for CellRef sub record
|
|
|
|
struct CellRef : public ESM::CellRef
|
|
|
|
{
|
2022-10-06 19:39:46 +02:00
|
|
|
ESM::RefId mId;
|
|
|
|
ESM::RefId mCell;
|
|
|
|
ESM::RefId mOriginalCell;
|
2016-03-24 11:12:05 +01:00
|
|
|
bool mNew; // new reference, not counted yet, ref num not assigned yet
|
2021-07-23 19:07:56 +10:00
|
|
|
unsigned int mIdNum;
|
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
|