From 946d6980c3ca3c7b7f6e50616e2e366c9adcae11 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Sep 2014 12:55:45 +0300 Subject: Move processSkillCasting from ea namespace into eathena and tmwa. --- src/net/tmwa/beinghandler.cpp | 13 ++++++++++++- src/net/tmwa/beinghandler.h | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 1d1c5ef11..af71491d3 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -203,7 +203,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_SKILL_CASTING: - processSkilCasting(msg); + processSkillCasting(msg); break; case SMSG_SKILL_CAST_CANCEL: @@ -988,4 +988,15 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg) BLOCK_END("BeingHandler::processBeingSpawn") } +void BeingHandler::processSkillCasting(Net::MessageIn &msg) const +{ + msg.readInt32("src id"); + msg.readInt32("dst id"); + msg.readInt16("dst x"); + msg.readInt16("dst y"); + msg.readInt16("skill num"); + msg.readInt32("skill get p1"); + msg.readInt32("cast time"); +} + } // namespace TmwAthena diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 671f2cf60..fb7fd872d 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -55,6 +55,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void processBeingMove3(Net::MessageIn &msg); void processBeingSpawn(Net::MessageIn &msg); + + void processSkillCasting(Net::MessageIn &msg) const; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2