2013-06-08 10:45:13 +00:00
|
|
|
#include "ref.hpp"
|
2014-05-27 10:39:26 +00:00
|
|
|
|
2015-01-09 11:05:16 +00:00
|
|
|
#include <cmath>
|
|
|
|
|
2016-03-12 12:19:51 +00:00
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
#include "cellcoordinates.hpp"
|
|
|
|
|
2016-03-24 10:12:05 +00:00
|
|
|
CSMWorld::CellRef::CellRef() : mNew (true)
|
2014-05-27 10:39:26 +00:00
|
|
|
{
|
|
|
|
mRefNum.mIndex = 0;
|
2014-09-18 10:25:17 +00:00
|
|
|
mRefNum.mContentFile = 0;
|
2015-01-09 11:05:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
|
|
|
|
{
|
2016-03-12 12:19:51 +00:00
|
|
|
return CellCoordinates::coordinatesToCellIndex (mPos.pos[0], mPos.pos[1]);
|
2015-04-24 20:52:53 +00:00
|
|
|
}
|