mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
c56cd7c221
Additions and removals of the local player's active spells can now be saved to and loaded from the server.
26 lines
615 B
C++
26 lines
615 B
C++
#ifndef OPENMW_PROCESSORPLAYERSPELLSACTIVE_HPP
|
|
#define OPENMW_PROCESSORPLAYERSPELLSACTIVE_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerSpellsActive : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerSpellsActive()
|
|
{
|
|
BPP_INIT(ID_PLAYER_SPELLS_ACTIVE)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
DEBUG_PRINTF(strPacketID.c_str());
|
|
|
|
Script::Call<Script::CallbackIdentity("OnPlayerSpellsActive")>(player.getId());
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSPELLSACTIVE_HPP
|