diff options
Diffstat (limited to 'src/net/messageout.cpp')
-rw-r--r-- | src/net/messageout.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp index 272cac4e..d25cc62b 100644 --- a/src/net/messageout.cpp +++ b/src/net/messageout.cpp @@ -129,3 +129,21 @@ const Packet *MessageOut::getPacket() return mPacket; } + +MessageOut& operator<<(MessageOut &msg, const char &rhs) +{ + msg.writeByte(rhs); + return msg; +} + +MessageOut& operator<<(MessageOut &msg, const short &rhs) +{ + msg.writeShort(rhs); + return msg; +} + +MessageOut& operator<<(MessageOut &msg, const long &rhs) +{ + msg.writeLong(rhs); + return msg; +} |