summaryrefslogtreecommitdiffstats
path: root/src/GameState.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-07-04 14:21:50 +0200
committerLaG1924 <lag1924@gmail.com>2021-07-04 14:21:50 +0200
commitb37e52c9facd4c41183c016fd5c91f8829407766 (patch)
tree7672459f9480a7b4cb0d95cdf09823d5072746fa /src/GameState.cpp
parentAdded RmlDebugger (diff)
downloadAltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar.gz
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar.bz2
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar.lz
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar.xz
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.tar.zst
AltCraft-b37e52c9facd4c41183c016fd5c91f8829407766.zip
Diffstat (limited to 'src/GameState.cpp')
-rw-r--r--src/GameState.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp
index 50a9004..89743e4 100644
--- a/src/GameState.cpp
+++ b/src/GameState.cpp
@@ -7,6 +7,7 @@
#include "Event.hpp"
#include "Packet.hpp"
#include "Game.hpp"
+#include "Plugin.hpp"
void GameState::Update(double deltaTime) {
OPTICK_EVENT();
@@ -168,7 +169,7 @@ void GameState::UpdatePacket(std::shared_ptr<Packet> ptr) {
case ChatMessageCB: {
auto packet = std::static_pointer_cast<PacketChatMessageCB>(ptr);
LOG(INFO) << "Message (" << int(packet->Position) << "): " << packet->JsonData.ToPlainText();
- PUSH_EVENT("ChatMessageReceived", std::make_tuple(packet->JsonData, packet->Position));
+ PluginSystem::CallOnChatMessage(packet->JsonData, packet->Position);
break;
}