summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 17:30:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit487d3be4cc8761e5697d4fb95d85e9da8dcaa42e (patch)
tree51ad4b1a6e89fd10a5a30a951879862494264c53 /src/net/net.cpp
parente4aea077d98d37ddec91c76ca7ad359e321a7661 (diff)
downloadplus-487d3be4cc8761e5697d4fb95d85e9da8dcaa42e.tar.gz
plus-487d3be4cc8761e5697d4fb95d85e9da8dcaa42e.tar.bz2
plus-487d3be4cc8761e5697d4fb95d85e9da8dcaa42e.tar.xz
plus-487d3be4cc8761e5697d4fb95d85e9da8dcaa42e.zip
Add serverfeatures class for check is server support one or another features.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 63a348bde..c238731a5 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -50,6 +50,7 @@ Net::SkillHandler *skillHandler = nullptr;
Net::TradeHandler *tradeHandler = nullptr;
Net::BeingHandler *beingHandler = nullptr;
Net::BuySellHandler *buySellHandler = nullptr;
+Net::ServerFeatures *serverFeatures = nullptr;
Net::AdminHandler *Net::getAdminHandler()
{
@@ -131,6 +132,11 @@ Net::BuySellHandler *Net::getBuySellHandler()
return buySellHandler;
}
+Net::ServerFeatures *Net::getServerFeatures()
+{
+ return serverFeatures;
+}
+
namespace Net
{
ServerInfo::Type networkType = ServerInfo::UNKNOWN;