summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorjan64 <jan64.email@gmail.com>2015-06-02 19:59:46 +0200
committerjan64 <jan64.email@gmail.com>2015-06-02 19:59:46 +0200
commitd37e0eb72b12cd47863bdca78a790a3f6193d863 (patch)
tree4036b4b29e577b4886ab2d77d7f2b9bc601b7091 /src/Protocol/Protocol17x.cpp
parentMerge pull request #2182 from birkett/master (diff)
downloadcuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar.gz
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar.bz2
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar.lz
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar.xz
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.tar.zst
cuberite-d37e0eb72b12cd47863bdca78a790a3f6193d863.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?