You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps/opencs/model/world/ref.cpp

17 lines
297 B
C++

#include "ref.hpp"
#include <components/esm/defs.hpp>
#include "cellcoordinates.hpp"
CSMWorld::CellRef::CellRef()
: mNew(true)
, mIdNum(0)
{
}
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
{
return CellCoordinates::coordinatesToCellIndex(mPos.pos[0], mPos.pos[1]);
}