summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-03 09:49:28 +0200
committerMattes D <github@xoft.cz>2015-06-03 09:49:28 +0200
commit1f2c9b226ca9287237d4489e08419076f4a87620 (patch)
treef5e5b669b0f8c3fe98b39133c5772df2db6ad5c0 /src/Protocol/Protocol17x.cpp
parentMerge pull request #2190 from mc-server/CrashDumpArgs (diff)
parentAdded system and above action bar chat messages (diff)
downloadcuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar.gz
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar.bz2
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar.lz
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar.xz
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.tar.zst
cuberite-1f2c9b226ca9287237d4489e08419076f4a87620.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp56
1 files changed, 55 insertions, 1 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 6aa36e2a5..71c68c071 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -247,6 +247,60 @@ void cProtocol172::SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockV
void cProtocol172::SendChat(const AString & a_Message)
{
+ this->SendChatType(a_Message, ctChatBox);
+}
+
+
+
+
+
+void cProtocol172::SendChat(const cCompositeChat & a_Message)
+{
+ this->SendChatType(a_Message, ctChatBox);
+}
+
+
+
+
+
+void cProtocol172::SendChatSystem(const AString & a_Message)
+{
+ this->SendChatType(a_Message, ctSystem);
+}
+
+
+
+
+
+void cProtocol172::SendChatSystem(const cCompositeChat & a_Message)
+{
+ this->SendChatType(a_Message, ctSystem);
+}
+
+
+
+
+
+void cProtocol172::SendChatAboveActionBar(const AString & a_Message)
+{
+ this->SendChatType(a_Message, ctAboveActionBar);
+}
+
+
+
+
+
+void cProtocol172::SendChatAboveActionBar(const cCompositeChat & a_Message)
+{
+ this->SendChatType(a_Message, ctAboveActionBar);
+}
+
+
+
+
+
+void cProtocol172::SendChatType(const AString & a_Message, eChatType type)
+{
ASSERT(m_State == 3); // In game mode?
cPacketizer Pkt(*this, 0x02); // Chat Message packet
@@ -257,7 +311,7 @@ void cProtocol172::SendChat(const AString & a_Message)
-void cProtocol172::SendChat(const cCompositeChat & a_Message)
+void cProtocol172::SendChatType(const cCompositeChat & a_Message, eChatType type)
{
ASSERT(m_State == 3); // In game mode?