mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 20:45:32 +00:00
24 lines
602 B
C++
24 lines
602 B
C++
#ifndef OPENMW_PROCESSORPLAYERLEVEL_HPP
|
|
#define OPENMW_PROCESSORPLAYERLEVEL_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerLevel : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerLevel()
|
|
{
|
|
BPP_INIT(ID_PLAYER_LEVEL)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
|
{
|
|
if (!player->creatureStats.mDead)
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_LEVEL>(player);
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERLEVEL_HPP
|