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.
openmw-tes3mp/apps/openmw-mp/processors/PlayerProcessor.hpp

29 lines
782 B
C++

//
// Created by koncord on 31.03.17.
//
#ifndef OPENMW_BASEPLAYERPROCESSOR_HPP
#define OPENMW_BASEPLAYERPROCESSOR_HPP
#include <components/openmw-mp/Base/BasePacketProcessor.hpp>
#include <components/openmw-mp/Packets/BasePacket.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Utils.hpp"
#include "Players.hpp"
#include "../Script/EventController.hpp"
namespace mwmp
{
class PlayerProcessor : public BasePacketProcessor<PlayerProcessor>
{
public:
virtual void PreReading(PlayerPacket &packet, const std::shared_ptr<Player> &player){};
virtual void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) = 0;
static bool Process(RakNet::Packet &packet) noexcept;
};
}
#endif //OPENMW_BASEPLAYERPROCESSOR_HPP