mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-26 13:39:43 +00:00
29 lines
641 B
C++
29 lines
641 B
C++
#ifndef CSM_WOLRD_REF_H
|
|
#define CSM_WOLRD_REF_H
|
|
|
|
#include <utility>
|
|
|
|
#include <components/esm/cellref.hpp>
|
|
|
|
namespace CSMWorld
|
|
{
|
|
/// \brief Wrapper for CellRef sub record
|
|
struct CellRef : public ESM::CellRef
|
|
{
|
|
std::string mId;
|
|
std::string mCell;
|
|
std::string mOriginalCell;
|
|
|
|
CellRef();
|
|
CellRef(const CellRef&) = default;
|
|
CellRef& operator= (const CellRef&) = default;
|
|
|
|
CellRef (CellRef&& other);
|
|
CellRef& operator= (CellRef&& other);
|
|
|
|
/// Calculate cell index based on coordinates (x and y)
|
|
std::pair<int, int> getCellIndex() const;
|
|
};
|
|
}
|
|
|
|
#endif
|