[Server] Clarify functions used for getting data in Networking

fix/skillcap
David Cernat 7 years ago
parent 04dd59e638
commit 20296859ee

@ -1,7 +1,3 @@
//
// Created by koncord on 12.01.16.
//
#include "Player.hpp"
#include "processors/ProcessorInitializer.hpp"
#include <RakPeer.h>
@ -397,17 +393,17 @@ WorldstatePacketController *Networking::getWorldstatePacketController() const
return worldstatePacketController;
}
BaseActorList *Networking::getLastActorList()
BaseActorList *Networking::getReceivedActorList()
{
return &baseActorList;
}
BaseObjectList *Networking::getLastObjectList()
BaseObjectList *Networking::getReceivedObjectList()
{
return &baseObjectList;
}
BaseWorldstate *Networking::getLastWorldstate()
BaseWorldstate *Networking::getReceivedWorldstate()
{
return &baseWorldstate;
}

@ -44,9 +44,9 @@ namespace mwmp
ObjectPacketController *getObjectPacketController() const;
WorldstatePacketController *getWorldstatePacketController() const;
BaseActorList *getLastActorList();
BaseObjectList *getLastObjectList();
BaseWorldstate *getLastWorldstate();
BaseActorList *getReceivedActorList();
BaseObjectList *getReceivedObjectList();
BaseWorldstate *getReceivedWorldstate();
int getCurrentMpNum();
void setCurrentMpNum(int value);

@ -22,7 +22,7 @@ static std::string tempCellDescription;
void ActorFunctions::ReadReceivedActorList() noexcept
{
readActorList = mwmp::Networking::getPtr()->getLastActorList();
readActorList = mwmp::Networking::getPtr()->getReceivedActorList();
}
void ActorFunctions::ReadCellActorList(const char* cellDescription) noexcept

@ -21,7 +21,7 @@ const ContainerItem emptyContainerItem = {};
void ObjectFunctions::ReadReceivedObjectList() noexcept
{
readObjectList = mwmp::Networking::getPtr()->getLastObjectList();
readObjectList = mwmp::Networking::getPtr()->getReceivedObjectList();
}
void ObjectFunctions::ClearObjectList() noexcept

@ -16,7 +16,7 @@ BaseWorldstate *readWorldstate;
void WorldstateFunctions::ReadReceivedWorldstate() noexcept
{
readWorldstate = mwmp::Networking::getPtr()->getLastWorldstate();
readWorldstate = mwmp::Networking::getPtr()->getReceivedWorldstate();
}
void WorldstateFunctions::CopyReceivedWorldstateToStore() noexcept

Loading…
Cancel
Save