// // Created by koncord on 13.01.16. // #ifndef OPENMW_PACKETPLAYERDEATH_HPP #define OPENMW_PACKETPLAYERDEATH_HPP #include #include namespace mwmp { class PacketPlayerDeath: public PlayerPacket { public: PacketPlayerDeath(RakNet::RakPeerInterface *peer) : PlayerPacket(peer) { packetID = ID_PLAYER_DEATH; } void Packet(RakNet::BitStream *bs, bool send) { PlayerPacket::Packet(bs, send); RW(player->deathReason, send, 1); } }; } #endif //OPENMW_PACKETPLAYERDEATH_HPP