You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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]);
|
|
}
|