2017-04-25 16:01:56 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERLEVEL_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERLEVEL_HPP
|
2017-03-31 18:36:24 +00:00
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-04-25 16:01:56 +00:00
|
|
|
class ProcessorPlayerLevel : public PlayerProcessor
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-04-25 16:01:56 +00:00
|
|
|
ProcessorPlayerLevel()
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_LEVEL)
|
|
|
|
}
|
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
void Do(PlayerPacket &packet, std::shared_ptr<Player> player) override
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
2017-08-27 16:15:56 +00:00
|
|
|
if (!player->creatureStats.mDead)
|
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_LEVEL>(player);
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-04-25 16:01:56 +00:00
|
|
|
#endif //OPENMW_PROCESSORPLAYERLEVEL_HPP
|