2017-04-16 07:00:25 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 16.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERCHARCLASS_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERCHARCLASS_HPP
|
|
|
|
|
|
|
|
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-04-16 07:00:25 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerCharClass : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerCharClass()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_CHARCLASS)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
|
|
|
if (isLocal())
|
|
|
|
{
|
2017-05-02 19:47:58 +00:00
|
|
|
if (isRequest())
|
2017-04-16 07:00:25 +00:00
|
|
|
static_cast<LocalPlayer *>(player)->sendClass();
|
|
|
|
else
|
|
|
|
static_cast<LocalPlayer *>(player)->setClass();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERCHARCLASS_HPP
|