diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index ca26c7823..6b584269c 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -51,6 +51,7 @@ AdminHandler::AdminHandler() : { SMSG_ADMIN_KICK_ACK, SMSG_ADMIN_GET_LOGIN_ACK, + SMSG_ADMIN_SET_TILE_TYPE, 0 }; handledMessages = _messages; @@ -70,6 +71,9 @@ void AdminHandler::handleMessage(Net::MessageIn &msg) case SMSG_ADMIN_GET_LOGIN_ACK: processAdminGetLoginAck(msg); break; + case SMSG_ADMIN_SET_TILE_TYPE: + processSetTileType(msg); + break; default: break; } @@ -181,4 +185,13 @@ void AdminHandler::processAdminGetLoginAck(Net::MessageIn &msg) msg.readString(24, "login"); } +void AdminHandler::processSetTileType(Net::MessageIn &msg) +{ + // +++ here need set collision tile for map + msg.readInt16("x"); + msg.readInt16("y"); + msg.readInt16("type"); + msg.readString(16, "map name"); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 3ee9be30a..f2eab8a08 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -73,6 +73,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler protected: void processAdminGetLoginAck(Net::MessageIn &msg); + + void processSetTileType(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index f8a4564fe..0e5ee60da 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -164,6 +164,7 @@ #define SMSG_ADMIN_KICK_ACK 0x00cd #define SMSG_ADMIN_GET_LOGIN_ACK 0x01e0 +#define SMSG_ADMIN_SET_TILE_TYPE 0x0192 #define SMSG_GUILD_CREATE_RESPONSE 0x0167 #define SMSG_GUILD_POSITION_INFO 0x016c |