diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 20:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 20:27:04 +0300 |
commit | 2314f78e49bcf92c69b7148cc8e771de01d161cb (patch) | |
tree | 411f51060880560537a8413eb301e6862fb07b02 /src/net | |
parent | 976d72a73812224ff43f344299f1de64459b05be (diff) | |
download | plus-2314f78e49bcf92c69b7148cc8e771de01d161cb.tar.gz plus-2314f78e49bcf92c69b7148cc8e771de01d161cb.tar.bz2 plus-2314f78e49bcf92c69b7148cc8e771de01d161cb.tar.xz plus-2314f78e49bcf92c69b7148cc8e771de01d161cb.zip |
eathena: add packet CMSG_ADMIN_SET_TILE_TYPE 0x0198.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/adminhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 3 |
6 files changed, 24 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index df4db1b64..1a84edf66 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -83,6 +83,9 @@ class AdminHandler notfinal virtual void resetSkills() const = 0; virtual void requestLogin(const Being *const being) const = 0; + + virtual void setTileType(const int x, const int y, + const int type) const = 0; }; } // namespace Net diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 00a4fd548..ca26c7823 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -166,6 +166,15 @@ void AdminHandler::requestLogin(const Being *const being) const outMsg.writeInt32(being->getId(), "account id"); } +void AdminHandler::setTileType(const int x, const int y, + const int type) const +{ + MessageOut outMsg(CMSG_ADMIN_SET_TILE_TYPE); + outMsg.writeInt16(x, "x"); + outMsg.writeInt16(y, "y"); + outMsg.writeInt16(type, "type"); +} + void AdminHandler::processAdminGetLoginAck(Net::MessageIn &msg) { msg.readInt32("account id"); diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 2dd12f162..3ee9be30a 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -68,6 +68,9 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void requestLogin(const Being *const being) const override final; + void setTileType(const int x, const int y, + const int type) const; + protected: void processAdminGetLoginAck(Net::MessageIn &msg); }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 50613c24c..f8a4564fe 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -309,6 +309,7 @@ #define CMSG_ADMIN_MUTE 0x0149 #define CMSG_ADMIN_MUTE_NAME 0x0212 #define CMSG_ADMIN_ID_TO_LOGIN 0x01df +#define CMSG_ADMIN_SET_TILE_TYPE 0x0198 #define CMSG_GUILD_CHECK_MASTER 0x014d #define CMSG_GUILD_REQUEST_INFO 0x014f diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index 8e654d737..b8b88baca 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -142,4 +142,9 @@ void AdminHandler::requestLogin(const Being *const being A_UNUSED) const { } +void AdminHandler::setTileType(const int x A_UNUSED, const int y A_UNUSED, + const int type A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 36af9890e..eb34886f0 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -67,6 +67,9 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void muteName(const std::string &name) const override final; void requestLogin(const Being *const being) const override final; + + void setTileType(const int x, const int y, + const int type) const; }; } // namespace TmwAthena |