diff options
author | worktycho <work.tycho@gmail.com> | 2015-09-21 14:30:17 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-09-21 14:30:17 +0200 |
commit | 87489dc30846e0b46822d5ed3b841417577d1fff (patch) | |
tree | 6d30b3e0f16b151b50bc39a675b5b2472543a1f6 /src/Protocol/ProtocolRecognizer.cpp | |
parent | Merge pull request #2487 from cuberite/sigpipe (diff) | |
parent | Refactored cProtocol Chat handling (diff) | |
download | cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar.gz cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar.bz2 cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar.lz cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar.xz cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.tar.zst cuberite-87489dc30846e0b46822d5ed3b841417577d1fff.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 68 |
1 files changed, 4 insertions, 64 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index 42c2eee0a..0d16262f9 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -138,80 +138,20 @@ void cProtocolRecognizer::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSe -void cProtocolRecognizer::SendChat(const AString & a_Message) +void cProtocolRecognizer::SendChat(const AString & a_Message, eChatType a_Type) { ASSERT(m_Protocol != nullptr); - m_Protocol->SendChat(a_Message); + m_Protocol->SendChat(a_Message, a_Type); } -void cProtocolRecognizer::SendChat(const cCompositeChat & a_Message) +void cProtocolRecognizer::SendChat(const cCompositeChat & a_Message, eChatType a_Type, bool a_ShouldUseChatPrefixes) { ASSERT(m_Protocol != nullptr); - m_Protocol->SendChat(a_Message); -} - - - - - -void cProtocolRecognizer::SendChatAboveActionBar(const AString & a_Message) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatAboveActionBar(a_Message); -} - - - - - -void cProtocolRecognizer::SendChatAboveActionBar(const cCompositeChat & a_Message) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatAboveActionBar(a_Message); -} - - - - - -void cProtocolRecognizer::SendChatSystem(const AString & a_Message) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatSystem(a_Message); -} - - - - - -void cProtocolRecognizer::SendChatSystem(const cCompositeChat & a_Message) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatSystem(a_Message); -} - - - - - -void cProtocolRecognizer::SendChatType(const AString & a_Message, eChatType type) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatType(a_Message, type); -} - - - - - -void cProtocolRecognizer::SendChatType(const cCompositeChat & a_Message, eChatType type) -{ - ASSERT(m_Protocol != nullptr); - m_Protocol->SendChatType(a_Message, type); + m_Protocol->SendChat(a_Message, a_Type, a_ShouldUseChatPrefixes); } |