From 7b2274a7447973f698426bcdb51c8faad6ba1296 Mon Sep 17 00:00:00 2001 From: DDuarte Date: Thu, 30 Oct 2014 02:04:54 +0000 Subject: Core/Networking: PoC changes to the way packets are handled This is a rewrite of the way we send SMSG opcodes, the reasoning behind this is to make fixing packets sent in multiple places easier, and allow for clearer documentation of the packet fields. Included SMSG_AUTH_RESPONSE and SMSG_AUCTION_COMMAND_RESULT as two examples. --- src/server/shared/Utilities/Util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/server/shared/Utilities/Util.h') diff --git a/src/server/shared/Utilities/Util.h b/src/server/shared/Utilities/Util.h index 73ee37eb079..e2d8cd3a195 100644 --- a/src/server/shared/Utilities/Util.h +++ b/src/server/shared/Utilities/Util.h @@ -28,6 +28,13 @@ #include #include +template +struct Optional +{ + T value; + bool HasValue; +}; + // Searcher for map of structs template struct Finder { -- cgit v1.2.3