|
|
@ -8,6 +8,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "CellController.hpp"
|
|
|
|
#include "CellController.hpp"
|
|
|
|
#include "Main.hpp"
|
|
|
|
#include "Main.hpp"
|
|
|
|
|
|
|
|
#include "LocalActor.hpp"
|
|
|
|
#include "LocalPlayer.hpp"
|
|
|
|
#include "LocalPlayer.hpp"
|
|
|
|
using namespace mwmp;
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
|
|
|
@ -99,6 +100,14 @@ bool CellController::hasLocalActorRecord(MWWorld::Ptr ptr)
|
|
|
|
return (localActorsToCells.count(mapIndex) > 0);
|
|
|
|
return (localActorsToCells.count(mapIndex) > 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LocalActor *CellController::getLocalActor(MWWorld::Ptr ptr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string actorIndex = generateMapIndex(ptr);
|
|
|
|
|
|
|
|
std::string cellIndex = localActorsToCells.at(actorIndex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cellsActive.at(cellIndex)->getLocalActor(actorIndex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string CellController::generateMapIndex(MWWorld::Ptr ptr)
|
|
|
|
std::string CellController::generateMapIndex(MWWorld::Ptr ptr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string mapIndex = "";
|
|
|
|
std::string mapIndex = "";
|
|
|
|