Radial data packet

This commit is contained in:
Dan Paulat 2022-01-07 01:10:41 -06:00
parent c2ca9a3eca
commit c9617f13b0
5 changed files with 284 additions and 1 deletions

View file

@ -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);
}