summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:02 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-06 00:24:02 +0100
commit3450f0ca42c8f72920045709d0a57d5443b086a7 (patch)
treeaca17a013317a3d5da901c693d34d9fa26e1684d /src/World.h
parentReduced max explosions per tick (diff)
downloadcuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.gz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.bz2
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.lz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.xz
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.tar.zst
cuberite-3450f0ca42c8f72920045709d0a57d5443b086a7.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index bf6a4ba28..01481c049 100644
--- a/src/World.h
+++ b/src/World.h
@@ -157,7 +157,17 @@ public:
void BroadcastBlockAction (int a_BlockX, int a_BlockY, int a_BlockZ, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType, const cClientHandle * a_Exclude = NULL); // tolua_export
void BroadcastBlockBreakAnimation(int a_EntityID, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Stage, const cClientHandle * a_Exclude = NULL);
void BroadcastBlockEntity (int a_BlockX, int a_BlockY, int a_BlockZ, const cClientHandle * a_Exclude = NULL); ///< If there is a block entity at the specified coods, sends it to all clients except a_Exclude
- void BroadcastChat (const AString & a_Message, const cClientHandle * a_Exclude = NULL); // tolua_export
+
+ // tolua_start
+ void BroadcastChat(const AString & a_Message, const cClientHandle * a_Exclude = NULL);
+ void BroadcastChatInfo(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtInformation)); }
+ void BroadcastChatFailure(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtFailure)); }
+ void BroadcastChatSuccess(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtSuccess)); }
+ void BroadcastChatWarning(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtWarning)); }
+ void BroadcastChatFatal(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtFailure)); }
+ void BroadcastChatDeath(const AString & a_Message, const cClientHandle * a_Exclude = NULL) { BroadcastChat(AppendChatEpithet(a_Message, mtDeath)); }
+ // tolua_end
+
void BroadcastChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataSerializer & a_Serializer, const cClientHandle * a_Exclude = NULL);
void BroadcastCollectPickup (const cPickup & a_Pickup, const cPlayer & a_Player, const cClientHandle * a_Exclude = NULL);
void BroadcastDestroyEntity (const cEntity & a_Entity, const cClientHandle * a_Exclude = NULL);