1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 07:23:52 +00:00
openmw/apps/opencs/model/world/ref.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
351 B
C++
Raw Normal View History

#include "ref.hpp"
2022-10-19 17:02:00 +00:00
#include <components/esm/defs.hpp>
#include "cellcoordinates.hpp"
CSMWorld::CellRef::CellRef()
: mNew(true)
, mIdNum(0)
{
mRefNum.mIndex = 0;
mRefNum.mContentFile = 0;
2015-01-09 11:05:16 +00:00
}
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
{
return CellCoordinates::coordinatesToCellIndex(mPos.pos[0], mPos.pos[1]);
}