本文整理汇总了C#中UltimaXNA.Core.Network.PacketReader.ReadUnicodeString方法的典型用法代码示例。如果您正苦于以下问题:C# PacketReader.ReadUnicodeString方法的具体用法?C# PacketReader.ReadUnicodeString怎么用?C# PacketReader.ReadUnicodeString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UltimaXNA.Core.Network.PacketReader
的用法示例。
在下文中一共展示了PacketReader.ReadUnicodeString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UnicodeMessagePacket
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);
}
示例2: UnicodeMessagePacket
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);
}
示例3: PartyMessageInfo
public PartyMessageInfo(PacketReader reader, bool isPrivate)
{
IsPrivate = isPrivate;
Source = (Serial)reader.ReadInt32();
Message = reader.ReadUnicodeString();
}