You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
718 B
C++
30 lines
718 B
C++
//
|
|
// Created by koncord on 03.04.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PLAYERPROCESSOR_HPP
|
|
#define OPENMW_PLAYERPROCESSOR_HPP
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
|
#include "../LocalPlayer.hpp"
|
|
#include "../DedicatedPlayer.hpp"
|
|
#include "../PlayerList.hpp"
|
|
#include "BaseClientPacketProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class PlayerProcessor : public BasePacketProcessor<PlayerProcessor>, public BaseClientPacketProcessor
|
|
{
|
|
public:
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player) = 0;
|
|
|
|
static bool Process(RakNet::Packet &packet);
|
|
};
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PLAYERPROCESSOR_HPP
|