mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 10:49:57 +00:00
690211ad99
Move Send and Read functions to BasePacket
30 lines
700 B
C++
30 lines
700 B
C++
//
|
|
// Created by koncord on 13.01.16.
|
|
//
|
|
|
|
#ifndef OPENMW_PACKETPLAYERRESURRECT_HPP
|
|
#define OPENMW_PACKETPLAYERRESURRECT_HPP
|
|
|
|
|
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
namespace mwmp
|
|
{
|
|
class PacketPlayerResurrect: public PlayerPacket
|
|
{
|
|
public:
|
|
PacketPlayerResurrect(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
|
{
|
|
packetID = ID_PLAYER_RESURRECT;
|
|
}
|
|
void Packet(RakNet::BitStream *bs, bool send)
|
|
{
|
|
PlayerPacket::Packet(bs, send);
|
|
RW(player->creatureStats.mDead, send);
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PACKETPLAYERRESURRECT_HPP
|