1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 08:15:54 +00:00
openmw/apps/opencs/model/world/ref.cpp
2022-09-22 21:35:26 +03:00

16 lines
315 B
C++

#include "ref.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]);
}