mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:20:05 +00:00
Radial data packet
This commit is contained in:
parent
c2ca9a3eca
commit
c9617f13b0
5 changed files with 284 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <scwx/wsr88d/rpg/linked_contour_vector_packet.hpp>
|
||||
#include <scwx/wsr88d/rpg/linked_vector_packet.hpp>
|
||||
#include <scwx/wsr88d/rpg/radial_data_packet.hpp>
|
||||
#include <scwx/wsr88d/rpg/set_color_level_packet.hpp>
|
||||
#include <scwx/wsr88d/rpg/text_and_special_symbol_packet.hpp>
|
||||
#include <scwx/wsr88d/rpg/unlinked_contour_vector_packet.hpp>
|
||||
|
|
@ -33,7 +34,8 @@ static const std::unordered_map<uint16_t, CreateMessageFunction> create_ {
|
|||
{10, UnlinkedVectorPacket::Create},
|
||||
{0x0802, SetColorLevelPacket::Create},
|
||||
{0x0E03, LinkedContourVectorPacket::Create},
|
||||
{0x3501, UnlinkedContourVectorPacket::Create}};
|
||||
{0x3501, UnlinkedContourVectorPacket::Create},
|
||||
{0xAF1F, RadialDataPacket::Create}};
|
||||
|
||||
std::shared_ptr<Packet> PacketFactory::Create(std::istream& is)
|
||||
{
|
||||
|
|
@ -62,6 +64,9 @@ std::shared_ptr<Packet> PacketFactory::Create(std::istream& is)
|
|||
|
||||
if (packetValid)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(trace)
|
||||
<< logPrefix_ << "Found packet code: " << packetCode << " (0x"
|
||||
<< std::hex << packetCode << std::dec << ")";
|
||||
packet = create_.at(packetCode)(is);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue