diff options
author | LaG1924 <lag1924@gmail.com> | 2021-07-04 14:21:50 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-07-04 14:21:50 +0200 |
commit | b37e52c9facd4c41183c016fd5c91f8829407766 (patch) | |
tree | 7672459f9480a7b4cb0d95cdf09823d5072746fa /src/GameState.cpp | |
parent | Added RmlDebugger (diff) | |
download | AltCraft-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 '')
-rw-r--r-- | src/GameState.cpp | 3 |
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; } |