1 """
2 Channel messaging.
3 """
4
5 from struct import unpack_from, pack
6
7 from lacewing.baseloader import _BaseLoader
8 from lacewing.packetloaders.common import _DataTypeMixin, _ChannelMessage
9
11 """
12 This is sent by the server to all clients in a channel
13 from another client.
14 The server can edit the message value if it wants to (or completely
15 block it).
16 """
17
19 """
20 This is sent by the client if it wants to send a message
21 to everyone in a specific channel (that it is a part of).
22
23 @ivar channelId: The recipient channel ID.
24 @ivar subchannel: The subchannel of the message.
25 @ivar value: The message contents.
26 @type value: str or number
27 """
28
29 channelId = None
30 subchannel = None
31 value = None
32 - def read(self, data):
36
43
44 __all__ = ['FromChannelMessage', 'ToChannelMessage']
45