forked from mirror/openmw-tes3mp
[Server] Clarify functions used for getting data in Networking
This commit is contained in:
parent
04dd59e638
commit
20296859ee
5 changed files with 9 additions and 13 deletions
|
@ -1,7 +1,3 @@
|
||||||
//
|
|
||||||
// Created by koncord on 12.01.16.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "Player.hpp"
|
#include "Player.hpp"
|
||||||
#include "processors/ProcessorInitializer.hpp"
|
#include "processors/ProcessorInitializer.hpp"
|
||||||
#include <RakPeer.h>
|
#include <RakPeer.h>
|
||||||
|
@ -397,17 +393,17 @@ WorldstatePacketController *Networking::getWorldstatePacketController() const
|
||||||
return worldstatePacketController;
|
return worldstatePacketController;
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseActorList *Networking::getLastActorList()
|
BaseActorList *Networking::getReceivedActorList()
|
||||||
{
|
{
|
||||||
return &baseActorList;
|
return &baseActorList;
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseObjectList *Networking::getLastObjectList()
|
BaseObjectList *Networking::getReceivedObjectList()
|
||||||
{
|
{
|
||||||
return &baseObjectList;
|
return &baseObjectList;
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseWorldstate *Networking::getLastWorldstate()
|
BaseWorldstate *Networking::getReceivedWorldstate()
|
||||||
{
|
{
|
||||||
return &baseWorldstate;
|
return &baseWorldstate;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,9 +44,9 @@ namespace mwmp
|
||||||
ObjectPacketController *getObjectPacketController() const;
|
ObjectPacketController *getObjectPacketController() const;
|
||||||
WorldstatePacketController *getWorldstatePacketController() const;
|
WorldstatePacketController *getWorldstatePacketController() const;
|
||||||
|
|
||||||
BaseActorList *getLastActorList();
|
BaseActorList *getReceivedActorList();
|
||||||
BaseObjectList *getLastObjectList();
|
BaseObjectList *getReceivedObjectList();
|
||||||
BaseWorldstate *getLastWorldstate();
|
BaseWorldstate *getReceivedWorldstate();
|
||||||
|
|
||||||
int getCurrentMpNum();
|
int getCurrentMpNum();
|
||||||
void setCurrentMpNum(int value);
|
void setCurrentMpNum(int value);
|
||||||
|
|
|
@ -22,7 +22,7 @@ static std::string tempCellDescription;
|
||||||
|
|
||||||
void ActorFunctions::ReadReceivedActorList() noexcept
|
void ActorFunctions::ReadReceivedActorList() noexcept
|
||||||
{
|
{
|
||||||
readActorList = mwmp::Networking::getPtr()->getLastActorList();
|
readActorList = mwmp::Networking::getPtr()->getReceivedActorList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActorFunctions::ReadCellActorList(const char* cellDescription) noexcept
|
void ActorFunctions::ReadCellActorList(const char* cellDescription) noexcept
|
||||||
|
|
|
@ -21,7 +21,7 @@ const ContainerItem emptyContainerItem = {};
|
||||||
|
|
||||||
void ObjectFunctions::ReadReceivedObjectList() noexcept
|
void ObjectFunctions::ReadReceivedObjectList() noexcept
|
||||||
{
|
{
|
||||||
readObjectList = mwmp::Networking::getPtr()->getLastObjectList();
|
readObjectList = mwmp::Networking::getPtr()->getReceivedObjectList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectFunctions::ClearObjectList() noexcept
|
void ObjectFunctions::ClearObjectList() noexcept
|
||||||
|
|
|
@ -16,7 +16,7 @@ BaseWorldstate *readWorldstate;
|
||||||
|
|
||||||
void WorldstateFunctions::ReadReceivedWorldstate() noexcept
|
void WorldstateFunctions::ReadReceivedWorldstate() noexcept
|
||||||
{
|
{
|
||||||
readWorldstate = mwmp::Networking::getPtr()->getLastWorldstate();
|
readWorldstate = mwmp::Networking::getPtr()->getReceivedWorldstate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldstateFunctions::CopyReceivedWorldstateToStore() noexcept
|
void WorldstateFunctions::CopyReceivedWorldstateToStore() noexcept
|
||||||
|
|
Loading…
Reference in a new issue