openmw-tes3coop/components/openmw-mp/Packets/Player/PacketDisconnect.hpp
Koncord 2cb0ea20f0 [General] Modernize packets
Use explicit for constructors
Use override instead virtual for inherited methods
Mark final derived classes as "final"
2017-12-09 10:13:27 +08:00

24 lines
554 B
C++

//
// Created by koncord on 12.01.16.
//
#ifndef OPENMW_PACKETDISCONNECT_HPP
#define OPENMW_PACKETDISCONNECT_HPP
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
namespace mwmp
{
class PacketDisconnect final: public PlayerPacket
{
public:
PacketDisconnect(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_USER_DISCONNECTED;
orderChannel = CHANNEL_SYSTEM;
}
};
}
#endif //OPENMW_PACKETDISCONNECT_HPP