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