From fc70de9b9d4ae04b1748a27474cc0e1c03e07f05 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Jan 2015 17:23:00 +0300 Subject: Add server feature vending. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 4179adef3..2afce81c3 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -195,4 +195,9 @@ bool ServerFeatures::haveAttackDirections() const return true; } +bool ServerFeatures::haveVending() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index bf7fb422e..75fbf1b8e 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -97,6 +97,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCreateCharGender() const override final; bool haveAttackDirections() const override final; + + bool haveVending() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index b93914a22..bb6c3ada8 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -94,6 +94,8 @@ class ServerFeatures notfinal virtual bool haveCreateCharGender() const = 0; virtual bool haveAttackDirections() const = 0; + + virtual bool haveVending() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 5e4ea63e5..b939970ee 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -194,4 +194,9 @@ bool ServerFeatures::haveAttackDirections() const return false; } +bool ServerFeatures::haveVending() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index e447197c3..391073d4a 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -97,6 +97,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCreateCharGender() const override final; bool haveAttackDirections() const override final; + + bool haveVending() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2