begin packet serialization

This commit is contained in:
2024-07-18 15:28:01 +02:00
parent 2e63a474b8
commit 6e9c747b2d
17 changed files with 842 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#include <blitz/protocol/PacketFactory.h>
static int Test() {
for (std::size_t i = 0; i < static_cast<int>(blitz::protocol::PacketType::PACKET_COUNT); i++) {
blitz::protocol::PacketType packetType = blitz::protocol::PacketType(i);
if (blitz::protocol::PacketFactory::CreateReadOnlyPacket(packetType)->GetType() != packetType)
return 1;
}
return 0;
}
int main() {
return Test();
}