public UnicodeMessagePacket(PacketReader reader)
     : base(0xAE, "Unicode Message")
 {
     Serial = reader.ReadInt32();
     Model = reader.ReadInt16();
     MsgType = (MessageTypes)reader.ReadByte();
     Hue = reader.ReadUInt16();
     Font = reader.ReadInt16();
     Language = reader.ReadString(4).Trim();
     SpeakerName = reader.ReadString(30).Trim();
     Text = reader.ReadUnicodeString((reader.Buffer.Length - 48) / 2);
 }
 public UnicodeMessagePacket(PacketReader reader)
     : base(0xAE, "Unicode Message")
 {
     m_serial = reader.ReadInt32();
     m_model = reader.ReadInt16();
     m_msgType = (MessageTypes)reader.ReadByte();
     m_hue = reader.ReadInt16();
     m_font = reader.ReadInt16();
     m_language = reader.ReadInt32();
     m_speakerName = reader.ReadString(30);
     m_spokenText = reader.ReadUnicodeString((reader.Buffer.Length - 48) / 2);
 }
Beispiel #3
0
 public PartyMessageInfo(PacketReader reader, bool isPrivate)
 {
     IsPrivate = isPrivate;
     Source = (Serial)reader.ReadInt32();
     Message = reader.ReadUnicodeString();
 }