2017-03-31 18:36:24 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 01.04.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PROCESSORLEVEL_HPP
|
|
|
|
#define OPENMW_PROCESSORLEVEL_HPP
|
|
|
|
|
|
|
|
|
2017-04-02 21:45:41 +00:00
|
|
|
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorLevel : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorLevel()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_LEVEL)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
|
|
{
|
|
|
|
if (!player.creatureStats.mDead)
|
|
|
|
{
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerLevelChange")>(player.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORLEVEL_HPP
|