#include "../mwbase/environment.hpp" #include "../mwworld/worldimp.hpp" #include #include #include "WorldController.hpp" #include "Main.hpp" mwmp::WorldController::WorldController() { } mwmp::WorldController::~WorldController() { } MWWorld::CellStore *mwmp::WorldController::getCell(const ESM::Cell& cell) { MWWorld::CellStore *cellStore; if (cell.isExterior()) cellStore = MWBase::Environment::get().getWorld()->getExterior(cell.mData.mX, cell.mData.mY); else { try { cellStore = MWBase::Environment::get().getWorld()->getInterior(cell.mName); } catch (std::exception&) { cellStore = NULL; } } return cellStore; }