2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 13.01.16.
|
|
|
|
//
|
|
|
|
|
2017-02-27 23:38:25 +00:00
|
|
|
#ifndef OPENMW_PACKETPLAYERRESURRECT_HPP
|
|
|
|
#define OPENMW_PACKETPLAYERRESURRECT_HPP
|
2016-01-12 03:41:44 +00:00
|
|
|
|
|
|
|
|
2016-10-19 16:37:10 +00:00
|
|
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
2016-01-12 03:41:44 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-02-27 23:38:25 +00:00
|
|
|
class PacketPlayerResurrect: public PlayerPacket
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-02-27 23:38:25 +00:00
|
|
|
PacketPlayerResurrect(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-02-27 23:38:25 +00:00
|
|
|
packetID = ID_PLAYER_RESURRECT;
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
2017-03-06 09:44:08 +00:00
|
|
|
void Packet(RakNet::BitStream *bs, bool send)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-03-06 09:44:08 +00:00
|
|
|
PlayerPacket::Packet(bs, send);
|
2017-01-25 15:06:15 +00:00
|
|
|
RW(player->creatureStats.mDead, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-02-27 23:38:25 +00:00
|
|
|
#endif //OPENMW_PACKETPLAYERRESURRECT_HPP
|