diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-07-05 23:37:39 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-07-05 23:37:39 +0400 |
commit | 4937d0884c283bc30f588932b0cc120f53288fec (patch) | |
tree | ef14f404d9ea6282d7289f185431b0a8983e74ae /src/Message.h | |
parent | a965a37cf2a8acc4d9a728ef0f3ea78db4e2f6a3 (diff) |
Serverside usertexture support
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@543 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'src/Message.h')
-rw-r--r-- | src/Message.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Message.h b/src/Message.h index d844304de..66858fa8c 100644 --- a/src/Message.h +++ b/src/Message.h @@ -43,7 +43,7 @@ class Message { virtual void saveStream(PacketDataStream &) const; virtual void restoreStream(PacketDataStream &); public: - enum MessageType { Speex, MultiSpeex, ServerAuthenticate, ServerReject, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, PermissionDenied, EditACL, QueryUsers, Ping, TextMessage }; + enum MessageType { Speex, MultiSpeex, ServerAuthenticate, ServerReject, ServerSync, ServerJoin, ServerLeave, ServerBanList, PlayerMute, PlayerDeaf, PlayerKick, PlayerRename, PlayerBan, PlayerMove, PlayerSelfMuteDeaf, ChannelAdd, ChannelRemove, ChannelMove, ChannelLink, PermissionDenied, EditACL, QueryUsers, Ping, TextMessage, PlayerTexture }; unsigned short sPlayerId; Message(); @@ -370,6 +370,18 @@ class MessageQueryUsers : public Message { bool isValid() const; }; +class MessageTexture : public Message { + protected: + void saveStream(PacketDataStream &) const; + void restoreStream(PacketDataStream &); + public: + int iPlayerId; + QByteArray qbaTexture; + MessageTexture(); + Message::MessageType messageType() const { return PlayerTexture; } + void process(Connection *); +}; + #else class Message; #endif |