Linked vector packet

This commit is contained in:
Dan Paulat 2021-12-24 12:08:15 -06:00
parent cb86ab4b9b
commit ab702e9927
6 changed files with 351 additions and 0 deletions

View file

@ -0,0 +1,34 @@
#pragma once
#include <scwx/wsr88d/message.hpp>
#include <cstdint>
#include <memory>
namespace scwx
{
namespace wsr88d
{
namespace rpg
{
class Packet : public Message
{
protected:
explicit Packet();
Packet(const Packet&) = delete;
Packet& operator=(const Packet&) = delete;
Packet(Packet&&) noexcept;
Packet& operator=(Packet&&) noexcept;
public:
virtual ~Packet();
virtual uint16_t packet_code() const = 0;
};
} // namespace rpg
} // namespace wsr88d
} // namespace scwx