diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/serverinfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index 82d11fec..25b4e9a8 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -25,6 +25,8 @@ #include <string> #include <vector> +#include "utils/stringutils.h" + class ServerInfo { public: @@ -72,6 +74,15 @@ public: return (type != other.type || hostname != other.hostname || port != other.port); } + + Type static getCurrentType() + { +#ifdef MANASERV_SUPPORT + return MANASERV; +#else + return EATHENA; +#endif + } }; typedef std::vector<ServerInfo> ServerInfos; |