1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00
sapphire/src/servers/sapphire_zone/Network/PacketWrappers/UpdateHpMpTpPacket.h

41 lines
716 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _UPDATEHPMPTP_H
#define _UPDATEHPMPTP_H
#include <common/Network/GamePacketNew.h>
#include <Actor/Actor.h>
#include "Forwards.h"
2017-08-08 13:53:47 +02:00
namespace Core {
namespace Network {
namespace Packets {
namespace Server {
/**
* @brief The Ping response packet.
*/
class UpdateHpMpTpPacket :
2017-11-21 18:43:09 +01:00
public ZoneChannelPacket< FFXIVIpcUpdateHpMpTp >
2017-08-08 13:53:47 +02:00
{
public:
UpdateHpMpTpPacket( Entity::Actor& actor ) :
ZoneChannelPacket< FFXIVIpcUpdateHpMpTp >( actor.getId(), actor.getId() )
2017-08-08 13:53:47 +02:00
{
initialize( actor );
2017-08-08 13:53:47 +02:00
};
private:
void initialize( Entity::Actor& actor )
2017-08-08 13:53:47 +02:00
{
m_data.hp = actor.getHp();
m_data.mp = actor.getMp();
m_data.tp = actor.getTp();
2017-08-08 13:53:47 +02:00
};
};
}
}
}
}
#endif /*_UPDATEHPMPTP_H*/