mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
19 lines
351 B
C++
19 lines
351 B
C++
#include "ref.hpp"
|
|
|
|
#include <components/esm/defs.hpp>
|
|
|
|
#include "cellcoordinates.hpp"
|
|
|
|
CSMWorld::CellRef::CellRef()
|
|
: mNew(true)
|
|
, mIdNum(0)
|
|
{
|
|
mRefNum.mIndex = 0;
|
|
mRefNum.mContentFile = 0;
|
|
}
|
|
|
|
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
|
|
{
|
|
return CellCoordinates::coordinatesToCellIndex(mPos.pos[0], mPos.pos[1]);
|
|
}
|