mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
19 lines
335 B
C++
19 lines
335 B
C++
#include "ref.hpp"
|
|
|
|
#include <cmath>
|
|
|
|
#include <sstream>
|
|
|
|
#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]);
|
|
}
|