From a355e8aff74337706d8a0d5cf920809e3ecb975f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Oct 2014 18:38:07 +0300 Subject: Add new server feature CharRename. --- 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 8a1308506..00357e65f 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -132,4 +132,9 @@ bool ServerFeatures::haveEightDirections() const return true; } +bool ServerFeatures::haveCharRename() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 842e1ce16..5c37cc066 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -73,6 +73,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveEmailOnRegister() const override final; bool haveEightDirections() const override final; + + bool haveCharRename() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 9a39a2d52..464ee7a8f 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -70,6 +70,8 @@ class ServerFeatures notfinal virtual bool haveEmailOnRegister() const = 0; virtual bool haveEightDirections() const = 0; + + virtual bool haveCharRename() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 611a22fc4..3c603f245 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -134,4 +134,9 @@ bool ServerFeatures::haveEightDirections() const return false; } +bool ServerFeatures::haveCharRename() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 7e71932eb..adddbd964 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -73,6 +73,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveEmailOnRegister() const override final; bool haveEightDirections() const override final; + + bool haveCharRename() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2