From 538e9fa8b9c67e652ff75dac88070e5520aee110 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 21 Aug 2024 10:22:57 +0200 Subject: [PATCH] very small refactor --- include/blitz/protocol/PacketSender.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/blitz/protocol/PacketSender.h b/include/blitz/protocol/PacketSender.h index e33f9d6..a3a1afc 100644 --- a/include/blitz/protocol/PacketSender.h +++ b/include/blitz/protocol/PacketSender.h @@ -8,12 +8,15 @@ class NetworkInterface; namespace protocol { +#define DeclarePacket(PacketName, Reliability, ...) void Visit(const protocol::packets::PacketName& a_Packet) override; + + + + + /////////////////////// /* PacketBroadcaster */ /////////////////////// - -#define DeclarePacket(PacketName, Reliability, ...) void Visit(const protocol::packets::PacketName& a_Packet) override; - class PacketBroadcaster : public protocol::PacketVisitor { private: NetworkInterface& m_NetworkInterface;