mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:20:05 +00:00
Vector arrow data packet
This commit is contained in:
parent
bf56680d85
commit
5dcf65b79c
4 changed files with 201 additions and 0 deletions
44
wxdata/include/scwx/wsr88d/rpg/vector_arrow_data_packet.hpp
Normal file
44
wxdata/include/scwx/wsr88d/rpg/vector_arrow_data_packet.hpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/wsr88d/rpg/packet.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace wsr88d
|
||||
{
|
||||
namespace rpg
|
||||
{
|
||||
|
||||
class VectorArrowDataPacketImpl;
|
||||
|
||||
class VectorArrowDataPacket : public Packet
|
||||
{
|
||||
public:
|
||||
explicit VectorArrowDataPacket();
|
||||
~VectorArrowDataPacket();
|
||||
|
||||
VectorArrowDataPacket(const VectorArrowDataPacket&) = delete;
|
||||
VectorArrowDataPacket& operator=(const VectorArrowDataPacket&) = delete;
|
||||
|
||||
VectorArrowDataPacket(VectorArrowDataPacket&&) noexcept;
|
||||
VectorArrowDataPacket& operator=(VectorArrowDataPacket&&) noexcept;
|
||||
|
||||
uint16_t packet_code() const;
|
||||
uint16_t length_of_block() const;
|
||||
|
||||
size_t data_size() const override;
|
||||
|
||||
bool Parse(std::istream& is) override;
|
||||
|
||||
static std::shared_ptr<VectorArrowDataPacket> Create(std::istream& is);
|
||||
|
||||
private:
|
||||
std::unique_ptr<VectorArrowDataPacketImpl> p;
|
||||
};
|
||||
|
||||
} // namespace rpg
|
||||
} // namespace wsr88d
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue