mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
[Client] Fix typo
This commit is contained in:
parent
740bfea0b2
commit
f0805ca6f7
3 changed files with 16 additions and 15 deletions
|
@ -97,7 +97,7 @@ add_openmw_dir (mwbase
|
|||
)
|
||||
|
||||
add_openmw_dir (mwmp Main Networking LocalPlayer DedicatedPlayer LocalActor DedicatedActor ActorList WorldEvent Cell CellController MechanicsHelper GUIChat GUILogin
|
||||
GUIController PlayerMarkerCollection GUIDialogList WorldController PlayerProcessor WorldProcesssor ProcessorInitializer)
|
||||
GUIController PlayerMarkerCollection GUIDialogList WorldController PlayerProcessor WorldProcessor ProcessorInitializer)
|
||||
|
||||
# Main executable
|
||||
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
//
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include "WorldProcesssor.hpp"
|
||||
#include "WorldProcessor.hpp"
|
||||
#include "Main.hpp"
|
||||
#include "Networking.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
WorldProcesssor::processors_t WorldProcesssor::processors;
|
||||
RakNet::RakNetGUID WorldProcesssor::guid;
|
||||
RakNet::SystemAddress WorldProcesssor::serverAddr;
|
||||
bool WorldProcesssor::request;
|
||||
WorldProcessor::processors_t WorldProcessor::processors;
|
||||
RakNet::RakNetGUID WorldProcessor::guid;
|
||||
RakNet::SystemAddress WorldProcessor::serverAddr;
|
||||
bool WorldProcessor::request;
|
||||
|
||||
bool WorldProcesssor::Process(RakNet::Packet &packet, BaseEvent &event)
|
||||
bool WorldProcessor::Process(RakNet::Packet &packet, WorldEvent &event)
|
||||
{
|
||||
RakNet::BitStream bsIn(&packet.data[1], packet.length, false);
|
||||
bsIn.Read(guid);
|
||||
|
@ -43,7 +43,7 @@ bool WorldProcesssor::Process(RakNet::Packet &packet, BaseEvent &event)
|
|||
return false;
|
||||
}
|
||||
|
||||
void WorldProcesssor::AddProcessor(mwmp::WorldProcesssor *processor)
|
||||
void WorldProcessor::AddProcessor(mwmp::WorldProcessor *processor)
|
||||
{
|
||||
BOOST_FOREACH(processors_t::value_type &p, processors)
|
||||
{
|
||||
|
@ -51,10 +51,10 @@ void WorldProcesssor::AddProcessor(mwmp::WorldProcesssor *processor)
|
|||
throw std::logic_error("processor " + p.second->strPacketID + " already registered. Check " +
|
||||
processor->className + " and " + p.second->className);
|
||||
}
|
||||
processors.insert(processors_t::value_type(processor->GetPacketID(), boost::shared_ptr<WorldProcesssor>(processor)));
|
||||
processors.insert(processors_t::value_type(processor->GetPacketID(), boost::shared_ptr<WorldProcessor>(processor)));
|
||||
}
|
||||
|
||||
LocalPlayer *WorldProcesssor::getLocalPlayer()
|
||||
LocalPlayer *WorldProcessor::getLocalPlayer()
|
||||
{
|
||||
return Main::get().getLocalPlayer();
|
||||
}
|
|
@ -12,24 +12,25 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include <components/openmw-mp/Base/BasePacketProcessor.hpp>
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
#include "WorldEvent.hpp"
|
||||
#include "LocalPlayer.hpp"
|
||||
#include "DedicatedPlayer.hpp"
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class WorldProcesssor : public BasePacketProcessor
|
||||
class WorldProcessor : public BasePacketProcessor
|
||||
{
|
||||
public:
|
||||
virtual void Do(WorldPacket &packet, BaseEvent &event) = 0;
|
||||
virtual void Do(WorldPacket &packet, WorldEvent &event) = 0;
|
||||
|
||||
static bool Process(RakNet::Packet &packet, BaseEvent &event);
|
||||
static void AddProcessor(WorldProcesssor *processor);
|
||||
static bool Process(RakNet::Packet &packet, WorldEvent &event);
|
||||
static void AddProcessor(WorldProcessor *processor);
|
||||
static void SetServerAddr(RakNet::SystemAddress addr)
|
||||
{
|
||||
serverAddr = addr;
|
||||
}
|
||||
|
||||
typedef boost::unordered_map<unsigned char, boost::shared_ptr<WorldProcesssor> > processors_t;
|
||||
typedef boost::unordered_map<unsigned char, boost::shared_ptr<WorldProcessor> > processors_t;
|
||||
|
||||
protected:
|
||||
inline bool isRequest()
|
Loading…
Reference in a new issue