From 63def8aa3291d0a6e5f83b289ad12c4c8a3cebd9 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 6 Oct 2015 00:30:47 +0200 Subject: Core/Battle.net: * Changed packet structures to mirror client names * Simplified ToString Building * Removed deprecated structures World: Cleaned up duplicate realm info 'realm' and 'realmHandle' variables (realmHandle was removed, that data is fully contained in realm) --- src/server/bnetserver/Server/ComponentManager.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/server/bnetserver/Server/ComponentManager.h') diff --git a/src/server/bnetserver/Server/ComponentManager.h b/src/server/bnetserver/Server/ComponentManager.h index 7aae45d94c5..0b403d2f309 100644 --- a/src/server/bnetserver/Server/ComponentManager.h +++ b/src/server/bnetserver/Server/ComponentManager.h @@ -19,19 +19,13 @@ #define ComponentManager_h__ #include "Define.h" +#include "PacketsCommon.h" #include #include #include namespace Battlenet { - struct Component - { - std::string Program; - std::string Platform; - uint32 Build; - }; - class ComponentMgr { ComponentMgr() { } @@ -39,7 +33,7 @@ namespace Battlenet public: void Load(); - bool HasComponent(Component const* component) const; + bool HasComponent(Version::Record const* component) const; bool HasProgram(std::string const& program) const { return _programs.count(program) != 0; } bool HasPlatform(std::string const& platform) const { return _platforms.count(platform) != 0; } @@ -50,7 +44,7 @@ namespace Battlenet } private: - std::set _components; + std::set _components; std::set _programs; std::set _platforms; }; -- cgit v1.2.3