2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 13.01.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_PACKETDIE_HPP
|
|
|
|
#define OPENMW_PACKETDIE_HPP
|
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2016-10-17 12:54:36 +00:00
|
|
|
class PacketDie: public PlayerPacket
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-10-17 12:54:36 +00:00
|
|
|
PacketDie(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
2016-01-12 03:41:44 +00:00
|
|
|
{
|
|
|
|
packetID = ID_GAME_DIE;
|
|
|
|
}
|
|
|
|
void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
|
|
{
|
2016-10-17 12:54:36 +00:00
|
|
|
PlayerPacket::Packet(bs, player, send);
|
2016-01-12 03:41:44 +00:00
|
|
|
RW(player->CreatureStats()->mDead, send);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PACKETDIE_HPP
|