1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00
2024-05-19 18:55:37 +02:00

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