diff options
author | HaoTNN <haotnn@gmail.com> | 2015-06-03 11:57:07 +0200 |
---|---|---|
committer | HaoTNN <haotnn@gmail.com> | 2015-06-03 11:57:07 +0200 |
commit | 6f1a3cb6dd6c102342eb8cfa901530f4d022c98c (patch) | |
tree | 697e29dfcf31001023ac87b325ea41f047dd16ae /src/Protocol/Protocol17x.cpp | |
parent | Fixes multiple furnace issues, including from loading world storage (diff) | |
parent | Merge pull request #2199 from jan64/master (diff) | |
download | cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar.gz cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar.bz2 cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar.lz cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar.xz cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.tar.zst cuberite-6f1a3cb6dd6c102342eb8cfa901530f4d022c98c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 56 |
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? |