You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
688 B
C++
30 lines
688 B
C++
#ifndef OPENMW_PROCESSORPLAYERSKILL_HPP
|
|
#define OPENMW_PROCESSORPLAYERSKILL_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerSkill : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerSkill()
|
|
{
|
|
BPP_INIT(ID_PLAYER_SKILL)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
if (!player.creatureStats.mDead)
|
|
{
|
|
//myPacket->Send(player, true);
|
|
player.sendToLoaded(&packet);
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerSkill")>(player.getId());
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSKILL_HPP
|