summaryrefslogtreecommitdiff
path: root/src/net/tmwa/npchandler.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-06-24 17:46:48 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-04 21:24:44 +0200
commit638206c925cbe6db40b0ccdf7a39bc8029c6b9fa (patch)
treeff6dfcbc8654f674617c122302eddfb3ae15af2b /src/net/tmwa/npchandler.cpp
parent8a5fc68d22fc85736d4c379ef88d3a7fd0eee391 (diff)
downloadmana-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/tmwa/npchandler.cpp')
-rw-r--r--src/net/tmwa/npchandler.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index aeb8cf95..54a3abe0 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -213,30 +213,18 @@ void NpcHandler::talk(int npcId)
MessageOut outMsg(CMSG_NPC_TALK);
outMsg.writeInt32(npcId);
outMsg.writeInt8(0); // Unused
-
- Event event(Event::TalkSent);
- event.setInt("npcId", npcId);
- event.trigger(Event::NpcChannel);
}
void NpcHandler::nextDialog(int npcId)
{
MessageOut outMsg(CMSG_NPC_NEXT_REQUEST);
outMsg.writeInt32(npcId);
-
- Event event(Event::NextSent);
- event.setInt("npcId", npcId);
- event.trigger(Event::NpcChannel);
}
void NpcHandler::closeDialog(int npcId)
{
MessageOut outMsg(CMSG_NPC_CLOSE);
outMsg.writeInt32(npcId);
-
- Event event(Event::CloseSent);
- event.setInt("npcId", npcId);
- event.trigger(Event::NpcChannel);
}
void NpcHandler::menuSelect(int npcId, int choice)
@@ -244,11 +232,6 @@ void NpcHandler::menuSelect(int npcId, int choice)
MessageOut outMsg(CMSG_NPC_LIST_CHOICE);
outMsg.writeInt32(npcId);
outMsg.writeInt8(choice);
-
- Event event(Event::MenuSent);
- event.setInt("npcId", npcId);
- event.setInt("choice", choice);
- event.trigger(Event::NpcChannel);
}
void NpcHandler::integerInput(int npcId, int value)
@@ -256,11 +239,6 @@ void NpcHandler::integerInput(int npcId, int value)
MessageOut outMsg(CMSG_NPC_INT_RESPONSE);
outMsg.writeInt32(npcId);
outMsg.writeInt32(value);
-
- 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)
@@ -270,11 +248,6 @@ void NpcHandler::stringInput(int npcId, const std::string &value)
outMsg.writeInt32(npcId);
outMsg.writeString(value, value.length());
outMsg.writeInt8(0); // Prevent problems with string reading
-
- 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,