1 #include "ref.hpp"
2 
3 #include "cellcoordinates.hpp"
4 
CellRef()5 CSMWorld::CellRef::CellRef() : mNew (true)
6 {
7     mRefNum.mIndex = 0;
8     mRefNum.mContentFile = 0;
9 }
10 
getCellIndex() const11 std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
12 {
13     return CellCoordinates::coordinatesToCellIndex (mPos.pos[0], mPos.pos[1]);
14 }
15