Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
297 B
Raw Blame
#include "ref.hpp"

#include <components/esm/defs.hpp>

#include "cellcoordinates.hpp"

CSMWorld::CellRef::CellRef()
    : mNew(true)
    , mIdNum(0)
{
}

std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
{
    return CellCoordinates::coordinatesToCellIndex(mPos.pos[0], mPos.pos[1]);
}