mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
1b259e2d33
Created Package system
30 lines
684 B
C++
30 lines
684 B
C++
//
|
|
// Created by koncord on 13.01.16.
|
|
//
|
|
|
|
#ifndef OPENMW_PACKETRESURRECT_HPP
|
|
#define OPENMW_PACKETRESURRECT_HPP
|
|
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
namespace mwmp
|
|
{
|
|
class PacketResurrect: public BasePacket
|
|
{
|
|
public:
|
|
PacketResurrect(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
|
{
|
|
packetID = ID_GAME_RESURRECT;
|
|
}
|
|
void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
{
|
|
BasePacket::Packet(bs, player, send);
|
|
RW(player->CreatureStats()->mDead, send);
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PACKETRESURRECT_HPP
|