2013-06-08 12:45:13 +02:00
|
|
|
#include "ref.hpp"
|
2014-05-27 12:39:26 +02:00
|
|
|
|
2022-10-19 19:02:00 +02:00
|
|
|
#include <components/esm/defs.hpp>
|
|
|
|
|
2016-03-12 13:19:51 +01:00
|
|
|
#include "cellcoordinates.hpp"
|
|
|
|
|
2021-07-23 19:07:56 +10:00
|
|
|
CSMWorld::CellRef::CellRef()
|
|
|
|
: mNew(true)
|
|
|
|
, mIdNum(0)
|
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
|
|
|
}
|