mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 08:45:36 +00:00
ac374a8ef9
Conflicts: apps/openmw-mp/Player.cpp apps/openmw-mp/Script/Functions/Mechanics.cpp apps/openmw-mp/Script/Functions/Mechanics.hpp apps/openmw-mp/Script/Functions/Quests.cpp apps/openmw-mp/Script/Functions/Quests.hpp apps/openmw-mp/Script/ScriptFunctions.hpp apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp apps/openmw/mwmp/LocalPlayer.hpp apps/openmw/mwmp/WorldEvent.cpp apps/openmw/mwworld/worldimp.cpp components/openmw-mp/Base/BasePlayer.hpp
32 lines
735 B
C++
32 lines
735 B
C++
#ifndef OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
|
#define OPENMW_PROCESSORPLAYERREPUTATION_HPP
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerReputation final: 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
|