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_PACKETPLAYERDEATH_HPP
|
|
|
|
#define OPENMW_PACKETPLAYERDEATH_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 PacketPlayerDeath: public PlayerPacket
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-02-27 23:38:25 +00:00
|
|
|
PacketPlayerDeath(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
2017-02-27 23:38:25 +00:00
|
|
|
packetID = ID_PLAYER_DEATH;
|
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);
|
2017-05-05 19:16:31 +00:00
|
|
|
|
|
|
|
RW(player->deathReason, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-02-27 23:38:25 +00:00
|
|
|
#endif //OPENMW_PACKETPLAYERDEATH_HPP
|