mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 00:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			675 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			675 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| //
 | |
| // Created by koncord on 13.01.16.
 | |
| //
 | |
| 
 | |
| #ifndef OPENMW_PACKETPLAYERDEATH_HPP
 | |
| #define OPENMW_PACKETPLAYERDEATH_HPP
 | |
| 
 | |
| 
 | |
| #include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
 | |
| #include <components/openmw-mp/NetworkMessages.hpp>
 | |
| 
 | |
| 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->creatureStats.mDead, send);
 | |
|         }
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif //OPENMW_PACKETPLAYERDEATH_HPP
 |