aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Utilities/Util.h
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2014-10-30 02:04:54 +0000
committerDDuarte <dnpd.dd@gmail.com>2014-10-30 02:04:54 +0000
commit7b2274a7447973f698426bcdb51c8faad6ba1296 (patch)
tree51bc69b2e59ea157caca19e09c508f5a8fe113a9 /src/server/shared/Utilities/Util.h
parent386b97c4851ca614bfac3916502e2e2a26dd9fd6 (diff)
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.
Diffstat (limited to 'src/server/shared/Utilities/Util.h')
-rw-r--r--src/server/shared/Utilities/Util.h7
1 files changed, 7 insertions, 0 deletions
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 <list>
#include <map>
+template<typename T>
+struct Optional
+{
+ T value;
+ bool HasValue;
+};
+
// Searcher for map of structs
template<typename T, class S> struct Finder
{