1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 19:10:24 +00:00
OpenMW/apps/opencs/model/world/ref.cpp
2019-01-05 01:25:52 +03:00

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]);
}