diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-24 17:46:48 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-08-04 21:24:44 +0200 |
commit | 638206c925cbe6db40b0ccdf7a39bc8029c6b9fa (patch) | |
tree | ff6dfcbc8654f674617c122302eddfb3ae15af2b /src/net/manaserv/npchandler.cpp | |
parent | 8a5fc68d22fc85736d4c379ef88d3a7fd0eee391 (diff) | |
download | mana-638206c925cbe6db40b0ccdf7a39bc8029c6b9fa.tar.gz mana-638206c925cbe6db40b0ccdf7a39bc8029c6b9fa.tar.bz2 mana-638206c925cbe6db40b0ccdf7a39bc8029c6b9fa.tar.xz mana-638206c925cbe6db40b0ccdf7a39bc8029c6b9fa.zip |
Removed a bunch of unused NPC related eventssome-cleanups
Nobody cared for the events that were emitted when NPC related network
messages had been sent.
Diffstat (limited to 'src/net/manaserv/npchandler.cpp')
-rw-r--r-- | src/net/manaserv/npchandler.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/net/manaserv/npchandler.cpp b/src/net/manaserv/npchandler.cpp index bd131d55..f19bf134 100644 --- a/src/net/manaserv/npchandler.cpp +++ b/src/net/manaserv/npchandler.cpp @@ -168,10 +168,6 @@ void NpcHandler::talk(int npcId) MessageOut msg(PGMSG_NPC_TALK); msg.writeInt16(npcId); gameServerConnection->send(msg); - - Event event(Event::TalkSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::nextDialog(int npcId) @@ -179,10 +175,6 @@ void NpcHandler::nextDialog(int npcId) MessageOut msg(PGMSG_NPC_TALK_NEXT); msg.writeInt16(npcId); gameServerConnection->send(msg); - - Event event(Event::NextSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::closeDialog(int npcId) @@ -190,10 +182,6 @@ void NpcHandler::closeDialog(int npcId) MessageOut msg(PGMSG_NPC_TALK_NEXT); msg.writeInt16(npcId); gameServerConnection->send(msg); - - Event event(Event::CloseSent); - event.setInt("npcId", npcId); - event.trigger(Event::NpcChannel); } void NpcHandler::menuSelect(int npcId, int choice) @@ -202,11 +190,6 @@ void NpcHandler::menuSelect(int npcId, int choice) msg.writeInt16(npcId); msg.writeInt8(choice); gameServerConnection->send(msg); - - Event event(Event::MenuSent); - event.setInt("npcId", npcId); - event.setInt("choice", choice); - event.trigger(Event::NpcChannel); } void NpcHandler::integerInput(int npcId, int value) @@ -215,11 +198,6 @@ void NpcHandler::integerInput(int npcId, int value) msg.writeInt16(npcId); msg.writeInt32(value); gameServerConnection->send(msg); - - Event event(Event::IntegerInputSent); - event.setInt("npcId", npcId); - event.setInt("value", value); - event.trigger(Event::NpcChannel); } void NpcHandler::stringInput(int npcId, const std::string &value) @@ -228,11 +206,6 @@ void NpcHandler::stringInput(int npcId, const std::string &value) msg.writeInt16(npcId); msg.writeString(value); gameServerConnection->send(msg); - - Event event(Event::StringInputSent); - event.setInt("npcId", npcId); - event.setString("value", value); - event.trigger(Event::NpcChannel); } void NpcHandler::sendLetter(int npcId, const std::string &recipient, @@ -242,12 +215,6 @@ void NpcHandler::sendLetter(int npcId, const std::string &recipient, msg.writeString(recipient); msg.writeString(text); gameServerConnection->send(msg); - - Event event(Event::SendLetterSent); - event.setInt("npcId", npcId); - event.setString("recipient", recipient); - event.setString("text", text); - event.trigger(Event::NpcChannel); } } // namespace ManaServ |