1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 21:32:42 +00:00
2022-10-31 21:04:01 +01:00

28 lines
588 B
C++

#ifndef CSM_WOLRD_REF_H
#define CSM_WOLRD_REF_H
#include <string>
#include <utility>
#include <components/esm3/cellref.hpp>
namespace CSMWorld
{
/// \brief Wrapper for CellRef sub record
struct CellRef : public ESM::CellRef
{
std::string mId;
std::string mCell;
std::string mOriginalCell;
bool mNew; // new reference, not counted yet, ref num not assigned yet
unsigned int mIdNum;
CellRef();
/// Calculate cell index based on coordinates (x and y)
std::pair<int, int> getCellIndex() const;
};
}
#endif