mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
32 lines
730 B
C++
32 lines
730 B
C++
#ifndef OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
|
#define OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerReputation : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerReputation()
|
|
{
|
|
BPP_INIT(ID_PLAYER_REPUTATION)
|
|
}
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
{
|
|
if (isRequest())
|
|
{
|
|
static_cast<LocalPlayer *>(player)->updateReputation(true);
|
|
}
|
|
else if (player != 0)
|
|
{
|
|
static_cast<LocalPlayer *>(player)->setReputation();
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERREPUTATION_HPP
|