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