2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _UPDATEHPMPTP_H
|
|
|
|
#define _UPDATEHPMPTP_H
|
|
|
|
|
2017-08-19 00:18:40 +02:00
|
|
|
#include <src/servers/Server_Common/Network/GamePacketNew.h>
|
2017-11-21 06:08:23 -02:00
|
|
|
#include <src/servers/Server_Zone/Actor/Actor.h>
|
2017-08-18 17:16:15 +02:00
|
|
|
#include "src/servers/Server_Zone/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::ActorPtr pActor ) :
|
2017-11-21 18:43:09 +01:00
|
|
|
ZoneChannelPacket< FFXIVIpcUpdateHpMpTp >( pActor->getId(), pActor->getId() )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
initialize( pActor );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( Entity::ActorPtr pActor )
|
|
|
|
{
|
|
|
|
m_data.hp = pActor->getHp();
|
|
|
|
m_data.mp = pActor->getMp();
|
|
|
|
m_data.tp = pActor->getTp();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /*_UPDATEHPMPTP_H*/
|